vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Different newthread.gif on different forums. (https://vborg.vbsupport.ru/showthread.php?t=239369)

deni_z 03-29-2010 07:04 PM

Different newthread.gif on different forums.
 
Hello! I have a question, I hope this is the right place to post it.
I want to make a modification to my forum. And it goes like this: when the user is in a certain forum ( and in it's subforums also), newthread.gif is replaced with new_thread.gif ( a different button ).
Is like on this site, when you are in Forum Tab there is a "New Thread" button, when you are in Mods Tab there is a "New mod" button, when you are in "Articles Thread" there is a "New article" button.
How can I do that? Can anyone guide me, please?
Thank you very much!


L.E. Sorry, now I see that I've should have post this in General Discussions. https://vborg.vbsupport.ru/forumdisplay.php?f=111. I would appreciate if a moredator can move it. Thanks

Antivirus 04-04-2010 07:29 PM

Basically u need a conditional which tells the engine to parse the image you want based upon the $foruminfo[forumid] variable. U can do this by editing the forumdisplay template.


All times are GMT. The time now is 08:50 PM.

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.01102 seconds
  • Memory Usage 1,709KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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