Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vB.Sponsors - Forum and Category Sponsorship with Statistics Details »»
vB.Sponsors - Forum and Category Sponsorship with Statistics
Version: 1.1.0, by Deviation Deviation is offline
Developer Last Online: Jun 2016 Show Printable Version Email this Page

Version: 3.5.8 Rating:
Released: 12-18-2005 Last Update: 05-24-2007 Installs: 235
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

vB.Sponsors
Forum and Category Sponsorship Ads with Statistics

Add sponsor's ads to forums & categories

INTRO:
This extension will allow you to add sponsors to you forums and categories. You can also track the hits to each sponsor by date as well. See below for more features.

FEATURES:
-Enable sponsorship on forums and categories
-Use a banner or a text link
-Supports large banners for the top of the sponsored forum, large banners at the top of the thread and small banners for the forum listing
-Tracks hits for each sponsor
-Statistics viewable inside Admin CP
-Easy to use and install

THANKS:
...to vBulletin.org and its members.
...to the people who have installed this mod, suggested improvements and found bugs.

FEEDBACK:
Feedback Forums: http://www.DigitalDeviation.com/forums/
Feedback is always welcomed! Good or bad. Post all feedback and feature requests in this thread or in the forums above. Trust me, I'll be reading it even if I don't respond to every post.

SUPPORT:
Support Forums: http://www.DigitalDeviation.com/forums/
Should you need any assistance with this, you can reach me via the link above or by posting in this thread.

In either case, please post as much detail as possible with any code or screenshots pertaining to the issue. MySQL, PHP and web server software versions are helpful. You can obtain these from the Admin CP in vBulletin.

DONATE:
If you like this product, a donation would be appreciated. But of course its not required.



INSTALLATION:
Documentation is located here. I've found it's easier to maintain an online version rather than files included in the download.

DEMO SITES: If you'd like your forum added here, PM me.
Sites listed at http://www.digitaldeviation.com/proj...referencesites

