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
Improved PM Folderview Details »»
Improved PM Folderview
Version: 1.00, by kreftt kreftt is offline
Developer Last Online: Nov 2005 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 03-30-2002 Last Update: Never Installs: 151
 
No support by the author.

TESTED ON 2.3.0 AND FOUND WORKING

What does it do?

You know it happens to me pretty often that my users wonder why they cannot receive any more pm's. the standard question "did you check your sent items folder?" is answered with the standard question "do i have a sent items folder?"...

to avoid that, this hack shows the user on the privatemessage mainpage which folders they have in a list with the ability to add a folder without having to switch to the folders template.

aditionally, i modified the pmgauge enhanced hack by WWW.TOTAL-IMPACT.COM aka princeton a little and included it.

so, its nothing special, but maybe some people like it.
note: im new to this, so the code might be very ugly...

instructions:

1) follow instructions.txt

Credits: The_Sisko, mystics and boofo for finding bugs and helping with the code

Please notice this add-on by matt that allows you to have the amount of messages in each folder displayed next to it. Working on 2.2.9 too.

NOTICE: If you installed the private messages backup hack by Cano2 which is found here, you will have to to change a bit in the instructions.txt:

where it says to find:
PHP Code:
  //get correct folder name
  
if ($folderid=="0") { 
you will need to find the SECOND instance as the private message backup hack adds another instance of this code to the file.

NOTICE2: if you installed the PM Quota by Usergroup Hack by g-force2k2 that can be found here then the solution to make both work together is here

please click install if you use it, thank you

kreftt

Show Your Support

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

Comments
  #82  
Old 07-07-2002, 12:32 PM
kreftt's Avatar
kreftt kreftt is offline
 
Join Date: Dec 2001
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm, that weird

@boofo
i have installed the hack on vbb224, 225 and 226 again. i cannot reproduce your error on 224 and 226, while it happens to me too on a 225. i went through the files line by line without finding any reason for this. i exchanged the private.php and private2.php from the error-showing 225 then with the files from working 224 without having any change. i exchanged the files the other direction without the error occuring afterwards.
so my conclusion would be that the error comes from any other change not in the two files from 224 to 225 that was taken back in 226 again, but i cannot tell you which one as i simply dont know.
im sorry my support is that ad but i cant offer any other advice than: try the upgrade to 226
sorry

@aquariumpros
your files look fine, so i would need the templates that you added/changed too.
thx
kreftt
Reply With Quote
  #83  
Old 07-07-2002, 03:07 PM
aquariumpros aquariumpros is offline
 
Join Date: Jul 2002
Location: Hawai`i
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by kreftt
@aquariumpros
your files look fine, so i would need the templates that you added/changed too.
thx
kreftt
Copies of the templates have been e-mailed to you.

Thanks again,
*~AJ~*
Reply With Quote
  #84  
Old 07-07-2002, 07:29 PM
kreftt's Avatar
kreftt kreftt is offline
 
Join Date: Dec 2001
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@aquariumpros

you made a mistake in your privfolder template.
where the instructions say to add this:

Code:
<table cellpadding=5 cellspacing=0 border=0 width="{contenttablewidth}">
   <tr>
    <td width="200" valign="top">
     <table cellpadding=4 cellspacing=1 border=0 bgcolor="{tablebordercolor}" width="200">
      <tr bgcolor="{tableheadbgcolor}" id="cat">
       <td align="center" height="28"> <normalfont><b>Folder</b></normalfont></td>
      </tr>
      <tr>
       <td  bgcolor="{firstaltcolor}" width="100%"><normalfont><a href="private.php?s=$session[sessionhash]&folderid=0">Inbox</a></font></td>
      </tr>
      <tr>
       <td bgcolor="{firstaltcolor}" width="100%"><normalfont><a href="private.php?s=$session[sessionhash]&folderid=-1">Sent Items</a></font></td>
      </tr>
      <tr>
       <td bgcolor="{firstaltcolor}" width="100%"><normalfont><a href="private2.php?s=$session[sessionhash]">Message Tracking</a></font></td>
      </tr>
$folderboxeshack 
     </table>
 	 <br>

<form action="private.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]">
     <table cellpadding=4 cellspacing=1 border=0 bgcolor="{tablebordercolor}" width="200">
      <tr bgcolor="{tableheadbgcolor}">
       <td  height="28" align="center"><normalfont><b>Add Folder</b></normalfont>$hiddenfolderboxes</td>
      </tr>
      <tr>
       <td bgcolor="{firstaltcolor}" width="100%">$newfolderboxes	<input type="hidden" name="action" value="doeditfolders">
	<input type="image" class="bginput" name="submit"  src="{imagesfolder}/go.gif">
</td>
      </tr>
     </table>
</form>





<table cellpadding=4 cellspacing=1 border=0 bgcolor="{tablebordercolor}" width="200">
<tr bgcolor="{tableheadbgcolor}">
<td colspan=3 align="center">
<normalfont><b>PM Quota</b></normalfont>
</td>
</tr>

<tr>
<td bgcolor="{firstaltcolor}" colspan=3><smallfont>You are using $pmpercent% of your quota. 




</font>
</td>
</tr>
<tr>
<td bgcolor="{secondaltcolor}" colspan=3>

<table cellpadding=0 cellspacing=0 border=0>
<tr>
<td bgcolor="{secondaltcolor}" width="200"><img src="$barimg" width="$pmpercent %" height="9">
</td>
</tr>
</table>

</td>
</tr>
<tr bgcolor="{firstaltcolor}">
<td width="33%"><smallfont>0%</font>
</td>
<td width="34%" align="center"><smallfont>50%</font>
</td>
<td width="33%" align="right"><smallfont>100%</font>
</td>
</tr>
</table>

</td>
<td width="100%" valign="top">
above this:

Code:
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<form action="private.php" method="post" name="form">

$privatemessages
you added this:

Code:
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<form action="private.php" method="post" name="form">

$privatemessages
instead resulting in this section being showed twice.
if u replace the upper instance of this:

Code:
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<form action="private.php" method="post" name="form">

$privatemessages
with the correct code you should be fine...

kreftt
Reply With Quote
  #85  
Old 07-07-2002, 08:36 PM
aquariumpros aquariumpros is offline
 
Join Date: Jul 2002
Location: Hawai`i
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PERFECT!!!

That fixed it 100%.

Thank you again for taking the time to help me out!!

Great Hack!!!

*~AJ~*
Reply With Quote
  #86  
Old 07-07-2002, 08:50 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wouldn't that have something to do with the specialcharacters variable? I'm just guessing here.

Quote:
Originally posted by kreftt
hmm, that weird

@boofo
i have installed the hack on vbb224, 225 and 226 again. i cannot reproduce your error on 224 and 226, while it happens to me too on a 225. i went through the files line by line without finding any reason for this. i exchanged the private.php and private2.php from the error-showing 225 then with the files from working 224 without having any change. i exchanged the files the other direction without the error occuring afterwards.
so my conclusion would be that the error comes from any other change not in the two files from 224 to 225 that was taken back in 226 again, but i cannot tell you which one as i simply dont know.
im sorry my support is that ad but i cant offer any other advice than: try the upgrade to 226
sorry
Reply With Quote
  #87  
Old 07-27-2002, 05:32 PM
tHE DSS's Avatar
tHE DSS tHE DSS is offline
 
Join Date: Jun 2002
Location: UK
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hiya,

This hack is pretty smooth.... except, i'd like to implement that bit, showing in brackets, the number of PMs in each folder.

I fiddled with the SQL queries, and seemed to sort it... but, couldn't output.

Where is the output going... and could somone just confirm the query for me?

I'm in the process of fastracking a vB installation with loads of custom stuff, so can't really afford the time to tamper anymore with this.

Cheers.
Reply With Quote
  #88  
Old 08-08-2002, 12:51 AM
Tim Wheatley's Avatar
Tim Wheatley Tim Wheatley is offline
 
Join Date: Nov 2001
Location: England
Posts: 489
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's no delete button in the sent messages... ?
Reply With Quote
  #89  
Old 08-08-2002, 01:07 AM
Tim Wheatley's Avatar
Tim Wheatley Tim Wheatley is offline
 
Join Date: Nov 2001
Location: England
Posts: 489
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes there is - my bad.
Reply With Quote
  #90  
Old 08-09-2002, 12:53 AM
ryancooper ryancooper is offline
 
Join Date: Jul 2002
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome Hack, Installed Flawlessly!

Thanks!
Reply With Quote
  #91  
Old 08-22-2002, 12:01 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, sir, it is fixed. There are no more slashes messing up the folder view on Folders that have an apostrophe in the name. Instead of addslashes, stripslashes took care of the problem.

Quote:
Originally posted by kreftt
hmm, that weird

@boofo
i have installed the hack on vbb224, 225 and 226 again. i cannot reproduce your error on 224 and 226, while it happens to me too on a 225. i went through the files line by line without finding any reason for this. i exchanged the private.php and private2.php from the error-showing 225 then with the files from working 224 without having any change. i exchanged the files the other direction without the error occuring afterwards.
so my conclusion would be that the error comes from any other change not in the two files from 224 to 225 that was taken back in 226 again, but i cannot tell you which one as i simply dont know.
im sorry my support is that ad but i cant offer any other advice than: try the upgrade to 226
sorry

thx
kreftt
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:25 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.09015 seconds
  • Memory Usage 2,330KB
  • 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
  • (4)bbcode_code
  • (1)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
  • (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