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

Reply
 
Thread Tools
Last PM on Forumhome Details »»
Last PM on Forumhome
Version: 1.00, by Kratheous Kratheous is offline
Developer Last Online: Jul 2006 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 01-18-2003 Last Update: Never Installs: 11
 
No support by the author.

This hack will show you last PM you recieved on the forumhome.

Show Your Support

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

Comments
  #12  
Old 01-20-2003, 09:36 AM
inphinity's Avatar
inphinity inphinity is offline
 
Join Date: Oct 2001
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

put an 'and' in there as well

folderid = 0 AND userid=$bbuserinfo[userid]
Reply With Quote
  #13  
Old 01-20-2003, 09:41 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very much. Would there also be a way to pull out the name of the folder the message is in, too?
Reply With Quote
  #14  
Old 01-20-2003, 10:46 AM
inphinity's Avatar
inphinity inphinity is offline
 
Join Date: Oct 2001
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
  if ($bbuserinfo[pmfolders]) {
    
$allfolders explode("\n"trim($bbuserinfo[pmfolders]));
    while (list(
$key,$val)=each($allfolders)) {
      
$thisfolder explode("|||"$val);      
    }
  }

$thisfolder[$folderid] = name of folder message is in
$thisfolder
[0] (inboxhas a name of "1"

pm folder names are kept in the user table 
Reply With Quote
  #15  
Old 01-20-2003, 10:57 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by inphinity
PHP Code:
  if ($bbuserinfo[pmfolders]) {
    
$allfolders explode("\n"trim($bbuserinfo[pmfolders]));
    while (list(
$key,$val)=each($allfolders)) {
      
$thisfolder explode("|||"$val);      
    }
  }

$thisfolder[$folderid] = name of folder message is in
$thisfolder
[0] (inboxhas a name of "1"

pm folder names are kept in the user table 
I kind of follow you on this. I put the first 6 lines in but I got lost with the last two lines. What would be the complete code I need to do it?
Reply With Quote
  #16  
Old 01-20-2003, 11:36 AM
mauce mauce is offline
 
Join Date: Dec 2001
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So how would the hack look like in total?
I'm kinda confused now.
Reply With Quote
  #17  
Old 01-21-2003, 07:00 AM
Corrupter Corrupter is offline
 
Join Date: May 2002
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mine is showing last PM by ARRAY..

Do you have the correct code for this?
Reply With Quote
  #18  
Old 01-21-2003, 07:06 AM
Corrupter Corrupter is offline
 
Join Date: May 2002
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nevermind..

The correct code for template: forumhome_pmlast

Code:
<br><b>Latest Private Message:</b> $lastpmstuff[title] by $lastpmuser[username]
See Image:
Reply With Quote
  #19  
Old 01-21-2003, 03:01 PM
Kratheous Kratheous is offline
 
Join Date: Mar 2002
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm... Indeed. Sorry about that.

Other than that, it should've worked. My friend's running it (that's where I got the screenie from.. haven't reinstalled it on my own boards, yet. @_@)
Reply With Quote
  #20  
Old 01-21-2003, 03:24 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to have this link to the last message shown so all you have to do is click on the link to bring the message up?
Reply With Quote
  #21  
Old 01-21-2003, 03:33 PM
Kratheous Kratheous is offline
 
Join Date: Mar 2002
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep.

Replace:

$lastpmstuff[title]

With:

<a href="./private.php?s=$session&action=show&privatemessagei d=$lastpmstuff[privatemessageid]">$lastpmstuff[title]</a>
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:07 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.06278 seconds
  • Memory Usage 2,307KB
  • 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
  • (1)bbcode_code
  • (2)bbcode_php
  • (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
  • (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