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

Reply
 
Thread Tools
Forum Sponsor Details »»
Forum Sponsor
Version: 1.00, by Adrian. Adrian. is offline
Developer Last Online: Feb 2014 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.6.1 Rating:
Released: 10-10-2006 Last Update: Never Installs: 449
DB Changes Uses Plugins
 
No support by the author.

Forum Sponsor
Made by Adrian at Dreamit.co.uk
Tested on 3.6.1


Hey,

I seen a few people wanting a modification like this, this adds some fields in the Edit Forum Options, and allows you add a forum sponsor.

It's a pritty basic mod'.
I didn't want to spend alot of time on it, it does the functions people wanted.

See the screenshots to get a better understanding.

Installation
Import product-sponsor.xml

Done.

Template Edit
Open Forum Display templates > FORUMDISPLAY

Find:
HTML Code:
$navbar
Add after:
HTML Code:
<if condition="$foruminfo['sponsorenabled'] == 1">
<table width="100%" class="tborder" border="0" align="center">
  <tr>
    <td class="alt1"><table width="100%" border="0" cellspacing="5">
      <tr>
        <td width="10" rowspan="2" valign="middle"><div align="center"><a href="$foruminfo[sponsorlink]"><img src="$foruminfo[sponsorimage]" alt="$foruminfo[sponsorname] Image" border="0"></a></div></td>
        <td valign="top"><div align="left"><strong><a href="$foruminfo[sponsorlink]">$foruminfo[sponsorname]</a></strong></div></td>
      </tr>
      <tr>
        <td valign="top"><div align="left">$foruminfo[sponsordescription]</div></td>
      </tr>
    </table></td>
  </tr>
</table>
<br>
</if>
Done.

A quick install.

If you use this, please click installed.

Thanks.

Adrian

Show Your Support

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

Comments
  #122  
Old 12-27-2007, 08:26 AM
iulianh iulianh is offline
 
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was looking for this ! Thanks a lot !
Reply With Quote
  #123  
Old 01-19-2008, 09:28 AM
perfphysio's Avatar
perfphysio perfphysio is offline
 
Join Date: Sep 2006
Location: London, UK
Posts: 212
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jaks View Post
If you want to add the target="_blank" and title="Sponsor name" to the text link and alt="Sponsor name" to the linking image. Modify the template edit you did in the forumdisplay template. This bypasses the fields.

Find:
Code:
<tr>
        <td width="10" rowspan="2" valign="middle"><div align="center"><a href="$foruminfo[sponsorlink]"><img src="$foruminfo[sponsorimage]" alt="$foruminfo[sponsorname] Image" border="0"></a></div></td>
        <td valign="top"><div align="left"><strong><a href="$foruminfo[sponsorlink]">$foruminfo[sponsorname]</a></strong></div></td>
      </tr>

Replace with:
Code:
<tr>
        <td width="10" rowspan="2" valign="middle"><div align="center"><a target="_blank" href="$foruminfo[sponsorlink]"><img alt="$foruminfo[sponsorname]" src="$foruminfo[sponsorimage]" alt="$foruminfo[sponsorname] Image" border="0"></a></div></td>
        <td valign="top"><div align="left"><strong><a target="_blank" title="$foruminfo[sponsorname]" href="$foruminfo[sponsorlink]">$foruminfo[sponsorname]</a></strong></div></td>
      </tr>
For a demo to prove it works go here http://www.trulyunusual.com/wards/forumdisplay.php?f=17



Enjoy
Jaks
Sorry for the very late response to you post but a BIG THANK YOU This works perfectly
Reply With Quote
  #124  
Old 01-19-2008, 09:39 AM
perfphysio's Avatar
perfphysio perfphysio is offline
 
Join Date: Sep 2006
Location: London, UK
Posts: 212
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by myidealmate View Post
Nice Mod. Installed it in a few seconds.

Installed on 3.6.5

For those of you who wanted it to say "Forum Sponsor" at the top and also wanted the links to open in the seperate window just change the code to the following:

PHP Code:
<if condition="$foruminfo['sponsorenabled'] == 1">
<
table width="100%" class="tborder" border="0" align="center">
<
tr>
<
td width="100%" align="right">Forum Sponsor</td>
</
tr>
  <
tr>
    <
td class="alt1"><table width="100%" border="0" cellspacing="5">
      <
tr>
        <
td width="10" rowspan="2" valign="middle"><div align="center"><a href="$foruminfo[sponsorlink]target="_blank"><img src="$foruminfo[sponsorimage]alt="$foruminfo[sponsorname] Image" border="0"></a></div></td>
        <
td valign="top"><div align="left"><strong><a href="$foruminfo[sponsorlink]target="_blank">$foruminfo[sponsorname]</a></strong></div></td>
      </
tr>
      <
tr>
        <
td valign="top"><div align="left">$foruminfo[sponsordescription]</div></td>
      </
tr>
    </
table></td>
  </
tr>
</
table>
<
br>
</if> 
Hope this helps.

Regards,
Ray
Perfect, many thanks
Reply With Quote
  #125  
Old 01-19-2008, 06:24 PM
midlandi midlandi is offline
 
Join Date: Mar 2007
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod, very easy to install.:up:
Reply With Quote
  #126  
Old 01-19-2008, 06:27 PM
midlandi midlandi is offline
 
Join Date: Mar 2007
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by perfphysio View Post
Perfect, many thanks
Thanks Ray

Nice addition.:up:
Reply With Quote
  #127  
Old 01-19-2008, 10:52 PM
QuetzalRevolver QuetzalRevolver is offline
 
Join Date: Dec 2007
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great mod, installed
Reply With Quote
  #128  
Old 01-22-2008, 04:50 PM
jimjam jimjam is offline
 
Join Date: Jul 2007
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Guys, I want a different add to appear in each of my forums. Will this do that or is it just one add that is displayed in every forum. Thanks
Reply With Quote
  #129  
Old 01-23-2008, 05:38 PM
ctfortner ctfortner is offline
 
Join Date: Nov 2007
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Worked great on my 3.6.8. Thanks a ton, love it
Reply With Quote
  #130  
Old 01-29-2008, 04:41 PM
nikki712 nikki712 is offline
 
Join Date: Sep 2006
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jimjam View Post
Hi Guys, I want a different add to appear in each of my forums. Will this do that or is it just one add that is displayed in every forum. Thanks
I'd be interested in knowing this answer too, as I was going to post the exact same question.
Reply With Quote
  #131  
Old 01-29-2008, 06:13 PM
yeku yeku is offline
 
Join Date: May 2005
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great, perfect....

Thank you very much

Installed
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:28 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.05579 seconds
  • Memory Usage 2,339KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_code
  • (2)bbcode_html
  • (1)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete