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

John1uk 10-11-2006 09:17 PM

I have done exactly what you have said , but when i click on the>>>>>>
Forum Display templates > FORUMDISPLAY >>>>>>>the screen just flashes like a popup and disapears...hmmmmmmm...help.

ahmed-samara 10-11-2006 09:20 PM

Thank You:)

John1uk 10-11-2006 09:20 PM

cancel that last request............i realised what i did wrong...duhh..
;)

Snake 10-11-2006 09:26 PM

Very nice hack! :)

John1uk 10-11-2006 09:27 PM

Another question please.....................how do i now get into the page that i can edit like the one on your screen shot. in cp.

WtwSkippy 10-11-2006 09:32 PM

Quote:

Originally Posted by John1uk
Another question please.....................how do i now get into the page that i can edit like the one on your screen shot. in cp.

It's on the edit forum page. So just go into your admin cp, click Forums & Moderators, click Forum Manager, then select the forum you want to have a sponsor.



-Skippy

John1uk 10-11-2006 09:34 PM

your a star :) ;)

WtwSkippy 10-11-2006 09:38 PM

Quote:

Originally Posted by John1uk
your a star :) ;)

No Problem :)

John1uk 10-11-2006 09:43 PM

Works Great thanx
:)

Captain Kirk76 10-11-2006 10:09 PM

Hi, installed this, looks great, but i cant get it to display the bit where i enter the detail for the sponser & turn it on & off?

WtwSkippy 10-11-2006 10:10 PM

Quote:

Originally Posted by Captain Kirk76
Hi, installed this, looks great, but i cant get it to display the bit where i enter the detail for the sponser & turn it on & off?


Quote:

Originally Posted by WtwSkippy
It's on the edit forum page. So just go into your admin cp, click Forums & Moderators, click Forum Manager, then select the forum you want to have a sponsor.



-Skippy

Is that what you were looking for?

dieselpowered 10-11-2006 10:17 PM

Nice I will take a look!

Thanks Adrian :)

Captain Kirk76 10-11-2006 10:24 PM

Thanks alot!
I got it now :)

shadowevil 10-12-2006 12:07 AM

Great Mod! *Installed*

AWI 10-12-2006 04:21 AM

I can't seem to get this to work, I installed this just as you instructed and yet when I add a new one it does not show up.

John1uk 10-12-2006 06:36 AM

Everything is working GReat thanx....Just one more question!

How can i get a Banner add on my index.php page in the forum. so when members login to the forum the also see a banner add at the top like the other forums.

Adrian. 10-12-2006 07:22 AM

Quote:

Originally Posted by AWI
I can't seem to get this to work, I installed this just as you instructed and yet when I add a new one it does not show up.

Did you enable the mod' in the Edit Forum Page?

Quote:

Originally Posted by John1uk
Everything is working GReat thanx....Just one more question!

How can i get a Banner add on my index.php page in the forum. so when members login to the forum the also see a banner add at the top like the other forums.

My mod' only shows up, within a forum.
It's easy enough to make one for the forumhome, i may do it later if get time. :)

Adrian

John1uk 10-12-2006 07:28 AM

Adrian....your the man ;)

AMD_Warrior 10-12-2006 07:58 AM

Adrian, how do i get here?
https://vborg.vbsupport.ru/attachmen...8&d=1160588499
???

Adrian. 10-12-2006 08:13 AM

Quote:

Originally Posted by AMD_Warrior

You edit a forum.

Go onto your Admin Panel.
Forums > Forum managager.
(Select forum) Edit forum from dropdown list. :)

Spin Doctor 10-12-2006 12:35 PM

not quite what i had in mind but it might be better!!!!!!! LEGEND!

Pvtiste 10-12-2006 01:34 PM

very nice thaks for sharing !
Installed :)

bchertov 10-12-2006 01:54 PM

Very Nice and useful! Is the sponsor's image limited to a certain size? Could the image be a full size leaderboard ad (728 x 90)??

Thanks!

Adrian. 10-12-2006 02:01 PM

Quote:

Originally Posted by bchertov
Very Nice and useful! Is the sponsor's image limited to a certain size? Could the image be a full size leaderboard ad (728 x 90)??

Thanks!

The image can be any size you want. :)

It doesn't get resized.

Adrian

WtwSkippy 10-12-2006 04:02 PM

I'd be very interested in a index.php add on.

Also, this may be off topic somewhat, but I was thinking about integrating this into my club's website, I'd like to be able to manage all the ads from the AdminCP like I have been doing, how hard would this be (if at all possible).

ccmoon 10-12-2006 04:11 PM

Hi Adrian, I have a friend running 3.6.0. Will this mod work with 3.6.0?
Thanks

Adrian. 10-12-2006 04:33 PM

Quote:

Originally Posted by ccmoon
Hi Adrian, I have a friend running 3.6.0. Will this mod work with 3.6.0?
Thanks

Most likely... ;)

It should work.

ccmoon 10-12-2006 05:30 PM

Its' not working Adrian. I still don't see it on Vbulletin Option ??

Adrian. 10-12-2006 05:51 PM

Quote:

Originally Posted by ccmoon
Its' not working Adrian. I still don't see it on Vbulletin Option ??

There is 2 option pages.
Check both locations.
  1. Admin Panel - Options > Forum Sponsor
  2. Admin Panel - Forums and Moderators > Forum Manager > (The forum) Select "Edit Forum".

Adrian

WtwSkippy 10-12-2006 07:41 PM

I'm running 3.6.2 and it runs perfectly :)


All times are GMT. The time now is 05:32 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.01427 seconds
  • Memory Usage 1,823KB
  • 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
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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