Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by azerty (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 09-08-2001 Last Update: Never Installs: 0
 
No support by the author.

I think it's possible, but since my knowledge of PHP is as advanced as the "hello world" script I can't make it myself

So you get a simple text line or something (the same as you get on the vbulletin) but simply on another page that sais "you have 0 private messages"

Does it exist ? Or can you make one like really fast ?

Thanks

Show Your Support

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

Comments
  #2  
Old 09-08-2001, 01:57 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Open your global.php, and add this code:
PHP Code:
$temppermissions=getpermissions(); 
right after this:
PHP Code:
  $newpmmsg=1;
  eval(
"\$headnewpm = \"".gettemplate('head_newpm')."\";");

In index.php find this code:
PHP Code:
//check usergroup of user to see if they can use PMs
//$temppermissions=getpermissions($forumid);
if ($enablepms==and $temppermissions['canusepm'] and $bbuserinfo['receivepm']) {
  
$ignoreusers="";
  if (
trim($bbuserinfo['ignorelist'])!="") {
    
$ignoreusers='AND fromuserid<>'.implode(' AND fromuserid<>',explode(' ',$bbuserinfo[ignorelist]));
  }

  
$allpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] $ignoreusers");
  
$newpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] AND dateline>$bbuserinfo[lastvisit] AND folderid=0 $ignoreusers");
  
$unreadpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] AND messageread=0 AND folderid=0 $ignoreusers");

  if (
$newpm['messages']==0) {
    
$lightbulb='off';
  } else {
    
$lightbulb='on';
  }
  eval(
"\$pminfo = \"".gettemplate('forumhome_pmloggedin')."\";");

} else {
  
$pminfo='';

CUT it out, and paste it in your global.php right AFTER
PHP Code:
$temppermissions=getpermissions(); 
(what you added before)
Now you can use this
Code:
You have $newpm[messages] ($unreadpm[messages] undread) out of $allpm[messages] in total.
in any template you wish (you can change the words of course ).
Reply With Quote
  #3  
Old 09-08-2001, 02:54 PM
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

azerty,

Please enter your license info into your user profile. See my sig for details. Thanks!
Reply With Quote
  #4  
Old 09-08-2001, 03:24 PM
azerty
Guest
 
Posts: n/a
Default

You say put it in any template, but I don't want it in a template, I want it on another page, so a normal php page.
Reply With Quote
  #5  
Old 09-08-2001, 04:05 PM
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please put your license info into your user profile as I requsted. Thanks.
Reply With Quote
  #6  
Old 01-11-2002, 04:09 AM
EJMack EJMack is offline
 
Join Date: Jan 2002
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is this possible, im wanting to do somethin like this on my site...
Reply With Quote
  #7  
Old 01-11-2002, 04:54 AM
SaintDog SaintDog is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 1,975
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Steve, just on a side note, I do not see anything in your signature at this time that pertains to entering license information (may be one reason he has not entered it). I am not trying to be rude, just pointing that out (may have been deleted by accident).

Just trying to help out
Reply With Quote
  #8  
Old 01-11-2002, 12:09 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by SaintDog
Steve, just on a side note, I do not see anything in your signature at this time that pertains to entering license information (may be one reason he has not entered it). I am not trying to be rude, just pointing that out (may have been deleted by accident).

Just trying to help out
Reply With Quote
  #9  
Old 04-13-2002, 09:32 PM
Gutspiller's Avatar
Gutspiller Gutspiller is offline
 
Join Date: Dec 2001
Posts: 1,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't have

PHP Code:

$newpmmsg
=1;
  eval(
"\$headnewpm = \"".gettemplate('head_newpm')."\";");

I only have:

[php]

PHP Code:
$newpmmsg=1;
$latest_pm $DB_site->query("SELECT p.privatemessageid AS pm_popup_id, p.title AS pm_popup_title, u.username AS pm_popup_username FROM privatemessage p, user u WHERE messageread = 0 AND touserid = $bbuserinfo[userid] AND p.fromuserid = u.userid ORDER BY dateline DESC");
  
$hack_pm_total  $DB_site->num_rows($latest_pm);
  
    if (
$hack_pm_total 1) {
      eval(
"\$pm_popup_text = \"".gettemplate('pm_popup_multiple')."\";");
      eval(
"\$pm_popup_url  = \"".gettemplate('pm_popup_url_multiple')."\";");
    } else {
      
extract($DB_site->fetch_array($latest_pm));
      eval(
"\$pm_popup_text = \"".gettemplate('pm_popup')."\";");
      eval(
"\$pm_popup_url  = \"".gettemplate('pm_popup_url')."\";");
    }

  eval(
"\$headnewpm = \"".gettemplate('head_newpm')."\";"); 
Can somebody (see also: FireFly) help me?
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 11:31 PM.


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.05382 seconds
  • Memory Usage 2,299KB
  • Queries Executed 22 (?)
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
  • (1)bbcode_code
  • (6)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (7)postbit_onlinestatus
  • (9)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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete