Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions
  #1  
Old 10-02-2009, 09:41 PM
Baba Wawa Baba Wawa is offline
 
Join Date: Mar 2009
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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??
Reply With Quote
  #2  
Old 10-02-2009, 09:48 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 10-02-2009, 11:01 PM
Baba Wawa Baba Wawa is offline
 
Join Date: Mar 2009
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 10-02-2009, 11:31 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 10-03-2009, 12:16 AM
Medtech's Avatar
Medtech Medtech is offline
 
Join Date: Oct 2007
Posts: 310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 10-03-2009, 05:54 PM
Baba Wawa Baba Wawa is offline
 
Join Date: Mar 2009
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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 View Post
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.
Reply With Quote
  #7  
Old 10-03-2009, 05:58 PM
TNCclubman's Avatar
TNCclubman TNCclubman is offline
 
Join Date: Sep 2008
Posts: 690
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Medtech View Post
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:16 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03979 seconds
  • Memory Usage 2,219KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete