Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

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
  #82  
Old 01-11-2006, 04:09 AM
kompakt's Avatar
kompakt kompakt is offline
 
Join Date: Dec 2004
Location: FL
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

While in the middle of installing and editing the 1.02 version I got the email for the new one 1.03. So I installed that version. The main problem now seems to be that its not saving the settings for vB.Sponsors. For further testing, I went and edited the forumhome templates to assume the sponsors are always enabled and it worked fine.

Also, for lawahdy .. Mannak lawahdak, I got the same error when checking statistics
Reply With Quote
  #83  
Old 01-11-2006, 04:36 AM
kompakt's Avatar
kompakt kompakt is offline
 
Join Date: Dec 2004
Location: FL
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, Now I got a new error trying to reinstall it. Any tips how to completely uninstall it with parts from the installation file?

Code:
Database error in vBulletin 3.5.2:

Invalid SQL:

				INSERT INTO productcode
					(productid, version, installcode, uninstallcode)
				VALUES
					('vB.Sponsors',
					'1.0.0',
					'\r\n$db->query_write(\"ALTER TABLE \" . TABLE_PREFIX . \"forum ADD (sponsor_enabled INT(6) UNSIGNED NOT NULL DEFAULT \'0\')\");\r\n$db->query_write(\"ALTER TABLE \" . TABLE_PREFIX . \"forum ADD (sponsor_banner_enabled INT(6) UNSIGNED NOT NULL DEFAULT \'0\')\");\r\n$db->query_write(\"ALTER TABLE \" . TABLE_PREFIX . \"forum ADD (sponsor_name VARCHAR(250) NOT NULL DEFAULT \'\')\");\r\n$db->query_write(\"ALTER TABLE \" . TABLE_PREFIX . \"forum ADD (sponsor_banner VARCHAR(250) NOT NULL DEFAULT \'\')\");\r\n$db->query_write(\"ALTER TABLE \" . TABLE_PREFIX . \"forum ADD (sponsor_url VARCHAR(250) NOT NULL DEFAULT \'\')\");\r\n$db->query_write(\"CREATE TABLE \" . TABLE_PREFIX . \"vBSponsors (id INT NOT NULL, sponsor_name VARCHAR(255) NOT NULL, forum TEXT NOT NULL, date TEXT NOT NULL, PRIMARY KEY (id)) TYPE=MyISAM\");\r\n			',
					'\r\n$db->hide_errors();\r\n$db->query_write(\"ALTER TABLE \" . TABLE_PREFIX . \"forum DROP sponsor_enabled\");\r\n$db->query_write(\"ALTER TABLE \" . TABLE_PREFIX . \"forum DROP sponsor_banner_enabled\");\r\n$db->query_write(\"ALTER TABLE \" . TABLE_PREFIX . \"forum DROP sponsor_name\");\r\n$db->query_write(\"ALTER TABLE \" . TABLE_PREFIX . \"forum DROP sponsor_banner\");\r\n$db->query_write(\"ALTER TABLE \" . TABLE_PREFIX . \"forum DROP sponsor_url\");\r\n$db->query_write(\"DROP TABLE \" . TABLE_PREFIX . \"vBSponsors\");\r\n$db->show_errors();\r\n			');

MySQL Error  : Duplicate entry '16' for key 1
Error Number : 1062
Reply With Quote
  #84  
Old 01-11-2006, 08:09 AM
kommuni kommuni is offline
 
Join Date: Apr 2004
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey,

just to be completed: the import of the xml is working now, but there's still no sponsor shown in the index.php next to the forums.

also i see the sql error when having a look at the stats. there doesn't seem to be a table "vbSponsors".
Reply With Quote
  #85  
Old 01-11-2006, 11:19 AM
lawahdy lawahdy is offline
 
Join Date: Jul 2005
Location: Dubai
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kommuni
hey,

just to be completed: the import of the xml is working now, but there's still no sponsor shown in the index.php next to the forums.

also i see the sql error when having a look at the stats. there doesn't seem to be a table "vbSponsors".

i'm having the same problem.

trying to work around it.. oncei manage to do so i will let you guys know..
Reply With Quote
  #86  
Old 01-11-2006, 11:33 AM
Deviation Deviation is offline
 
Join Date: Sep 2005
Location: Ohio
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll check this out when I get home tonight. Please be sure to post your PHP & MySQL versions with your errors (just edit the posts you made). I've been developing this on MySQL 5.0.17 and PHP 5.1.1, so there's bound to be some differences.

The common issue is the missing table. Since this is a fresh install for most of you, please uninstall the product. Then try reinstalling. Let me know what the results are.
Reply With Quote
  #87  
