PDA

View Full Version : Add-On Releases - Dismiss / Hide Notices


skhms
07-07-2008, 10:00 PM
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

schlottkej
07-08-2008, 09:00 PM
nice :)

Hornstar
07-08-2008, 09:39 PM
This is excellent. What a great idea. I also like how it adds a separator as it looks a little ugly without it. Nice work.

dvbusuario
07-09-2008, 02:49 AM
Good Idea

Thx :)

Q-v-n-s-Q
07-09-2008, 04:04 AM
good idea, thanks

burlesque
07-13-2008, 07:43 AM
This mod is brilliant - I'm using it to give new members a step-by-step guide to setting up their new accounts. eg:

Step 1: Click here to upload your avatar - DISMISS
Step 2: Click here to complete your profile - DISMISS
Step 3: Click here to upload your first gallery - DISMISS

Hoorah!:up:

tuwebfacil
07-13-2008, 08:35 AM
How this works in a large forum?

Dingo14
07-13-2008, 10:09 AM
can't get it to show on forum

skhms
07-13-2008, 11:17 AM
How this works in a large forum?
I haven't got any access to a really large forum so I have not test it personally.

But there is not that much happening, no extra sql queries or anything.
Except when someone clicks the dismiss button of course (or un-dismiss notices)

So I don't think there would be any problems.

/SK

skhms
07-13-2008, 11:20 AM
can't get it to show on forum

Does the notice show up, but no dismiss button? or what is happening / not happening.

/SK

Dingo14
07-13-2008, 11:25 AM
nothing shows on forumhome i have ticked user does not belong to user group (banned users) it just won't show tried everything with the options

skhms
07-13-2008, 12:27 PM
nothing shows on forumhome i have ticked user does not belong to user group (banned users) it just won't show tried everything with the options

ok, but the notices used to work? and still show when you disable this mod?
Or is it a general problem with notices that are not related to my mod?

Either way, I am still not sure what the problem could be but some messed up templates.

/SK

Dingo14
07-13-2008, 09:48 PM
no thats the problem it has not worked I have made a test notice made active but just will not show on forumhome, the actual box does not show I have seen this on another forum, I also tried this on a test board it doesn't show there either

Smitty
07-13-2008, 11:17 PM
Doesn't show up in my UserCP. I do have Icons for UserCP Navbar 1.2.2 (https://vborg.vbsupport.ru/showthread.php?t=170558) installed. I LOVE the idea. Options in the adminCP for what forums and/or what user groups to include/exclude would be interesting.

Did not find the phrase you entered in the instructions because of a couple of tabs in my USERCP_SHELL template, but it was obvious where the edit add needed to be.

skhms
07-14-2008, 08:27 AM
Doesn't show up in my UserCP. I do have Icons for UserCP Navbar 1.2.2 (https://vborg.vbsupport.ru/showthread.php?t=170558) installed. I LOVE the idea. Options in the adminCP for what forums and/or what user groups to include/exclude would be interesting.

Did not find the phrase you entered in the instructions because of a couple of tabs in my USERCP_SHELL template, but it was obvious where the edit add needed to be.
I took a look at the Icons for UserCP Navbar mod.

You need to edit the template USERCP_SHELL_ICONS instead.
Don't think you will have any problem finding a good spot for it.
Fixing a nice looking icon you will also have to do yourself :)

/SK

EagleNick
07-14-2008, 08:32 PM
Excellent!!! Great idea :D I have always thought that this should be a default option.

I also like the separator. I have been having to add a horizontal rule (<hr>) above and below each notice. Ugh.

Your mod is great :) :) :)

djr
07-14-2008, 11:51 PM
Nice job, should have been a vB default!

EagleNick
07-17-2008, 03:19 AM
Hmm.... It's not working.

There is no Dismiss button on Notices, nor is there anything new in the UserCP.

skhms
07-17-2008, 09:14 AM
Hmm.... It's not working.

There is no Dismiss button on Notices, nor is there anything new in the UserCP.
Sounds almost like it didn't install properly.
Hard to say anything without taking a look at your site.

You need to do a template edit to get the new 'Dismissed notices' options to show on the UserCP though.

/SK

M-Tuning
08-06-2008, 01:21 PM
Could it be possible to make the mod usergroup dependant?

So that only Premium members or moderators kan dismiss notices.

skhms
08-06-2008, 04:10 PM
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

M-Tuning
08-07-2008, 09:21 AM
Thank you.

skhms
08-09-2008, 12:17 PM
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

seanm07
08-09-2008, 02:41 PM
Is there a way to change the button text to hide rather than dismiss?

skhms
08-09-2008, 04:26 PM
Is there a way to change the button text to hide rather than dismiss?

Change the global phrase 'dismissnotice'.

/SK

seanm07
08-12-2008, 08:18 AM
Change the global phrase 'dismissnotice'.

/SK

Thanks

Spank
08-12-2008, 09:19 AM
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

skhms
08-12-2008, 02:42 PM
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

jonicoletta
08-24-2008, 07:11 PM
Thank you very much!! it is the hack that i was looking for.

ryancooper
09-22-2008, 01:24 AM
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!

inciarco
09-22-2008, 02:04 AM
Excellent Mod, Thank You Very Much For Sharing It. :up:

I noticed that even if the Option is set to Yes for the Usergroups, you should get into one of them (Admin for Example) and Save the Options One Time for the "Dismiss" Button to be Shown. Before doing that no Button were Displayed but after doing that Buttons Started to be Displayed.

My Best Regards.

:)

skhms
09-22-2008, 04:50 AM
I woul also like to see this have a option for each notice "is dismissible"

Other than that Great hack... Thanks!
Not very likely that I will take the time and do the file edits for this now.
It looked like that dismiss notices will be included in vBulletin 3.8.
Sorry.

Excellent Mod, Thank You Very Much For Sharing It. :up:

I noticed that even if the Option is set to Yes for the Usergroups, you should get into one of them (Admin for Example) and Save the Options One Time for the "Dismiss" Button to be Shown. Before doing that no Button were Displayed but after doing that Buttons Started to be Displayed.

My Best Regards.

:)
I couldn't confirm this.
When I install the product the button shows without going in to the usergroup manager and make a save.

/SK

kleinschwanz
09-23-2008, 12:33 PM
I was thinkin' about something like this just a few days ago =)

goiN' to give it a try - installed

rrr
11-14-2008, 04:38 PM
This mod is brilliant - I'm using it to give new members a step-by-step guide to setting up their new accounts. eg:

Step 1: Click here to upload your avatar - DISMISS
Step 2: Click here to complete your profile - DISMISS
Step 3: Click here to upload your first gallery - DISMISS

Hoorah!:up:
This mod is freakin great! Installed and its working perfectly. I was able to replace the submit button with a little red X/dismiss graphic to make it a bit prettier :)

@burlesque - can you explain a bit more how you use this mod as a step by step for new members? That sounds like a great idea. Do you setup different usergroups or base the notices on the number of posts (or some other criteria)

mikro1
01-20-2009, 08:23 PM
This mod doesn't work in Vb3.8 :(

SEW810
03-18-2009, 02:56 AM
Yeah, same here :( (vb 3.8)
Uninstalled

snif :'(

skhms
03-18-2009, 07:18 PM
This mod doesn't work in Vb3.8 :(

Yeah, same here :( (vb 3.8)
Uninstalled

snif :'(

Yeah, since the dismiss function is built-in now with vBulletin 3.8 this mod isn't very useful any more.

I did however released a mod with the undismiss part for vB 3.8
https://vborg.vbsupport.ru/showthread.php?t=199815

/SK