Useage:
This modification will Add an image banner w/ link Or paste in your own HTML code option per forum. These files can be any image. (png, jpg, gif, ect). This will be located after the $navbar on FORMDISPLAY. This images can be located on the localhost or on a remote server.
Admincp -> Forums & Moderators -> Forum Manager -> Edit Forum -> Fill out the banner info.
Banner Image - (location of image)
Banner URL - (Link that you go to when u click the banner)
Alt Tag (if you mouse over the banner; pop-up text)
HTML Paste (added)
You can also fill out the info when you make a new forum.
NOTES:
Changes:
--------
1.6
Banner shows up on each thread
adds: 1 more template edit to the install
*1.5
+Added HTML option
*1.2
+ Added Alt text for each banner(admincp)
+ Images no longer must be on the server
You can use a local image off your webserver or use a image at another location.
EX: /images/banner/someimage.jpg or http://www.yoursite.com/someimage.jpg
*1.1
+ Added option for image to have a link
*1.0
+ Image banner for every forum under the $navbar
I did some playing around took the <if></if> statement added to the ForumsDisplay template. You can insted place it in the header / footer template and it will show up also.
Nice work, and now some suggestions, is it possible to get also the clicks in the banner?
Also to have the full amount of banners displayed in the Board?
what about a hack that adds little button links to the homepage forum sections, I know they had it for vb2
I'm having a problem installing it as well... when I go to query I'm told:
Quote:
An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ';
ALTER TABLE `forum` ADD `bannerlink` VARCHAR( 250 ) NOT NULL
I'm having a problem installing it as well... when I go to query I'm told:
I'll need to find out what syntax to use in admincp's query utility. The querys however do work in phpmyadmin.
EX: result from phpmyadmin:
Your SQL-query has been executed successfully
ALTER TABLE `forum` ADD `banner` VARCHAR( 50 ) NOT NULL AFTER `description` ;# Affected rows:261
ALTER TABLE `forum` ADD `bannerlink` VARCHAR( 250 ) NOT NULL AFTER `banner` ;# Affected rows:261
I'll need to find out what syntax to use in admincp's query utility. The querys however do work in phpmyadmin.
EX: result from phpmyadmin:
Your SQL-query has been executed successfully
ALTER TABLE `forum` ADD `banner` VARCHAR( 50 ) NOT NULL AFTER `description` ;# Affected rows:261
ALTER TABLE `forum` ADD `bannerlink` VARCHAR( 250 ) NOT NULL AFTER `banner` ;# Affected rows:261