vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   [ADD-ON] Improved PM Folderview PM Totals (https://vborg.vbsupport.ru/showthread.php?t=36840)

Tigga 11-05-2002 01:30 AM

Well just incase anyone else is having the problem with the custom folders total not showing, I figured out what was wrong.

Open private.php and find:
PHP Code:

eval("\$folderboxeshack .= \"".gettemplate("priv_showfolders_folderbit_hack",1,0)."\";"); 

Right above that add:
PHP Code:

$msginfolder $DB_site->query_first("SELECT COUNT(*) AS foldermsgtotal FROM privatemessage
 WHERE userid=
$bbuserinfo[userid] AND folderid=$folder[folderid]");
$foldermsgtotal $msginfolder[foldermsgtotal]; 

Then you can look for another instance of the code above that you just added (near the bottom of the file) and remove it. Works great now. :)

Dynamic One 11-13-2002 11:36 AM

Thanks for this noce looking addon m8.

Bison 11-13-2002 07:37 PM

Installed!

Adds a very professional look to the private message folder count!

Esdee 11-14-2002 06:11 PM

Thanks PlurPlanet, I was looking for that.
Great add-on BTW. Now the hack truly is perfect :D

jjj0923 12-31-2002 11:35 AM

has anyone tacked the Message Tracking Count yet???

T?Pau 01-07-2003 12:44 PM

I did the Message Tracking.
It shows the unread/read PM

Just open both private.php and private2.php and find
PHP Code:

/////////////////////////////////////////////////////////////////////////////////////hack///////////////////////////////////////////////////////////////////
//// -- Begin PM Folder Totals
// Messages Inbox
$msgin_inbox $DB_site->query_first("SELECT COUNT(*) AS inbox_msgtotal FROM privatemessage WHERE userid=$bbuserinfo[userid] AND folderid='0'");
$inbox_msgtotal $msgin_inbox[inbox_msgtotal];
//      
// Messages Sent
$msgin_sent $DB_site->query_first("SELECT COUNT(*) AS sent_msgtotal FROM privatemessage WHERE userid=$bbuserinfo[userid] AND folderid='-1'");
$sent_msgtotal $msgin_sent[sent_msgtotal]; 

Below that add:

PHP Code:

//Message Tracking
$msgin_track $DB_site->query_first("SELECT COUNT(*) AS track_msgtotal FROM privatemessage WHERE fromuserid=$bbuserinfo[userid] AND receipt='1'");
$track_msgtotal $msgin_track[track_msgtotal];

$msgin_trackread $DB_site->query_first("SELECT COUNT(*) AS track_msgtotalread FROM privatemessage WHERE fromuserid=$bbuserinfo[userid] AND receipt='2'");
$track_msgtotalread $msgin_trackread[track_msgtotalread]; 

And in your privfolder and privsend Templates find :
Code:

<td bgcolor="#13486D" width="100%"><normalfont><a href="private2.php?s=$session[sessionhash]">Message Tracking</a></font></td>
and replace it with
Code:

<td bgcolor="#13486D" width="100%"><normalfont><a href="private2.php?s=$session[sessionhash]">Message Tracking</a>($track_msgtotal / $track_msgtotalread)</font></td>
Works on my 2.2.7

Boofo 01-07-2003 04:20 PM

Work excellent of version 2.2.9, also. Thanks! :)

Is there a way of including the queries in the code above it to knock two more queries off of the page?

PixelFx 02-18-2003 12:32 AM

hey guys, just wanted to say great hack, I got it working with vbulletin v2.3.0, works great, I also added matts addon, with a few changes, to match colors, but otherwise everything installed perfectly.

Example image:
http://www.pixelfx.ca/code/imgs/pm_hack.gif

thanks for all your hard work guys :)

FleaBag 02-26-2003 02:58 AM

Thanks for the extra code additions everyone, makes a difference to DragonNinja running on 2.3.0.

ImportPassion 03-02-2003 10:36 PM

Quote:

And in your privfolder and privsend Templates find :
should read

And in your privfolder and privsent Templates find :


All times are GMT. The time now is 10:28 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.01038 seconds
  • Memory Usage 1,747KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete