Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
Ads under special forumid on forumhome Details »»
Ads under special forumid on forumhome
Version: 1.00, by jluerken jluerken is offline
Developer Last Online: Dec 2018 Show Printable Version Email this Page

Version: 3.6.0 Rating:
Released: 08-22-2006 Last Update: Never Installs: 18
Template Edits
 
No support by the author.

Hi Members,

asked on vb.com I want to describe how you can add ads, banners or other stuff under a special forum.
This is also working with styles with seperated categories.

There is no limit, you can nearly add everything you want.

Check the admincp for the forumid where you want to put the Code.

Open forumhome_forumbit_level2_post and scroll all the way down.
Right above $childforumbits add

Code:
<if condition="$forum[forumid] == 21">
<tr>
  <td class="alt2" colspan="5">
	<br />	
          <div align="center">
            <img src="http://www.clanforums.com/forum/images/signatur/signatur.jpg"><br>
	    <font color=red><b>YOUR BANNER CODE HERE</b></font>
	  </div>
         <br />
  </td>
</tr>
</if>
where 21 is the forumid you checked in your admincp.

Example:


Additional Info:
The ForumID you are entering MUST be a forum and cannot be a category to work!

Have fun

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
blind-eddie

Comments
  #2  
Old 08-23-2006, 10:43 PM
Tony_FPM Tony_FPM is offline
 
Join Date: Feb 2005
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey i just installed it to try it out but i dont see anything.

This is my piece of template.
What did i do wrong ??

Quote:
<td class="alt2">$forum[replycount]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
</if>
</tr>
<if condition="$forum[forumid] == 10">
<tr>
<td class="alt2" colspan="5">
<br />
<div align="center">
<img src="http://www.freakpyromaniacs.com/forum/images/banners/alpecobanner.gif"><br>
<font color=red><b>YOUR BANNER CODE HERE</b></font>
</div>
<br />
</td>
</tr>
</if>
$childforumbits
I am using 3.6 Rc3
Reply With Quote
  #3  
Old 08-23-2006, 11:13 PM
jluerken's Avatar
jluerken jluerken is offline
 
Join Date: Aug 2003
Location: Germany
Posts: 1,016
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you provide me with an admin login so that I can take a look into your templates?
Reply With Quote
  #4  
Old 08-24-2006, 02:27 PM
Tony_FPM Tony_FPM is offline
 
Join Date: Feb 2005
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

INstalled and all working now.
Thanks for this mod.
Reply With Quote
  #5  
Old 08-24-2006, 07:08 PM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

XHTML Police Coming Through!

Code:
<img src="http://www.clanforums.com/forum/images/signatur/signatur.jpg"><br>
Should be...
Code:
<img src="http://www.clanforums.com/forum/images/signatur/signatur.jpg" /><br />
Tee-hee. Good post, this should (hopefully) answer the endless number of threads asking how to do this.
Reply With Quote
  #6  
Old 08-26-2006, 09:15 AM
chrisife chrisife is offline
 
Join Date: Aug 2006
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jluerken
Can you provide me with an admin login so that I can take a look into your templates?
jluerken,
I looked at your site and loved the design. Can you help me put together my forum like that? I am new here. My forum is http://www.swissforeignersforum.com
Reply With Quote
  #7  
Old 08-27-2006, 04:14 AM
colochris colochris is offline
 
Join Date: May 2006
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes your forum does look nice. Do you do anywork on the side?
Reply With Quote
  #8  
Old 08-27-2006, 01:05 PM
jluerken's Avatar
jluerken jluerken is offline
 
Join Date: Aug 2003
Location: Germany
Posts: 1,016
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chrisife
jluerken,
I looked at your site and loved the design. Can you help me put together my forum like that? I am new here. My forum is http://www.swissforeignersforum.com
Well send me a PM what you need!

Quote:
Originally Posted by colochris
Yes your forum does look nice. Do you do anywork on the side?
Please also PM me!
Reply With Quote
  #9  
Old 08-30-2006, 04:05 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the hack! I'll install it right away...
Reply With Quote
  #10  
Old 10-20-2006, 04:55 AM
Mathew7000 Mathew7000 is offline
 
Join Date: Feb 2004
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What if you wanted the banner to show up ABOVE a forum category? I have regional forums that id like to have a banner above, but not be shown at the bottom of the category above it, where the banner looks like its apart of a different category...

Edit: I figured it out...just place this script ABOVE the rest of the code in forumhome_forumbit_level2_post
Reply With Quote
Reply

Thread Tools

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 10:04 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.13219 seconds
  • Memory Usage 2,292KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)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_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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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