Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Forum Sponsor Details »»
Forum Sponsor
Version: 1.00, by Adrian. Adrian. is offline
Developer Last Online: Feb 2014 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.6.1 Rating:
Released: 10-10-2006 Last Update: Never Installs: 449
DB Changes Uses Plugins
 
No support by the author.

Forum Sponsor
Made by Adrian at Dreamit.co.uk
Tested on 3.6.1


Hey,

I seen a few people wanting a modification like this, this adds some fields in the Edit Forum Options, and allows you add a forum sponsor.

It's a pritty basic mod'.
I didn't want to spend alot of time on it, it does the functions people wanted.

See the screenshots to get a better understanding.

Installation
Import product-sponsor.xml

Done.

Template Edit
Open Forum Display templates > FORUMDISPLAY

Find:
HTML Code:
$navbar
Add after:
HTML Code:
<if condition="$foruminfo['sponsorenabled'] == 1">
<table width="100%" class="tborder" border="0" align="center">
  <tr>
    <td class="alt1"><table width="100%" border="0" cellspacing="5">
      <tr>
        <td width="10" rowspan="2" valign="middle"><div align="center"><a href="$foruminfo[sponsorlink]"><img src="$foruminfo[sponsorimage]" alt="$foruminfo[sponsorname] Image" border="0"></a></div></td>
        <td valign="top"><div align="left"><strong><a href="$foruminfo[sponsorlink]">$foruminfo[sponsorname]</a></strong></div></td>
      </tr>
      <tr>
        <td valign="top"><div align="left">$foruminfo[sponsordescription]</div></td>
      </tr>
    </table></td>
  </tr>
</table>
<br>
</if>
Done.

A quick install.

If you use this, please click installed.

Thanks.

Adrian

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 10-12-2006, 07:45 PM
ccmoon ccmoon is offline
 
Join Date: Jul 2006
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Found it! thanks Adrian.
Reply With Quote
  #43  
Old 10-12-2006, 09:37 PM
John1uk John1uk is offline
 
Join Date: Oct 2006
Location: UK
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #44  
Old 10-12-2006, 09:50 PM
Ricsca's Avatar
Ricsca Ricsca is offline
 
Join Date: Apr 2006
Posts: 236
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

E' possibile avere pi? pubblicit??

Ad esempio:

Reply With Quote
  #45  
Old 10-12-2006, 11:34 PM
drumsy's Avatar
drumsy drumsy is offline
 
Join Date: Nov 2001
Location: Charlotte, NC
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It would be nice to not display a red X if I don't specify an image.
Reply With Quote
  #46  
Old 10-13-2006, 01:49 AM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #47  
Old 10-14-2006, 09:51 AM
perfphysio's Avatar
perfphysio perfphysio is offline
 
Join Date: Sep 2006
Location: London, UK
Posts: 212
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent and simple hack, much appreciated. Installed without any problem on 3.6.2

I would however love a small addition or two:
  1. The ability to open the links in a new window
  2. A stats collection to count how many times it was clicked (i know that is a bit more work)
  3. 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.
  4. 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
Reply With Quote
  #48  
Old 10-18-2006, 12:44 AM
vphost vphost is offline
 
Join Date: Jul 2005
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by perfphysio
  1. 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?
Reply With Quote
  #49  
Old 10-18-2006, 01:53 AM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bada_bing
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
Reply With Quote
  #50  
Old 10-18-2006, 11:45 AM
perfphysio's Avatar
perfphysio perfphysio is offline
 
Join Date: Sep 2006
Location: London, UK
Posts: 212
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by vphost
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
Reply With Quote
  #51  
Old 10-18-2006, 02:52 PM
Mr Pink's Avatar
Mr Pink Mr Pink is offline
 
Join Date: Oct 2006
Location: [Italy]
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod. Maybe I will use it. Thanks.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:45 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05263 seconds
  • Memory Usage 2,323KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete