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)

The_Wanderer 01-14-2003 10:00 PM

PM Status hack (pm folders on forumhome)
 
First of all, this is a modified version of the PM Gauge hack by Bald_Bouncer. Although i didn't use much of his code i suppose he deserve some credit :)
I tested this on 2.2.9 but it should work on earlier versions as well.
If you install this remember to click Install ;)

What does this hack do?
This hack displays how many percent of your pm quota you use as well as displaying a "PM Status" which starts as Low , then changes to Normal then Critical and finally it changes to full when you're pm quota reaches its limit.
when the status goes "critical" the pm bar starts to blink

Version 1.1
Right under the pm status you'll find links to all your pm folders. Users wont forget to delete the pms in their "sent items" folder anymore, for sure. :)

Version 1.2
same as v1.1 but with fewer queries :D

v1 screenshots
v1.1 screenshot


I know this isn't much of a hack, but my members seem to like it anyway.. this is also my first hack. I guess it's a start, right? :)

UPGRADING:
v1.1: https://vborg.vbsupport.ru/attachmen...&postid=345294
v1.2: https://vborg.vbsupport.ru/attachmen...&postid=390598

The_Wanderer 01-15-2003 03:04 PM

Screenshots

PSI|Dr-X 01-15-2003 03:38 PM

Thnx ill try

drumsy 01-15-2003 03:58 PM

You spelled unnecessary wrong in your screen shots! :)

The_Wanderer 01-15-2003 04:07 PM

ooops.. it's fixed now though :rolleyes:

Krakken 01-15-2003 06:47 PM

Hehe, could you add a bar with % full aswell? Underneath the text would be nice. :)
Nice hack!

The_Wanderer 01-15-2003 08:01 PM

hmm yes.. that should be very easy.. just add the part of the PM Gauge code i didn't use.. erh actually..
download the attached file and follow instructions :)

Krakken 01-15-2003 09:03 PM

Thanks. :)

partang2 01-15-2003 09:11 PM

Nice hack!

*clicks install*

drumsy 01-16-2003 01:26 PM

Installed! :)

Oblivion Knight 01-17-2003 11:51 AM

Interesting yet handy feature.. Thanks Wanderer, working great.

/me clicks Install.

Oblivion Knight 01-18-2003 09:39 AM

I've just noticed that this doesn't count the messages in the sent items directory..

Do they not add to the inbox limit or should these indeed be counted aswell at the messages in the inbox directory?

The_Wanderer 01-18-2003 09:59 AM

hmm that's strange.. the original pm gauge hack only counted messages from the inbox and not the sent items directory.. but i changed that in my hack..it works fine on my own forums.. maybe i uploaded the wrong hack.. let me just check :ermm:

EDIT: OOOPS.. i've located the problem :o

in index.php find
Quote:

$pmpercent = round(($inboxpms[messages] / $pmquota) * 100,2);
and replace with
Quote:

$pmpercent = round(($allpm[messages] / $pmquota) * 100,2);

The_Wanderer 01-23-2003 07:20 PM

I added another feature..

now you'll be able to see your pm folders and how many pms there are in each folder on the pm bar, i'll add a screenshot so you can see what i mean :)

here's the upgrade file :banana:

The_Wanderer 01-23-2003 07:20 PM

screenshot

GunsNetwork 01-23-2003 08:23 PM

WOW ~ I love your last edit for this hack.

This is an awesome hack for me. I have OVER 19600 members on my website.

So for very large website this hack is A DAM GOOD ONE.

I have about 11ish member from VBulletin.org send me hacks cause if it will work on a website as large as mine then it will work on a smaller website.

Here is my website The Guns Network

My website is the largest gun site on the web. We do over 37 Million hits a month on average.

So if you have any more hacks and want to see if they would work. All I ask is get most of the bugs out and lets test it.

My compliments to your PM hack.

Sincerely

Peter aka BowHunt

The_Wanderer 01-24-2003 07:20 PM

I'm glad you like it. It took me quite some time to do it, seeing how i'm not that experienced with PHP yet. A lot of my members didn't even know the sent items folder existed untill after i installled the hack. :)

I don't have any other hacks in progress at the moment, but i'll start working as soon as i come up with something ;)

Oblivion Knight 02-05-2003 08:38 PM

Thanks for the fix you posted to my question earlier on Wanderer.

Top stuff mate.

HarryBO 02-06-2003 11:06 PM

++++ the Hack doesn´t work on my vb! I´ve tried it 3 times, but i can´t see a difference! Can someone help me?

The_Wanderer 02-07-2003 05:23 PM

Uhm.. that's strange. Are you sure you installed it right?
uhm, can you please send a working link to your forums?

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 05: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 05: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

The_Wanderer 04-16-2003 08:50 PM

Quote:

Today at 07:22 PM Oblivion Knight said this in Post #31
Use v1.. It's only adding one query.
That's exactly what I thought about v1.1 ;)

Regards,
Oblivion Knight

yup.. that's why i let the v1 install file stay in the zip :)

feel free to edit v1.1 to use less queries though...

The_Wanderer 05-02-2003 07:26 PM

ok i updated it.. v1.2 features the same as v1.1 but it uses less queries :)

definetly worth a try, methinks :D

this was tested on my testforum and my forum, it should work :)

here's the upgrade file (it's also included in the zip on the first page)

Alien 05-02-2003 07:42 PM

What's "less" queries? :)

How many in total will it add to forumhome exactly?

-Jason

Alien 05-02-2003 07:44 PM

I believe v1 added one query, so this will add only 1 query maybe to the forumhome no matter how many folders a user has?

drumsy 05-02-2003 08:06 PM

My "Your Inbox is 8% full" went to 0% after I installed the upgrade to 1.2

The_Wanderer 05-02-2003 08:25 PM

uhm.. i think it adds 1 lol... i'll test it tomorrow, k?

EDIT: yeah it adds only 1 query nomatter how many folders you have :)

Quote:

Today at 11:06 PM drumsy said this in Post #35
My "Your Inbox is 8% full" went to 0% after I installed the upgrade to 1.2
Sounds weird.. i'll try re-installing the hack tomorrow.. just to make sure everything works :D

Alien 05-03-2003 04:12 AM

Sounds great, I'll give it a test!

(I'll just wait a day in case there is a bug confirmed from above) lol ;)

-Jason

The_Wanderer 05-03-2003 06:25 AM

i can now confirm that it works.. i tried re-installing it using the v1.2 install file, and everything worked fine..

i've changed nothing in the part of the code, that tells you how many % you've used.. :\
oh and it uses a total of 2 queries apparently.. I can't seem to figure a way for it to use only 1. Not yet at least :D
but still 2 is better than 4 ;)

The_Wanderer 05-04-2003 07:18 PM

for those of you who installed v1.2, you have to find and delete $ignoreusers near ORDER BY pmfolderid ASC

i'll update the install files included in the zip on the first page

The General 05-07-2003 11:31 AM

Great hack! Cheers!


All times are GMT. The time now is 11:13 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.03594 seconds
  • Memory Usage 1,818KB
  • 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
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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