Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vb.sponsors edit for vb4 Details »»
vb.sponsors edit for vb4
Version: 1.01, by barne77 barne77 is offline
Developer Last Online: May 2013 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.0.x Rating:
Released: 08-19-2010 Last Update: 08-19-2010 Installs: 44
 
No support by the author.

Hi all i have editied the vb.sponsors so that i can use it with VB4 this is the vb.sponsors Mod and i can not take the credit for the actual mod only the edit

hope it helps

for demo of this please goto my site

Dont forget to mark as installed

Product Installation

1.Extract the contents of vB.Sponsors.vb4.zip to your computer

2.Open upload/vB.Sponsors/link.php in notepad, wordpad or similar editor.

3.On line 32, 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/. You can find the physical path to your forum directory by uploading the settings-check.php file that is located in the do not upload/vB.Sponsors directory. Upload this to the vB.Sponsors directory on your web site. To run it, simply browse to http://www.EXAMPLE.com/vB.Sponsors/settings-check.php in your browser. Please delete this file when you are done.

4.Upload the files in the upload directory to the corresponding directory on the web server under the forum directory.

5.Open the Admin CP of your board. On the left hand side scroll down to Plugins & Products.

6.Click on Manage Products.

7.Click on Add/Import Product.

8.Click on Browse... and choose the product-vB.Sponsors.xml file.

9.Click Import.

10.template mod

GOTO
__________________________________________________ _______________

forumhome_forumbit_level2_post

FIND:


PHP Code:
class="viewing">({vb:raw forum.browsers} {vb:rawphrase viewing})</span></vb:if>
 </
div

ADD, AFTER:

PHP 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 --> 
__________________________________________________ _______________
goto FORUMDISPLAY

FIND:

PHP Code:
<div class="threadpagenav">
        {
vb:raw pagenav}
        <
div id="threadpagestats" class="threadpagestats">{vb:rawphrase showing_threads_x_to_y_of_z, {vb:raw limitlower}, {vb:raw limitupper}, {vb:raw totalthreads}}</div>
    </
div>
    </
vb:if>
</
div
ADD, AFETR:

PHP Code:
<!-- barne77 -->
<!-- 
vBSponsors --> 
<
vb:if condition="$foruminfo['sponsor_enabled'] == 1 AND $vboptions['sponsor_global_enable_sponsorship'] == 1"
{
vb:raw vboptions.sponsor_global_default_text
<
a href="vB.Sponsors/link.php?f={vb:raw foruminfo.forumid}" title="{vb:raw foruminfo.sponsor_name}" target="_blank"
<
vb:if condition="$foruminfo['sponsor_banner_enabled'] == 1 AND $vboptions['sponsor_global_enable_banners'] == 1"
<
vb:if condition="!empty($foruminfo['sponsor_banner_big'])"
<
vb:if condition="$vboptions['sponsor_global_enable_big_banners'] == 1"
<
img src="{vb:raw foruminfo.sponsor_banner_big}" border="0" /> 
<
vb:else /> 
<
img src="{vb:raw foruminfo.sponsor_banner}" border="0" /> 
</
vb:if> 
<
vb:else /> 
{
vb:raw foruminfo.sponsor_name
</
vb:if> </vb:if> </a> </vb:if> 
<!-- / 
vBSponsors -->
<!-- 
barne77 --> 
__________________________________________________ _______________
GOTO
forumhome_forumbit_level1_post

FIND:

PHP Code:
<ol class="subforumlist commalist">
                                        {
vb:raw forum.subforums}
                                    </
ol>
                                </
div>
                            </
vb:if> 
AFTER, ADD:

PHP 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 --> 
__________________________________________________ _______________
GOTO
forumhome_forumbit_level1_nopost

FIND:

PHP Code:
<ol class="subforumlist commalist">
                    {
vb:raw forum.subforums}
                </
ol>
            </
div>
            </
vb:if>
        </
div>
        </
vb:if>
</
div
AFTER, ADD:

PHP 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 --> 
__________________________________________________ _______________

Download Now

File Type: zip vb.sponsors.vb4.zip (198.6 KB, 268 views)

Screenshots

File Type: jpg forum-category-sponsors VB4 2 .jpg (12.9 KB, 0 views)
File Type: jpg admincp-global-settings.jpg (65.7 KB, 0 views)
File Type: jpg forumscfg.jpg (91.9 KB, 0 views)
File Type: jpg forum.jpg (35.6 KB, 0 views)
File Type: jpg cats.jpg (37.4 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 03-07-2012, 06:18 PM
Hostboard's Avatar
Hostboard Hostboard is offline
 
Join Date: May 2002
Location: CT
Posts: 843
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #43  
Old 06-03-2012, 01:24 AM
popmyzit popmyzit is offline
 
Join Date: Jun 2006
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #44  
Old 07-01-2012, 12:31 PM
Pessimist's Avatar
Pessimist Pessimist is offline
 
Join Date: Aug 2006
Location: Europa
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by pecky View Post
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}"
Reply With Quote
  #45  
Old 07-17-2012, 10:33 PM
vivapotenza vivapotenza is offline
 
Join Date: May 2012
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #46  
Old 07-18-2012, 07:39 PM
vivapotenza vivapotenza is offline
 
Join Date: May 2012
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #47  
Old 07-19-2012, 05:19 PM
vivapotenza vivapotenza is offline
 
Join Date: May 2012
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone? there must be someone who knows enough about css to move an image over like above?
Reply With Quote
  #48  
Old 07-19-2012, 08:26 PM
vivapotenza vivapotenza is offline
 
Join Date: May 2012
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

solution found here for future reference:

https://www.vbulletin.com/forum/show...33#post2316133
Reply With Quote
  #49  
Old 07-28-2012, 10:02 AM
ScottishScoobie ScottishScoobie is offline
 
Join Date: Jun 2012
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #50  
Old 07-29-2012, 01:38 PM
ScottishScoobie ScottishScoobie is offline
 
Join Date: Jun 2012
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump, anyone to support, dont mind rewarding you for your time if its successful.
Reply With Quote
  #51  
Old 08-03-2012, 06:50 PM
Jonathan81 Jonathan81 is offline
 
Join Date: May 2007
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by vivapotenza View Post
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
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 09: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.09193 seconds
  • Memory Usage 2,393KB
  • 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
  • (1)bbcode_code
  • (10)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (6)postbit_attachment
  • (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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete