vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   How to replace forum_new.gif? (https://vborg.vbsupport.ru/showthread.php?t=224445)

Baba Wawa 10-02-2009 09:41 PM

How to replace forum_new.gif?
 
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:
HTML Code:

<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

Quote:

Originally Posted by Lynne (Post 1894009)
It looks like this is the image here:
HTML Code:

<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 [DATE]1254596105[/DATE] at [TIME]1254596105[/TIME] ---------------

Quote:

Originally Posted by Medtech (Post 1894025)
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

Quote:

Originally Posted by Medtech (Post 1894025)
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.


All times are GMT. The time now is 10:18 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01148 seconds
  • Memory Usage 1,732KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete