PDA

View Full Version : Mini Mods - [kerk] AJAX Check Notes


kotkerk
06-27-2012, 10:00 PM
AJAX Check Notes 2.0.0
When user receive a PM or other notification, in navbar appear small blinking icon and playing sound
Works without a page refresh
You can click on the icon to check notes manualy and click on loading icon to stop request

Notifications

unread PM count
picture comment notifications
picture comments awaiting approval
incoming friend requests
visitor message count
visitor message awaiting approval
group messages awaiting approval
requests social groups
invitations to join social groups


Install instructions in the archive
NOTE!: Original product in Russian language
archive contain English translation in the folder do_not_upload/Lang/EN
Instructions to install Eng. language also in the archive

Update 4.11.2013 v2.0.0
do not need to edit template
now window appear in left bottom corner of your browser (see screenshots)
update to version 2.x:

revert edits in template navbar
upload all files from archive to your server
import product
import Eng language from folder do_not_upload/Lang/En

tehPARADOX
08-13-2012, 10:33 PM
Thanks, tagged for future use.

3raq4all
08-14-2012, 04:57 AM
Thanks ....

Q-v-n-s-Q
08-16-2012, 02:42 AM
thanks,

bookmarked for latter use

ChiNa
10-07-2012, 11:55 PM
Not working on vB 3.8.6 and 3.8.7! The New PM icons are not visible! Not even when I put it in Theme Misc folder, or just the usualy Images/misc folder! No sound no notification at all..

kotkerk
10-12-2012, 01:53 PM
Not working on vB 3.8.6 and 3.8.7!
you're in the 3.8.x forum and i'm not promised that mod will work on vb 3.6
but on 3.8 works perfectly, this hack installed in many forums, check installation instructions

MaximG
10-20-2012, 09:17 PM
Спасибо, Kerk! :)

ismaili
10-24-2012, 07:03 AM
thanks

Xexiu
05-05-2013, 09:13 PM
Is there a way to set the default interval to 1 min.?

So when a new user registers, the interval is set to 1min automatically...

Do know if I explain myself. Thank you.

kotkerk
11-04-2013, 09:18 PM
Update - v2.0.0 - see first post
Now you can add your own notes to the notification window
Example
if you use Recent Thanks for [AJAX] Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?t=279907)
in file krchecknotes.php find:

if($vbulletin->userinfo['socgroupinvitecount'] > 0)
{
// invitations to join social groups
$totalnotes += $vbulletin->userinfo['socgroupinvitecount'];
$xml->add_tag('notifications', $vbphrase['invitations_to_join_social_groups'], array(
'link' => 'group.php?do=invitations',
'notescount' => $vbulletin->userinfo['socgroupinvitecount']
));
}

Add below:

if($vbulletin->userinfo['recent_thankcnt'] > 0)
{
$totalnotes += $vbulletin->userinfo['recent_thankcnt'];
$xml->add_tag('notifications', $vbphrase['recent_thanks_newnotif'], array(
'link' => 'recent_thanks.php',
'notescount' => $vbulletin->userinfo['recent_thankcnt']
));
}

Legend:
$totalnotes - total notes received
$vbphrase['recent_thanks_newnotif'] - phrase to show in notes window
'recent_thanks.php' - link to page (recent thanks page for this case)
$vbulletin->userinfo['recent_thankcnt'] - notification count received

chefy
12-10-2013, 08:03 PM
This is a very nice addon however it could be better. This is my feedback:
When you install this it's disabled by default in the user control panel. What's the point of installing this if it's going to be disabled by default for all users? You should change that behavior.
Also you should include a close icon button in the corner of the notification box ("X") so when you close the box then it doesn't appear anymore unless there is a new notification.
There should be an option (disabled by default) so members could choose if they want to hear the sound or not.
This mod appears to be looking for an image from images/misc/blinkpm.gif however that GIF isn't part of the stock vBulletin so maybe you should include the icon in your package?

dakotart.com
12-25-2013, 12:46 AM
Can't seem to get this puppy to work. I have the Live Thread installed and it's working perfect so I know the AJAX is capable.

I followed the instructions and used both the UTP-8 and Windows products (switching back and forth when testing) and could not get it to work correctly.