PDA

View Full Version : Forum Display Enhancements - Forum Sponsor


Adrian.
11 Oct 2006, 18:42
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:
$navbar

Add after:
<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 (http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=128829). :)

Thanks.

Adrian

Steven Gibbons
11 Oct 2006, 18:54
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
11 Oct 2006, 19:01
Installed! Works Great!

ccmoon
11 Oct 2006, 19:21
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
11 Oct 2006, 19:24
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
11 Oct 2006, 19:28
Great mod! Installed and working great on 3.6.1. :)

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
11 Oct 2006, 19:30
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.
11 Oct 2006, 20:16
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
11 Oct 2006, 22:29
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.
11 Oct 2006, 22:37
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
11 Oct 2006, 23:17
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
11 Oct 2006, 23:20
Thank You:)

John1uk
11 Oct 2006, 23:20
cancel that last request............i realised what i did wrong...duhh..
;)

Snake
11 Oct 2006, 23:26
Very nice hack! :)

John1uk
11 Oct 2006, 23:27
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
11 Oct 2006, 23:32
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
11 Oct 2006, 23:34
your a star :) ;)

WtwSkippy
11 Oct 2006, 23:38
your a star :) ;)No Problem :)

John1uk
11 Oct 2006, 23:43
Works Great thanx
:)

Captain Kirk76
12 Oct 2006, 00:09
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
12 Oct 2006, 00:10
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?


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
12 Oct 2006, 00:17
Nice I will take a look!

Thanks Adrian :)

Captain Kirk76
12 Oct 2006, 00:24
Thanks alot!
I got it now :)

shadowevil
12 Oct 2006, 02:07
Great Mod! *Installed*

AWI
12 Oct 2006, 06:21
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
12 Oct 2006, 08:36
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.
12 Oct 2006, 09:22
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?

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
12 Oct 2006, 09:28
Adrian....your the man ;)

AMD_Warrior
12 Oct 2006, 09:58
Adrian, how do i get here?
http://www.vbulletin.org/forum/attachment.php?attachmentid=54548&d=1160588499
???

Adrian.
12 Oct 2006, 10:13
Adrian, how do i get here?
http://www.vbulletin.org/forum/attachment.php?attachmentid=54548&d=1160588499
???

You edit a forum.

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

Spin Doctor
12 Oct 2006, 14:35
not quite what i had in mind but it might be better!!!!!!! LEGEND!

Pvtiste
12 Oct 2006, 15:34
very nice thaks for sharing !
Installed :)

bchertov
12 Oct 2006, 15:54
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.
12 Oct 2006, 16:01
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
12 Oct 2006, 18:02
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
12 Oct 2006, 18:11
Hi Adrian, I have a friend running 3.6.0. Will this mod work with 3.6.0?
Thanks

Adrian.
12 Oct 2006, 18:33
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
12 Oct 2006, 19:30
Its' not working Adrian. I still don't see it on Vbulletin Option ??

Adrian.
12 Oct 2006, 19:51
Its' not working Adrian. I still don't see it on Vbulletin Option ??

There is 2 option pages.
Check both locations.


Admin Panel - Options > Forum Sponsor
Admin Panel - Forums and Moderators > Forum Manager > (The forum) Select "Edit Forum".


Adrian

WtwSkippy
12 Oct 2006, 21:41
I'm running 3.6.2 and it runs perfectly :)

ccmoon
12 Oct 2006, 21:45
Found it! thanks Adrian.

John1uk
12 Oct 2006, 23:37
Adrian....is there anway i can centre the image and text...please click here and you will see what i mean. http://www.motormeet.co.uk/forum/forumdisplay.php?f=63

the image is a lot smaller and the text shoves to the side with the image, i think it would look better if image and text could move over a little.

Ricsca
12 Oct 2006, 23:50
E' possibile avere più pubblicità?

Ad esempio:

http://img207.imageshack.us/img207/4640/pubblicitari0.jpg

drumsy
13 Oct 2006, 01:34
It would be nice to not display a red X if I don't specify an image.

bada_bing
13 Oct 2006, 03:49
Wow this is a great mod.. Tried to install it on my vb 3.5.3 site and got a database error when trying to install the plugin so I just exited out hope it didnt add anything to my database... Any chance on making this work for all the 3.5.x users

This is the error generated.. Seeing this did I damage my database? and if so how do I revert what was just entered? SIte seems to work fine

Database error in vBulletin 3.5.3:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
(`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
('1', '5', 'Forum Sponsor', 'forumadmin_edit_form', 'print_yes_no_row($vbphrase[\'sponsorenabled\'], \'forum[sponsorenabled]\', $forum[\'sponsorenabled\']);\r\nprint_input_row($vbphrase[\'sponsorname\'], \'forum[sponsorname]\', $forum[\'sponsorname\']); \r\nprint_input_row($vbphrase[\'sponsorlink\'], \'forum[sponsorlink]\', $forum[\'sponsorlink\']);\r\nprint_input_row($vbphrase[\'sponsorimage\'], \'forum[sponsorimage]\', $forum[\'sponsorimage\']);\r\nprint_textarea_row($vbphrase[\'sponsordescription\'], \'forum[sponsordescription]\', $forum[\'sponsordescription\']);', 'sponsor');

MySQL Error : Unknown column 'executionorder' in 'field list'
Error Number : 1054
Date : Thursday, October 12th 2006 @ 09:46:19 PM

perfphysio
14 Oct 2006, 11:51
Excellent and simple hack, much appreciated. Installed without any problem on 3.6.2

I would however love a small addition or two:

The ability to open the links in a new window
A stats collection to count how many times it was clicked (i know that is a bit more work)
The ability to set more than one image and therefore more than one link or the ability to random select from a few sponsors that you set up in the same way you do now.
A choice of text alignment for the image, title and description e.g. left,right centre


But this in itself is an excellent starting point.

I also agree with the request to be able to pu a sponsor over an individual thread, e.g. Maybe an article was donated and you wish to promote the person who provided the copy. This too would be an awesone addition

vphost
18 Oct 2006, 02:44
The ability to open the links in a new window



I haven't had a chance to test this out yet, but basing on what you said and the screenshot, can't you add target="_blank" into your a href?

bada_bing
18 Oct 2006, 03:53
Wow this is a great mod.. Tried to install it on my vb 3.5.3 site and got a database error when trying to install the plugin so I just exited out hope it didnt add anything to my database... Any chance on making this work for all the 3.5.x users

This is the error generated.. Seeing this did I damage my database? and if so how do I revert what was just entered? SIte seems to work fine

Database error in vBulletin 3.5.3:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
(`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
('1', '5', 'Forum Sponsor', 'forumadmin_edit_form', 'print_yes_no_row($vbphrase[\'sponsorenabled\'], \'forum[sponsorenabled]\', $forum[\'sponsorenabled\']);\r\nprint_input_row($vbphrase[\'sponsorname\'], \'forum[sponsorname]\', $forum[\'sponsorname\']); \r\nprint_input_row($vbphrase[\'sponsorlink\'], \'forum[sponsorlink]\', $forum[\'sponsorlink\']);\r\nprint_input_row($vbphrase[\'sponsorimage\'], \'forum[sponsorimage]\', $forum[\'sponsorimage\']);\r\nprint_textarea_row($vbphrase[\'sponsordescription\'], \'forum[sponsordescription]\', $forum[\'sponsordescription\']);', 'sponsor');

MySQL Error : Unknown column 'executionorder' in 'field list'
Error Number : 1054
Date : Thursday, October 12th 2006 @ 09:46:19 PM
Can someone help me please

perfphysio
18 Oct 2006, 13:45
I haven't had a chance to test this out yet, but basing on what you said and the screenshot, can't you add target="_blank" into your a href?


No the field does not accept this html in it. In fact anything I tried by means of code in the link field disables that from working. So this is not a solution

Mr Pink
18 Oct 2006, 16:52
Great mod. Maybe I will use it. Thanks. :)

xb4b1x
24 Oct 2006, 21:15
This is a really nice mod thanks bro!

archaosus
03 Nov 2006, 10:35
Easy to install even with a cold - top work, this will be a great addition to my competition subforums in order to hook a sponsor.

perfphysio
03 Nov 2006, 12:40
I haven't had a chance to test this out yet, but basing on what you said and the screenshot, can't you add target="_blank" into your a href?
Still no word on having this slight modification as an option for the banner links e.g. main window or new window?

This html options one would normally use are not permitted to be used in the url fields for this hack. I would imagine most people using this hack would ish the banner links to open in new windows rather than the parent one. Please dude can you make this small addition :)

bada_bing
04 Nov 2006, 05:11
Can someone help me please
Anyone expacially the author any help?

Domenico
09 Nov 2006, 00:56
Are you going to add extra features or is this it? :)

bada_bing
09 Nov 2006, 04:18
Anyone expacially the author any help?





WOW SUPPORT SUCK on this mod! Asked the same question 3 times and no responce.

Adrian.
09 Nov 2006, 11:45
Sorry guys, my license expired recently, meaning i had no way of responding to this thread, or having PM access.

I will answer support soon, i am very busy.

perfphysio
09 Nov 2006, 13:58
Sorry guys, my license expired recently, meaning i had no way of responding to this thread, or having PM access.

I will answer support soon, i am very busy.Thanks for that and we hope to get an update of your great starting point soon :)

Additionally I, like many others have also used the TAG mod/hack. This is great for grouping items into use friendly areas. Unfortunatley your hack doesn't recognise this area as yet, e.g. the results page for a certain tag (see this as an example http://www.physiobob.com/forum/tags/index.php?tag=/sciatica/

It would be awesome if we could add a sponsor in some way to each tag that we create? Perhaps by offering a default one and also by overwriting that with a specific one.

Does anyone else think this would be an excellent addition? I'd make it myself if only I knew how :)

jaks
09 Nov 2006, 19:03
John1uk,
It's in the Forum & Moderator==>Forum Manager==> Pick a forum to edit and the new fields are there near the bottom.

Thanks Adrian, very handy mod. :) Clicks Install

jaks
09 Nov 2006, 20:16
Still no word on having this slight modification as an option for the banner links e.g. main window or new window?

This html options one would normally use are not permitted to be used in the url fields for this hack. I would imagine most people using this hack would ish the banner links to open in new windows rather than the parent one. Please dude can you make this small addition :)

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:
<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:
<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

perfphysio
09 Nov 2006, 22:05
but i only post an image for the whole sponsor section and therefore include my text on the actual image. Therefore there is no sponsor title etc as i don't want anything to appear which would split the field into text and image. so i need the image link to open in a new window when the image is clicked on

SkyCatcher
09 Nov 2006, 22:33
but i only post an image for the whole sponsor section and therefore include my text on the actual image. Therefore there is no sponsor title etc as i don't want anything to appear which would split the field into text and image. so i need the image link to open in a new window when the image is clicked on

Dude... :ninja:


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


You see the target="_blank" added?

Anytime you see <a href="whatever"> you can add target="_blank" before the closing > to make a link open in a new window. In this case You click the image and it will open a new window with the url you entered for the sponsor's link in the admincp.

SkyCatcher
09 Nov 2006, 22:34
Can someone help me please


No your database was not damaged. It simply tried to create new fields in your database but failed because the field "executionoder" does not exist in vb3.5x.

So basically it stopped and didn't execute the sql query so nothing happened.

carlgale
09 Nov 2006, 23:51
hi

i have added the code as instructed to the right file and i get no option at all to add sponsored banner, have checked everywhere and its not there

how come it doesnt seem to work for me?

jaks
10 Nov 2006, 19:47
cargale,
Check this post
http://www.vbulletin.org/forum/showpost.php?p=1113728&postcount=59

If it not there then you didn't import the product would be my guess or you made the edit in the wrong place or not at all. It's a pretty straightforward mod so those are the only 2 possiblilties.

The only problem I had was with a secondary style because it wasn't a selectable style. I just made it selectable and it worked then changed it back.

TVNettet
12 Nov 2006, 11:15
Would be good if this supported Google ad sense...

BigJimTheLug
12 Nov 2006, 23:43
Hello,

I've installed everything and I don't have any display.

What else am I suppose to do After the code is installed?

Thanks.

jaks
14 Nov 2006, 09:13
Goto Forum & Moderator==>Forum Manager==> Pick a forum to edit and find the new fields near the bottom. make sure to turn it on with the radio button just above those new fields.

twobob
18 Nov 2006, 21:32
Hiya ... um, couldn't see the screenshots. Are they there? Anyone got some? Thanks, twobob

TheBlackPoet
18 Nov 2006, 21:58
this is a nice hack.. honestly, i had another one installed.. but this one is more simple and to the point.... so i installed this one..

mlotziii
07 Dec 2006, 04:12
Can't tell you how much I love this add-on! Great Work!

I wish it had an option to add a block of code incase you didn't want to have a seperate line for image and url.

ansuk
14 Dec 2006, 16:55
This is the first mod ive installed on my 3.6.4 and it is amazing, thank you so much :)

One thing i cant figure out though is how to center the image, here is my 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 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>
<tr>
<td valign="top"><div align="left">$foruminfo[sponsordescription]</div></td>
</tr>
</table></td>
</tr>
</table>
<br>
</if>


Other than that its perfect :banana:

Domenico
19 Dec 2006, 14:24
Ok but how can we display this message/banner also in the threads from the same forum?

TMAC
20 Dec 2006, 03:13
I have this installed and everything checked and filled out but I can't see it. OIs this compatable with 3.6.4

Thank You

sjim
20 Dec 2006, 21:23
Thank You
First mod i actually installed myself. :cool:

Hornstar
21 Dec 2006, 07:59
this looks real nice, I will have a play around with this later. thanks.

elricstorm
26 Dec 2006, 16:05
Thank you very much for this addon. It went perfectly well with my paypal donations button on my website. I was able to acknowledge those members who donated and give them some special kudos. Thanks again.

GruntHalo
11 Jan 2007, 01:29
thanks this really is awesome!

josh_B
11 Jan 2007, 21:50
Excellant addon. Thank you. Worked first time, and for me, thats a mission in itself!

lmongello
15 Jan 2007, 00:41
Fixed it. Thanks! Great mod!

rateit05
17 Jan 2007, 12:43
for some reason mine will not show up. I have it set to the announcements forum of my site, i also edited the settings in the forum manager for that forum categorie and for some reason it wont show.

i am running 3.6.4

any reason why it is not showing?

regards

Yago
19 Jan 2007, 23:53
Adrain.
Thanks a lot just what I need. In a couple of weeks http://www.PetMessageBoard.com will go live and you can check out your awesome mode there.
It is also easy to install even for a newbie. This is my 3rd mod install. I just wished you explained how to get to forumdisplay. If I did not have my past experience from installing "welcome headers" I would have been confused.

ep13
25 Jan 2007, 14:47
for some reason mine will not show up. I have it set to the announcements forum of my site, i also edited the settings in the forum manager for that forum categorie and for some reason it wont show.

i am running 3.6.4

any reason why it is not showing?

regards

Not showing on my 3.6.4 either

GrossKopf
26 Jan 2007, 04:31
Ok, I'm a total noob... I figured out the second step due to the replies here, but how do I do step 1?

Import product-sponsor.xml

I went to Style and Templates, Download/Upload Styles and tried uploading the xml file there but it said it was invalid format...

Neal-UK
26 Jan 2007, 09:30
How can I get links to open in a new window so people don't leave my sites?

madkeen
01 Feb 2007, 14:10
Ok, I'm a total noob... I figured out the second step due to the replies here, but how do I do step 1?



I went to Style and Templates, Download/Upload Styles and tried uploading the xml file there but it said it was invalid format...

Go into Plugins & Products - Manage Products - Add/Import Product

madkeen
01 Feb 2007, 14:12
Can this be displayed at the top of every thread in the forum?

Rather than just at the top of the forum index.

anahowa
05 Feb 2007, 07:27
for some reason mine will not show up. I have it set to the announcements forum of my site, i also edited the settings in the forum manager for that forum categorie and for some reason it wont show.

i am running 3.6.4

any reason why it is not showing?

regards

Not showing on my 3.6.4 either :confused:

Yago
05 Feb 2007, 14:50
This is the url where my forum sponsor is installed

http://www.petmessageboard.com/forums/forumdisplay.php?f=7

The image is set in the edit forum "Enter the URL to the image sponsor." option as

http://www.pethall.com/pet_memorials/images/petmemorial_logo_small.gif

However the image does not come up and when you check the image properties on the board this is what I see below even though this is not what is on my control panel

http://www.petmessageboard.com/forums/

Please help.

computer1
06 Feb 2007, 08:23
nice :)
its work but if I have 5 sponsors I wont to showe on my main forum page
howe can I do that I only se one sponsor input there ?

hitboy
06 Feb 2007, 19:51
is there a way to add "Forum Sponsor" at the top or bottom of the box?

vietConnecting
12 Feb 2007, 20:01
Nice mod
Just thank!

madkeen
12 Feb 2007, 22:18
Can this be displayed at the top of every thread in the forum?

Rather than just at the top of the forum index.

Can anyone help with this?


Is this mod still being supported?

antiekeradio
09 Mar 2007, 00:07
you could easily put the same code you change in forumview, in the threadview template.

fat chance it works right away.

dbirosel
13 Mar 2007, 23:23
Great mod! Simple, Clean & Easy! Thank you. Installed.

daveh900
21 Mar 2007, 15:59
Thanks for this mod!

Two things that would make it perfect:

• Some sort of click tracking

• The ability to open the link in a new window

myidealmate
23 Mar 2007, 00:14
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:


<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

Jesakos
27 Mar 2007, 15:26
how i put 2 banners near of them?

v12kid
01 May 2007, 23:13
I am having brain freeze, I installed it but I dont see the settings tab in the admincp? Where am I missing it?

EDIt- found it!

anyone know if this guy is supporting his mod. I have a few suggestions!

StuntFactoryX
10 May 2007, 08:43
thank you. works great on 3.6.5

i also wish it worked on showthread above all threads in that forum. im not sure how much traffic my forum display gets. i think most my users go directly to each thread from vbadvanced "recent thread module" or "new posts" in the nav bar.

update.

i stuffed that code in my showthread template under $ navbar and it works. its shows above all threads too.

jasondavis
12 May 2007, 23:41
cant seem to get it to work in the new version, I fill out the forms in the admin area but it doesn't show up in my forums

StuntFactoryX
13 May 2007, 07:16
mine is working on 3.6.6 are you sure you ticked the option to turn on in the desired forum above where u add links and url to images? i did it like 20x

talenak
14 May 2007, 03:11
OK, I have this installed, and the template edited, but there is no sponsorship option in forum edit page? *head scratching*

Oh my word. It's there. I'm blind. Go ahead and laugh at me. I totally earned it.

jasondavis
16 May 2007, 04:00
It would be awsome to make this work on forum post as well

fpattberg
26 Jun 2007, 16:00
Does this mod work with 3.6.7 anyone?

Dannyloski
26 Jun 2007, 16:40
^ Works perfectly on 3.6.7 :up:

sunnycher
26 Jun 2007, 19:44
I LOVE this! Thank you!

evotion
26 Jun 2007, 20:53
Brilliantly simple and simply brilliant....

Thanks very much!:up:

madkeen
27 Jun 2007, 02:59
I am using Openads Adserver software to run my ads. Does anyone know how I can get the ads from Openads to show up?

Can the code be inserted into the Adsense section, and if so how, what code option, etc?

fpattberg
27 Jun 2007, 16:10
Sorry problem solved!

fpattberg
28 Jun 2007, 16:32
Hi.

Is there a way to have it say above the logo: "This forum is sonsored by:"

Can I do that myself or do I need to change the xml? :eek:

Thanks for the help.

Fabian

fpattberg
06 Jul 2007, 23:46
Hi.

Can any help me on this one? See above.

Thanks.

Fabian

Dannyloski
07 Jul 2007, 05:30
^ Should be pretty easy ... Open the FORUMDISPLAY template

FIND:
<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>

REPLACE WITH:

<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="100%" colspan="2" valign="left"><div align="left"><strong>This Forum is Sponsored By:</strong></div></td>
</tr>
<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>

Hope that helps you :up:

fpattberg
09 Jul 2007, 09:49
Thanks Dannyloski. Works perfectly. Thank you for your help! :up:

Fabian

Dannyloski
09 Jul 2007, 17:09
^ Glad to help out :up: ...

periphrastic
24 Sep 2007, 03:56
attempted on 3.6.8 & forum doesn't show

is this hack applicable to that version? thanks

SliceofLife
25 Sep 2007, 03:15
This works perfectly on my forum 3.6.8 and is exactly what we were looking for. Thank you very much!

periphrastic
25 Sep 2007, 06:42
did you follow the exact instructions?

i've done everything - the template change and import - i have turned it on and completed the required fields for the particular forum

absolutely nothing

sR Craig
19 Oct 2007, 01:01
working fine here...i just had to re-install the template edit after upgrading to 3.6.8

www.straferight.com/forums

gwerzal
22 Oct 2007, 16:29
Installed and working as described.

I have even managed to get it showing in the threads.

What this mod needs to make it a super mod is some kind of random banners feature.

iulianh
27 Dec 2007, 10:26
I was looking for this ! Thanks a lot !

perfphysio
19 Jan 2008, 11:28
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:
<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:
<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
JaksSorry for the very late response to you post but a BIG THANK YOU :) This works perfectly :)

perfphysio
19 Jan 2008, 11:39
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:


<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,
RayPerfect, many thanks :)

midlandi
19 Jan 2008, 20:24
Great mod, very easy to install.:up:

midlandi
19 Jan 2008, 20:27
Perfect, many thanks :)

Thanks Ray

Nice addition.:up:

QuetzalRevolver
20 Jan 2008, 00:52
great mod, installed

jimjam
22 Jan 2008, 18:50
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

ctfortner
23 Jan 2008, 19:38
Worked great on my 3.6.8. Thanks a ton, love it

nikki712
29 Jan 2008, 18:41
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. :)

yeku
29 Jan 2008, 20:13
Great, perfect....

Thank you very much

Installed

Lacessit
31 Jan 2008, 16:47
I'd be interested in knowing this answer too, as I was going to post the exact same question. :)

It's one ad displayed in one forum. If you would like the same ad in multiple forums, you'll have to edit each forum.

Installed, and looks great! Thanks!

jimjam
04 Feb 2008, 08:32
My forum sponsor advert is always left aligned, This is the code in ForumDisplay can someone show me how to get the image centered. Thanks in anticipation.

<if condition="$foruminfo['sponsorenabled'] == 1">
<table width="100%" class="tborder" border="0" align="center">
<tr>
<td width="100%" align="center">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="center"><strong><a href="$foruminfo[sponsorlink]" target="_blank">$foruminfo[sponsorname]</a></strong></div></td>
</tr>
<tr>
<td valign="top"><div align="center">$foruminfo[sponsordescription]</div></td>
</tr>
</table></td>
</tr>
</table>
<br>
</if>

CLF
07 Feb 2008, 09:54
Downloaded. Will install it later.
Thanks :)

Habsy
11 Feb 2008, 01:07
Ok I give up. I have installed this mod and it appears in my product manager but I cannot get to the cp for the life of me.

Where do I go to find this...

https://www.vbulletin.org/forum/external/2008/02/19.jpg

CLF
16 Feb 2008, 06:05
Ok I give up. I have installed this mod and it appears in my product manager but I cannot get to the cp for the life of me.

Where do I go to find this...

http://www.vbulletin.org/forum/attachment.php?attachmentid=54548&d=1160588499

Admin CP >> Forums & Moderators >> Forum Manager >> NOW PICK FORUM YOU WANT TO ADD THE SPONSOR TO :)

jimjam
21 Feb 2008, 09:55
Has anyone managed to get this mod displaying adsense adds?

insidedesign
29 Feb 2008, 18:43
Has anyone had issues with this MOD when upgrading to vB 3.7?

adambloch
06 Mar 2008, 10:23
should this work on 3.5? and if not can it be fixed to ?

james2002
14 Mar 2008, 20:57
Has anyone had issues with this MOD when upgrading to vB 3.7?

When I upgrade my vbulletin, it stopped working.

T.S.
16 Mar 2008, 09:33
Does anyone know if it would be easy to get this to also display a text link near each forum description on the forumhome?

Something like following code in the forumhome forumbit template.....


<if condition="$foruminfo['sponsorenabled'] == 1">
<div align="left"><strong>Forum Sponsor: <a href="$foruminfo[sponsorlink]">$foruminfo[sponsorname]</a></strong></div>
<br>
</if>

logicuk
22 Mar 2008, 01:49
how can i get this to display on showthread ?

ArnyVee
22 Mar 2008, 02:57
Works great on 3.6.8 !

Has anyone figured out how to make it show on the actual threads too? Seems like the forum sponsors could be missed by those bypassing and going straight to the threads.

ArnyVee
22 Mar 2008, 02:58
Thanks for the 'forum sponsor' and 'open in another window' fix as well guys!

jw00dy
27 Mar 2008, 07:17
Great mod! Installed. Thanks

symptome
27 Mar 2008, 10:09
is it possible to include no text no image but something like this:

<a href="http://partners.webmasterplan.com/click.asp?ref=310086&site=3073&type=b76&bnb=76" target="_blank"><img src="http://banners.webmasterplan.com/view.asp?ref=310086&site=3073&b=76" border="0" alt="mydays.de" width="234" height="60"/></a>

This is the code of an affiliate program. And I shall not change this code.

ndut
27 Apr 2008, 22:44
thank you.. :)

pixelpunk
01 May 2008, 10:18
It would be neat if you could specify which forums you wanted to use this in, as well as which sponsors you would want to use in each forum.

Ex/

Computer Shop in the Electronics forum
Car Shop in the Automotive forum
Internet Radio Station in the Music forum

Dpunkz
18 May 2008, 07:43
this is not working for, i cant get it to actully display on my forums??? I have adsence located right about wer this should be displaying, perhaps thats why its not showing up?

|Jordan|
20 May 2008, 02:05
This mod doesnt appear to work in 3.7.0

markbolyard
26 May 2008, 23:24
Why do you say it doesn't work on 3.7. I've installed it on two forums running 3.7 and there are no problems whatsoever. Both of those forums had it before I made the upgrade to 3.7, and now I'm getting ready to install it on a 3.7 board that has never had it, so I'll report back how it goes.

UPDATE: Sorry, wrong mod. The one I used is located here: http://www.vbulletin.org/forum/showthread.php?t=131512

bjf2k
02 Jun 2008, 20:39
istalled.. I have version 3.7.1, and its work great

thanks

bjf2k
02 Jun 2008, 20:56
Why do you say it doesn't work on 3.7. I've installed it on two forums running 3.7 and there are no problems whatsoever. Both of those forums had it before I made the upgrade to 3.7, and now I'm getting ready to install it on a 3.7 board that has never had it, so I'll report back how it goes.

UPDATE: Sorry, wrong mod. The one I used is located here: http://www.vbulletin.org/forum/showthread.php?t=131512

i tried the one you installed on your forum. its not work with my 3.7.1 tho

tintin74
03 Jun 2008, 08:55
Very easy and useful mod! Thank you very much! INSTALLED!

ArnyVee
17 Jun 2008, 21:31
I have 3.7.1 and it's worked great since 3.6.8! :D

Great mod :D

ArnyVee
22 Jun 2008, 15:55
Strange. I just added a custom style and it's not showing now.

But, it's still showing in my 'default vB' style. Any ideas on a fix on this?

Edited: Whoops, my mistake. Working great! :)

