The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
![]() |
|||||||||||||||||||||||||||||||
Hi guys,
This mod/hack started off as a PM notification but after some requests i've extended it for all notifications and thrown in some jQuery just to make things smooth and look good ![]() Anyway on to the mod itself, when a user recieves a notification a red bar will show at the top of the forum telling the user they have a notification and there is a clickable link which will extend the red box using jQuery giving the user links to specific notifications. 2 Demo gif's i've made here to help people understand, the actual jQuery animation isn't shown in the gif's but i've made it clear what it does, DEMO 1 - Notification Alert (Extension Closed) DEMO 2 - Notification Alert (Extension Open) (Ignore the image movement, just an un-even cut lol) =|= Install =|= - Download and unzip attached file. - Upload contents of the UPLOAD folder to the forum root. Open Template - header Add at Top - Code:
<!-- Notification Alert --> <style type="text/css"> .alert { background-color:#F00; width:100%; height:30px; color:#fff; font-size:14px; display:block; } .alert p { padding:5px; } .alert a { color:#ccc; text-decoration:none; } .alert a:hover { color:#fff; text-decoration:underline; } #slidealert { display: none; height:auto; padding-bottom:5px; background-color: #F00; } #slidealert a { text-decoration:none; color:#CCC; padding:5px; } #slidealert a:hover { text-decoration:underline; color:#fff; } </style> <script src="jquery.js" type="text/javascript"></script> <script type="text/javascript"> //<![CDATA[ function ShowHide(){ $("#slidealert").animate({"height": "toggle"}, { duration: 1000 }); } //]]> </script> <vb:if condition="$notifications_total"> <div class="alert"> <p><span style="text-decoration:blink; font-weight:bold;">ATTENTION! {vb:raw bbuserinfo.username}</span> You've got {vb:raw notifications_total} new notification(s), click <a onclick="ShowHide(); return false;" href="#">here</a> to view.</div><div id="slidealert">{vb:raw notifications_menubits}<a onclick="ShowHide(); return false;" href="#">Close</a></div></p> </vb:if> <!-- Notification Alert End --> Enjoy! And remember to mark as installed for future updates and support! Boydy Download Now
Screenshots
Show Your Support
|
Благодарность от: | ||
mohammadxxx |
Comments |
#12
|
|||
|
|||
![]() Quote:
![]() Just small information, part of notification that is blinking its not working with IE 8 Not problem for me tho as I "hate" IE and most of my users don't use it Great mod, rated and nominated Keep up the good work, cant wait some more from you ....cheers |
#13
|
||||
|
||||
![]()
Yeh i realised IE may cause problems because it is without doubt the worst browser on the planet. I'll look into that though and thanks for the comments.
|
#14
|
|||
|
|||
![]() Quote:
![]() |
#15
|
||||
|
||||
![]()
Can you show a printscreen of what you mean?
|
#16
|
|||
|
|||
![]()
Think that from start we did not understand each others, I was not thinking about drop down or... just pop up window which notifies member about new pm, this is presented to a user just once and even if he don't check message when next time he logs in it will not be there (if no new pm's)
I know that this is not part of this mod, but together with this mod default pop up window is unnecessary |
#17
|
||||
|
||||
![]()
Ah ok I understand now, is that a default setting within bulletin as I have a clean test install of vbulletin 4.1.3 and I don't get that popup :s . I'm not available tonight but I will get straight on it tomorrow at some point.
Cheers. |
#18
|
|||
|
|||
![]()
I have VB 4.1.3 also, but pop ups are there (you see only once pop up per message)
Will check my settings and at vb.com, maybe its cause of some settings, there is 1000 settings withing VB and maybe I am missing something. Thanks |
#19
|
||||
|
||||
![]()
Goxy, i've had a look around my templates, if you cannot find the setting then try the following:
Open template - Private Message Templates -> pm_popup_script Delete content of template and save. Like i said i think it must be an option as i don't get it at all. |
#20
|
|||
|
|||
![]()
Hi again
Well I found how to take care about mentioned problem with pop up message, it was in VB options AdminCP > Settings > Options > User Registration Options > Default Registration Options and AdminCP > Maintenance > Execute SQL Query ...and select the 'No - Pop up a Notification Box When a Private Message is Received' from the dropdown and press 'Continue'. As VB support suggested and it worked for me But then another problem was found, with your notification code I had problem with "Radio and TV Player 4.x"mod which is one of my favourite Problem was that within radio and station pages I could not choose any stations or whatever, think its releted to JS....but its beyond me how to resolve that I love your way of notification but with jQuery its making trouble for mods like one I mentioned Thanks |
#21
|
|||
|
|||
![]()
Installed thx
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|