Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: News Manager & Job Manager:
Border around images in NM

 

 


annie
User

Feb 5, 2006, 9:06 AM

Post #1 of 6 (7428 views)
Shortcut
Border around images in NM Can't Post

Please could someone tell me how to format the html code in News Manager's article template to place a border around the image?


ross
Staff / Moderator


Feb 5, 2006, 11:12 AM

Post #2 of 6 (7423 views)
Shortcut
Re: [annie] Border around images in NM [In reply to] Can't Post

Hi Annie.

Thanks for posting and welcome to the board!

On both of your News Manager templates there is a placeholder called $ufile_image$. This will pull in the URL to the image you uploaded. To have that image appear with a border around it, you can use the following code:


Code
<img src='$ufile_image$' border=1>


Could you give that a shot and let me know how you make out? I look forward to hearing from you Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com

Hire me!  Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/



annie
User

Feb 5, 2006, 11:33 AM

Post #3 of 6 (7422 views)
Shortcut
Re: [ross] Border around images in NM [In reply to] Can't Post

I couldn't see a $ufile_image$ placeholder in the code, only an $image$ placeholder as follows:

<p><table border=0 cellspacing=0 cellpadding=0 width=460><tr><td>
$image$<font face="arial" style="font-size: 13px;">$content$</font><Br>
</td></tr></table>

However, I swapped $image$ for <img src='$ufile_image$' border=1> but this did not work. I lost the right-alignment of the image and the image did not appear. Also, there was a red x on the pages where I don't have images.

Perhaps I'm missing the point somewhere.


ross
Staff / Moderator


Feb 5, 2006, 2:53 PM

Post #4 of 6 (7417 views)
Shortcut
Re: [annie] Border around images in NM [In reply to] Can't Post

Hi again Annie.

Thanks for posting!

I actually missed on important detail. The $ufile_image$ will pull in the file name of your image. To use it properly, you’ll need to add the path to your uploads folder before it like this:


Code
<img src=”/nm/uploads/$ufile_image$” border=1>


This placeholder doesn’t actually appear on a default template so don’t worry if you can’t find it on yours. Just copy mine, double check that the path to your uploads folder is correct, and give it a try.

Let me know how you make out Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com

Hire me!  Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/



annie
User

Feb 6, 2006, 6:39 AM

Post #5 of 6 (7396 views)
Shortcut
Re: [ross] Border around images in NM [In reply to] Can't Post

OK, having done this I see the image. The right alignment has disappeared but I'm sure I can rearrange the template to accommodate this.

The only remaining problem doing it this way is that, on article pages with no image, I get a broken image link. Is there a way around this please?

Cool Annie


ross
Staff / Moderator


Feb 6, 2006, 1:52 PM

Post #6 of 6 (7390 views)
Shortcut
Re: [annie] Border around images in NM [In reply to] Can't Post

Hi Annie.

Thanks for the update!

There is actually a neat little trick you can use with images to avoid broken image links. Check out this forum post for an explanation:

http://www.interactivetools.com/forum/gforum.cgi?post=44155#44155

From the sounds of it, that should work for you quite nicely Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com

Hire me!  Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/