PDA

View Full Version : How to replace forum_new.gif?


Baba Wawa
10-02-2009, 09:41 PM
I'm trying to replace the default buttons for "No new posts in forum" and "Forum has new posts." I've succeeded in replacing the ones at the very bottom of the page.

However, as you look vertically down the page, the same old default buttons still appear next to the name of each forum.

The names of the default buttons are clearly "forum_new.gif" and "forum_old.gif". When I search in the templates for those phrases, however, I find only one reference to each -- the same ones that I used to insert the new icons at the bottom of the page.

Where are those other guys hanging out? how can I change the icon next to each forum name??

Lynne
10-02-2009, 09:48 PM
Find the template where the 'old' ones are showing up and see what is happening in there.

To find the template of interest, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. Sometimes the template is the one mentioned at the very top of the page source.

Baba Wawa
10-02-2009, 11:01 PM
Lynne, thank you very much for your reply. I did as you suggested, and it was very educational. :)

From looking at the source code, it appears that the icons in question are part of the "forumhome_forumbit_level2_post" template. That seems quite clear -- the phrase "Begin template forumhome_forumbit_level2_post" appeared almost immediately before each appearance of the expression forum_old.gif or forum_new.gif.

When I opened up that template, however, I could not find any reference to either gif. My effort to replace the default gifs therefore remains stymied.

Lynne
10-02-2009, 11:31 PM
It looks like this is the image here:
<img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" />

So, depending on the status, the image is changed from forum_old to forum_new (or one of three others). So, you could do a condition based on $forum[statusicon] to change the image if it is 'new' or you can make the names of your images fit that pattern and then change forum_ to whatever you chose.

Medtech
10-03-2009, 12:16 AM
for my 2 cents worth, it is easy to rename the new image the same as the old and upload it to the correct directory with ftp overwriting it. simple and effective way of replacing images.

Baba Wawa
10-03-2009, 05:54 PM
It looks like this is the image here:
<img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" />

So, depending on the status, the image is changed from forum_old to forum_new (or one of three others). So, you could do a condition based on $forum[statusicon] to change the image if it is 'new' or you can make the names of your images fit that pattern and then change forum_ to whatever you chose.


I'd love to be able to do that, Lynne, but it is well beyond my capability at present. :(

Thank you for your reply, though, and the information. :)

--------------- Added 1254596105 at 1254596105 ---------------

for my 2 cents worth, it is easy to rename the new image the same as the old and upload it to the correct directory with ftp overwriting it. simple and effective way of replacing images.


It looks like that's what I'll have to do. I was reluctant to overwrite anything but it appears I can't avoid it.

Thank you, Medtech, for your help.

TNCclubman
10-03-2009, 05:58 PM
for my 2 cents worth, it is easy to rename the new image the same as the old and upload it to the correct directory with ftp overwriting it. simple and effective way of replacing images.

Ive always done it this way as well.