Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Details »»

Version: , by Admin (Coder) Admin is offline
Developer Last Online: Nov 2024 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 11-09-2001 Last Update: Never Installs: 281
 
No support by the author.

This is a very simple hack, yet I kinda like it.
Don't you just hate it when you write a long PM to someone, send it, and he doesn't even notice it?!

NO MORE!

Install this very easy hack and no one will be able to ignore the PM again.

This is almost just a template hack, but since it does involve editing a file and adding 4 lines of PHP code, it qualifies as a hack.
Sue me.

Anyway, what does this hack do?
Whenever you come to the forum main page, and you have any unread messages (even if they aren't new), the category strip that says "Private Messages" will blink.
Simple, but effective.

To see a demo of this, just send yourself a PM and see what happens. I'm sure you'll like it.

Installing this will take you 2 minutes if not less, it's very very simple.
I also don't expect too many support requests.

Anyway, have fun!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 11-11-2001, 02:08 PM
Joshs Joshs is offline
 
Join Date: Oct 2001
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a blinking and a nonblinking image. How could I use this hack to have it display the blinking image when their is new PM, and the nonblinking one when there isnt any?

Basically I want it to look like this (and have the image and text link to the PM box):

No new PM-
[nonblinking image] no new message(s).
New PM-
[blinking image] (# of new messages (in bold)) new message(s).
Reply With Quote
  #23  
Old 11-11-2001, 03:01 PM
xug xug is offline
 
Join Date: Oct 2001
Location: The Grand Strand, SC
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed it in my vb2.2.0 and it doesn't work !

My Windows Internet Explorer gives me even an error in the command line "Done, but with errors on page" !!

Is this the javascript problem as it is with many other hacks that uses javascript.
Reply With Quote
  #24  
Old 11-11-2001, 03:06 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

xug, what is the error you are getting?

Joshs, instead of this:
Code:
  if ($unreadpm['messages']==0) {
    $pmblink='//';
  } else {
    $pmblink='';
  }
use this:
Code:
  if ($unreadpm['messages']==0) {
    $pmblinkimage='PATH TO NON BLINK';
  } else {
    $pmblinkimage='PATH TO BLINK';
  }
then use $pmblinkimage in the src="xxx" of the <img>.
Reply With Quote
  #25  
Old 11-11-2001, 03:29 PM
xug xug is offline
 
Join Date: Oct 2001
Location: The Grand Strand, SC
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The error I wrote in my previous post ! no further details than that !
Reply With Quote
  #26  
Old 11-11-2001, 04:32 PM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Xug, when IE tells you there is an error on the page, click the little message that tells you there's an error. The little yellow exclamation point that appears in the status bar, lower left hand corner? Next to the message that there's an error on the page? Double click it. Copy the contents of what it then tells you, and paste it here.
Reply With Quote
  #27  
Old 11-11-2001, 04:46 PM
cyrus's Avatar
cyrus cyrus is offline
 
Join Date: Oct 2001
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

was very happily installing it, but it ended up not working I tried synx's fix but that didnt help . It just doesnt blink ... and yes, I DID send a pm to myself if ur wondering if i have a new pm or not

any ideas ?
Reply With Quote
  #28  
Old 11-11-2001, 04:46 PM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by FireFly
Thanks everyone.

JJR512, you can do something like this.
After this: (in the Javascript)
Code:
$pmblink pmBox.bgColor='xxxxxxx';
add this:
Code:
$pmblink pmBox.backGround='';
I *think* it will work, although I'm not sure.
Sorry, it didn't work.
Reply With Quote
  #29  
Old 11-11-2001, 05:26 PM
xug xug is offline
 
Join Date: Oct 2001
Location: The Grand Strand, SC
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok here is the error !

(Sorry, I didn't knew about this option to see the error)

line : 958
char : 2
error : 'pmBox' is undefined
code : 0
url : http://www.xboxusersgroup.com/forum/index.php?s=
Reply With Quote
  #30  
Old 11-11-2001, 05:43 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
/======================================\
| In the template forumhome_pmloggedin |
| find this:                           |
\======================================/
bgcolor="{categorybackcolor}"

/======================================\
| Before that, add this code:          |
\======================================/
id="pmBox"
Looks like you haven't done this.
Reply With Quote
  #31  
Old 11-11-2001, 05:54 PM
xug xug is offline
 
Join Date: Oct 2001
Location: The Grand Strand, SC
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had put it on the wrong spot

first here : id="pmBox" <td bgcolor="{categorybackcolor}"

changed to : <td id="pmBox" bgcolor="{categorybackcolor}"


Thanks, it works now !
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:55 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04992 seconds
  • Memory Usage 2,303KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete