PDA

View Full Version : Add-On Releases - Undismiss Notices


skhms
12-25-2008, 10:00 PM
SK Undismiss Notices v1.0.1

Updated to v1.0.1 - 2009.01.21

This is pretty much a vBulletin 3.8 version of the Dismiss / Hide Notices (https://vborg.vbsupport.ru/showthread.php?t=184744) mod.
Since the dismiss function is now included in vBulletin this mod only includes the show/undismiss part.

Features:

Lets the user see their dismissed notices and can also undismiss them.
All from the User control panel.
Adds a separator if more than one notices are shown at once.


Installation
Import product, edit 1 template.
See instructions in the attached zip file.

/SK

skhms
12-26-2008, 10:26 AM
Version history:

v1.0.1 - 2009-01-21
- Fixed missing template in xml file.

v1.0.0 - 2008-12-26
- First release.

/SK

Lizard King
12-26-2008, 11:13 AM
If you consider suggestions you can add the following options.

1. Admins should able to choose a time frame to auto undismiss , dismissed notices.
2. Admins should be able to globally undismiss all users dismissed notices.

It is really a needed modification as the current implemented system is half done.

mikro1
01-20-2009, 08:37 PM
Don't work correctly, Don't put the dismissed notices in their site, and no add a "undismiss notice buttom" at side of the notices box.

skhms
01-20-2009, 10:05 PM
Don't work correctly, Don't put the dismissed notices in their site, and no add a "undismiss notice buttom" at side of the notices box.
You're right.
I haven't had a chance to test it on 3.8 Gold before but I just did a quick test and it sure seems that something has changed that effect this mod.

Will take a look at it asap. Has changed the supported version to 3.8 RC2 which I guess it should have said from the beginning.

/SK

mikro1
01-21-2009, 08:45 AM
Please notice to me when the mod is working correctly, i think it's a very good system.

skhms
01-21-2009, 05:54 PM
Now updated to v1.0.1

It was actually an embarrassing misstake in the original xml product file.
A template was missing. :o

Sorry for that.

Just download the new version and import it.
Remember to click 'Yes' on 'Allow Overwrite' if you already have the old version installed.

/SK

mikro1
01-21-2009, 10:22 PM
Works correctly now!!! good job!!!. can you add for the next version the option to hide notices and show, in a box just in the original position.

Mark.B
02-01-2009, 03:22 PM
Works perfectly and very useful, thanks.

eXoOutsider
04-18-2009, 01:33 AM
All right I have a question with this. When you go to undismiss the notice, it shows the whole image that i have the notice in, and it runs of the side of my template? any way to fix?

Here is what I mean'

http://img6.imageshack.us/img6/9709/showelq.jpg

skhms
04-18-2009, 08:03 AM
All right I have a question with this. When you go to undismiss the notice, it shows the whole image that i have the notice in, and it runs of the side of my template? any way to fix?

Here is what I mean'

http://img6.imageshack.us/img6/9709/showelq.jpg

I'm not sure how to fix this.
The html code in the notice is of course the same as it is when the notice is active.

Perhaps you can do something with the css overflow property or clip property maybe.
Unfortunetely it's not really my area of expertise... :(
The template to edit should be Modify User Option -> modifydismissednotices_bit.

/SK

Oblivion Knight
06-22-2009, 09:33 AM
Uncached template in User CP:
usercp_shell_modifydismissednotices

skhms
06-22-2009, 08:49 PM
Uncached template in User CP:
usercp_shell_modifydismissednotices

hmm, this is a bit strange.
That template doesn't show up as uncached for me when I run in debug mode.
I also cache the template 'modifydismissednotices_bit' at the same time, so it should also be uncached.

Funny thing is that I cache the templates with the same method as v3 arcade does for its usersettings. And that template is shown as uncached for me, never noticed that before.
So I guess there is something with this method that isn't working 100%.

Must take a closer look at this.

Edit. Never mind that.
v3 Arcade has missed to change the template name since they renamed every template in their upcoming release. (Should mention that to Kevin).

Not sure why 'modifydismissednotices' would be uncached for you though.

/SK

Oblivion Knight
06-23-2009, 10:05 AM
I actually downloaded this from sk-software.com, and not here..

Don't know if that helps at all, I may have an older file or something? I'll look into it some more.

Hornstar
07-07-2009, 02:00 AM
this is the best part:

Adds a separator if more than one notices are shown at once.It looks so ugly with it lol

Hornstar
07-07-2009, 02:10 AM
If you consider suggestions you can add the following options.

1. Admins should able to choose a time frame to auto undismiss , dismissed notices.
2. Admins should be able to globally undismiss all users dismissed notices.

It is really a needed modification as the current implemented system is half done.

For 2. You can click the notice that you want to undismiss for all users and set it to not dismissible, and then set it back to dismissible and it will work.

s-p0k
11-02-2009, 08:47 PM
$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $pagetitle</title>
</head>
<body$onload>
$header
$navbar

<!-- table to support left column nav -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr valign="top">
<td>

<!-- usercp nav -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0">
<tbody>
<tr><td class="tcat" nowrap="nowrap"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_control_panel]</a></td></tr>
<tr><td class="thead"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[your_profile]</a></td></tr>
<tr><td class="$navclass[profile]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_your_details]</a></td></tr>
<if condition="$show['customizelink']">
<tr><td class="$navclass[customize]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=customize">$vbphrase[customize_profile]</a></td></tr>
</if>
<if condition="$show['privacylink']">
<tr><td class="$navclass[privacy]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=privacy">$vbphrase[profile_privacy]</a></td></tr>
</if>
<if condition="$show['profilepiclink']">
<tr><td class="$navclass[profilepic]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editprofilepic">$vbphrase[edit_profile_picture]</a></td></tr>
</if>
<tr><td class="thead">$vbphrase[networking]</td></tr>
<tr><td class="$navclass[buddylist]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=buddylist"><if condition="$show['friends_and_contacts']">$vbphrase[contacts_and_friends]<else />$vbphrase[contacts]</if></a></td></tr>
<if condition="$show['socialgroupslink']">
<tr><td class="$navclass[socialgroups]" nowrap="nowrap"><a class="smallfont" href="group.php$session[sessionurl_q]">$vbphrase[social_groups]</a></td></tr>
</if>
<if condition="$show['publicgroups']">
<tr><td class="$navclass[usergroups]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editusergroups">$vbphrase[group_memberships]</a></td></tr>
</if>
<if condition="$show['albumlink']">
<tr><td class="$navclass[album]" nowrap="nowrap"><a class="smallfont" href="album.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[pictures_and_albums]</a></td></tr>
</if>
<tr><td class="thead">$vbphrase[settings_and_options]</td></tr>
<if condition="$show['avatarlink']">
<tr><td class="$navclass[avatar]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr>
</if>
<if condition="$show['siglink']">
<tr><td class="$navclass[signature]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr>
</if>
<tr><td class="$navclass[password]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editpassword">$vbphrase[edit_email_and_password]</a></td></tr>
<tr><td class="$navclass[options]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>
<tr><td class="$navclass[ignorelist]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=ignorelist">$vbphrase[edit_ignore_list]</a></td></tr>
<if condition="$show['pmmainlink']">
<tr>
<td class="thead" nowrap="nowrap">
<span id="nav_pmfolders">$vbphrase[private_messages] <if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("nav_pmfolders"); </script></if></span>
<if condition="$show['popups']">
<div class="vbmenu_popup" id="nav_pmfolders_menu" style="display:<if condition="$show['popups']">none<else />block</if>">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead" nowrap="nowrap">$vbphrase[folders]</td>
</tr>
$cpnav[pmfolders]
</table>
</div>
</if>
</td>
</tr>
<tr><td class="$navclass[pm_messagelist]" nowrap="nowrap"><a class="smallfont" href="private.php$session[sessionurl_q]">$vbphrase[list_messages]</a></td></tr>
<if condition="$show['pmsendlink']">
<tr><td class="$navclass[pm_newpm]" nowrap="nowrap"><a class="smallfont" href="private.php?$session[sessionurl]do=newpm">$vbphrase[send_new_message]</a></td></tr>
</if>
<if condition="$show['pmtracklink']">
<tr><td class="$navclass[pm_trackpm]" nowrap="nowrap"><a class="smallfont" href="private.php?$session[sessionurl]do=trackpm">$vbphrase[track_messages]</a></td></tr>
</if>
<tr><td class="$navclass[pm_editfolders]" nowrap="nowrap"><a class="smallfont" href="private.php?$session[sessionurl]do=editfolders">$vbphrase[edit_folders]</a></td></tr>
</if>
<tr>
<td class="thead" nowrap="nowrap">
<span id="nav_subsfolders">$vbphrase[subscribed_threads] <if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("nav_subsfolders"); </script></if></span>
<if condition="$show['popups']">
<div class="vbmenu_popup" id="nav_subsfolders_menu" style="display:<if condition="$show['popups']">none<else />block</if>">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead" nowrap="nowrap">$vbphrase[folders]</td>
</tr>
$cpnav[subsfolders]
</table>
</div>
</if>
</td>
</tr>
<tr><td class="$navclass[substhreads_listthreads]" nowrap="nowrap"><a class="smallfont" href="subscription.php?$session[sessionurl]do=viewsubscription">$vbphrase[list_subscriptions]</a></td></tr>
<tr><td class="$navclass[substhreads_editfolders]" nowrap="nowrap"><a class="smallfont" href="subscription.php?$session[sessionurl]do=editfolders">$vbphrase[edit_folders]</a></td></tr>
</tbody>
<if condition="$show['moderation']">
<tbody id="nav_moderation">
<if condition="$show['deleteditems']">
<tr><td class="thead">$vbphrase[deleted_items]</td></tr>
<tr><td class="$navclass[deletedthreads]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewthreads&amp;type=deleted">$vbphrase[threads]</a></td></tr>
<tr><td class="$navclass[deletedposts]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewposts&amp;type=deleted">$vbphrase[posts]</a></td></tr>
<if condition="$show['deletedvms']"><tr><td class="$navclass[deletedvms]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewvms&amp;type=deleted">$vbphrase[visitor_messages]</a></td></tr></if>
<if condition="$show['deletedgms']"><tr><td class="$navclass[deletedgms]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewgms&amp;type=deleted">$vbphrase[group_messages]</a></td></tr></if>
<if condition="$show['deleteddiscussions']"><tr><td class="$navclass[deleteddiscussions]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewdiscussions&amp;type=deleted">$vbphrase[group_discussions]</a></td></tr></if>
<if condition="$show['deletedpcs']"><tr><td class="$navclass[deletedpcs]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewpcs&amp;type=deleted">$vbphrase[picture_comments]</a></td></tr></if>
</if>

<if condition="$show['moderateditems']">
<tr><td class="thead">$vbphrase[moderated_items]</td></tr>
<if condition="$show['moderatedposts']">
<tr><td class="$navclass[moderatedthreads]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewthreads&amp;type=moderated">$vbphrase[threads]</a></td></tr>
<tr><td class="$navclass[moderatedposts]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewposts&amp;type=moderated">$vbphrase[posts]</a></td></tr>
</if>
<if condition="$show['moderatedvms']">
<tr><td class="$navclass[moderatedvms]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewvms&amp;type=moderated">$vbphrase[visitor_messages]</a></td></tr>
</if>
<if condition="$show['moderatedgms']">
<tr><td class="$navclass[moderatedgms]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewgms&amp;type=moderated">$vbphrase[group_messages]</a></td></tr>
</if>
<if condition="$show['moderateddiscussions']">
<tr><td class="$navclass[moderateddiscussions]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewdiscussions&amp;type=moderated">$vbphrase[group_discussions]</a></td></tr>
</if>
<if condition="$show['moderatedpcs']">
<tr><td class="$navclass[moderatedpcs]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewpcs&amp;type=moderated">$vbphrase[picture_comments]</a></td></tr>
</if>
<if condition="$show['moderatedpics']">
<tr><td class="$navclass[moderatedpics]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewpics">$vbphrase[album_pictures]</a></td></tr>
</if>
</if>

<if condition="$show['newitems']">
<tr><td class="thead">$vbphrase[new_items]</td></tr>
<if condition="$show['newvms']">
<tr><td class="$navclass[newvms]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewvms&amp;type=new">$vbphrase[visitor_messages]</a></td></tr>
</if>
<if condition="$show['newgms']">
<tr><td class="$navclass[newgms]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewgms&amp;type=new">$vbphrase[group_messages]</a></td></tr>
</if>
<if condition="$show['newdiscussions']">
<tr><td class="$navclass[newdiscussions]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewdiscussions&amp;type=new">$vbphrase[group_discussions]</a></td></tr>
</if>
<if condition="$show['newpcs']">
<tr><td class="$navclass[newpcs]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewpcs&amp;type=new">$vbphrase[picture_comments]</a></td></tr>
</if>
<if condition="$show['newpics']">
<tr><td class="$navclass[newpics]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewpics&amp;type=new">$vbphrase[album_pictures]</a></td></tr>
</if>
</if>
</tbody>
</if>

<if condition="$show['popups'] AND $show['moderation']">
<tbody id="nav_moderation_popups" style="display:none">
<tr><td class="thead">$vbphrase[moderation]</td></tr>
<if condition="$show['deleteditems']"><tr><td class="$navclass[deleteditems]" nowrap="nowrap"><span class="smallfont" id="nav_deleteditems"><a href="javascript://">$vbphrase[deleted_items]</a> </span></td></tr></if>
<if condition="$show['moderateditems']"><tr><td class="$navclass[moderateditems]" nowrap="nowrap"><span class="smallfont" id="nav_moderateditems"><a href="javascript://">$vbphrase[moderated_items]</a> </span></td></tr></if>
<if condition="$show['newitems']"><tr><td class="$navclass[newitems]" nowrap="nowrap"><span class="smallfont" id="nav_newitems"><a href="javascript://">$vbphrase[new_items]</a> </span></td></tr></if>
</tbody>
</if>
<tbody>
<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
<tr><td class="$navclass[event_reminders]" nowrap="nowrap"><a class="smallfont" href="calendar.php?$session[sessionurl]do=viewreminder">$vbphrase[event_reminders]</a></td></tr>
<if condition="$show['paidsubscriptions']">
<tr><td class="$navclass[paid_subscriptions]" nowrap="nowrap"><a class="smallfont" href="payments.php$session[sessionurl_q]">$vbphrase[paid_subscriptions]</a></td></tr>
</if>
<if condition="$show['attachments']">
<tr><td class="$navclass[attachments]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editattachments">$vbphrase[attachments]</a></td></tr>
</if>
</tbody>
$template_hook[usercp_navbar_bottom]
</table>
<!-- / usercp nav -->

<if condition="$show['popups'] AND $show['moderation']">
<!-- moderation popups -->
<if condition="$show['deleteditems']">
<div class="vbmenu_popup" id="nav_deleteditems_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead" nowrap="nowrap">$vbphrase[deleted_items]</td></tr>
<if condition="$show['deletedposts']">
<tr><td class="vbmenu_option"><a href="moderation.php?$session[sessionurl]do=viewthreads&amp;type=deleted">$vbphrase[threads]</a></td></tr>
<tr><td class="vbmenu_option"><a href="moderation.php?$session[sessionurl]do=viewposts&amp;type=deleted">$vbphrase[posts]</a></td></tr>
</if>
<if condition="$show['deletedvms']"><tr><td class="vbmenu_option"><a href="moderation.php?$session[sessionurl]do=viewvms&amp;type=deleted">$vbphrase[visitor_messages]</a></td></tr></if>
<if condition="$show['deletedgms']"><tr><td class="vbmenu_option"><a href="moderation.php?$session[sessionurl]do=viewgms&amp;type=deleted">$vbphrase[group_messages]</a></td></tr></if>
<if condition="$show['deleteddiscussions']"><tr><td class="vbmenu_option"><a href="moderation.php?$session[sessionurl]do=viewdiscussions&amp;type=deleted">$vbphrase[group_discussions]</a></td></tr></if>
<if condition="$show['deletedpcs']"><tr><td class="vbmenu_option"><a href="moderation.php?$session[sessionurl]do=viewpcs&amp;type=deleted">$vbphrase[picture_comments]</a></td></tr></if>

</table>
</div>
<script type="text/javascript"> vbmenu_register("nav_deleteditems"); </script>
</if>

<if condition="$show['moderateditems']">
<div class="vbmenu_popup" id="nav_moderateditems_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead" nowrap="nowrap">$vbphrase[moderated_items]</td></tr>
<if condition="$show['moderatedposts']">
<tr><td class="vbmenu_option"><a href="moderation.php?$session[sessionurl]do=viewthreads&amp;type=moderated">$vbphrase[threads]</a></td></tr>
<tr><td class="vbmenu_option"><a href="moderation.php?$session[sessionurl]do=viewposts&amp;type=moderated">$vbphrase[posts]</a></td></tr>
</if>
<if condition="$show['moderatedvms']"><tr><td class="vbmenu_option"><a href="moderation.php?$session[sessionurl]do=viewvms&amp;type=moderated">$vbphrase[visitor_messages]</a></td></tr></if>
<if condition="$show['moderatedgms']"><tr><td class="vbmenu_option"><a href="moderation.php?$session[sessionurl]do=viewgms&amp;type=moderated">$vbphrase[group_messages]</a></td></tr></if>
<if condition="$show['moderateddiscussions']"><tr><td class="vbmenu_option"><a href="moderation.php?$session[sessionurl]do=viewdiscussions&amp;type=moderated">$vbphrase[group_discussions]</a></td></tr></if>
<if condition="$show['moderatedpcs']"><tr><td class="vbmenu_option"><a href="moderation.php?$session[sessionurl]do=viewpcs&amp;type=moderated">$vbphrase[picture_comments]</a></td></tr></if>
<if condition="$show['moderatedpics']"><tr><td class="vbmenu_option"><a href="moderation.php?$session[sessionurl]do=viewpics">$vbphrase[album_pictures]</a></td></tr></if>

</table>
</div>
<script type="text/javascript"> vbmenu_register("nav_moderateditems"); </script>
</if>

<if condition="$show['newitems']">
<div class="vbmenu_popup" id="nav_newitems_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead" nowrap="nowrap">$vbphrase[new_items]</td></tr>
<if condition="$show['newvms']"><tr><td class="vbmenu_option"><a href="moderation.php?$session[sessionurl]do=viewvms&amp;type=new">$vbphrase[visitor_messages]</a></td></tr></if>
<if condition="$show['newgms']"><tr><td class="vbmenu_option"><a href="moderation.php?$session[sessionurl]do=viewgms&amp;type=new">$vbphrase[group_messages]</a></td></tr></if>
<if condition="$show['newdiscussions']"><tr><td class="vbmenu_option"><a href="moderation.php?$session[sessionurl]do=viewdiscussions&amp;type=new">$vbphrase[group_discussions]</a></td></tr></if>
<if condition="$show['newpcs']"><tr><td class="vbmenu_option"><a href="moderation.php?$session[sessionurl]do=viewpcs&amp;type=new">$vbphrase[picture_comments]</a></td></tr></if>
<if condition="$show['newpics']"><tr><td class="vbmenu_option"><a href="moderation.php?$session[sessionurl]do=viewpics&amp;type=new">$vbphrase[album_pictures]</a></td></tr></if>

</table>
</div>
<script type="text/javascript"> vbmenu_register("nav_newitems"); </script>
</if>

<script type="text/javascript">
<!--
fetch_object('nav_moderation_popups').style.displa y = '';
fetch_object('nav_moderation').style.display = 'none';
-->
</script>
<!-- / moderation popups -->
</if>

</td>
<td>&nbsp;&nbsp;</td>
<td width="100%">

<!-- main page contents -->
$HTML
<!-- / main page contents -->

</td>
</tr>
</table>
<!-- / table to support left column nav -->
$footer
</body>
</html>

can't find where to put this any help

prologe60
05-03-2010, 02:49 PM
Is a good mod

Thank you :)

khurtsiya
05-04-2011, 03:32 PM
this is the best part:

Adds a separator if more than one notices are shown at once.It looks so ugly with it lol

not at all

thanks for great mod!