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
  #12  
Old 01-08-2004, 04:05 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have fixed the problems with avatars, if you have already installed this hack replace the block in global.php with this:

PHP Code:
// #############################################################################
// get new private message alert - hack
$newpmmsg 0;
$shownewpm false;
if (
$vboptions['checknewpm'] AND $bbuserinfo['userid'] AND $bbuserinfo['pmpopup'] == 2)
{
    
$DB_site->shutdown_query("UPDATE " TABLE_PREFIX "user SET pmpopup = 1 WHERE userid = $bbuserinfo[userid]"'pmpopup');
    if (
THIS_SCRIPT != 'private')
    {
        
$newpmmsg 1;
        
$newpm $DB_site->query_first("
            SELECT pmtext.title, fromusername, fromuserid
            FROM " 
TABLE_PREFIX "pmtext AS pmtext
            LEFT JOIN " 
TABLE_PREFIX "pm AS pm USING(pmtextid)
            WHERE pm.userid = 
$bbuserinfo[userid]
            ORDER BY pmtext.dateline DESC
            LIMIT 1
        "
);

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

        if (empty(
$pm_avaurl))
        {
            
$showpm_ava false;
        }
        else
        {
            
$showpm_ava true;
        }
        
// end hack - new pm notifacation    
        
$newpm['username'] = unhtmlspecialchars($newpm['fromusername'], true);
        
$newpm['title'] = unhtmlspecialchars($newpm['title'], true);
        
$shownewpm true;
        
    }

Reply With Quote
  #13  
Old 01-08-2004, 04:08 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by albibak
Little remark :

If you have the welcome panel installed, a modification will be do :

Find in the .txt installation file

PHP Code:
---------------------
Open templatenavbar
---------------------

At the very end of the template add:

<
br />
$newpm 
and replace by :

PHP Code:
---------------------
Open templateforumhome
---------------------

add below [$welcome_panel], :

<
br />
$newpm 
That template modification can cause some un-desired effects because this is ment to function on the global scale, to make it only show on index.php replace:

PHP Code:
if (THIS_SCRIPT != 'private'
With:

PHP Code:
if (THIS_SCRIPT != 'private' AND THIS_SCRIPT == 'index'
Reply With Quote
  #14  
Old 01-08-2004, 04:18 PM
albibak's Avatar
albibak albibak is offline
 
Join Date: Feb 2003
Location: Paris (France)
Posts: 302
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Only for people who has the welcome panel allright ?
Reply With Quote
  #15  
Old 01-08-2004, 04:21 PM
albibak's Avatar
albibak albibak is offline
 
Join Date: Feb 2003
Location: Paris (France)
Posts: 302
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Problems with ' and avatars are solved.
Thx
Reply With Quote
  #16  
Old 01-08-2004, 04:22 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by albibak
Only for people who has the welcome panel allright ?
Yes. Or any other modification to this hack that removes it from a global template.
Reply With Quote
  #17  
Old 01-08-2004, 04:26 PM
albibak's Avatar
albibak albibak is offline
 
Join Date: Feb 2003
Location: Paris (France)
Posts: 302
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm glad to contribute to improve this hack, because I think it's a good hack
Reply With Quote
  #18  
Old 01-08-2004, 04:57 PM
albibak's Avatar
albibak albibak is offline
 
Join Date: Feb 2003
Location: Paris (France)
Posts: 302
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A little suggestion :

I think it's a good idea to let the alert for a new mp if a member don't read his mp directly, now ?
Reply With Quote
  #19  
Old 01-08-2004, 05:03 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by albibak
A little suggestion :

I think it's a good idea to let the alert for a new mp if a member don't read his mp directly, now ?
Im sorry but I cant understand your english
Reply With Quote
  #20  
Old 01-08-2004, 05:11 PM
albibak's Avatar
albibak albibak is offline
 
Join Date: Feb 2003
Location: Paris (France)
Posts: 302
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, for my bad english.

example (you had installed this hack here):

Imagine you go to vbulletin.org and you have a new mp. The box appear, but you don't read your pm now.
1 hours after you go to vbulletin.org, and now, the box don't appear.

I think it's more cool to let the box if you have don't read your pm, no ?
Reply With Quote
  #21  
Old 01-08-2004, 05:31 PM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not bad. Can you add any dynamic element to it (gif or mid) so I really get noticed about the new msg?
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:36 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.04591 seconds
  • Memory Usage 2,324KB
  • 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_php
  • (3)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_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