MentaL
20 Aug 2008, 00:38
Anyone know how to get this working for sub-forums too, willing to pay...

GDA
24 Aug 2008, 23:21
is their anyway this could be used to do multiple adverts in each forum?

d.j.carusso
30 Aug 2008, 17:34
How can I put 2 banners near of them ?

edytwinky
06 Sep 2008, 03:00
Is there any way to use this on a individual forum by forum basis

Vackrick
06 Sep 2008, 03:20
can u make one for 3.7x Please or someone else

Ray2khax
08 Oct 2008, 18:39
Is there anyway to make this to the bottom of the website?

Ironduke
24 Oct 2008, 02:56
post deleted

shadyninja
27 Oct 2008, 04:41
can u make one for 3.7x Please or someone else



Works in 3.7.2
Thanks~

shadyninja
27 Oct 2008, 04:50
.

I have even managed to get it showing in the threads.



you did how?

shadyninja
28 Oct 2008, 03:24
*anybody?*

jimjam
13 Nov 2008, 08:44
Has anyone managed to get this to show the banner in the center. I have changed every instance of left to center, but the banner is still left aligned. VB3.74

Thanks

jimjam
16 Nov 2008, 09:44
Can someone explain to me why the forum sponsors banner is left aligned. Using the the following code, the sponsors banner is still left aligned rather than centered.

Thanks in anticipation

<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="center"><strong><a href="$foruminfo[sponsorlink]">$foruminfo[sponsorname]</a></strong></div></td>
</tr>
<tr>
<td valign="top"><div align="center">$foruminfo[sponsordescription]</div></td>
</tr>
</table></td>
</tr>
</table>
<br>
</if>

viper357
23 Dec 2008, 10:34
I'm on 3.6.12 and not working, not showing up in admincp or forum editor at all, pity, was really looking for something like this.

tarot
22 Jan 2009, 18:55
<table width="100%" class="tborder" border="0" align="center">
<tr>
<td class="alt1"><table width="100%" border="0" cellspacing="5">
<tr>
<td valign="middle"><div align="center"><strong><a href="$foruminfo[sponsorlink]">$foruminfo[sponsorname]</a></strong><br />
<a href="$foruminfo[sponsorlink]"><img src="$foruminfo[sponsorimage]" alt="$foruminfo[sponsorname] Image" border="0" /></a></div> <div align="center">$foruminfo[sponsordescription]</div></td>
</tr>

</table>

This fixed my centering issue :)

crazymook
27 Jan 2009, 05:36
there seems to be a bit too much spacing between the image and the top of the sponsor box...any way to tighten things up?

davit1979
19 Feb 2009, 01:15
HM.. can't get it to work in 3.8.1 and I could really use it, any ideas???
not showing up in admincp or forum editor at all

Raptor
22 Jun 2009, 08:01
doesn't display in 3.8.3

admin side seems all ok - just nothing on public side

If I remove the if conditional it works great - but the problem is that the table displays on every page then regardless of if a sponsor is selected or not

so there must be some hook / code issue regarding the <if condition="$foruminfo['sponsorenabled'] == 1"> & vb 3.8.x

Any help is appreciated

jschvili
21 Jan 2010, 10:45
I had a big use for this hack, but can't get it to work in vBulletin 4.0. Will this be upgraded for that version?

fpattberg
06 Aug 2010, 20:32
A real shame that this hack does not work anymore. Was really simple and useful!

fernandezp27
13 Mar 2011, 06:12
How do I import the xml and where do I import it to? I already have a sponsor tab that came with my skyblue template but cannot find the controls for it anywhere.

www.travelchronicles.org.

Domenico
28 Mar 2011, 10:26
Is there s similar hack that works for vB4.x ?

dfe
16 Jun 2011, 21:16
Is there s similar hack that works for vB4.x ?

Also want one, used it extensively on my VB3 board and starting to plan migration to VB4 now.

jschvili
17 Jun 2011, 06:43
You can use the Advertisement function in vB4.x. This one example from our Hide-a-lite supportforum (http://support.elot.se/forum/hide-lite/).