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
  #292  
Old 02-13-2007, 08:32 AM
MTVSlick MTVSlick is offline
 
Join Date: Jan 2007
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I keep getting this error, can anyone tell me what I am doing wrong?

Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/guelphsf/public_html/GFV2/forum/vB.Sponsors/link.php on line 29

Warning: main(./global.php) [function.main]: failed to open stream: No such file or directory in /home/guelphsf/public_html/GFV2/forum/vB.Sponsors/link.php on line 31

Fatal error: main() [function.require]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/guelphsf/public_html/GFV2/forum/vB.Sponsors/link.php on line 31

Mark,
Reply With Quote
  #293  
Old 03-22-2007, 02:06 AM
BigJimTheLug BigJimTheLug is offline
 
Join Date: Nov 2006
Posts: 354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have to edit a file path in the "link.php" file.


Open it with notepad and look for where it tells you that you have to edit it.


Once you find it, enter your forum's parth.

Pretty easy.

I had the same problem as well, but fixed it.

Cheers.

Here is my demo

http://forums.puremarketprofits.com/...t-plans-hyips/

Look for "forum sponsored by: Happyshares.com
Reply With Quote
  #294  
Old 03-27-2007, 10:34 PM
bryandailey bryandailey is offline
 
Join Date: Mar 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone know how to make just the small text that says "Sponsored By:" show up bold but not the rest of the forum description?

I tried book-ending $vboptions[sponsor_global_default_text] wiht a <strong></stong> tag but no luck. It seems that whatever the form description text size is, the "Sponsored by" text is the same.
Reply With Quote
  #295  
Old 03-30-2007, 07:53 PM
sidewinder1965 sidewinder1965 is offline
 
Join Date: Sep 2006
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to put the sponsor ad's between the forum catagories,instead of the bar's,and in the subforum forum?
I just want 1-3 banners in between forum catagories,like the picture of the big one at the top but in the main forums
Reply With Quote
  #296  
Old 04-17-2007, 10:43 AM
Deviation Deviation is offline
 
Join Date: Sep 2005
Location: Ohio
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just wanted to post up the link to the documentation (lost my site the other day): http://www.digitaldeviation.com/docu...ion/vbsponsors

My license has expired for vbulletin. At some point I hope to renew it and add some updates.
Reply With Quote
  #297  
Old 05-14-2007, 06:34 PM
Deviation Deviation is offline
 
Join Date: Sep 2005
Location: Ohio
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just got my new license. If there's still interest in a 3.5.x version, I'll see what I can do to get some features out.
Reply With Quote
  #298  
Old 05-15-2007, 01:50 PM
bluegum bluegum is offline
 
Join Date: Jul 2006
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sidewinder1965 View Post
Is there a way to put the sponsor ad's between the forum catagories,instead of the bar's,and in the subforum forum?
I just want 1-3 banners in between forum catagories,like the picture of the big one at the top but in the main forums
I would like to see them dropped under the forum name not to the right how can this be accomplished?
Reply With Quote
  #299  
Old 05-15-2007, 04:46 PM
Deviation Deviation is offline
 
Join Date: Sep 2005
Location: Ohio
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bluegum View Post
I would like to see them dropped under the forum name not to the right how can this be accomplished?
Placement of the "Forum sponsored by" text is at your control. Wherever you place the template changes is where the text will appear.

