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

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

Category: Major Additions - Version: 3.6.x Rating:
Released: 11-13-2006 Last Update: 06-22-2008 Installs: 352
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 or Google AdSense to forums & categories

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

For vBulletin 3.5.x, please see https://vborg.vbsupport.ru/showthread.php?t=103327

For vBulletin 3.7.x, please see https://vborg.vbsupport.ru/showthread.php?t=183335

FEATURES:
-Enable sponsorship on forums and categories
-Ability to use Google AdSense code
-Use a banner or a text link
-Supports large banners for the top of the sponsored forum and small banners for the forum listing
-Tracks hits for each sponsor
-Statistics viewable inside Admin CP
-Ability to alter the "Forum sponsored by:" text
-Easy to use and install

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

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.


VERSION HISTORY:
2.0.6 - BugFix
-Changed maxversion attribute to enable vBulletin 3.7 installs
2.0.5 - Feature Add / BugFix
-Added version checking
-Added support for Google Adsense (template code has been updated)
-Fixed the table layout in the AdminCP
-Options are now controlled via vBulletin options

2.0.0 - Initial Release

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

---FEATURE REQUEST LIST---
-Integration: phpAdsNew integration
-Reporting: Sponsors able to view statistics from User CP
-Reporting: Export reports in PDF (or other) format
-Rights: Ability to hide sponsors based on a user's group
-Option: Rotating banner support
-Option: Multiple sponsors per forum/category
-Option: Remove the branding copyright
-Option: Ability to not show sponsor's banner in the main forum listing, but show when the forum is displayed.
-Option: Display ads in individual threads
-Option: Email the sponsor daily/weekly/monthly hit statistics

---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
  #62  
Old 11-28-2006, 10:45 AM
thumbsucker thumbsucker is offline
 
Join Date: Dec 2005
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Deviation View Post
I'll check it out.


They work fine for me. Anyone else having issues?


Check the URL for the banner image (in the forum settings). You must specify one or set the option to not display the banner ad.

Yup, I did that but it's still not displaying in the forumdisplay page.

Can you take a look at let me know what might be the problem? Would hate to not use the mod because it works at the main cat level, just not forumdisplay.
Reply With Quote
  #63  
Old 11-28-2006, 12:29 PM
cam2 - old cam2 - old is offline
 
Join Date: Jul 2006
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AWJunkies View Post
I had to change the link.php file to my root. SO in your case you need to move link.php into the forum/ (root) not the forum/vB.Sponsors/ . After you do this though you need to change two snippits of code that show to look at vB.Sponsors/link.php and change those to link.php . I forgot the areas at the moment I did it real fast as a fix. You do it in database directly or unistal the mod and change the vB.Sponsors/link.php to link.php and re-upload and you should be perfectly fine. MAKE sure you move link.php to root forum directory after the changes and works like a charm.
Thanks for the response. Do I make these changes in the XML file and then re upload?
Reply With Quote
  #64  
Old 11-28-2006, 12:35 PM
Deviation Deviation is offline
 
Join Date: Sep 2005
Location: Ohio
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AWJunkies View Post
I had to change the link.php file to my root. SO in your case you need to move link.php into the forum/ (root) not the forum/vB.Sponsors/ . After you do this though you need to change two snippits of code that show to look at vB.Sponsors/link.php and change those to link.php . I forgot the areas at the moment I did it real fast as a fix. You do it in database directly or unistal the mod and change the vB.Sponsors/link.php to link.php and re-upload and you should be perfectly fine. MAKE sure you move link.php to root forum directory after the changes and works like a charm.
Quote:
Originally Posted by cam2 View Post
Thanks for the response. Do I make these changes in the XML file and then re upload?
I'd be hesitant of making code changes and file location changes. When updates come out you could end up broken again.

There's no reason it shouldn't work with the forum path specified correctly in the link.php file. Keep in mind the vB.Sponsors directory is case sensitive. There is a file included that you can use to get the correct path. See the documentation for details.
Reply With Quote
  #65  
Old 11-28-2006, 01:34 PM
cam2 - old cam2 - old is offline
 
Join Date: Jul 2006
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Basically I need to get the right path on the link file right?
Reply With Quote
  #66  
Old 11-28-2006, 02:24 PM
Deviation Deviation is offline
 
Join Date: Sep 2005
Location: Ohio
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cam2 View Post
Basically I need to get the right path on the link file right?
Yes. If your forum is located in /usr/com/userid/forums/, the path would be /usr/com/userid/forums/vB.Sponsors/.

See http://www.digitaldeviation.com/content/view/57/20/ for more info.
Reply With Quote
  #67  
Old 11-28-2006, 03:56 PM
cam2 - old cam2 - old is offline
 
Join Date: Jul 2006
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I appreciate your help. It works perfectly...
Reply With Quote
  #68  
Old 11-30-2006, 01:37 AM
PossumX's Avatar
PossumX PossumX is offline
 
Join Date: Oct 2006
Location: NE USA
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do I go about centering the large banners in the actual forum view?
Reply With Quote
  #69  
Old 12-03-2006, 08:19 AM
lifesourcerec's Avatar
lifesourcerec lifesourcerec is offline
 
Join Date: Jan 2002
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get this error trying to add a sponsor:

Fatal error: Field sponsor_enabled is not defined in $validfields in class vb_datamanager_forum in /includes/class_dm.php on line 485
Reply With Quote
  #70  
Old 12-03-2006, 09:08 AM
MrPHD's Avatar
MrPHD MrPHD is offline
 
Join Date: Feb 2006
Location: Portugal
Posts: 385
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, rnning and nice a 100%. Thanks
Reply With Quote
  #71  
Old 12-03-2006, 09:25 AM
MrPHD's Avatar
MrPHD MrPHD is offline
 
Join Date: Feb 2006
Location: Portugal
Posts: 385
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To Edit FORUM DISPLAY and FORUM HOME
----------------------------------------
Installation guide for vB.Sponsors 2.0.
Product Installation
Extract the contents of vB.Sponsors.zip to your computer
Open upload/vB.Sponsors/link.php in notepad, wordpad or similar editor.
On line 30, enter the path to your forum. This is the physical path not the URL. If your forum is located in /usr/com/userid/forums/, the path would be /usr/com/userid/forums/vB.Sponsors/
You can find the physical path to your forum directory by uploading and running the settings-check.php file that is in the do not upload/vB.Sponsors directory to the vB.Sponsors directory on your web server. Please delete this file when you are done.

Upload the files in the upload directory to the corresponding directory on the web server under the forum directory.
Open the Admin CP of your board. On the left hand side scroll down to Plugins & Products.
Click on Manage Products.
Click on Add/Import Product.
Click on Browse... and choose the vB.Sponsors-product.xml file.
Click Import.

Template Installation

You will need to modify the templates of your style(s). Sample template code is included with the download. This is for the default vBulletin style only. I highly recommend that you create a test style to apply template changes before you commit them to your regular styles.

forumhome_forumbit_level1_nopost
FIND:
Code:
<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
ADD, AFTER:
Code:
<!-- vBSponsors -->
<if condition="$forum[sponsor_enabled] == 1 AND $vboptions[sponsor_global_enable_sponsorship] == 1">
<div style="float:$stylevar[right]">
$vboptions[sponsor_global_default_text] <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>
</div>
</if>
<!-- / vBSponsors -->
forumhome_forumbit_level2_post
FIND:
Code:
<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>
ADD, AFTER:
Code:
<!-- vBSponsors -->
<if condition="$forum[sponsor_enabled] == 1 AND $vboptions[sponsor_global_enable_sponsorship] == 1">
<div style="float:$stylevar[right]">
$vboptions[sponsor_global_default_text] <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>
</div>
</if>
<!-- / vBSponsors -->
FORUMDISPLAY
FIND:
Code:
<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
ADD, AFTER:
Code:
<!-- vBSponsors -->
<if condition="$foruminfo[sponsor_enabled] == 1 AND $vboptions[sponsor_global_enable_sponsorship] == 1">
$vboptions[sponsor_global_default_text] <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])">
<if condition="$vboptions[sponsor_global_enable_big_banners] == 1">
<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>
</if></a>
</if>
<!-- / vBSponsors -->
forumhome_forumbit_level1_post
FIND:
Code:
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
</tr>
</table>
ADD, AFTER:
Code:
<!-- vBSponsors -->
<if condition="$forum[sponsor_enabled] == 1 AND $vboptions[sponsor_global_enable_sponsorship] == 1">
<div style="float:$stylevar[right]">
$vboptions[sponsor_global_default_text] <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>
</div>
</if>
<!-- / vBSponsors -->
Best Regards.
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 06:45 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.05513 seconds
  • Memory Usage 2,329KB
  • 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
  • (8)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