VERSION HISTORY:
1.1.0 - Code Cleanup/Bugfix/Feature Added
Big banner display now works
Added the ability to change the Forum Sponsored By text
Updated example template code (added SHOWTHREAD template code)
Cleaned up code (XML, vBSponsors.php, link.php)
Code now more closely matches the vBulletin 3.6.x version (here)
Updated the documentation
1.0.5 - Feature Added/Bug Fix/Code Cleanup
Added a large banner option for the forum that's sponsored by the sponsor
Added FORUMDISPLAY template code
Cleaned up code (link.php, vBSponsors.php)
1.0.4 - Bug Fix
Corrected statistics database error.
Template code updated.
1.0.3 - Bug Fix
Corrected issue with settings. Now saves settings.
Fixed parser error.
1.0.2 - Features Added
Added Admin CP block
Stats are now viewable in the Admin CP by administrators
Minor template changes (please verify your code if upgrading)`
1.0.1 - Bug Fix
Corrected issue with vBSponsors table. Now correctly adds statstics.
1.0.0 - Initial Release

---FEATURE REQUEST LIST---
-Stats viewable by the sponsors in the User CP of their account
-Option to use Adsense code instead of link
-Ability to change the "Forum Sponsored By" text on a per forum basis
-Ability to hide sponsors based on user groups
-Multiple sponsors per forum/category
-Option to remove the branding copyright

---KNOWN BUGS---
-NONE

Don't forget to click the install link below if you use it.

Supporters / CoAuthors

Show Your Support

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

Comments
  #272  
Old 11-15-2006, 11:13 PM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Deviation View Post
Try enclosing the vB.Sponsors code for that template in <div> tags.
HTML Code:
<div align="center">
[CODE]
</div>
Simple enough, right?

Awwww well this seemed to fix the issue but only within the forums that have the banner displayed turned on an in all the other forums it still throw the template off???? Any ideas?

This is what my code looks like adding the tags you suggested.. Did I do it right?

<div align="center">
<if condition="$foruminfo[sponsor_enabled] == 1 AND $vboptions[sponsor_global_enable_sponsorship] == 1"><table class="tborder" cellpadding="6" cellspacing="1" border="0" width="468" height="60" align="center">
<tr>
<td class="tcat" align="center"><span class="normal"><font size="1">
$vbphrase[sponsored_by] </font>
</span></td>
</tr>
<tr>
<td class="alt2" align="center"><span class="normal"><font size="1"><a href="vB.Sponsors/link.php?f=$foruminfo[forumid]" title="$foruminfo[sponsor_name]" target="_blank">
<if condition="$foruminfo[sponsor_banner_enabled] == 1 AND $vboptions[sponsor_global_enable_banners] == 1">
<if condition="!empty($foruminfo[sponsor_banner_big])">
<img src="$foruminfo[sponsor_banner_big]" alt="$foruminfo[sponsor_name]" border="0" />
<else />
<img src="$foruminfo[sponsor_banner]" alt="$foruminfo[sponsor_name]" border="0" />
</if>
<else />
$foruminfo[sponsor_name]
</if></a>
</if></font>
</span></td>
</tr>
</table>
</div>
Reply With Quote
  #273  
Old 11-15-2006, 11:35 PM
Deviation Deviation is offline
 
Join Date: Sep 2005
Location: Ohio
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this:
HTML Code:
<if condition="$foruminfo[sponsor_enabled] == 1 AND $vboptions[sponsor_global_enable_sponsorship] == 1">
     <div align="center">
     <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="468" height="60" align="center">
          <tr>
               <td class="tcat" align="center">
               <span class="normal"><font size="1">$vbphrase[sponsored_by] </font></span>
               </td>
          </tr>
          <tr>
               <td class="alt2" align="center">
               <span class="normal">
               <font size="1">
               <a href="vB.Sponsors/link.php?f=$foruminfo[forumid]" title="$foruminfo[sponsor_name]" target="_blank">
               <if condition="$foruminfo[sponsor_banner_enabled] == 1 AND $vboptions[sponsor_global_enable_banners] == 1">
                    <if condition="!empty($foruminfo[sponsor_banner_big])">
                         <img src="$foruminfo[sponsor_banner_big]" alt="$foruminfo[sponsor_name]" border="0" />
                    <else />
                         <img src="$foruminfo[sponsor_banner]" alt="$foruminfo[sponsor_name]" border="0" />
                    </if>
               <else />
                    $foruminfo[sponsor_name]
               </if>
               </a>
               </font>
               </span>
               </td>
          </tr>
     </table>
     </div>
</if>
Be sure when posting HTML code that you enclose it with the HTML tag on the forum (looks like the <>). Otherwise its a bear to read.
Reply With Quote
  #274  
Old 11-16-2006, 02:28 AM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK I will use the HTML tags next time sorry.. Now I tried the updated code and the weird thing is as soon as I apply that code my server spike to 80% utilization:alien:

What is going on?
Reply With Quote
  #275  
Old 11-16-2006, 02:37 AM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep just verified with my Hosting provider that as soon as I add this code in my FORUMDISPLAY the server peeks to 80% Any ideas why?
Reply With Quote
  #276  
Old 11-16-2006, 10:58 AM
Deviation Deviation is offline
 
Join Date: Sep 2005
Location: Ohio
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bada_bing View Post
Yep just verified with my Hosting provider that as soon as I add this code in my FORUMDISPLAY the server peeks to 80% Any ideas why?
Not sure. There's nothing overly complex happening there. Have you checked to see what the template does with any changes (stock)?
Reply With Quote
  #277  
Old 11-16-2006, 12:21 PM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Deviation View Post
Not sure. There's nothing overly complex happening there. Have you checked to see what the template does with any changes (stock)?

If I dont add your code and just add the default code as described originally in the hack there are no issues.
Reply With Quote
  #278  
Old 11-16-2006, 12:40 PM
Deviation Deviation is offline
 
Join Date: Sep 2005
Location: Ohio
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bada_bing View Post
If I dont add your code and just add the default code as described originally in the hack there are no issues.
After looking at the original FORUMDISPLAY code I've included, it looks like the code you pasted initially has some additions.

Try this:
HTML Code:
        <if condition="$foruminfo[sponsor_enabled] == 1 AND $vboptions[sponsor_global_enable_sponsorship] == 1">
		<div align="center>

      				$vbphrase[sponsored_by] <a href="vB.Sponsors/link.php?f=$foruminfo[forumid]" title="$foruminfo[sponsor_name]" target="_blank">

      				<if condition="$foruminfo[sponsor_banner_enabled] == 1 AND $vboptions[sponsor_global_enable_banners] == 1">

                              <if condition="!empty($foruminfo[sponsor_banner_big])">

                                   <img src="$foruminfo[sponsor_banner_big]" alt="$foruminfo[sponsor_name]" border="0" />

                              <else />

                                   <img src="$foruminfo[sponsor_banner]" alt="$foruminfo[sponsor_name]" border="0" />

                              </if>

      				<else />

      					  $foruminfo[sponsor_name]

      				</if></a>
		</div>

        </if>
This is the original code with a <div> tag added to center the sponsor's ad. This replaces the section of vB.Sponsor code ONLY. This isn't the full FORUMDISPLAY code.
Reply With Quote
  #279  
Old 11-16-2006, 05:03 PM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Deviation View Post
After looking at the original FORUMDISPLAY code I've included, it looks like the code you pasted initially has some additions.

Try this:
HTML Code:
        <if condition="$foruminfo[sponsor_enabled] == 1 AND $vboptions[sponsor_global_enable_sponsorship] == 1">
		<div align="center>

      				$vbphrase[sponsored_by] <a href="vB.Sponsors/link.php?f=$foruminfo[forumid]" title="$foruminfo[sponsor_name]" target="_blank">

      				<if condition="$foruminfo[sponsor_banner_enabled] == 1 AND $vboptions[sponsor_global_enable_banners] == 1">

                              <if condition="!empty($foruminfo[sponsor_banner_big])">

                                   <img src="$foruminfo[sponsor_banner_big]" alt="$foruminfo[sponsor_name]" border="0" />

                              <else />

                                   <img src="$foruminfo[sponsor_banner]" alt="$foruminfo[sponsor_name]" border="0" />

                              </if>

      				<else />

      					  $foruminfo[sponsor_name]

      				</if></a>
		</div>

        </if>
This is the original code with a <div> tag added to center the sponsor's ad. This replaces the section of vB.Sponsor code ONLY. This isn't the full FORUMDISPLAY code.


Ok I added the above code and server appears good BUT the banner is still on the left side? Its still not centering the banner?
Reply With Quote
  #280  
Old 11-16-2006, 05:17 PM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have noticed on the code you posted there seems to a couple lines that look very identical???

HTML Code:
<if condition="$foruminfo[sponsor_enabled] == 1 AND $vboptions[sponsor_global_enable_sponsorship] == 1">
		<div align="center>
                                           $vbphrase[sponsored_by] <a href="vB.Sponsors/link.php?f=$foruminfo[forumid]" title="$foruminfo[sponsor_name]" target="_blank">
			       <if condition="$foruminfo[sponsor_banner_enabled] == 1 AND $vboptions[sponsor_global_enable_banners] == 1">
			  <if condition="!empty($foruminfo[sponsor_banner_big])">
				<img src="$foruminfo[sponsor_banner_big]" alt="$foruminfo[sponsor_name]" border="0" />
			  <else />
                                               <img src="$foruminfo[sponsor_banner]" alt="$foruminfo[sponsor_name]" border="0" />
                                      </if>
                                      <else />
                                                      $foruminfo[sponsor_name]
                                      </if></a>
                       </div>
                 </if>
Code in question below
<img src="$foruminfo[sponsor_banner_big]" alt="$foruminfo[sponsor_name]" border="0" />

<img src="$foruminfo[sponsor_banner]" alt="$foruminfo[sponsor_name]" border="0" />
Reply With Quote
  #281  
Old 11-16-2006, 05:26 PM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry to be a pest...

I have done this to correct the allignment of the banner and it works. BUT the text (Visit Our Site is still on the left.. How can I also Center that text or either place it under the banner or below the banner ?

HTML Code:
<if condition="$foruminfo[sponsor_enabled] == 1 AND $vboptions[sponsor_global_enable_sponsorship] == 1">
		<div align="center>
                                           $vbphrase[sponsored_by] <a href="vB.Sponsors/link.php?f=$foruminfo[forumid]" title="$foruminfo[sponsor_name]" target="_blank">
			       <p align="center">
			       <if condition="$foruminfo[sponsor_banner_enabled] == 1 AND $vboptions[sponsor_global_enable_banners] == 1">
			  <if condition="!empty($foruminfo[sponsor_banner_big])">
				<img src="$foruminfo[sponsor_banner_big]" alt="$foruminfo[sponsor_name]" border="0" />
			  <else />
                                               <img src="$foruminfo[sponsor_banner]" alt="$foruminfo[sponsor_name]" border="0" />
                                      </if>
                                      <else />
                                                      $foruminfo[sponsor_name]
                                      </if></a>
                       </div>
                 </if>
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 07:38 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.05560 seconds
  • Memory Usage 2,356KB
  • Queries Executed 26 (?)
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
  • (6)bbcode_html
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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