Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

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
  #212  
Old 07-12-2003, 06:06 AM
kreftt's Avatar
kreftt kreftt is offline
 
Join Date: Dec 2001
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@gutspiller

in your PRIVFOLDER template, find this:

Code:
$readreceiptsoption
                </select> $gobutton</smallfont></td>
        </form></tr>
        </table>
        </td>
</tr>
</table>
maybe it looks a bit different, but only a bit. in the next line you see a table starting with the cellpadding of 5. change this 5 to 0.
aditionally, place a
Code:
<br>
directly after the code that i pasted above (means, directly before the beginning table where you changed the 5 to 0).

still in the PRIVFOLDER template you search for
Code:
<td width="33%" align="right"><font class="sf">100%</font>
</td>
</tr>
</table>
<br>

<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0"><TR><TD ALIGN="CENTER">

< !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!>

</TD></TR></TABLE>

</td>
directly after that you paste

PHP Code:
<td width="10">&nbsp;&nbsp;&nbsp;</td

@groovesalad

could you make a screeny please? and please log in as a user, not as an administrator and check if you can see the colors then.

greetz
Reply With Quote
  #213  
Old 07-19-2003, 11:42 AM
Xelation's Avatar
Xelation Xelation is offline
 
Join Date: Jan 2002
Location: Buffalo, New York
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm using this hack also, what would I have to do for this hack and the one in this link to work together correctly?

https://vborg.vbsupport.ru/showthrea...threadid=43148
Reply With Quote
  #214  
Old 07-20-2003, 02:41 AM
Frozen Dreams's Avatar
Frozen Dreams Frozen Dreams is offline
 
Join Date: Apr 2003
Location: Germany
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Yesterday at 02:42 PM Xelation said this in Post #212
I'm using this hack also, what would I have to do for this hack and the one in this link to work together correctly?

https://vborg.vbsupport.ru/showthrea...threadid=43148

quite a few people have asked this ... I have both hacks installed and I'd love to have both go together but seemingly no sulution yet
the one suggested in this thread didnt work for me
Reply With Quote
  #215  
Old 07-22-2003, 02:28 AM
Ludelover Ludelover is offline
 
Join Date: Jan 2003
Location: Redwood City
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have what I hope is an easy question. My quota bar only works when I go to "message tracking." If i go to inbox or sent items nothing shows up.

any idears?
Reply With Quote
  #216  
Old 07-22-2003, 03:18 AM
Ludelover Ludelover is offline
 
Join Date: Jan 2003
Location: Redwood City
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry to waste your time. I actually figured it out. I messed up in the private.php code.

This hack works great. Many thanks
Reply With Quote
  #217  
Old 07-24-2003, 11:44 AM
kreftt's Avatar
kreftt kreftt is offline
 
Join Date: Dec 2001
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Xelation & Frozen Dreams

to make this work with the pm quota by usergroup hack you have to do some changes to private.php and private2.php

in my instructions there is this part of code, that you have to put in both private and private2.php:

Code:
//////////////////////////////////////////////////////////////////////////////hack//////////////////////////////////////////////////////////////
// PM GAUGE ENHANCED by WWW.TOTAL-IMPACT.COM aka princeton
// Original PM GAUGE by GOBLIN
// if you want to ignore admin convert the line below to --> if ($pmquota>0 and $bbuserinfo[usergroupid] != 6) {
if ($pmquota>0 ) {
  $ignoreusers="";
  if (trim($bbuserinfo['ignorelist'])!="") {
    $ignoreusers='AND fromuserid<>'.implode(' AND fromuserid<>',explode(' ', trim($bbuserinfo['ignorelist'])));
  }
  $msgcount = $DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] $ignoreusers");


  if ($msgcount < 1) {
  $pmpercent = "1"; // stop divisions by zero
  } else {
  $pmpercent = round(($msgcount[messages] / $pmquota) * 100,2);
  }
  if ($pmpercent>75) {
  $barimg="{imagesfolder}/red.gif";
  } elseif ($pmpercent>50) {
  $barimg="{imagesfolder}/yellow.gif";
  } else {
  $barimg="{imagesfolder}/green.gif";
  }
}
//check if there is message in folder(s) and if yes displays gauge
// if you want to ignore admin convert the line below to --> if ($pmquota>0 and $bbuserinfo[usergroupid] != 6) {
if ($msgcount[messages]>0 and $pmquota>0) {
    eval("\$pmgauge=\"".gettemplate("privfolder_pmgauge")."\";");
 }
// PM GAUGE ENHANCED by WWW.TOTAL-IMPACT.COM aka princeton
// Original PM GAUGE by GOBLIN
//////////////////////////////////////////////////////////////////////////////hack//////////////////////////////////////////////////////////////
you go to that code and put this:

Code:
$pmboxlmt = $DB_site->query_first("SELECT pmlimit FROM usergroup WHERE usergroupid='$bbuserinfo[usergroupid]'");
$pmboxlimit = $pmboxlmt[pmlimit];
directly after the commented out area, means, before:
Code:
if ($pmquota>0 ) {
after that, you change all 3 (THREE) instances of
Code:
$pmquota
in this piece of code to
Code:
$pmboxlimit
this worked fine for me

greetz

kreftt
Reply With Quote
  #218  
Old 07-26-2003, 04:24 AM
Gutspiller's Avatar
Gutspiller Gutspiller is offline
 
Join Date: Dec 2001
Posts: 1,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
07-12-03 at 01:06 AM kreftt said this in Post #211
@gutspiller

in your PRIVFOLDER template, find this:

Code:
$readreceiptsoption
                </select> $gobutton</smallfont></td>
        </form></tr>
        </table>
        </td>
</tr>
</table>
maybe it looks a bit different, but only a bit. in the next line you see a table starting with the cellpadding of 5. change this 5 to 0.
aditionally, place a
Code:
<br>
directly after the code that i pasted above (means, directly before the beginning table where you changed the 5 to 0).

still in the PRIVFOLDER template you search for
Code:
<td width="33%" align="right"><font class="sf">100%</font>
</td>
</tr>
</table>
<br>

<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0"><TR><TD ALIGN="CENTER">

< !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!>

</TD></TR></TABLE>

</td>
directly after that you paste

PHP Code:
<td width="10">&nbsp;&nbsp;&nbsp;</td

@groovesalad

could you make a screeny please? and please log in as a user, not as an administrator and check if you can see the colors then.

greetz

I don't have this code:

Code:
<td width="33%" align="right"><font class="sf">100%</font>
</td>
</tr>
</table>
<br>

<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0"><TR><TD ALIGN="CENTER">

<  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!>

</TD></TR></TABLE>

</td>
in my privfolder. What else should I search for?
Reply With Quote
  #219  
Old 07-26-2003, 05:35 AM
Xelation's Avatar
Xelation Xelation is offline
 
Join Date: Jan 2002
Location: Buffalo, New York
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey kreftt thanks, that did it! although I had to edit the templates and replace the variable from $pmprec% to $pmpercent%
Reply With Quote
  #220  
Old 07-26-2003, 05:35 AM
legendarysk8er legendarysk8er is offline
 
Join Date: Nov 2002
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack, but my members wouldn't need it.
Reply With Quote
  #221  
Old 07-26-2003, 07:56 AM
kreftt's Avatar
kreftt kreftt is offline
 
Join Date: Dec 2001
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@gutspiller

2 weeks ago you had this code, now rhe advert is there instead of it. so put it after
Code:
<!-- END: AdSolution-Tag 4.0: AdSpot-Code -->

</TD></TR></TABLE>

</td>
greetz

kreftt
Reply With Quote
Reply

Thread Tools

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 02:50 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.05121 seconds
  • Memory Usage 2,331KB
  • Queries Executed 27 (?)
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
  • (13)bbcode_code
  • (3)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
  • (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_postinfo_query
  • fetch_postinfo
  • 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