Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 10-27-2006, 07:20 AM
midirtrider's Avatar
midirtrider midirtrider is offline
 
Join Date: May 2006
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Banners next to sponsers threads on main forum home display list

I am looking for a way to put my bb's sponsers web banners beside their company name. for vb version 3.6.0

So that on my forum home as you scroll down and into the "sponsors" section (where each sponser has their own forum space) you would see their name and then their web banner...

is this possible?

anyone willing to give it a shot?

I have seen it on other boards but have been unable to find the mod that makes it possible and I am WAY to new at all this stuff to even think of trying it myself.

any help would be great..

here is the forum that I seen it on..

http://www.masm.org/Forums/
(scroll down to their "sponsers" section in their forums page. and you will see what I am refering to! I am not using VBa by the way~
Reply With Quote
  #2  
Old 10-27-2006, 05:09 PM
SCRIPT3R SCRIPT3R is offline
 
Join Date: Jan 2005
Posts: 1,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

looks like they just added an html link within the forum description.
Reply With Quote
  #3  
Old 10-27-2006, 05:46 PM
midirtrider's Avatar
midirtrider midirtrider is offline
 
Join Date: May 2006
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

greatripper.. Im sorry Im a dork and posted the wrong site..

I edited my first post with the correct forums page that I seen what Im looking for..

here it is again..

http://www.masm.org/Forums/

Please forgive me for being brain dead sometimes
Reply With Quote
  #4  
Old 10-27-2006, 06:06 PM
SkyCatcher's Avatar
SkyCatcher SkyCatcher is offline
 
Join Date: Feb 2003
Location: Germany
Posts: 310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In Template FORUMHOME > forumhome_forumbit_level1_post

PHP Code:
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if> 
In template FORUMHOME > forumhome_forumbit_level2_post
PHP Code:
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if> 

Those are where you need to insert your banner.

You're replacing the forum description (leaving the forum title) with an image of your choice. Make sure to set the hight and width of the image tag.

You'd have to come up with a way to only display it on the sponsor forums though which makes it a bit more complicated.

If you want it done quick and dirty I would say:

Make a folder called banners or ads or something.

Then insert a quick <img src="./banners/$forum[forumid].gif" height="whatever" width="whatever" border="0"> after the forum description in the code above.

Then make an image that is 1x1 pixels, transparent.

Now look at the forumid's of all your forums. Every sponsor forum (lets say 20,21,22,23) will try to load the corresponding image (ie. forum21 will load 21.gif, forum22 = 22.gif, etc).

So you name your banners according to the forumid's.

All the other forums without any ads will still try to load for example 1.gif, 2.gif etc... so you take that clear 1x1 pixel image you made and call it 1.gif, 2.gif, etc. Enough so all your non-sponsor forums will have a clear image.

That should take care of it, being quick and dirty.


If you want it done right, you'll need an extra field in the forums via the admincp so you can enter your own image name and then set a conditional in the template so that when there's a name in the field it will load the image and when the field is blank or 0 it won't load an image.
Reply With Quote
  #5  
Old 11-03-2006, 05:56 PM
midirtrider's Avatar
midirtrider midirtrider is offline
 
Join Date: May 2006
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was actually able to just write in a html IMG code in the destripction of the sponsors and it displayed their banner image..

thanks guys
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 11:05 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.06920 seconds
  • Memory Usage 2,201KB
  • 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_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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