vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   PM Status hack (pm folders on forumhome) (https://vborg.vbsupport.ru/showthread.php?t=47744)

maoz440 02-22-2003 02:00 AM

Great hack on my 2.29 site with 7,000+ users! :D <clicks install>

-Sidekick- 03-08-2003 06:25 PM

2 things I'd like to point out.

When I empty everything out of my folders, it says my folders are 1% full. How can they be 1% full when there's nothing in them?

Also, when everything is empty is says, "Your PM folders:" and then nothing. Could you make it when all folders are empty that line disappears as well? Or maybe after that it says All Folders Empty or something. :)

refertech 03-08-2003 06:43 PM

Quote:

Originally posted by -Sidekick-
2 things I'd like to point out.

When I empty everything out of my folders, it says my folders are 1% full. How can they be 1% full when there's nothing in them?

Also, when everything is empty is says, "Your PM folders:" and then nothing. Could you make it when all folders are empty that line disappears as well? Or maybe after that it says All Folders Empty or something. :)

May just put a zero after it when they are empty. Or does it, I havent installed it yet but I will. :) Very nice hack

-Sidekick- 03-08-2003 08:53 PM

No it doesn't. They disappear. That's why I'm posting... lol

The_Wanderer 03-15-2003 09:33 AM

Quote:

03-08-03 at 08:25 PM -Sidekick- said this in Post #23
2 things I'd like to point out.

When I empty everything out of my folders, it says my folders are 1% full. How can they be 1% full when there's nothing in them?

Also, when everything is empty is says, "Your PM folders:" and then nothing. Could you make it when all folders are empty that line disappears as well? Or maybe after that it says All Folders Empty or something. :)

hmm.. i'll have to check on that :)

EDIT: It says 0% on my testboard.. I might have edited it and forgot to upload.. I'll try to sort it out..

EDIT2: done... it says 0% now and when you have 0 pms the line saying "Your PM folders:" disappears.. You can either re-install the entire hack or follow the instruction bellow:

In index.php find:
Quote:

if ($pmpercent < 50) {$pmstatus = "<font color=lime>Low</font>";}
Add above:
Quote:

if ($pmpercent != "0") {$pmfolderlinks = "<br>Your folders:";} else {$pmfolderlinks = "";}
In index.php find:
Quote:

if ($allpm[messages] < 1) {
$pmpercent = "1";
}
Replace with:
Quote:

if ($allpm[messages] < 1) {
$pmpercent = "0";
}
In forumhome_pmloggedin find:
Quote:

Your Inbox is $pmpercent% full - Current PM status: <b>$pmstatus</b><br>Your PM folders: $pmfolderlink
Replace with:
Quote:

Your Inbox is $pmpercent% full - Current PM status: <b>$pmstatus</b>$pmfolderlinks $pmfolderlink
Done :)
thanks for pointing it out, sidekick

refertech 03-15-2003 12:41 PM

Did you edit the original with this info too. :)

Thanks, Great edits.

Mark

The_Wanderer 03-15-2003 09:12 PM

Quote:

Today at 02:41 PM refertech said this in Post #27
Did you edit the original with this info too. :)

Thanks, Great edits.

Mark

yeah, i did.. as i said, you can just download it again and install it, or follow the instructions above :)

oh, and remember to click Install if you install it :D

refertech 03-15-2003 09:14 PM

Opps, sorry. :)

Alien 04-16-2003 06:14 PM

Wow this hack adds FOUR queries to the front index? Ouch. :(

I'd really love to use it, but that might be a bit much...?

Oblivion Knight 04-16-2003 06:22 PM

Quote:

Today at 07:14 PM Alien said this in Post #30
Wow this hack adds FOUR queries to the front index? Ouch. :(

I'd really love to use it, but that might be a bit much...?

Use v1.. It's only adding one query.
That's exactly what I thought about v1.1 ;)

Regards,
Oblivion Knight


All times are GMT. The time now is 07:14 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.01264 seconds
  • Memory Usage 1,740KB
  • 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
  • (10)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