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
  #112  
Old 11-27-2002, 06:22 AM
350Chevy's Avatar
350Chevy 350Chevy is offline
 
Join Date: Nov 2002
Location: Tampa, FL
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works perfect for 2.2.9!

Clicked install.
Reply With Quote
  #113  
Old 11-28-2002, 04:37 AM
XFLBret XFLBret is offline
 
Join Date: May 2002
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this hack is as cool as the other side of the pillow.

just one beef though...

the words "folder" "PM quota" and the "new folder" the text were the same color as the background. i had to go in the templates and adjust them with the normal font color code before the words, if that makes sense. sorry, its not in front of me right now.

anyway, good work
Reply With Quote
  #114  
Old 11-28-2002, 09:45 AM
kreftt's Avatar
kreftt kreftt is offline
 
Join Date: Dec 2001
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

im sorry youre right, the templates arent fully correct, some editing is still neccessary. ill fix that when vb3 is out...

greets

kreftt
Reply With Quote
  #115  
Old 12-02-2002, 09:10 AM
Xer Xer is offline
 
Join Date: May 2002
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this hack very nice..
but i dont know y i got width problem...
how can i fix it?? 100% width is no any problem..
but when i set it to 730...
Reply With Quote
  #116  
Old 12-02-2002, 03:04 PM
kreftt's Avatar
kreftt kreftt is offline
 
Join Date: Dec 2001
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it looks from your screenshot like you didnt replace all neccessary occurences of
Code:
contenttablewidth
with the hardcoded 730. there should be 4 or 5 places to edit in the privfolder template.

greets

kreftt
Reply With Quote
  #117  
Old 12-02-2002, 08:44 PM
ggus ggus is offline
 
Join Date: Nov 2001
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just downloaded and attempted to install. Keep getting a parse error on the 2nd hack on the private.php page. The part that starts "$bbuserinfo[usergroupid] !=6)..." If I remove that whole part of the hack then the page will display. Any thoughts? I just pasted directly from the install sheet.

GGus
Reply With Quote
  #118  
Old 12-02-2002, 09:34 PM
kreftt's Avatar
kreftt kreftt is offline
 
Join Date: Dec 2001
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

erm, the part that you mentioned is commented out at all occurences, and it isnt a start of a part.
to help you, i would need to know the error message that happens after you hacked the file, and your private.php to kreftt@uni.de
greets

kreftt
Reply With Quote
  #119  
Old 12-03-2002, 01:22 AM
Xer Xer is offline
 
Join Date: May 2002
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by kreftt
it looks from your screenshot like you didnt replace all neccessary occurences of
Code:
contenttablewidth
with the hardcoded 730. there should be 4 or 5 places to edit in the privfolder template.

greets

kreftt

thank you..!
and my Message Tracking page have same problem too...
which 1 template i need goto edit ?!
Reply With Quote
  #120  
Old 12-03-2002, 01:48 AM
kreftt's Avatar
kreftt kreftt is offline
 
Join Date: Dec 2001
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if i remember right then this should be the privsent template

greets

kreftt
Reply With Quote
  #121  
Old 12-03-2002, 02:32 AM
Xer Xer is offline
 
Join Date: May 2002
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by kreftt
if i remember right then this should be the privsent template

greets

kreftt
i have try to edit my privsent..
but still cant fix out the problem...
this is my code from privsent.

Code:
{htmldoctype}
<html>
<head><title>$bbtitle - Private Messaging: $bbuserinfo[username] - Read Receipts</title>
$headinclude
<!-- message selection script -->
<script language="JavaScript">
<!--
function CheckAll(theform) {
	for (var i=0;i<theform.elements.length;i++) {
		var e = theform.elements[i];
		if ((e.name != 'allbox') && (e.type=='checkbox'))
		e.checked = theform.allbox.checked;
		}
	}
function CheckCheckAll(theform) {
	var TotalBoxes = 0;
	var TotalOn = 0;
	for (var i=0;i<theform.elements.length;i++) {
		var e = theform.elements[i];
		if ((e.name != 'allbox') && (e.type=='checkbox')) {
			TotalBoxes++;
			if (e.checked) TotalOn++;
			}
		}
	if (TotalBoxes==TotalOn) theform.allbox.checked=true;
	else theform.allbox.checked=false;
	}
//-->
</script>
<!-- end message selection script -->
</head>
<body>
$header

<!-- breadcrumb -->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
	<td width="100%"><img src="{imagesfolder}/vb_bullet.gif" align="middle" alt="vBulletin">
	<normalfont><b><a href="index.php?s=$session[sessionhash]">$bbtitle</a> &gt;
	<a href="usercp.php?s=$session[sessionhash]">User Control Panel For $bbuserinfo[username]</a> &gt;
	<a href="private.php?s=$session[sessionhash]">Private Messages</a> &gt;
	Message Tracking</b></normalfont></td>
</tr>
</table>
<!-- /breadcrumb -->

<br>
$cpnav
<br>

<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
	<td>$priv_dateselect</td>
	<td align="right">
	
	<table cellspacing="0" cellpadding="0" border="0">
	<form action="private.php" method="post">
	<tr>
		<td><input type="hidden" name="s" value="$session[sessionhash]">
		<smallfont><b>Jump to folder:</b>
		<select name="folderid" onchange="window.location=('private.php?s=$session[sessionhash]&folderid=' + this.options[this.selectedIndex].value + '&daysprune=$daysprune')">
		<option value="0">$inboxname</option>
		<option value="-1">$sentitemsname</option>
		$folderjump
		$readreceiptsoption
		</select>$gobutton</smallfont></td>
	</tr>
	</form>
	</table>
	
	</td>
</tr>
</table>
<br>
<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><font color="{tableheadtextcolor}">Folder</font></b></normalfont></td>
      </tr>
      <tr>
       <td  bgcolor="{firstaltcolor}" width="100%"><normalfont><a href="private.php?s=$session[sessionhash]&folderid=0">Inbox</a> ($inbox_msgtotal)</font></td>
      </tr>
      <tr>
       <td bgcolor="{firstaltcolor}" width="100%"><normalfont><a href="private.php?s=$session[sessionhash]&folderid=-1">Sent Items</a> ($sent_msgtotal)</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><font color="{tableheadtextcolor}">Add 
              Folder</font></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><font color="{tableheadtextcolor}">PM Quota</font></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="33%" align="center"><smallfont>50%</font>
</td>
<td width="33%" align="right"><smallfont>100%</font>
</td>
</tr>
</table>

</td>
    <td width="100%" valign="top"> $privatemessages </td>
</tr>
</table>

<!-- message buttons -->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
	<td align="center">
	<a href="private.php?s=$session[sessionhash]&action=newmessage"><img src="{imagesfolder}/pm_sendnew.gif" alt="Send a new private message" border="0"></a>
	$buddypmlink
	<a href="private.php?s=$session[sessionhash]&action=editfolders"><img src="{imagesfolder}/pm_folders.gif" alt="Organise your private message folders" border="0">
	</td>
</tr>
</table>
<!-- /message buttons -->

<br>

<!-- timezone & forum jump -->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
	<td>$forumjump</td>
	<td align="right"><smallfont>$timezone</smallfont></td>
</tr>
</table>
<!-- /timezone & forum jump -->

<br>

<!-- icon key -->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr><td width="50%">&nbsp;</td>
	<td nowrap><img src="{imagesfolder}/newpm.gif" border="0" alt="Unread Message"></td>
	<td nowrap><b><smallfont>Unread Message</smallfont></b></td>
	<td nowrap><img src="{imagesfolder}/pm.gif" border=0 alt="Message"></td>
	<td nowrap><b><smallfont>Message</smallfont></b></td>
	<td nowrap><img src="{imagesfolder}/trashcan.gif" border="0" alt="Cancelled Message"></td>
	<td nowrap><b><smallfont>Cancelled Message</smallfont></b></td>
<td width="50%">&nbsp;</td></tr>
</table>
<!-- icon key -->

$footer

</body>
</html>
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 12:58 AM.


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.07707 seconds
  • Memory Usage 2,341KB
  • 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
  • (3)bbcode_code
  • (1)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
  • (4)pagenav_pagelink
  • (2)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