Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Forumdisplay Warning Message Details »»
Forumdisplay Warning Message
Version: 1.04, by Kirk Y Kirk Y is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.6.8 Rating:
Released: 12-15-2007 Last Update: 12-30-2007 Installs: 151
DB Changes Uses Plugins Auto-Templates
Re-useable Code Translations  
No support by the author.

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

Show Your Support

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

Comments
  #2  
Old 12-16-2007, 04:48 AM
dtv100 dtv100 is offline
 
Join Date: Apr 2007
Location: in the south of the north
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you for share this addon is nice will test later .
Reply With Quote
  #3  
Old 12-16-2007, 04:52 AM
G0F0RBR0KE G0F0RBR0KE is offline
 
Join Date: Mar 2005
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very much. This could be good for future reference.
Reply With Quote
  #4  
Old 12-16-2007, 04:56 AM
Magnumutz's Avatar
Magnumutz Magnumutz is offline
 
Join Date: Feb 2006
Location: Romania
Posts: 731
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Whoa... this is reaaaaly cool dude.
*Clicks Install*
Reply With Quote
  #5  
Old 12-16-2007, 05:06 AM
Flep Flep is offline
 
Join Date: Jul 2007
Location: Cesenatico
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 12-16-2007, 05:32 AM
jgommel's Avatar
jgommel jgommel is offline
 
Join Date: Jun 2005
Location: Ohio
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>',
Reply With Quote
  #7  
Old 12-16-2007, 05:38 AM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A simple "you forgot table prefixes" would have sufficed.
Reply With Quote
  #8  
Old 12-16-2007, 06:03 AM
Flep Flep is offline
 
Join Date: Jul 2007
Location: Cesenatico
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working fine now

thx !
Reply With Quote
  #9  
Old 12-16-2007, 07:03 AM
yahoooh yahoooh is offline
 
Join Date: Oct 2002
Posts: 567
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does it appear once ?
Reply With Quote
  #10  
Old 12-16-2007, 08:05 AM
jgommel's Avatar
jgommel jgommel is offline
 
Join Date: Jun 2005
Location: Ohio
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A simple "Thanks" would have been nice too
Reply With Quote
Reply

Thread Tools

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 11:04 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.29617 seconds
  • Memory Usage 2,296KB
  • Queries Executed 23 (?)
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
  • (6)bbcode_code
  • (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
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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