vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Jitter PM Alert Hack (https://vborg.vbsupport.ru/showthread.php?t=47555)

DrkFusion 01-10-2003 01:19 AM

Installed

/me licks install as well

Logician 01-10-2003 09:21 AM

nice one :)

Dean C 01-10-2003 05:57 PM

This looks nice John :) Good work

- miSt

Chris M 01-10-2003 09:27 PM

[high]* Chris M licks install:p
[/high]

Cool hack:)

Satan

John 01-10-2003 09:31 PM

lol, thanks everyone - this hack only took me 20 minutes, it's nothing compared to the beast of a hack I'm working on at the moment. (vBmail - with Chen's permission, of course)

Mithan 01-11-2003 08:29 PM

What I would like to see, is a hack that adds, in brackets () next to Private Messages, the number of PM's you have, when you get them, then goes away or clears after you reply to them. This would be very effective.

John 01-11-2003 08:43 PM

Quote:

Originally posted by Mithan
What I would like to see, is a hack that adds, in brackets () next to Private Messages, the number of PM's you have, when you get them, then goes away or clears after you reply to them. This would be very effective.
This is easy - if you've already installed the hack, simply open index.php and:

FIND:
Code:

  $privtext = "<span id=\"jiggle0\" class=\"jc\">Private Messages</span>";
REPLACE WITH:
Code:

  $privtext = "<span id=\"jiggle0\" class=\"jc\">Private Messages</span> ($unreadpm[messages])";
This will add the number of unread PMs you have next to "Private Messages" in brackets. However, the number of PMs will NOT jiggle!

To make the number of PMs jiggle along with "Private Messages":

FIND:
Code:

  $privtext = "<span id=\"jiggle0\" class=\"jc\">Private Messages</span>";
REPLACE WITH:
Code:

  $privtext = "<span id=\"jiggle0\" class=\"jc\">Private Messages ($unreadpm[messages])</span>";

empreur76 01-12-2003 10:25 AM

thanks for this hack but dont work for me !!
i think i have already this hack install ! (play a sound ) but i'm not sure !
in index .php i have this
//new PM sound hack
if ($unreadpm['messages']==0) {
$sound='';
} else {
$sound='<embed src="message.wav" autostart="true" hidden="true">';
}
//end new PM sound hack

can you help me !? i'm install the hack but not trembling

thank you !

Mithan 01-12-2003 12:59 PM

Yes, but I was just hoping to show Private Messages (X) at the top, without the giggle. I tried your code, editing the CSS span line out, but that didn't work. I guess I will leave it.

Thanks anyways :)


All times are GMT. The time now is 07:01 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.01211 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete