Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
New pm alert (a replacement for pm popup) Details »»
New pm alert (a replacement for pm popup)
Version: 1.00, by Brad Brad is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 01-07-2004 Last Update: Never Installs: 10
Re-useable Code Translations Is in Beta Stage  
No support by the author.

This hack will change the way pm pop works on your forums. Frist of all it will no longer be a pop up, instead the info is placed in a new table under the navbar. Also the avatar of the member that sent you the pm is displayed.

This is dirty but it works, if everything checks out in this beta release I will update the template to use phrases and post a new thread in the full release forum

Show Your Support

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

Comments
  #22  
Old 01-08-2004, 11:36 PM
apokphp apokphp is offline
 
Join Date: Nov 2002
Posts: 440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work for rc2? Doesn't seem to for some reason.
Reply With Quote
  #23  
Old 01-09-2004, 12:24 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, this was made for and works with RC 2
Reply With Quote
  #24  
Old 01-09-2004, 12:39 AM
apokphp apokphp is offline
 
Join Date: Nov 2002
Posts: 440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm only testing it by sending pm's to myself. Does it read self-sent pm's?
Reply With Quote
  #25  
Old 01-09-2004, 12:44 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by apokphp
I'm only testing it by sending pm's to myself. Does it read self-sent pm's?
Log into a test acount or have someone send you a pm, I had to get someone to send me about 20 test pm's to get this working
Reply With Quote
  #26  
Old 01-09-2004, 12:58 AM
apokphp apokphp is offline
 
Join Date: Nov 2002
Posts: 440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It worked. 3 requests/ideas though.

1) If someone hasn't selected an avatar, no graphic displays, perhaps there is a way to use a default graphic instead of nothing? This way brings attention to the pm.

2) Anyway to keep the notice there until the pm is read? If you leave the forum and come back, or if you refresh, or if you move around in the forum, the notice disappears, and you missed the pm notice.

3) What about adding a blinker to it? Or a blinking or highlighted text to alert the member a pm is waiting?
Reply With Quote
  #27  
Old 01-09-2004, 01:18 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by apokphp
It worked. 3 requests/ideas though.

1) If someone hasn't selected an avatar, no graphic displays, perhaps there is a way to use a default graphic instead of nothing? This way brings attention to the pm.

2) Anyway to keep the notice there until the pm is read? If you leave the forum and come back, or if you refresh, or if you move around in the forum, the notice disappears, and you missed the pm notice.

3) What about adding a blinker to it? Or a blinking or highlighted text to alert the member a pm is waiting?
1: Change:

PHP Code:
        if (empty($pm_avaurl))
        {
            
$showpm_ava false;
        }
        else
        {
            
$showpm_ava true;
        } 
To:

PHP Code:
        if (empty($pm_avaurl))
        {
            
$pm_avaurl 'path/to/default/avatar.gif';
            
$showpm_ava true;
        }
        else
        {
            
$showpm_ava true;
        } 
2: *code removed* will cause un-disired results, I will update the hack with a better version of this soon

3: you can do so by editing to pm_new_globals to your liking, I made this because I dis-liked the blink, but there is no reason why you can-not add it
Reply With Quote
  #28  
Old 01-09-2004, 01:38 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, if you want the pm alert to stay on top until the pm is viewed do this.

In global.php find:

PHP Code:
$DB_site->shutdown_query("UPDATE " TABLE_PREFIX "user SET pmpopup = 1 WHERE userid = $bbuserinfo[userid]"'pmpopup'); 
Remove it.

In the pm_new_globals template replace:

Code:
<a href="private.php?$session[sessionurl]">Click here to enter your private message area</a>
Replace with:

Code:
<a href="pmgateway.php?$session[sessionurl]">Click here to enter your private message area</a>
And upload the attached php file to your /forum directory
Reply With Quote
  #29  
Old 01-09-2004, 04:56 AM
apokphp apokphp is offline
 
Join Date: Nov 2002
Posts: 440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, that worked great! Thanks.

And if you don't mind (hehe), if I wanted to, what about just having a default image for ALL notices of a pm? Instead of having it be the sender's avatar...what would it be if I wanted a graphic to display in its place, for all members who get a pm. Not sure if I would do this, but it seems like it may come in handy.
Reply With Quote
  #30  
Old 01-09-2004, 05:08 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Remove:

PHP Code:
        require_once('./includes/functions_user.php');
        
$pm_avaurl fetch_avatar_url($newpm['fromuserid']);

        if (empty(
$pm_avaurl))
        {
            
$showpm_ava false;
        }
        else
        {
            
$showpm_ava true;
        } 
Then in the template find:

PHP Code:
$pm_avaurl 
And replace it with the image you want to show, also find:

Code:
<if condition="$showpm_ava">
	<td class="alt1" width="100%">
			<div class="smallfont"><img src="$pm_avaurl" alt="$newpm[username]'s avatar" border="0" /></div>
		</td>	</if>
Replace with:

Code:
<td class="alt1" width="100%">
			<div class="smallfont"><img src="$pm_avaurl" alt="$newpm[username]'s avatar" border="0" /></div>
		</td>
Reply With Quote
  #31  
Old 01-09-2004, 05:33 AM
apokphp apokphp is offline
 
Join Date: Nov 2002
Posts: 440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice, thanks. As I expected, it was a little more than I had thought. I needed the help.
Reply With Quote
Reply


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 01:35 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.04804 seconds
  • Memory Usage 2,319KB
  • Queries Executed 27 (?)
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
  • (4)bbcode_code
  • (5)bbcode_php
  • (2)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
  • (3)pagenav_pagelink
  • (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_postinfo_query
  • fetch_postinfo
  • 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