vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Display Enhancements - Forum Sponsor (https://vborg.vbsupport.ru/showthread.php?t=128829)

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/4...blicitari0.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:
  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

vphost 10-18-2006 12:44 AM

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?

bada_bing 10-18-2006 01:53 AM

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

perfphysio 10-18-2006 11:45 AM

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

Mr Pink 10-18-2006 02:52 PM

Great mod. Maybe I will use it. Thanks. :)


All times are GMT. The time now is 03:20 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01277 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete