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
  #42  
Old 12-29-2005, 03:18 AM
djmini djmini is offline
 
Join Date: Dec 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok...

No Screen shots...

but I can explain the settings.

Enable Sponsor YES
Sponsor Name TMMZ
Use Sponsor Banner NO
Sponsor Banner
Sponsor URL http://www.teammightyminiz.com


_________________

So, that is set..

then when clicking on the "sponsored by TMMZ" text in the newly sponsored froum

Quote:
Not Found



The requested URL /forum/vB.Sponsors/link.php was not found on this server.
the hyperlink = http://www.teammightyminiz.com/forum.../link.php?f=12

BTW it doesn't matter what sponsor name or url I add in the cp, it always hotlinks it ... http://www.teammightyminiz.com/forum.../link.php?f=12

Everytime.
Reply With Quote
  #43  
Old 12-29-2005, 10:54 AM
Deviation Deviation is offline
 
Join Date: Sep 2005
Location: Ohio
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djmini
Ok...
the hyperlink = http://www.teammightyminiz.com/forum.../link.php?f=12

BTW it doesn't matter what sponsor name or url I add in the cp, it always hotlinks it ... http://www.teammightyminiz.com/forum.../link.php?f=12
So http://www.teammightyminiz.com/forum is your site, correct?

From what I can tell, the directory /vB.Sponsors doesn't exist on that server. You did upload the items in the zip file to the server, correct? Also be sure the case is EXACTLY the same. Linux/Unix servers are sensitive to case (e.g. - vB is not equal to vb). So to recap, the vB.Sponsors directory should be uploaded to http://www.teammightyminiz.com/forum/vB.Sponsors/ .

If your testing it one specific forum, it will always be that forum's id (from vBulletin). It won't change the link the users click on. Only the site they are redirected to. The only time the "f=" part changes is when its a different forum/category.
Reply With Quote
  #44  
Old 12-29-2005, 06:01 PM
djmini djmini is offline
 
Join Date: Dec 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ugh

I dunno

Warning: chdir(): No such file or directory (errno 2) in /var/www/html/forum/vB.Sponsors/link.php on line 27

Warning: main(./global.php): failed to open stream: No such file or directory in /var/www/html/forum/vB.Sponsors/link.php on line 29

Fatal error: main(): Failed opening required './global.php' (include_path='.:/php/includes:/usr/share/php') in /var/www/html/forum/vB.Sponsors/link.php on line 29
Reply With Quote
  #45  
Old 12-29-2005, 09:33 PM
Deviation Deviation is offline
 
Join Date: Sep 2005
Location: Ohio
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djmini
ugh

I dunno

Warning: chdir(): No such file or directory (errno 2) in /var/www/html/forum/vB.Sponsors/link.php on line 27

Warning: main(./global.php): failed to open stream: No such file or directory in /var/www/html/forum/vB.Sponsors/link.php on line 29

Fatal error: main(): Failed opening required './global.php' (include_path='.:/php/includes:/usr/share/php') in /var/www/html/forum/vB.Sponsors/link.php on line 29
The path you entered on line 27 isn't correct. It should point to the root of your forum. Example:
chdir('/var/www/html/forum/');

The trailing slash is important.

Getting closer. Don't give up yet.
Reply With Quote
  #46  
Old 12-29-2005, 10:37 PM
Deviation Deviation is offline
 
Join Date: Sep 2005
Location: Ohio
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zilvia
This is the code I get from PHPMyAdmin after entering the query. The other error was from mysql.com when I looked up error #1064. Thanks!

MySQL said: Documentation

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ALTER TABLE Zilvia2K3_forum ADD (sponsor_banner_enabled INT(6) U
Didn't forget about you.

I just got MySQL 5.0 installed. The only issue I ran into was that I didn't specify a default value for some of the values. I've updated the zip file.

Try this (replace prefix with your table prefix):
First, drop the columns:
Code:
ALTER TABLE `PREFIX_forum` DROP `sponsor_enabled` ,
DROP `sponsor_banner_enabled` ,
DROP `sponsor_name` ,
DROP `sponsor_banner` ,
DROP `sponsor_url` ;
Now manually add the tables back:
Code:
ALTER TABLE `PREFIX_forum` ADD (sponsor_enabled INT(6) UNSIGNED NOT NULL DEFAULT '0');
ALTER TABLE `PREFIX_forum` ADD (sponsor_banner_enabled INT(6) UNSIGNED NOT NULL DEFAULT '0');
ALTER TABLE `PREFIX_forum` ADD (sponsor_name VARCHAR(250) NOT NULL DEFAULT '');
ALTER TABLE `PREFIX_forum` ADD (sponsor_banner VARCHAR(250) NOT NULL DEFAULT '');
ALTER TABLE `PREFIX_forum` ADD (sponsor_url VARCHAR(250) NOT NULL DEFAULT '');
Let me know if this works for you.
Reply With Quote
  #47  
Old 12-30-2005, 01:40 AM
djmini djmini is offline
 
Join Date: Dec 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm I just can't figure it out.

I get this
The requested URL /forum/vB.Sponsors/link.php was not found on this server.

Is this normal???

/var/www/html/forum/

Is that ^ wrong?

What should it read if it is wrong?

So out of my element, but still seeking the answers.
Reply With Quote
  #48  
Old 12-30-2005, 11:07 AM
Deviation Deviation is offline
 
Join Date: Sep 2005
Location: Ohio
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

djmini,
I've attached a file called settings-check.php. Upload this to the vB.Sponsors directory on your server. Run the file. It will show you what the forum directory should be. Enter this on line 27 of link.php. Remember to delete the file from your server when you're done with it.

This file is now included in the zip package to help with the installation.
Reply With Quote
  #49  
Old 12-30-2005, 04:45 PM
djmini djmini is offline
 
Join Date: Dec 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome, that worked fine.

/var/www/html/forum/vB.Sponsors
was the one.

Thank You!
Reply With Quote
  #50  
Old 12-30-2005, 04:49 PM
djmini djmini is offline
 
Join Date: Dec 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

shoot spoke too soon... it worked Once...

now the error is

Database error in vBulletin 3.5.2:

Invalid SQL:
INSERT INTO `vBSponsors` ( `id` , `sponsor_name` , `forum`, `date` ) VALUES ( '', 'TEST', 'TMMZ Archives', '1135973173');

MySQL Error : Duplicate entry '0' for key 1
Error Number : 1062
Date : Friday, December 30th 2005 @ 03:06:13 PM
Script : http://www.teammightyminiz.com/forum.../link.php?f=12
Referrer : http://www.teammightyminiz.com/forum/
IP Address : XXXXXXXXX
Username : XXXXX
Classname : vb_database
Reply With Quote
  #51  
Old 12-30-2005, 05:27 PM
Deviation Deviation is offline
 
Join Date: Sep 2005
Location: Ohio
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djmini
shoot spoke too soon... it worked Once...
You have an older version. That bug has been fixed.

Uninstall via product manager, download the latest version, upload new files (overwriting old ones) and reinstall via product manager. Make sure you edit the link.php again (since it will be overwritten).
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 10:44 PM.


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.04687 seconds
  • Memory Usage 2,324KB
  • 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
  • (2)bbcode_code
  • (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