vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Display Enhancements - Forum Sponsor (https://vborg.vbsupport.ru/showthread.php?t=128829)

Adrian. 10-10-2006 10:00 PM

Forum Sponsor
 
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

Steven Gibbons 10-11-2006 04:54 PM

Another nice mod from Adrian, One other thing it would be good if it said in liek grey forum sponsors like on http://www.namepros.com/registerindex.php at the top where the ad is.

Steven

chrisroo 10-11-2006 05:01 PM

Installed! Works Great!

ccmoon 10-11-2006 05:21 PM

Installed!
I could use this for "award member"... I used member avatar for the image, and on the description, type something good about that member.
Great!

KSE 10-11-2006 05:24 PM

Since it goes into the FORUMDISPLAY, will it display in EACH forum? What if once forum is sponsored by one and another by another?

InTeNsE-HuMoR 10-11-2006 05:28 PM

Great mod! Installed and working great on 3.6.1. :)

Quote:

Originally Posted by KSE
Since it goes into the FORUMDISPLAY, will it display in EACH forum? What if once forum is sponsored by one and another by another?

You have to manually add a sponsor to each forum that is sponsored. So you could have one forum sponsored by "sponsor A" and another forum sponsored by "sponsor B" I hope that answers your question :)

ChavMagnet 10-11-2006 05:30 PM

Thank You this is sweet as
*Edit: how do i make it so the a sponsor is used on all the forums without having to edit each one.

Adrian. 10-11-2006 06:16 PM

Quote:

Originally Posted by ChavMagnet
Thank You this is sweet as
*Edit: how do i make it so the a sponsor is used on all the forums without having to edit each one.

That feature hasn't being made.
You will have to edit the forums manually.

Adrian

John1uk 10-11-2006 08:29 PM

ok, this seems great, but as im such a newbie with this vbulliten, can someone please tell me where.............. >>>>>Template Edit
Open Forum Display templates > FORUMDISPLAY>>>>>>>>>is please in my admincp.
cheers

Adrian. 10-11-2006 08:37 PM

Quote:

Originally Posted by John1uk
ok, this seems great, but as im such a newbie with this vbulliten, can someone please tell me the >>>>>Template Edit
Open Forum Display templates > FORUMDISPLAY>>>>>>>>>is please in my admincp.

cheers

Go to your Admin Panel.

Click Styles and Templates > Style Manager.
On the theme you want to install the mod' in, select Edit Templates from the dropdown list.

Then click, Forum Display templates > FORUMDISPLAY :)

Adrian


All times are GMT. The time now is 01:48 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.04512 seconds
  • Memory Usage 1,746KB
  • 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
  • (2)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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