View Full Version : Forum Display Enhancements - Forum Sponsor
Adrian.
10-10-2006, 10:00 PM
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 (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=128829). :)
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!
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. :)
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
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
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
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
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
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
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*
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
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
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/attachment.php?attachmentid=54548&d=1160588499
???
Adrian.
10-12-2006, 08:13 AM
Adrian, how do i get here?
https://vborg.vbsupport.ru/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
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
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
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
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
10-12-2006, 07:41 PM
I'm running 3.6.2 and it runs perfectly :)
ccmoon
10-12-2006, 07:45 PM
Found it! thanks Adrian.
John1uk
10-12-2006, 09:37 PM
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
10-12-2006, 09:50 PM
E' possibile avere pi? pubblicit??
Ad esempio:
http://img207.imageshack.us/img207/4640/pubblicitari0.jpg
drumsy
10-12-2006, 11:34 PM
It would be nice to not display a red X if I don't specify an image.
bada_bing
10-13-2006, 01:49 AM
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
10-14-2006, 09:51 AM
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
10-18-2006, 12:44 AM
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
10-18-2006, 01:53 AM
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
10-18-2006, 11:45 AM
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
10-18-2006, 02:52 PM
Great mod. Maybe I will use it. Thanks. :)
xb4b1x
10-24-2006, 07:15 PM
This is a really nice mod thanks bro!
archaosus
11-03-2006, 08:35 AM
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
11-03-2006, 10:40 AM
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
11-04-2006, 03:11 AM
Can someone help me please
Anyone expacially the author any help?
Domenico
11-08-2006, 10:56 PM
Are you going to add extra features or is this it? :)
bada_bing
11-09-2006, 02:18 AM
Anyone expacially the author any help?
WOW SUPPORT SUCK on this mod! Asked the same question 3 times and no responce.
Adrian.
11-09-2006, 09:45 AM
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
11-09-2006, 11:58 AM
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 :)
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
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
11-09-2006, 08:05 PM
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
11-09-2006, 08:33 PM
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
11-09-2006, 08:34 PM
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
11-09-2006, 09:51 PM
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?
cargale,
Check this post
https://vborg.vbsupport.ru/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
11-12-2006, 09:15 AM
Would be good if this supported Google ad sense...
BigJimTheLug
11-12-2006, 09:43 PM
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.
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
11-18-2006, 07:32 PM
Hiya ... um, couldn't see the screenshots. Are they there? Anyone got some? Thanks, twobob
TheBlackPoet
11-18-2006, 07:58 PM
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
12-07-2006, 02:12 AM
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
12-14-2006, 02:55 PM
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
12-19-2006, 12:24 PM
Ok but how can we display this message/banner also in the threads from the same forum?
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
Thank You
First mod i actually installed myself. :cool:
Hornstar
12-21-2006, 05:59 AM
this looks real nice, I will have a play around with this later. thanks.
elricstorm
12-26-2006, 02:05 PM
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
01-10-2007, 11:29 PM
thanks this really is awesome!
josh_B
01-11-2007, 07:50 PM
Excellant addon. Thank you. Worked first time, and for me, thats a mission in itself!
lmongello
01-14-2007, 10:41 PM
Fixed it. Thanks! Great mod!
rateit05
01-17-2007, 10:43 AM
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
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.
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
01-26-2007, 02:31 AM
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
01-26-2007, 07:30 AM
How can I get links to open in a new window so people don't leave my sites?
madkeen
02-01-2007, 12:10 PM
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
02-01-2007, 12:12 PM
Can this be displayed at the top of every thread in the forum?
Rather than just at the top of the forum index.
anahowa
02-05-2007, 05:27 AM
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:
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
02-06-2007, 06:23 AM
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
02-06-2007, 05:51 PM
is there a way to add "Forum Sponsor" at the top or bottom of the box?
vietConnecting
02-12-2007, 06:01 PM
Nice mod
Just thank!
madkeen
02-12-2007, 08:18 PM
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
03-08-2007, 10:07 PM
you could easily put the same code you change in forumview, in the threadview template.
fat chance it works right away.
dbirosel
03-13-2007, 09:23 PM
Great mod! Simple, Clean & Easy! Thank you. Installed.
daveh900
03-21-2007, 01:59 PM
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
03-22-2007, 10:14 PM
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
03-27-2007, 01:26 PM
how i put 2 banners near of them?
v12kid
05-01-2007, 09:13 PM
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
05-10-2007, 06:43 AM
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
05-12-2007, 09:41 PM
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
05-13-2007, 05:16 AM
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
05-14-2007, 01:11 AM
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
05-16-2007, 02:00 AM
It would be awsome to make this work on forum post as well
fpattberg
06-26-2007, 02:00 PM
Does this mod work with 3.6.7 anyone?
Dannyloski
06-26-2007, 02:40 PM
^ Works perfectly on 3.6.7 :up:
sunnycher
06-26-2007, 05:44 PM
I LOVE this! Thank you!
evotion
06-26-2007, 06:53 PM
Brilliantly simple and simply brilliant....
Thanks very much!:up:
madkeen
06-27-2007, 12:59 AM
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
06-27-2007, 02:10 PM
Sorry problem solved!
fpattberg
06-28-2007, 02:32 PM
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
07-06-2007, 09:46 PM
Hi.
Can any help me on this one? See above.
Thanks.
Fabian
Dannyloski
07-07-2007, 03:30 AM
^ 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
07-09-2007, 07:49 AM
Thanks Dannyloski. Works perfectly. Thank you for your help! :up:
Fabian
Dannyloski
07-09-2007, 03:09 PM
^ Glad to help out :up: ...
periphrastic
09-24-2007, 01:56 AM
attempted on 3.6.8 & forum doesn't show
is this hack applicable to that version? thanks
SliceofLife
09-25-2007, 01:15 AM
This works perfectly on my forum 3.6.8 and is exactly what we were looking for. Thank you very much!
periphrastic
09-25-2007, 04:42 AM
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
10-18-2007, 11:01 PM
working fine here...i just had to re-install the template edit after upgrading to 3.6.8
www.straferight.com/forums
gwerzal
10-22-2007, 02:29 PM
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
12-27-2007, 08:26 AM
I was looking for this ! Thanks a lot !
perfphysio
01-19-2008, 09:28 AM
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
01-19-2008, 09:39 AM
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
01-19-2008, 06:24 PM
Great mod, very easy to install.:up:
midlandi
01-19-2008, 06:27 PM
Perfect, many thanks :)
Thanks Ray
Nice addition.:up:
QuetzalRevolver
01-19-2008, 10:52 PM
great mod, installed
jimjam
01-22-2008, 04:50 PM
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
01-23-2008, 05:38 PM
Worked great on my 3.6.8. Thanks a ton, love it
nikki712
01-29-2008, 04:41 PM
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. :)
Great, perfect....
Thank you very much
Installed
Lacessit
01-31-2008, 02:47 PM
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
02-04-2008, 06:32 AM
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>
Downloaded. Will install it later.
Thanks :)
Habsy
02-10-2008, 11:07 PM
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://vborg.vbsupport.ru/external/2008/02/19.jpg
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://vborg.vbsupport.ru/attachment.php?attachmentid=54548&d=1160588499
Admin CP >> Forums & Moderators >> Forum Manager >> NOW PICK FORUM YOU WANT TO ADD THE SPONSOR TO :)
jimjam
02-21-2008, 07:55 AM
Has anyone managed to get this mod displaying adsense adds?
insidedesign
02-29-2008, 04:43 PM
Has anyone had issues with this MOD when upgrading to vB 3.7?
adambloch
03-06-2008, 08:23 AM
should this work on 3.5? and if not can it be fixed to ?
james2002
03-14-2008, 06:57 PM
Has anyone had issues with this MOD when upgrading to vB 3.7?
When I upgrade my vbulletin, it stopped working.
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
03-21-2008, 11:49 PM
how can i get this to display on showthread ?
ArnyVee
03-22-2008, 12:57 AM
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
03-22-2008, 12:58 AM
Thanks for the 'forum sponsor' and 'open in another window' fix as well guys!
jw00dy
03-27-2008, 05:17 AM
Great mod! Installed. Thanks
symptome
03-27-2008, 08:09 AM
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.
pixelpunk
05-01-2008, 08:18 AM
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
05-18-2008, 05:43 AM
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|
05-20-2008, 12:05 AM
This mod doesnt appear to work in 3.7.0
markbolyard
05-26-2008, 09:24 PM
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: https://vborg.vbsupport.ru/showthread.php?t=131512
bjf2k
06-02-2008, 06:39 PM
istalled.. I have version 3.7.1, and its work great
thanks
bjf2k
06-02-2008, 06:56 PM
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: https://vborg.vbsupport.ru/showthread.php?t=131512
i tried the one you installed on your forum. its not work with my 3.7.1 tho
tintin74
06-03-2008, 06:55 AM
Very easy and useful mod! Thank you very much! INSTALLED!
ArnyVee
06-17-2008, 07:31 PM
I have 3.7.1 and it's worked great since 3.6.8! :D
Great mod :D
ArnyVee
06-22-2008, 01:55 PM
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
08-19-2008, 10:38 PM
Anyone know how to get this working for sub-forums too, willing to pay...
is their anyway this could be used to do multiple adverts in each forum?
d.j.carusso
08-30-2008, 03:34 PM
How can I put 2 banners near of them ?
edytwinky
09-06-2008, 01:00 AM
Is there any way to use this on a individual forum by forum basis
Vackrick
09-06-2008, 01:20 AM
can u make one for 3.7x Please or someone else
Ray2khax
10-08-2008, 04:39 PM
Is there anyway to make this to the bottom of the website?
Ironduke
10-24-2008, 12:56 AM
post deleted
shadyninja
10-27-2008, 02:41 AM
can u make one for 3.7x Please or someone else
Works in 3.7.2
Thanks~
shadyninja
10-27-2008, 02:50 AM
.
I have even managed to get it showing in the threads.
you did how?
shadyninja
10-28-2008, 01:24 AM
*anybody?*
jimjam
11-13-2008, 06:44 AM
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
11-16-2008, 07:44 AM
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
12-23-2008, 08:34 AM
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
01-22-2009, 04:55 PM
<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
01-27-2009, 03:36 AM
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
02-18-2009, 11:15 PM
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
06-22-2009, 06:01 AM
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
01-21-2010, 08:45 AM
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
08-06-2010, 06:32 PM
A real shame that this hack does not work anymore. Was really simple and useful!
fernandezp27
03-13-2011, 04:12 AM
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
03-28-2011, 08:26 AM
Is there s similar hack that works for vB4.x ?
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
06-17-2011, 04:43 AM
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/).
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.