You could simply add a line break (<br/>) prior to the phrase. For example your forumhome_forumbit_level1_nopost template change is:
PHP Code:
<!-- vBSponsors -->
<if 
condition="$forum[sponsor_enabled] == 1 AND $vboptions[sponsor_global_enable_sponsorship] == 1">
$vbphrase[sponsored_by] <a href="vB.Sponsors/link.php?f=$forum[forumid]title="$forum[sponsor_name]target="_blank">
<if 
condition="$forum[sponsor_banner_enabled] == 1 AND $vboptions[sponsor_global_enable_banners] == 1">
<
img src="$forum[sponsor_banner]alt="$forum[sponsor_name]border="0" />
<else />
$forum[sponsor_name]
</if></
a>
</if> 
You could change that to:
PHP Code:
<!-- vBSponsors -->
<if 
condition="$forum[sponsor_enabled] == 1 AND $vboptions[sponsor_global_enable_sponsorship] == 1">
<
br/>
$vbphrase[sponsored_by] <a href="vB.Sponsors/link.php?f=$forum[forumid]title="$forum[sponsor_name]target="_blank">
<if 
condition="$forum[sponsor_banner_enabled] == 1 AND $vboptions[sponsor_global_enable_banners] == 1">
<
img src="$forum[sponsor_banner]alt="$forum[sponsor_name]border="0" />
<else />
$forum[sponsor_name]
</if></
a>
</if> 
Note the line break after the first <if>. You really have a good bit of freedom with the template changes. The code above has to be in place, but you can add alignment & formatting as you choose. The example above was just on one bit of the template code to show you how you can modify it.
Reply With Quote
  #300  
Old 05-15-2007, 04:49 PM
bluegum bluegum is offline
 
Join Date: Jul 2006
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Deviation View Post
Placement of the "Forum sponsored by" text is at your control. Wherever you place the template changes is where the text will appear.

You could simply add a line break (<br/>) prior to the phrase. For example your forumhome_forumbit_level1_nopost template change is:
PHP Code:
<!-- vBSponsors -->
<if 
condition="$forum[sponsor_enabled] == 1 AND $vboptions[sponsor_global_enable_sponsorship] == 1">
$vbphrase[sponsored_by] <a href="vB.Sponsors/link.php?f=$forum[forumid]title="$forum[sponsor_name]target="_blank">
<if 
condition="$forum[sponsor_banner_enabled] == 1 AND $vboptions[sponsor_global_enable_banners] == 1">
<
img src="$forum[sponsor_banner]alt="$forum[sponsor_name]border="0" />
<else />
$forum[sponsor_name]
</if></
a>
</if> 
You could change that to:
PHP Code:
<!-- vBSponsors -->
<if 
condition="$forum[sponsor_enabled] == 1 AND $vboptions[sponsor_global_enable_sponsorship] == 1">
<
br/>
$vbphrase[sponsored_by] <a href="vB.Sponsors/link.php?f=$forum[forumid]title="$forum[sponsor_name]target="_blank">
<if 
condition="$forum[sponsor_banner_enabled] == 1 AND $vboptions[sponsor_global_enable_banners] == 1">
<
img src="$forum[sponsor_banner]alt="$forum[sponsor_name]border="0" />
<else />
$forum[sponsor_name]
</if></
a>
</if> 
Note the line break after the first <if>. You really have a good bit of freedom with the template changes. The code above has to be in place, but you can add alignment & formatting as you choose. The example above was just on one bit of the template code to show you how you can modify it.
so what edits have to be made just to that one template?
Reply With Quote
  #301  
Old 05-15-2007, 05:01 PM
Deviation Deviation is offline
 
Join Date: Sep 2005
Location: Ohio
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bluegum View Post
so what edits have to be made just to that one template?
In your case, I think you'd be looking for the forumhome_forumbit_level1_post & forumhome_forumbit_level2_post.
In those templates you would make the change in between the for <if> and the <div> tags.
PHP Code:
<!-- vBSponsors -->
<if 
condition="$forum[sponsor_enabled] == 1 AND $vboptions[sponsor_global_enable_sponsorship] == 1">
<
div style="float:$stylevar[right]"
I'm at work right now so I can't verify that. I'm just going by what I have on the docs. You may also want to change the <div> to float:$stylevar[left] to align it left.
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 12:23 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.05049 seconds
  • Memory Usage 2,351KB
  • 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
  • (5)bbcode_php
  • (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
  • (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