Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-02-2002, 03:54 PM
telc's Avatar
telc telc is offline
 
Join Date: Dec 2001
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Static banner in certain forum

I want to put a static banner in one of my forums which is sponsored. What the simplest way I can go about doing this, the forumid is 19. I would like it so when users are browsing that forum, they see a static banner on the top.

I am familiar with this hack, but its not what I need.
https://vborg.vbsupport.ru/showthrea...threadid=26818
Reply With Quote
  #2  
Old 10-02-2002, 04:49 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in forumdisplay.php, insert

PHP Code:
if ($forumid==19)
{
 eval(
"\$mycustombanner .= \"".gettemplate('mycustombanner19')."\";");

before
PHP Code:
eval("dooutput(\"".gettemplate('forumdisplay')."\");"); 
Create a new Edit template named "mycustombanner19" and inside it put your banner and design it in HTML.

Then you can use variable $mycustombanner inside forumdisplay template whereever you like.
Reply With Quote
  #3  
Old 10-02-2002, 08:44 PM
telc's Avatar
telc telc is offline
 
Join Date: Dec 2001
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks alot, how would I go about placing it right above the 'threads list" above where it says "Thread Starter".
Reply With Quote
  #4  
Old 10-02-2002, 08:58 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's forumdisplay/forumdisplay template.. Try to find the relevant place you would find the banner nicely fit. For example, you may like to put it before:

PHP Code:
<br>

$forumdisplay[forumslist
Reply With Quote
  #5  
Old 06-26-2003, 06:31 AM
Morgalis Morgalis is offline
 
Join Date: Oct 2002
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
10-02-02 at 06:49 PM Logician said this in Post #2
in forumdisplay.php, insert

PHP Code:
if ($forumid==19)
{
 eval(
"\$mycustombanner .= \"".gettemplate('mycustombanner19')."\";");

before
PHP Code:
eval("dooutput(\"".gettemplate('forumdisplay')."\");"); 
Create a new Edit template named "mycustombanner19" and inside it put your banner and design it in HTML.

Then you can use variable $mycustombanner inside forumdisplay template whereever you like.
i'd like to be able to do this in 4 of my forums, but only 4.. how would i be able to adapt this updated code for the sponsored by banners?

i'd create 2 specific templates to match the needs of the two sponsors, but not clear on how to specify that i need 1,2,3 to be one template and 4 to be another
Reply With Quote
  #6  
Old 06-26-2003, 09:36 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
if ($forumid==X

eval(
"\$mycustombanner .= \"".gettemplate('mycustombannerX')."\";"); 
}
elseif (
$forumid==OR $forumid==OR $forumid==W

eval(
"\$mycustombanner .= \"".gettemplate('mycustombannerY')."\";"); 

Reply With Quote
  #7  
Old 07-12-2003, 08:31 AM
Courage Courage is offline
 
Join Date: Feb 2002
Location: Romania
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How cand I do so a banner for a category, can be seen in all threads from that category ?
Reply With Quote
  #8  
Old 08-23-2003, 09:12 AM
XrayHead's Avatar
XrayHead XrayHead is offline
 
Join Date: Oct 2002
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
07-12-03 at 10:31 AM Courage said this in Post #7
How cand I do so a banner for a category, can be seen in all threads from that category ?


I really would love to find out how to do this as I have just changed my whole VB look and need to sort out the banners....
I don?t really want to put messy banners on my front page this hack would work a real treat on our site.......

Any help would be much appreciated indeed.

XrayHeaD
:ermm:
Reply With Quote
  #9  
Old 08-31-2003, 04:23 PM
XrayHead's Avatar
XrayHead XrayHead is offline
 
Join Date: Oct 2002
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
if ($forumid==49 OR $forumid==50 OR $forumid==51

eval(
"\$mycustombanner .= \"".gettemplate('mycustombanner_WWP')."\";"); 

elseif (
$forumid==OR $forumid==22 OR $forumid==23 OR $forumid==25 OR $forumid==27

eval(
"\$mycustombanner .= \"".gettemplate('mycustombanner_LPS')."\";"); 

elseif (
$forumid==60 OR $forumid==62 OR $forumid==63 OR $forumid==65 OR $forumid==67

eval(
"\$mycustombanner .= \"".gettemplate('mycustombanner_OJI')."\";"); 

OK..... Looking at the code above

I have created two custom templates, one called mycustombanner_LPS and the other called mycustombanner_WWP.
Now I want to show mycustombanner_WWP in forum ID's 49, 50 and 51 and mycustombanner_LPS in forum ID's 1, 22, 23, 25 and 27.
And then add mycustombanner_OJI to forum ID's 60, 62, 63, 65 and 67.

Can you please tell me if I have altered the above code correctly?

Thank you..........

XrayheaD
Reply With Quote
  #10  
Old 12-04-2003, 05:54 PM
XrayHead's Avatar
XrayHead XrayHead is offline
 
Join Date: Oct 2002
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just to let you all know that the above code works a treat.
Reply With Quote
Reply


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 09:52 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.11021 seconds
  • Memory Usage 2,270KB
  • Queries Executed 11 (?)
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
  • (7)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_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