Old 01-11-2006, 11:41 AM
lawahdy lawahdy is offline
 
Join Date: Jul 2005
Location: Dubai
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Deviation
I'll check this out when I get home tonight. Please be sure to post your PHP & MySQL versions with your errors (just edit the posts you made). I've been developing this on MySQL 5.0.17 and PHP 5.1.1, so there's bound to be some differences.

The common issue is the missing table. Since this is a fresh install for most of you, please uninstall the product. Then try reinstalling. Let me know what the results are.
i did a reinstall, uninstall - reinstall, complete remove of even template changes and files and reinstall... nothing.. same problems..

PHP Version 4.4.1
mySQL 4.1.11
Reply With Quote
  #88  
Old 01-11-2006, 05:52 PM
lifesourcerec's Avatar
lifesourcerec lifesourcerec is offline
 
Join Date: Jan 2002
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Only if I can get the templates to add. Modifying them and when I click save.. it just sits there. I see the bar moving at the bottom as it is trying to save, but it never goes to the next screen.

It happens when I add it to the "forumhome_forumbit_level1_post" template. But when I remove that part of the code, it saves fine.
Reply With Quote
  #89  
Old 01-11-2006, 11:21 PM
Deviation Deviation is offline
 
Join Date: Sep 2005
Location: Ohio
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A new version has been released. 1.0.4. Please upgrade.

lifesourcerc, your template errors have been corrected. The included template code has been updated.

Thanks for the patience. I rushed the 1.0.2 release thinking that this might happen. Hopefully this is the end of the bugs for now. :nervous:
Reply With Quote
  #90  
Old 01-11-2006, 11:38 PM
lawahdy lawahdy is offline
 
Join Date: Jul 2005
Location: Dubai
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Deviation
A new version has been released. 1.0.4. Please upgrade.

lifesourcerc, your template errors have been corrected. The included template code has been updated.

Thanks for the patience. I rushed the 1.0.2 release thinking that this might happen. Hopefully this is the end of the bugs for now. :nervous:

okay .. cool work.. bless.. it is showing now in the forum.. yepppy.. but when you click on the "Forum Sponsored By: XXXX" as text it give me this error..

Code:
Database error in vBulletin 3.5.2:

Invalid SQL:
INSERT INTO `vBSponsors` ( `id` , `sponsor_name` , `forum_id`, `forum`, `date` ) VALUES ( '', 'La7oon', '14', 'Arabic', '1137029793');

MySQL Error  : Unknown column 'forum_id' in 'field list'
Error Number : 1054
Date         : Wednesday, January 11th 2006 @ 05:36:33 PM
Script       : http://www.dubaidjs.com/forums/vB.Sponsors/link.php?f=14
Referrer     : http://www.dubaidjs.com/forums/index.php
IP Address   : xxxxxxxxxx
Username     : lawahdy
Classname    : vb_database
and in the statistics it gives me this error.
Code:
Database error in vBulletin 3.5.2:

Invalid SQL:
SELECT COUNT(*) AS hits, FROM_UNIXTIME(date, '%m-%d-%Y') AS fdate FROM vBSponsors WHERE forum_id = '14' GROUP BY fdate;

MySQL Error  : Unknown column 'forum_id' in 'where clause'
Error Number : 1054
Date         : Wednesday, January 11th 2006 @ 05:34:59 PM
Script       : http://www.dubaidjs.com/forums/admincp/vBSponsors.php
Referrer     : http://www.dubaidjs.com/forums/admincp/vBSponsors.php?do=statistics
IP Address   : xxxxxxxxxxxxxxxxxxx
Username     : lawahdy
Classname    : vb_database
i'm i not lucky or what..?
Reply With Quote
  #91  
Old 01-12-2006, 07:11 AM
Devil Woman Devil Woman is offline
 
Join Date: Jul 2005
Location: England
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have installed this and added a banner, the picture of the banner doesn't even show up and when I click on where the picture is supposed to be I get this

Quote:
Warning: main(/global.php): failed to open stream: No such file or directory in /home/content/d/a/r/darksidemedia/html/board/vB.Sponsors/link.php on line 29

Fatal error: main(): Failed opening required '/global.php' (include_path='.:/usr/local/lib/php') in /home/content/d/a/r/darksidemedia/html/board/vB.Sponsors/link.php on line 29
Am i doing anything wrong?

Thanks
Reply With Quote
Reply

Thread Tools

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:33 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.05395 seconds
  • Memory Usage 2,320KB
  • 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
  • (3)bbcode_code
  • (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