![]() |
Forumdisplay Warning Message
Forumdisplay Warning Message
What does this do? This modifications adds the ability to give specific forums "warning messages" that are shown to the user before he/she enters the forum. For example: the user enters a forum that is intended for adults; the user enters this forum, is presented with the warning message explaining as much, and he/she can then choose to proceed into the forum or return back to where they were. Installation 1. Import the Product XML and upload the two images to your /images/misc folder. 2. Configure the Warning Message through the Forum Manager. 3. Setup the Global Options through the vBulletin Options menu. Features -Customizable message per forum -Control background color of pop-up -Control opacity of background layer behind pop-up -Cookie options allow you to enable users to permanently disable messages or show them once per session -Exclude specific Usergroups from having to view pop-ups -Control dimensions (height and width) and coordinate position of pop-up Version History 1.00 - Initial Release 1.01 - Added table prefixes 1.02 - Added option for cookie control 1.03 - Fixed session cookie bug; added ability to exclude usergroups from warning pop-ups; changed data type for better compatibility 1.04 - Added option for height/width and position control of pop-up Please click Install if you use this modification |
thank you for share this addon is nice will test later .
|
Thank you very much. This could be good for future reference.
|
Whoa... this is reaaaaly cool dude.
*Clicks Install* |
Hi,
I'm getting this error: Database error in vBulletin 3.6.7: Invalid SQL: ALTER TABLE `forum` ADD `kirky_splash` VARCHAR( 1500 ) NOT NULL; MySQL Error : Table 'blog.forum' doesn't exist Error Number : 1146 |
When installing the product, you get a database error... I dug into your product xml and found a few things you want to change.
The install and uninstall code only worked after making these changes. INSTALLCODE Look for the following... Code:
<installcode><![CDATA[$db->query_write("ALTER TABLE `forum` ADD `kirky_splash` VARCHAR( 1500 ) NOT NULL");]]></installcode> Code:
<installcode><![CDATA[$db->query("ALTER TABLE `" . TABLE_PREFIX . "forum` ADD `kirky_splash` VARCHAR( 1500 ) NOT NULL");]]></installcode> Look for the following... Code:
<uninstallcode><![CDATA[$db->query_write("ALTER TABLE `forum` DROP `kirky_splash`");]]></uninstallcode> Code:
<uninstallcode><![CDATA[$db->query("ALTER TABLE `" . TABLE_PREFIX . "forum` DROP `kirky_splash`");]]></uninstallcode> MISC IMAGES PATH Look for the following... Code:
defineheader: '<div style="padding: 5px; color: white; font: bold 16px Verdana; background: black url(images/misc/blockdefault.gif) center center repeat-x;border-bottom:1px solid #373737;"><a style="position:absolute; top: 2px; right: 5px" href="javascript:splashpage.closeit()" title="Skip to Content"><img src="images/misc/skip.gif" border="0" width="114px" height="23px" /></a>$vboptions[splashtitle]</div>', Code:
defineheader: '<div style="padding: 5px; color: white; font: bold 16px Verdana; background: black url($stylevar[imgdir_misc]/blockdefault.gif) center center repeat-x;border-bottom:1px solid #373737;"><a style="position:absolute; top: 2px; right: 5px" href="javascript:splashpage.closeit()" title="Skip to Content"><img src="$stylevar[imgdir_misc]/skip.gif" border="0" width="114px" height="23px" /></a>$vboptions[splashtitle]</div>', |
A simple "you forgot table prefixes" would have sufficed. :)
|
Working fine now :)
thx ! |
does it appear once ?
|
A simple "Thanks" would have been nice too :)
|
All times are GMT. The time now is 12:58 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|