vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - vb.sponsors edit for vb4 (https://vborg.vbsupport.ru/showthread.php?t=248997)

Hostboard 03-07-2012 06:18 PM

Have you tried using the advertising ability of VB4 yet? I use that for all my banners as you can directly control who and where they are displayed. I even go 1 step further uning OpenX as my ad server so I can track click throughs and the amount of times the banner is displayed. Plus manging the banners on a per advertiser is incredibly easier. Between the 2 you should be able to manage your banenrs much much easier.

I want to use vb.sponsers to place images next to/under the title to certain forums as added exposure.

popmyzit 06-03-2012 01:24 AM

Thanks works with exception of needing a hack for adsense. There is some code missing which can be added to get Google adsense to work.

My main issue is the mod doesn't show on individual threads - even after modifying showthread template and adding the code - it used to in 3.8x

I think im going to use the built in vbulletin ad manager for that as I found two issues:

- link for digitaldeviation in footer as well as google adsense code:

Code:

google_ad_client = "pub-0851814186705981";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = "CAAQnfzw4AIaCJwZC9ix5DwoKN2uuIEBMAA";
google_ad_channel = "3505039413";

which is still in the plugin, not sure exactly where if/it shows.

Pessimist 07-01-2012 12:31 PM

Quote:

Originally Posted by pecky (Post 2272186)
To get the banners to align right in 4.1.8 and probably other versions

change

to


Only thing I found that made it work.

This is not 100% correct :)

Right version:

change
PHP Code:

<div style="float:$stylevar[right]"

to
PHP Code:

<div style="float:{vb:stylevar right}"


vivapotenza 07-17-2012 10:33 PM

This is not working correctly for me in VB 4.2.0.

IT displays the small banners correctly as I want, but produces an internal500 error when you click it, does not forward to the external web address as it should. (I tried adding the desired site to the whitelist, and also Disabled Redirect Domain Checking, but neither of these things had any effect).

what happens is when you click it tries to find "http://www.mysite.com/vB.Sponsors/link.php?f=forumnumber" instead of the desired site.

Can anyone offer any guidance on this?

vivapotenza 07-18-2012 07:39 PM

Right, Ive got that working now, all working good.

However, im now having difficulty getting the image to align properly to the right where I want it. I have edited my template as per post #43 above to get it to align right.

Is there anyway I can have it move all the way to the right, to where the "subscribe" ticks used to be? and also can I have the text on the left in line with the image on the right, rather than the image pushing the text to the next line down?

you can see what the current state of play is, and also what im trying to achieve here (Ive disabled this on my site until i can come to a resolution close to what I want):

https://vborg.vbsupport.ru/external/2012/07/26.jpg

thanks for any help, pulling my hair out trying to think of the answer, i bet its fairly simple as well.

vivapotenza 07-19-2012 05:19 PM

anyone? there must be someone who knows enough about css to move an image over like above?

vivapotenza 07-19-2012 08:26 PM

solution found here for future reference:

https://www.vbulletin.com/forum/show...33#post2316133

ScottishScoobie 07-28-2012 10:02 AM

So, downloaded, unpacked, edited forum location. uploaded, imported plugin, see it in the ACP however when i expand vb.sponsors manager all i see is "View Statistics"

nothing more. have i gone wrong somewhere ?

When i edit a forum/section i can see the forum sponsor choices when populated, i see nothing.

its driving me nuts.

ScottishScoobie 07-29-2012 01:38 PM

bump, anyone to support, dont mind rewarding you for your time if its successful.

Jonathan81 08-03-2012 06:50 PM

Quote:

Originally Posted by vivapotenza (Post 2349341)
Right, Ive got that working now, all working good.

However, im now having difficulty getting the image to align properly to the right where I want it. I have edited my template as per post #43 above to get it to align right.

Is there anyway I can have it move all the way to the right, to where the "subscribe" ticks used to be? and also can I have the text on the left in line with the image on the right, rather than the image pushing the text to the next line down?

you can see what the current state of play is, and also what im trying to achieve here (Ive disabled this on my site until i can come to a resolution close to what I want):

thanks for any help, pulling my hair out trying to think of the answer, i bet its fairly simple as well.

Anyone know how to fix this issue with the right alignment? (hope you don't mind me using your site to highlight this vivapotenza):

http://www.vivapotenza.com/forumdisp...e-Market-Place

Jonathan81 08-03-2012 07:12 PM

Another question...anyone know how to centre the large banner displayed on the thread listing?

Jonathan81 08-04-2012 10:53 AM

Quote:

Originally Posted by Ral.ly (Post 2354130)
Another question...anyone know how to centre the large banner displayed on the thread listing?

Managed to sort this out. Just trying to fix this issue now...

Quote:

Originally Posted by Ral.ly (Post 2354123)
Anyone know how to fix this issue with the right alignment? (hope you don't mind me using your site to highlight this vivapotenza):

http://www.vivapotenza.com/forumdisp...e-Market-Place

You can also see this highlighted at:

http://www.rallyforums.com/forum/for...World-Rallying

Can anyone help?

Jonathan

ScottishScoobie 08-11-2012 05:11 AM

ok, no replies, i will have to go this alone and have a stab in the dark at it.

can anyone tell me where i will find the 4 files for the styles that require editing as this is what i think im missing. everything else seems to be there.

ScottishScoobie 08-11-2012 02:27 PM

ok found how to find the files, i was searching for the code in the search box not the name of the file.

so i find all 4 files.

FORUMDISPLAY code has been found and your code added
forumhome_forumbit_level1_nopost Does not contain the code you say to find
forumhome_forumbit_level1_post Does not contain the code you say to find
forumhome_forumbit_level2_post code has been found and your code added

Still nothing is showing even though enabled, so im guessing its to do with the level1 files.

people must be subscribed to this forum, why does no one help ? im not gobby, im just so frustratingly close but everyone thats asked questions for help and has got it working, wont reply to help.

ScottishScoobie 08-11-2012 06:07 PM

I pasted the code in where i thought it should go and it works but not voting for mod of the month, as there has been zero support on it. still installed though.

ScottishScoobie 08-14-2012 06:24 AM

Quote:

Originally Posted by Ral.ly (Post 2354130)
Another question...anyone know how to centre the large banner displayed on the thread listing?

How ? would have been good, having the same issue myself. would prefer it centre rather than left. ;):up:

Jonathan81 08-18-2012 06:46 AM

Quote:

Originally Posted by brihan (Post 2302222)
Before I can upgrade from 3.8.7 to 4.x I need to be able to get my big sponsor banners to appear at the top and bottom of each individual thread as well as by the submit button(s) when posting a new thread or reply.

I have it that way on my current board and need to keep it that way because all the sponsors are promised that much exposure.

On my current board I thought that all I did was take the vBSponsors code for the big banners and place it in the correct locations for where I wanted the banners to appear. I have tried this on my 4.x test board and no banner appears.

You can see all my banner placements here:
http://www.inspectionnews.net/home_inspection

Has anyone figured out how to do this with 4.x?

Thank you,

Brian

Anyone have an answer to this at all?

As per previous poster, I think I know where to add the code (Showthread) but when added, nothing appears. Looking at the source code, all I can see are the comments:


<!-- barne77 -->
<!-- vBSponsors -->

<!-- / vBSponsors -->
<!-- barne77 -->

This must be something relatively simple? An extra bit of code needed somewhere?

Jonathan81 08-18-2012 07:07 AM

Quote:

Originally Posted by ScottishScoobie (Post 2356822)
How ? would have been good, having the same issue myself. would prefer it centre rather than left. ;):up:

I can't remember now but looking back at the files, it looks like I've changed (in FORUMDISPLAY) this:

Code:

<img src="{vb:raw foruminfo.sponsor_banner_big}" border="0" />
to this:

Code:

<div align="center"><img src="{vb:raw foruminfo.sponsor_banner_big}" border="0" /></div>
I also appear to have put div tags around this:

Code:

<div><img src="{vb:raw foruminfo.sponsor_banner}" border="0" /></div>
Hope that helps?

Jonathan81 08-18-2012 08:03 AM

Quote:

Originally Posted by Ral.ly (Post 2357813)
Anyone have an answer to this at all?

As per previous poster, I think I know where to add the code (Showthread) but when added, nothing appears. Looking at the source code, all I can see are the comments:


<!-- barne77 -->
<!-- vBSponsors -->

<!-- / vBSponsors -->
<!-- barne77 -->

This must be something relatively simple? An extra bit of code needed somewhere?

To clarify, why does the following code work in forumhome_forumbit_level1_post, forumhome_forumbit_level2_post etc but not in SHOWTHREAD?

Code:

<!-- barne77 -->
<!-- vBSponsors -->
<vb:if condition="$forum['sponsor_enabled'] == 1 AND $vboptions ['sponsor_global_enable_sponsorship'] == 1">
<div style="float:$stylevar[right]">
{vb:raw vboptions.sponsor_global_default_text}
<a href="vB.Sponsors/link.php?f={vb:raw forum.forumid}" title="{vb:raw forum.sponsor_name}" target="_blank">
<vb:if condition="$forum['sponsor_banner_enabled'] == 1 AND $vboptions['sponsor_global_enable_banners'] == 1">
<img src="{vb:raw forum.sponsor_banner}" border="0" />
<vb:else /> 
{vb:raw forum.sponsor_name}
</vb:if>
</div>
</a>
</vb:if>
<!-- / vBSponsors -->
<!-- barne77 -->


Jonathan81 08-24-2012 08:40 AM

Anyone?

gibgib 08-28-2012 07:07 AM

Same problem here. Doesn't matter where the code is put either.

I will get my web guy to look at it & let you know the fix.

Jonathan81 08-29-2012 08:58 AM

Brilliant, thank you!

Jonathan

gibgib 09-08-2012 10:28 AM

In short this mod doesn't work in showthread, ie. on this page you are reading this from!

You can get it to work though using IF commands.
This was created by my great style guy at http://that1design.com . I recommend him big time.

You just need to edit this to suit your forum & manually update it if you gain or lose a sponsor. Forum numbers are particular to our site so you need to change them.

Forumid == put the forum number here
f=put the same forum number here

I run google ads in every other forum that does not have a local sponsor & is dependent on the usergroup.
Where it says userinfo, 1, 2, 3, 6, 4, 8, 16 : your own user group numbers that you want to have see the advert.

In showthread template
Find:
Code:

{vb:raw header}
{vb:raw navbar}
{vb:raw template_hook.showthread_above_posts}
{vb:raw poll}


Below add:
Code:

<div align="center">
<vb:if condition="$threadinfo[forumid] == 14">
<a target="_blank" title="Link's Title" href="vB.Sponsors/link.php?f=14">
<img border="0" src="http:// link to large banner.jpg">
</a>
<vb:else />
<vb:if condition="$threadinfo[forumid] == 12">
<a target="_blank" title="Link's Title" href="vB.Sponsors/link.php?f=12">
<img border="0" src="http:// link to large banner.jpg">
</a>
<vb:else />
<vb:if condition="$threadinfo[forumid] == 33">
<a target="_blank" title="Link's Title" href="vB.Sponsors/link.php?f=33">
<img border="0" src="http:// link to large banner.jpg">
</a>
<vb:else />
<vb:if condition="$threadinfo[forumid] == 17">
<a target="_blank" title="Link's Title" href="vB.Sponsors/link.php?f=17">
<img border="0" src="http:// link to large banner.jpg">
</a>
<vb:else />
<vb:if condition="$threadinfo[forumid] == 15">
<a target="_blank" title="Link's Title" href="vB.Sponsors/link.php?f=15">
<img border="0" src="http:// link to large banner.jpg">
</a>
<vb:else />
<vb:if condition="$threadinfo[forumid] == 18">
<a target="_blank" title="Link's Title" href="vB.Sponsors/link.php?f=18">
<img border="0" src="http:// link to large banner.jpg">
</a>
<vb:else />
<vb:if condition="$threadinfo[forumid] == 26">
<a target="_blank" title="Link's Title" href="vB.Sponsors/link.php?f=26">
<img border="0" src="http:// link to large banner.jpg">
</a>
<vb:else />
<vb:if condition="is_member_of($vbulletin->userinfo, 1, 2, 3, 6, 4, 8, 16)">
<!-- GOOGLE ADS 728x90 -->
<div align="center">
<script type='text/javascript'>
GA_googleFillSlot("XX_XX_XX_728x90");
</script>
</script>
</div>
</vb:if>
</vb:if></vb:if></vb:if></vb:if></vb:if></vb:if></vb:if>
</div>


brihan 10-30-2012 10:16 PM

gibgib and Ral.ly, thank you for keeping up on this issue of placing the ads on the showthread page! :up:

When I get a chance I will give it a try.

My current site also has that ads at the bottom of the showthread page and under the "Submit Post/Reply" button on the post or reply page. You can see an example here

Can I put that same code in those other locations?

Thank you!

Brihan

moustafa 12-08-2012 02:21 PM

Sponsors get a white background in forumhome, so any hint how to get the sponsors banner of same background as forumhome categories?

brihan 03-13-2013 05:23 AM

After upgrading to 4.2.0 the links to the sponsors no longer work (I also run VbSEO if this makes a difference).

When a sponsors banner is clicked is goes to a page that says...
"Invalid Redirect URL (http://www.eiipro.com/quotes/home-in...s-application/)

However the URL is correct.

Gibgib, I see you have it working on your site with 4.2.0. Will you share how you got that to work?

Thank you!

Brian

gibgib 03-13-2013 08:10 AM

Hi Brian,

You need to add the full URL of the address (advertising link you are pointing to) into the "Redirect Domain Whitelist" in the "Site Name / URL / Contact Details" in the General Settings of your board.

brihan 03-13-2013 09:03 AM

Quote:

Originally Posted by gibgib (Post 2409670)
Hi Brian,

You need to add the full URL of the address (advertising link you are pointing to) into the "Redirect Domain Whitelist" in the "Site Name / URL / Contact Details" in the General Settings of your board.

Thanks gibgib!

With your help I have been able to add all my sponsors in all the sections I want on my site. You're awesome!

Thank you,

Brian

woodchip 03-25-2013 04:01 AM

ok, Ive installed but keep getting a error:

Database error in vBulletin 4.0.2:

Invalid SQL:
INSERT INTO `vbsponsors` ( `id` , `sponsor_name` , `forum_id`, `forum`, `date` ) VALUES ( '', '', '34', 'EMS', '1364183973');

MySQL Error : Table 'ducati85_vbtest.vbsponsors' doesn't exist
Error Number : 1146
Request Date : Sunday, March 24th 2013 @ 10:59:33 PM
Error Date : Sunday, March 24th 2013 @ 10:59:33 PM
Script : http://www.ducati851and888.com/vB.Sp.../link.php?f=34
Referrer : http://www.ducati851and888.com/index.php
IP Address : 70.145.142.230
Username : Jimmy
Classname : vB_Database
MySQL Version : 5.5.28-29.3-log

Thanks for the help, Jimmy

loveyou-jesus 06-06-2022 09:03 PM

atabase error in vBulletin 4.2.5:

;

MySQL Error : Table 'ducati85_vbtest.vbsponsors' doesn't exist


All times are GMT. The time now is 01:02 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.01911 seconds
  • Memory Usage 1,839KB
  • 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
  • (7)bbcode_code_printable
  • (2)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (30)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