The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Forum Sponsor Details »» | |||||||||||||||||||||||||
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 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> A quick install. If you use this, please click installed. Thanks. Adrian Show Your Support
|
Comments |
#42
|
|||
|
|||
Found it! thanks Adrian.
|
#43
|
|||
|
|||
Adrian....is there anway i can centre the image and text...please click here and you will see what i mean.
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. |
#44
|
||||
|
||||
E' possibile avere pi? pubblicit??
Ad esempio: |
#45
|
||||
|
||||
It would be nice to not display a red X if I don't specify an image.
|
#46
|
||||
|
||||
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 |
#47
|
||||
|
||||
Excellent and simple hack, much appreciated. Installed without any problem on 3.6.2
I would however love a small addition or two:
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 |
#48
|
|||
|
|||
Quote:
|
#49
|
||||
|
||||
Quote:
|
#50
|
||||
|
||||
Quote:
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 |
#51
|
||||
|
||||
Great mod. Maybe I will use it. Thanks.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|