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 - Forumdisplay Warning Message (https://vborg.vbsupport.ru/showthread.php?t=165278)

Kirk Y 12-15-2007 10:00 PM

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

dtv100 12-16-2007 04:48 AM

thank you for share this addon is nice will test later .

G0F0RBR0KE 12-16-2007 04:52 AM

Thank you very much. This could be good for future reference.

Magnumutz 12-16-2007 04:56 AM

Whoa... this is reaaaaly cool dude.
*Clicks Install*

Flep 12-16-2007 05:06 AM

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

jgommel 12-16-2007 05:32 AM

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>
...and change it to
Code:

<installcode><![CDATA[$db->query("ALTER TABLE `" . TABLE_PREFIX . "forum` ADD `kirky_splash` VARCHAR( 1500 ) NOT NULL");]]></installcode>
UNINSTALLCODE
Look for the following...
Code:

<uninstallcode><![CDATA[$db->query_write("ALTER TABLE `forum` DROP `kirky_splash`");]]></uninstallcode>
...and change it to
Code:

<uninstallcode><![CDATA[$db->query("ALTER TABLE `" . TABLE_PREFIX . "forum` DROP `kirky_splash`");]]></uninstallcode>
The changes here, are for those of us who are using 3rd party styles and have more than one images directory. The way you have it, the user would have to alter the code to point to the correct misc directory.

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>',
...and change it to
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>',

Kirk Y 12-16-2007 05:38 AM

A simple "you forgot table prefixes" would have sufficed. :)

Flep 12-16-2007 06:03 AM

Working fine now :)

thx !

yahoooh 12-16-2007 07:03 AM

does it appear once ?

jgommel 12-16-2007 08:05 AM

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
  • Page Generation 0.01300 seconds
  • Memory Usage 1,738KB
  • 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
  • (6)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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