Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Dismiss / Hide Notices Details »»
Dismiss / Hide Notices
Version: 1.1.0, by skhms skhms is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.7.x Rating:
Released: 07-07-2008 Last Update: 08-08-2008 Installs: 57
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

SK Dismiss Notices v1.1.0

This add-on lets the user have the ability to dismiss/hide notices that are set to persistent.
At the User CP, you will be able to see your dismissed notices and also have the option to activate/show them again.
Adds a new usergroup setting - 'Can dismiss persistant notices'.
Set to 'Yes' for all usergroups as default.

Installation
Copy 2 files, Import product, edit 1 template, set usergroup settings.
See instructions in the attached zip file.

Version history:
  • v1.1.0 - 2008-08-09
    - Added usergroup settings - 'Can dismiss persistant notices'.
  • v1.0.0 - 2008-07-08
    - First release.

/SK

Show Your Support

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

Comments
  #22  
Old 08-06-2008, 04:10 PM
skhms's Avatar
skhms skhms is offline
 
Join Date: Oct 2006
Location: Sweden
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by M-Tuning View Post
Could it be possible to make the mod usergroup dependant?

So that only Premium members or moderators kan dismiss notices.
I shall take a look at it.

/SK
Reply With Quote
  #23  
Old 08-07-2008, 09:21 AM
M-Tuning's Avatar
M-Tuning M-Tuning is offline
 
Join Date: Jul 2005
Location: Winschoten (NL)
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you.
Reply With Quote
  #24  
Old 08-09-2008, 12:17 PM
skhms's Avatar
skhms skhms is offline
 
Join Date: Oct 2006
Location: Sweden
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated to v1.1.0

Added usergroup settings - 'Can dismiss persistant notices'.
Set to 'Yes' as default for all usergroups.

How to upgrade:

Dowload and unpack the zip package in the first post above.

Copy all files in the upload directory to your forumroot.
* dismissnotice.php
* includes/xml/bitfield_sk_dismissnotices.xml

Import the file "product-sk_dismissnotices.xml".
Remember to select "Yes" for the "Allow Overwrite" option.

Adjust which usergroups that should be allowed to dismiss notices.

/SK
Reply With Quote
  #25  
Old 08-09-2008, 02:41 PM
seanm07 seanm07 is offline
 
Join Date: Apr 2008
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to change the button text to hide rather than dismiss?
Reply With Quote
  #26  
Old 08-09-2008, 04:26 PM
skhms's Avatar
skhms skhms is offline
 
Join Date: Oct 2006
Location: Sweden
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by seanm07 View Post
Is there a way to change the button text to hide rather than dismiss?
Change the global phrase 'dismissnotice'.

/SK
Reply With Quote
  #27  
Old 08-12-2008, 08:18 AM
seanm07 seanm07 is offline
 
Join Date: Apr 2008
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by skhms View Post
Change the global phrase 'dismissnotice'.

/SK
Thanks
Reply With Quote
  #28  
Old 08-12-2008, 09:19 AM
Spank Spank is offline
 
Join Date: Jan 2007
Location: Scotland
Posts: 809
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this add an 'is dismissable' when creating a notice? I'd like some notices to be dismissed at the members discretion, but I use notices for ads for guests, so obviously I wouldn't want them to be able to dismiss them =D
Reply With Quote
  #29  
Old 08-12-2008, 02:42 PM
skhms's Avatar
skhms skhms is offline
 
Join Date: Oct 2006
Location: Sweden
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Spank View Post
Does this add an 'is dismissable' when creating a notice? I'd like some notices to be dismissed at the members discretion, but I use notices for ads for guests, so obviously I wouldn't want them to be able to dismiss them =D
No, sorry.
Only way is to set the usergroup for guests so they can't dismiss any notices. (If you got v1.1.0)

I like the idea, and I actually tried to implement what you're asking for.
Haven't figure out a way to do it with available hooks though. And I didn't want to have file edits.

/SK
Reply With Quote
  #30  
Old 08-24-2008, 07:11 PM
jonicoletta jonicoletta is offline
 
Join Date: Feb 2006
Location: Buenos Aires, Argentina.
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very much!! it is the hack that i was looking for.
Reply With Quote
  #31  
Old 09-22-2008, 01:24 AM
ryancooper ryancooper is offline
 
Join Date: Jul 2002
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Spank View Post
Does this add an 'is dismissable' when creating a notice? I'd like some notices to be dismissed at the members discretion, but I use notices for ads for guests, so obviously I wouldn't want them to be able to dismiss them =D
I woul also like to see this have a option for each notice "is dismissible"

Other than that Great hack... Thanks!
Reply With Quote
Reply


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:14 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.04334 seconds
  • Memory Usage 2,302KB
  • Queries Executed 27 (?)
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
  • (5)bbcode_quote
  • (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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_postinfo_query
  • fetch_postinfo
  • 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