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 :)

PoetJA-1975 12-16-2007 08:58 AM

Thanx :) = Nice share!

Jacquii.

Mark K 12-16-2007 09:19 AM

Thanks for this Kirk Y, exactly what i was looking for. Great mod!

Jimandbob 12-16-2007 01:07 PM

Installed and working perfectly.

Thanks

Doctor Death 12-16-2007 01:27 PM

Before installing, can you answer the question of it can be made to display for a user only ONE time based upon a stored value or cookie?

I really want this but I dont want to burden users every time they open a forum.

Thank you for your efforts.

sola 12-16-2007 01:28 PM

Good idea. Thanks.

Endurer 12-16-2007 02:39 PM

Thank you, I really need this one. :)

Kirk Y 12-16-2007 03:02 PM

Quote:

Originally Posted by Doctor Death (Post 1402112)
Before installing, can you answer the question of it can be made to display for a user only ONE time based upon a stored value or cookie?

I really want this but I dont want to burden users every time they open a forum.

Thank you for your efforts.

If you see my note in red, once the user clicks to continue, a cookie is set with that specific forum's id. This cookie is cleared when the user closes their browser; so they're prompted once per session per forum.

princeedward 12-16-2007 03:14 PM

nice addon kirk...thanks for the release...good work... ;)

kollam003 12-16-2007 03:20 PM

Great hack Kollam003 clicks install

Derek Chai 12-16-2007 04:42 PM

Thanks I NEEDED!

iogames 12-16-2007 04:53 PM

Quality ;)

henrikhansen 12-16-2007 07:04 PM

Great mod.
If it is slightly extended, so that you can set the warning so it automatically leads further to the forum, it can be used for adds, contest announcements, general info, etc.

Smoothie 12-16-2007 07:28 PM

work with 3.6.5?

Kirk Y 12-16-2007 07:30 PM

Quote:

Originally Posted by Smoothie (Post 1402328)
work with 3.6.5?

Should work fine from 3.5.x and beyond.

iogames 12-16-2007 07:32 PM

Can I in the HTML code, add a sponsorship or Ad?

Kirk Y 12-16-2007 07:33 PM

Quote:

Originally Posted by iogames (Post 1402331)
Can I in the HTML code, add a sponsorship or Ad?

Yes, you can use HTML entities in the message.

iogames 12-16-2007 07:48 PM

Quote:

Originally Posted by Kirk Y (Post 1402332)
Yes, you can use HTML entities in the message.

Then Nominated! cause it has potential! :up:

4number8 12-16-2007 08:18 PM

Does this affect the whole forum? I'd use it if I could make the message show on only the forums that I chose, Does this do that?
Thanks a lot for the share.

Kirk Y 12-16-2007 08:33 PM

Quote:

Originally Posted by 4number8 (Post 1402356)
Does this affect the whole forum? I'd use it if I could make the message show on only the forums that I chose, Does this do that?
Thanks a lot for the share.

Guys, please... read the release post.

Quote:

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.

Doctor Death 12-16-2007 09:06 PM

Quote:

Originally Posted by Kirk Y (Post 1402162)
If you see my note in red, once the user clicks to continue, a cookie is set with that specific forum's id. This cookie is cleared when the user closes their browser; so they're prompted once per session per forum.

Can this be set to NOT clear that cookie via an option?

That would be tremendously useful.... Great addition.

Kirk Y 12-16-2007 09:19 PM

Quote:

Originally Posted by Doctor Death (Post 1402377)
Can this be set to NOT clear that cookie via an option?

That would be tremendously useful.... Great addition.

Yes, the ability for users to request never to be shown the warning again (for each forum) via a permanent cookie will be in the next version.

valdet 12-16-2007 09:28 PM

This is a quality mod.

Thanks for your time Kirk.

XFSImperial 12-16-2007 09:39 PM

Quote:

Originally Posted by Kirk Y (Post 1402384)
Yes, the ability for users to request never to be shown the warning again (for each forum) via a permanent cookie will be in the next version.

Looks like a great mod. I'll wait for the permanent cookie version :D

Doctor Death 12-16-2007 11:46 PM

Quote:

Originally Posted by Kirk Y (Post 1402384)
Yes, the ability for users to request never to be shown the warning again (for each forum) via a permanent cookie will be in the next version.

That is outstanding. I will wait for that one. Thanks much, very useful

shaynehammy 12-17-2007 01:05 AM

Yeah, definitely waiting in anticipation for the next version

TheBlackPoet 12-17-2007 01:43 AM

let me say... very nice disclaimer... i really like the fact that it dont continue to pop up for the same user unless he deletes his/her cookies.. really nice..

JohnBee 12-17-2007 02:39 AM

Great MOD! I would love to have this on a per post basis.
Reason being, many posts have specific content and it would be great if members could alert others accordingly.

Any chance it could work at that level?

Kirk Y 12-17-2007 02:53 AM

Quote:

Originally Posted by JohnBee (Post 1402573)
Great MOD! I would love to have this on a per post basis.
Reason being, many posts have specific content and it would be great if members could alert others accordingly.

Any chance it could work at that level?

Only in the instance where a single post is being viewed.
ie: https://vborg.vbsupport.ru/showpost....3&postcount=37

There's really no way to display this kind of warning for specific posts. I imagine it could be possible to display a warning above each postbit - but that's going beyond the intended function of this modification.

Derek Chai 12-17-2007 03:15 AM

Can you make it so it displays when a users enters the forum like right when they type YOURFORUM.com and it pops up..

Kirk Y 12-17-2007 03:23 AM

Quote:

Originally Posted by Derek Chai (Post 1402599)
Can you make it so it displays when a users enters the forum like right when they type YOURFORUM.com and it pops up..

You mean your forum's index? Yeah, I suppose I can add that functionality into the next version.


All times are GMT. The time now is 10:34 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.01401 seconds
  • Memory Usage 1,819KB
  • 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
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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