vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - vB.Sponsors - Forum and Category Sponsorship Ads with Statistics (https://vborg.vbsupport.ru/showthread.php?t=131512)

Deviation 11-13-2006 10:00 PM

vB.Sponsors - Forum and Category Sponsorship Ads with Statistics
 
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.
https://vborg.vbsupport.ru/external/2010/07/4.gif

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.

vphost 11-14-2006 12:05 AM

Thanks for this, is it possible to change "Forums Sponsored By:" to something else?

taydu 11-14-2006 12:16 AM

Look great!!!

Rotating banner, sponsors will be great

abramelin 11-14-2006 12:43 AM

The display of the banners are not good. You have to use extra collumn for banners. Because it is messing up the forum and category name alignment.

PossumX 11-14-2006 01:04 AM

Why is it that when I paste in the update to the "forumhome_forumbit_level1_nopost" template, my forum display doubles all categories and the first forum ? I am quite befuddled by this.

All templates being modified are default vB 3.6.3 templates. I have reverted and tried again, with the same results...

Help....;)

Attached is an image of what forum looks like after "forumhome_forumbit_level1_nopost" is updated.

Below is the code prior to the update"
Code:

<tbody>
        <tr>
                <td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
                        <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
                        <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
                        <if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
                </td>
        </tr>
</tbody>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
$childforumbits
</tbody>
</if>

Here is the code after the update:
Code:

<tbody>
        <tr>
                <td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
                        <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
                        <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
                        <if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
<!-- 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 -->
</td>
</tr>
</tbody>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
$childforumbits
</tbody>
</if>
                </td>
        </tr>
</tbody>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
$childforumbits
</tbody>
</if>

I've noticed that the code in the template code, included with the download, is a tad different, so I am trying now, however, it is still odd, since the template I am using is a complete reverted copy.

----------------------------

Update: I copied the code, verbatim, from the 3 Forum Home templates, and manually edited the FORUMDISPLAY. It's working now, however, the hyperlink is now throwing a nasty error:

I am checking paths now, but I thought I had it tight....grrrr. FIXED

Deviation 11-14-2006 01:04 AM

Quote:

Originally Posted by vphost (Post 1116753)
Thanks for this, is it possible to change "Forums Sponsored By:" to something else?

Yes. It's under Global Settings in the Admin CP.
Quote:

Originally Posted by taydu (Post 1116758)
Look great!!!

Rotating banner, sponsors will be great

Adding to the FR list.

Quote:

Originally Posted by abramelin (Post 1116768)
The display of the banners are not good. You have to use extra collumn for banners. Because it is messing up the forum and category name alignment.

You can use an additional column if you want. I chose to use a <div> tag for the simplicity of example. Simply copy & paste the template code in between <!-- vB.Sponsors --> and <!-- / vB.Sponsors --> wherever you decide to put it.

Deviation 11-14-2006 01:10 AM

Quote:

Originally Posted by PossumX (Post 1116773)
Why is it that when I paste in the update to the "forumhome_forumbit_level1_nopost" template, my forum display doubles all categories and the first forum ? I am quite befuddled by this.

It looks like part of your template ($childforumbits) got duplicated. When you're copying the code included with vB.Sponsors, make sure you completely erase the code in the box before pasting. I find that using the "Large Edit Box" option (to the left of the text box) helps with this.

PossumX 11-14-2006 01:16 AM

I see the duplicate code now...that you pointed it out, it is rather obvious.

Checking details now...thanks. My apologies for the posting, but I am a bit tired, go figure. Updated post above on hyperlink error as well.

FIGURED OUT MY LINK PROBLEM TOO.

My path was not complete, missing the initial part of the lead.

ALL WORKING NOW !!

dougeetx 11-14-2006 03:00 AM

Is there a way to make this for each thread instead of each forum?

Hornstar 11-14-2006 06:35 AM

The only thing to make this better that I can think of, is to allow statistics to be shown to specified users through a login, or a page where they have permission.

eg. Banner 'x' statistics shown to userid 'xxx'

That would be really good.

projectego 11-14-2006 08:20 AM

Awesome! Thank you. :)

Deviation 11-14-2006 12:53 PM

Quote:

Originally Posted by PossumX (Post 1116779)
ALL WORKING NOW !!

Good to hear.
Quote:

Originally Posted by dougeetx (Post 1116825)
Is there a way to make this for each thread instead of each forum?

Not yet. But I'll add that to the FR list at the top.
Quote:

Originally Posted by hornstar1337 (Post 1116884)
The only thing to make this better that I can think of, is to allow statistics to be shown to specified users through a login, or a page where they have permission.

eg. Banner 'x' statistics shown to userid 'xxx'

That would be really good.

There's a FR for that already. That would be a great addition I think. That may be next on the list.

nul7 11-14-2006 09:37 PM

Yes! Thanks Dev! Installing now....

nul7 11-14-2006 09:39 PM

Also, fix your Install button link.... it goes to the 3.5.x version. ;)

Deviation 11-14-2006 10:11 PM

For those that wouldn't mind showing off their forums, PM me your site address. I'd like to compile a "demo" list at the top of this thread for people to see.

Quote:

Originally Posted by nul7 (Post 1117464)
Also, fix your Install button link.... it goes to the 3.5.x version. ;)

Ha ha! Good catch! Copy & paste > me. ;)

nul7 11-14-2006 10:52 PM

Unfortunately I'm having the same problems I was with the older version.... the admincp pages and the banners don't display in firefox. They work just fine in IE though. The admin pages will display if I paste the link in the address bar, but clicking on them creates a blank page, then every other admin link ceases to work. I have many mods installed, and this only happens with this one. That's no big deal... but the banners don't show up. :(

nul7 11-14-2006 10:55 PM

One more thing... if I click on a banner in IE it links to:

http://forum.crookedh.com/vB.Sponsor...otorsports.com

nul7 11-14-2006 10:59 PM

more info... that doesn't happen for all forums. I added the same sponsor to 2 different forums... the banner works for one, but not the other. The one I added first does not work.

EDIT: Don't know if it will help, but the forum it DOESN'T work on is ID 140. The forum it DOES work on is ID 14.

Deviation 11-14-2006 11:21 PM

Quote:

Originally Posted by nul7 (Post 1117524)
Unfortunately I'm having the same problems I was with the older version.... the admincp pages and the banners don't display in firefox. They work just fine in IE though. The admin pages will display if I paste the link in the address bar, but clicking on them creates a blank page, then every other admin link ceases to work. I have many mods installed, and this only happens with this one. That's no big deal... but the banners don't show up. :(

I don't seem to have those issues. I do most of my dev work in FF. Strange.
Quote:

Originally Posted by nul7 (Post 1117531)
more info... that doesn't happen for all forums. I added the same sponsor to 2 different forums... the banner works for one, but not the other. The one I added first does not work.

EDIT: Don't know if it will help, but the forum it DOESN'T work on is ID 140. The forum it DOES work on is ID 14.

Check the link you entered in the forum manager. Verify that its the same link to the sponsor. Be sure you preface the links with http://.

nul7 11-14-2006 11:36 PM

Ok, I am a moron. I'm sorry for posting a false bug report.

For the incorrect link: I didn't add "http://" to that particular forum.

For the banners not showing in FF: AdBlock /me slaps forehead

I've been messing with the code for hours and it was my own stupidity causing them not to show. lol

Now if I can just get the admincp pages to work.....

midirtrider 11-15-2006 06:28 AM

anyone have a live demo we could veiw that is running this hack??

looks really cool.. deffinatly intrested if its running smoothly!

Floris 11-15-2006 07:25 AM

This is cool, thanks for sharing! :)

adsblog 11-15-2006 12:31 PM

When Users Click on sponser Text/Banner Get This Message :
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/user/htdocs/upload/vB.Sponsors/link.phpon line 30

Warning: main(./global.php) [function.main]: failed to open stream: No such file or directory in /home/user/htdocs/upload/vB.Sponsors/link.php on line 32

What is problem ?

Deviation 11-15-2006 12:40 PM

Quote:

Originally Posted by Floris (Post 1117784)
This is cool, thanks for sharing! :)

Glad to give something back. Nw if I could convince Jelsoft to give me something. ;)
Quote:

Originally Posted by adsblog (Post 1117886)
When Users Click on sponser Text/Banner Get This Message :
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/user/htdocs/upload/vB.Sponsors/link.phpon line 30

Warning: main(./global.php) [function.main]: failed to open stream: No such file or directory in /home/user/htdocs/upload/vB.Sponsors/link.php on line 32


What is problem ?

Look on line 30 in vB.Sponsors/link.php. Make sure you have the correct path.
Quote:

Originally Posted by midirtrider (Post 1117770)
anyone have a live demo we could veiw that is running this hack??

looks really cool.. deffinatly intrested if its running smoothly!

null7 has a site running it; www.crookedh.com.

Those of you running this on your sites, PM me your site addresses and I'll add them to top of the thread as demo sites.:)

midirtrider 11-15-2006 05:34 PM

awsome... looking forward to installing it later this evening.. THANK U!

dilbert 11-16-2006 01:52 AM

This looks terrific, I think I'll give it a try.
One new feature that would be terrific, let it display ads from phpAdsNew. That way we could have robust stats, the sponsor could view their own stats, and the images could rotate. The rotating images is most important to me, that way one sponsor could sponsor one forum, have multiple images that would go to different pages on their domain, or anywhere for that matter.

Deviation 11-16-2006 11:02 AM

Quote:

Originally Posted by dilbert (Post 1118338)
This looks terrific, I think I'll give it a try.
One new feature that would be terrific, let it display ads from phpAdsNew. That way we could have robust stats, the sponsor could view their own stats, and the images could rotate. The rotating images is most important to me, that way one sponsor could sponsor one forum, have multiple images that would go to different pages on their domain, or anywhere for that matter.

That's was my thought this morning as I was driving to work. Strange that I received a request about it. I'll add that to the list.:)

John1uk 11-16-2006 10:05 PM

i don't know what i have done wrong......i am getting no errors, nothing...i have installed and setup a sponsor but no banner.

Help.

Deviation 11-16-2006 10:08 PM

Quote:

Originally Posted by John1uk (Post 1118955)
i don't know what i have done wrong......i am getting no errors, nothing...i have installed and setup a sponsor but no banner.

Help.

Did you make the needed template changes the current style of your board?

John1uk 11-16-2006 10:18 PM

Quote:

Originally Posted by Deviation (Post 1118960)
Did you make the needed template changes the current style of your board?

sorry mate :( being new to this is a little confusing.....if i add you as admin could you checkout what i aint or have done wrong plz :)

Template change *scratches head*

sorry i couldn't quite understand in your instructions as how to do it :(

Deviation 11-16-2006 10:20 PM

Quote:

Originally Posted by John1uk (Post 1118968)
sorry mate :( being new to this is a little confusing.....if i add you as admin could you checkout what i aint or have done wrong plz :)

Template change *scratches head*

sorry i couldn't quite understand in your instructions as how to do it :(

PM me.

John1uk 11-16-2006 11:00 PM

thanx for your help Deviation :D

is there any reason to why the links on the banners don't work?

Deviation 11-16-2006 11:03 PM

Quote:

Originally Posted by John1uk (Post 1118994)
thanx for your help Deviation :D

is there any reason to why the links on the banners don't work?

You have a PM.

John1uk 11-16-2006 11:12 PM

Deviation, thank you so much for your Help mate :D

Regards john...

dilbert 11-16-2006 11:21 PM

Quote:

Originally Posted by Deviation (Post 1118971)
PM me.

Awesome, now you offer free installation? Now that is even better than a paid mod. :cool:

Deviation 11-17-2006 10:33 AM

Quote:

Originally Posted by dilbert (Post 1119003)
Awesome, now you offer free installation? Now that is even better than a paid mod. :cool:

lol. Not quite. Just figured since I had a few moments, I'd help the new vB guy out.

Anyone that PM's me for installs may be shot.:cool: ;)

dilbert 11-19-2006 01:26 AM

I just tried to install this on a custom style.
If there is a description, then it wraps around the description.
Please take a look at www.bloodbanktalk.com, it's in the top forum Site Support. For now I just put in a test link, not an image.

Also, the first part of the instructions say to edit forumhome_forumbit_level1_nopost, but I don't have the Find statement there, I searched for it and found it in forumhome_forumbit_level1_post.

I also have the Element style installed, I just added it to that too, and I still get the wrapping.

I really hope this can be adjusted.

John1uk 11-19-2006 08:32 AM

is there a way i can have the text "forum sponsored by:" above the small banners on my forum :D

thanx

john

Deviation 11-20-2006 12:40 AM

Quote:

Originally Posted by dilbert (Post 1120427)
I just tried to install this on a custom style.
If there is a description, then it wraps around the description.
Please take a look at www.bloodbanktalk.com, it's in the top forum Site Support. For now I just put in a test link, not an image.

Also, the first part of the instructions say to edit forumhome_forumbit_level1_nopost, but I don't have the Find statement there, I searched for it and found it in forumhome_forumbit_level1_post.

I also have the Element style installed, I just added it to that too, and I still get the wrapping.

I really hope this can be adjusted.

What you have to take into account is that the instructions are based on the default vB style. My suggestion to you (and others) is to make a copy of your current style for testing and play with the placements. The code for vB.Sponsors is generic so it should fit into most styles.

John1uk 11-20-2006 03:57 PM

is there a way i can have the text "forum sponsored by:" above the small banners on my forum

thanx

john


All times are GMT. The time now is 12:47 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.01622 seconds
  • Memory Usage 1,869KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete