Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

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
  #22  
Old 02-07-2011, 02:42 AM
speedracer68 speedracer68 is offline
 
Join Date: Jul 2004
Location: California
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After a database repair all is well. Never mind the two posts about.

I know this was asked before but is there any way to right justify the banners?
Reply With Quote
  #23  
Old 04-26-2011, 06:00 PM
demo7up demo7up is offline
 
Join Date: Apr 2007
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i love this edit but its screwing up my vbshout admincp panel

the directive in link.php which changes the directory

Code:
/********************
	 * Modify this to reflect the path to you forums*/
	chdir('/home/nycjdm/public_html/');
	
	require_once('./global.php');
Is also changing the directory for my other plugin so the other plugin does not find its own files.. is there a way to fix this?
Reply With Quote
  #24  
Old 04-27-2011, 01:11 AM
demo7up demo7up is offline
 
Join Date: Apr 2007
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

damn.....
Reply With Quote
  #25  
Old 05-27-2011, 06:13 AM
madkeen madkeen is offline
 
Join Date: Jan 2007
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can not get this to display teh banner

It show "Forum Sponsored by"

I get the following html code inserted

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

<span class="smallfont">Forum Sponsored By:</span>
<a href="vB.Sponsors/link.php?f=65" title="" target="_blank">



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

but nothing else

Anyone able to help please?
Reply With Quote
  #26  
Old 05-31-2011, 11:49 PM
madkeen madkeen is offline
 
Join Date: Jan 2007
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can get banners working, but not google adsense.

Anyone able to help with this?
Reply With Quote
  #27  
Old 06-10-2011, 09:46 PM
brihan brihan is offline
 
Join Date: Jan 2006
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First off, Thank you very much barne77 for modifying this mod. I could not bump up to VB4 until I could get this working for all my advertisers.

I do have 2 small issues that I hope you or someone else can help me with.

1) In the ACP global settings menu tab is not displaying the correct text and when you click on it there is no text in the global settings area. See picture below.



2) I would like to remove "Forum Sponsored By" but I can not figure out how. I have done a search for the phrase and I find it but when I try to change the text in the box below nothing happens, it still says "Forum Sponsored By:

Am doing this in the wrong area?




And for the person who did not know where to include the ads, go to

Forums & Moderators -> Forum manager ->

Click on the forum you want to include the sponsorship in and scroll to the bottom of the page.

Thanks in advance for any help anyone can provide.
Reply With Quote
  #28  
Old 08-31-2011, 02:13 PM
DannyITR DannyITR is offline
 
Join Date: Jan 2002
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by brihan View Post
First off, Thank you very much barne77 for modifying this mod. I could not bump up to VB4 until I could get this working for all my advertisers.

I do have 2 small issues that I hope you or someone else can help me with.

1) In the ACP global settings menu tab is not displaying the correct text and when you click on it there is no text in the global settings area. See picture below.



2) I would like to remove "Forum Sponsored By" but I can not figure out how. I have done a search for the phrase and I find it but when I try to change the text in the box below nothing happens, it still says "Forum Sponsored By:

Am doing this in the wrong area?




And for the person who did not know where to include the ads, go to

Forums & Moderators -> Forum manager ->

Click on the forum you want to include the sponsorship in and scroll to the bottom of the page.

Thanks in advance for any help anyone can provide.


To remove the text I removed this text from the templates:

{vb:raw vboptions.sponsor_global_default_text}

I tried using this for subforums but when I click on the banner I get an invalid redirect URL for some reason. Anyone else having this problem?
Reply With Quote
  #29  
Old 08-31-2011, 03:09 PM
DannyITR DannyITR is offline
 
Join Date: Jan 2002
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

With the new vbulletin 4.1.4 patch ALL links need to be added to the whitelist for them to work.
Reply With Quote
  #30  
Old 09-29-2011, 08:04 AM
Wayne@R32oc Wayne@R32oc is offline
 
Join Date: Mar 2007
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone getting "Invalid Redirect Errors" since updating? All of the banner links are now coming up with this error

Rather than tracking the stats id be happy to just have them static links if anyone can show me how?
Reply With Quote
  #31  
Old 11-26-2011, 05:59 PM
pecky pecky is offline
 
Join Date: May 2010
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To get the banners to align right in 4.1.8 and probably other versions

change
Quote:
<div style="float:$stylevar[right]">
to
Quote:
<div style="float:right">
Only thing I found that made it work.
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 10:00 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.05007 seconds
  • Memory Usage 2,388KB
  • 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
  • (8)bbcode_php
  • (3)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