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
  #12  
Old 09-11-2010, 02:22 AM
Mr Peabody Mr Peabody is offline
 
Join Date: May 2004
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you!
Reply With Quote
  #13  
Old 09-11-2010, 03:13 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you get permission from the developer to post this? You cannot just upload an edit to somebody else's mod without their permission.
Reply With Quote
  #14  
Old 10-11-2010, 01:47 PM
DannyITR DannyITR is offline
 
Join Date: Jan 2002
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know I'll find the answer right after I post this but where the heck do you add the banners? I don't see the option in the forums& moderators edit page where it used to be.
Reply With Quote
  #15  
Old 10-11-2010, 01:55 PM
DannyITR DannyITR is offline
 
Join Date: Jan 2002
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And the answer to my question was that my product was turned off from before. You need to turn it back on.
Reply With Quote
  #16  
Old 10-11-2010, 03:03 PM
DannyITR DannyITR is offline
 
Join Date: Jan 2002
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I need help with vbulletin 4 coding. In the template edits it calls a variable:

{vb:raw vboptions.sponsor_global_default_text}

I'm trying to change the phrase and I can't do it. First of all, a search of phrases tells me I only have a variable called :

Standard Phrase: setting_sponsor_global_default_text_desc

which does not match the name does it? Its not changing the text so it must not be the correct one but there are no others. Why won't it change the text?
Reply With Quote
  #17  
Old 10-16-2010, 06:47 AM
animalhouse animalhouse is offline
 
Join Date: Aug 2010
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't find where to add the sponsors either. Anybody?
Reply With Quote
  #18  
Old 10-31-2010, 08:05 PM
Wayne@R32oc Wayne@R32oc is offline
 
Join Date: Mar 2007
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone know why on my site (http://www.r32oc.com/) the banners are not aligning to the right?
Reply With Quote
  #19  
Old 12-28-2010, 05:38 PM
ChaFF's Avatar
ChaFF ChaFF is offline
 
Join Date: Jun 2010
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Wayne@R32oc View Post
Anyone know why on my site (http://www.r32oc.com/) the banners are not aligning to the right?
Good shout. It would be cool if coder could take it into account and move sponsors to the right, closer to subscribe button
Also i reckon it's better to move Sponsorship text "Forum Sponsored By:" from left to the top (on top of banner)
Reply With Quote
  #20  
Old 02-05-2011, 01:20 PM
speedracer68 speedracer68 is offline
 
Join Date: Jul 2004
Location: California
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone know why this does not show up in my admin panel?
Reply With Quote
  #21  
Old 02-05-2011, 02:03 PM
speedracer68 speedracer68 is offline
 
Join Date: Jul 2004
Location: California
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh, I forgot I also get this error when importing the product

MySQL Error : Incorrect key file for table './protour_vb4/datastore.MYI'; try to repair it
Error Number : 126
Request Date : Saturday, February 5th 2011 @ 07:57:05 AM
Error Date : Saturday, February 5th 2011 @ 07:57:05 AM
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 09:06 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.05134 seconds
  • Memory Usage 2,380KB
  • 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_php
  • (1)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
  • (3)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