Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vB Forum Sponsors Details »»
vB Forum Sponsors
Version: 1.00, by Logikos Logikos is offline
Developer Last Online: Sep 2023 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 08-04-2005 Last Update: 08-04-2005 Installs: 96
DB Changes Uses Plugins Template Edits
 
No support by the author.

vB Forum Sponsors

vBulletin 3.5.0 RC 2
www.vBHackers.com

What this does
This will allow you to setup a linked banner to appear on you forums area. The look of the icon depends on how you want to set it up in the templates. This will work for all levels of sub-forums. See screenshot for example.

Note:
This hack will work for vBulletin Version 3.5.0 RC-1 and RC-2 ONLY!
Requested By: iguanairs in This Post

To do list...
  • Time to install: 3 minutes
  • Queries to run: 3
  • File Mods: 0
  • Templates to edit: 1
  • Templates to add: 0
  • New Phrases: 5
  • New Plugins: 2

Template Changes:
Read this post for template changes

Please read carefully and make all the necessary changes as stated. This is will work if installed properly.
PLEASE REMEMBER TO BACKUP BEFORE YOU BEGIN! If you like this hack

Click It For Support!

Help & Support
Before asking for support Please make sure you have done all necessary changes! If you still need support please post a reply here.

Please post bugs and errors here. Hope you like, feedback welcomed.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 08-05-2005, 06:03 PM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by iguanairs
Hello,

Is it possible to make sponsors for Categories? I want to seperate my categories, but when a Forum is placed in a category, it kills the sponsor.

For some reason, they don't seem to get along.
I don't quite understand, care to show me a screenshot?
Quote:
Originally Posted by iguanairs
Hello,

All went well except for one thing. After I installed this, I couldn't get it to work with the existing forums I have. It works great when new forums are added, but doesn't take effect with the other forums. Do we need to re-add all of the forums in order for this to work?

The options are there, I used them, activated them, and saved. Then I looked at the forums and it didn't work. So I went down and rebuilt the forums and then repaired/optimized the tables. Still didn't take effect.

Thats when I tried a new forum. That worked great. So I re-did the steps above again to see if it needed a kick perhaps, and still nothing.

Thanks for creating this. If I need to, I will redo all the forums. There are only 30-40 of them right now, so it won't be too bad. I am going to hold out on that however in case you find a way to force the new addition.
Quote:
Originally Posted by hotrod1
I am having that same problem too with my forum.
Well this was created on a fresh install, let me install this on my live forum, since I have pre exsisting forums all ready. But i've never seen or heard of such a bug.
Reply With Quote
  #13  
Old 08-05-2005, 06:16 PM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

No screenshot required. If I have a forum that has a sponsor, and move it to a Category, it removes the sponsor bit completely. Just picture the "normal" view. Thats what I get.

It has to do with the categories. I installed this on a pre-existing site with forums, and then did a clean install. The categories, for some reason, mess it up.

Categories wouldn't bother me except I want to space everything. I can space the categories, and lose this mod, or use forums and subforums, but no spacing, and use this mod.

My preference, use this mod and space them. lol
Reply With Quote
  #14  
Old 08-05-2005, 06:27 PM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well depending on the design of your forums you can place this anywhere within the forum. Its a global variable. You can even place it in the postbit if you wanted to. And if you have a banner on forumid 6, then everypost that is in forumid 6 will show the banner.

I can't seem to reproduce the bug you stating about pre existing forums. Keep in mind that your categorys are within the "forumhome_forumbit_level1_nopost" template, and your subforums are within the "forumhome_forumbit_level2_post" template.
Reply With Quote
  #15  
Old 08-05-2005, 06:37 PM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As you can see in my screenshot, everything is working as designed.

My forumhome_forumbit_level1_nopost template code is:
HTML Code:
<tbody>
        <tr>
                <td class="tcat" colspan="2">

                        <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
                        <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
                        <if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
                </td>
                <td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">4<else />3</if>" valign="middle">
                <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
                <if condition="$forum[issponsor] == 1">
                        $vbphrase[sponsored_by] <a href="$forum[sponsor_url]" target="_blank">$forum[sponsor_banner]</a>
                </if>
                </td>
        </tr>
</tbody>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
$childforumbits
</tbody>
</if>
My forumhome_forumbit_level2_post Template code is:
HTML Code:
<tr align="center">
        <td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
        <td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">

                <if condition="$forum[issponsor] == 1">
                        <div style="float:$stylevar[right]">
                        $vbphrase[sponsored_by] <a href="$forum[sponsor_url]" target="_blank">$forum[sponsor_banner]</a>
                        </div>
                </if>

                <div>
                        <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
                        <if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
                </div>
                <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
                <if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
                <if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
        </td>
        <td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
        <td class="alt1">$forum[threadcount]</td>
        <td class="alt2">$forum[replycount]</td>
        <if condition="$vboptions['showmoderatorcolumn']">
        <td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
        </if>
</tr>
$childforumbits
Reply With Quote
  #16  
Old 08-05-2005, 07:18 PM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

I don't know why, but when I copied your code above over the default code I had for those 2 templates, everything started working fine.

Prior to just now, I haden't editted either one of those files. Was I suppose to do that during install? I only editted the forumhome_forumbit_level1_post. With just that edited, that is where I was getting the problem. With your template code above, everything is working.

I don't know, but thank you! This does what I need. Thanks again!
Reply With Quote
  #17  
Old 08-05-2005, 07:24 PM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad you got it working
Reply With Quote
  #18  
Old 08-05-2005, 07:26 PM
Koopa Koopa is offline
 
Join Date: Nov 2001
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This looks good, will give it a try sometime
Reply With Quote
  #19  
Old 08-05-2005, 08:02 PM
hotrod1 hotrod1 is offline
 
Join Date: Apr 2005
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks alot and that worked and I know why there was a problem before. In your readme it says forumhome_forumbit_level1_post when it should be forumhome_forumbit_level1_nopost. Hope that helps and that future installations can be saved from the hassle but it is a great hack now all I need is some supporters willing to donate lol
Reply With Quote
  #20  
Old 08-05-2005, 08:14 PM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, I didn't relize that. I'll fix now.
Reply With Quote
  #21  
Old 08-05-2005, 08:18 PM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated first post with fixed readme.txt
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 01:56 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.04828 seconds
  • Memory Usage 2,327KB
  • 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
  • (2)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete