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
Details »»

Version: 1.00, by Bald Bouncer Bald Bouncer is offline
Developer Last Online: Feb 2016 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 01-17-2002 Last Update: Never Installs: 84
 
No support by the author.

Displays a gauge on how full your PM Inbox is....

Updates

Display on Forum Home or in PM section
Bar Colour changes with % Limits

Fixed

Black box in PM Template

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 07-08-2002, 04:04 PM
Heijin Heijin is offline
 
Join Date: Mar 2002
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The funniest thing. The bars look like the bars from another hack. like the rpg hack.
Reply With Quote
  #73  
Old 07-08-2002, 04:45 PM
Prince Prince is offline
 
Join Date: Oct 2001
Posts: 333
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, check it out! Here is my forumhome_pmloggedin template, see attached image.


PHP Code:
<tr id="cat">
    <
td id="pmBox" bgcolor="#336D95" background="https://vborg.vbsupport.ru/images/catagory_backing.gif" colspan="6"><a href="private.php?s=$session[sessionhash]title="Click Here to Open Your Private Messages $inboxname"><normalfont color="#000000"><b>Private Messages</normalfont></b></a></td>
</
tr>
<
tr>
    <
td bgcolor="#1C5780" align="center" valign="center"><img src="https://vborg.vbsupport.ru/images/$lightbulb.gif" alt=""></td>
    <
td bgcolor="#13486D"><smallfont>
    <
b>$bbuserinfo[username]</b> - You have $newpm[messages] new message(ssince your last visit.<br>
    (
You have $unreadpm[messagesunread messages and $allpm[messagestotal messages in all your folders.)</smallfont></td>

<
td bgcolor="#1C5780"><smallfont>Your PM box is <b>$pmpercent%</bfull<br>
<
img src="$barimgwidth="$pmpercent%" height="6">
        
<
table border="0" cellspacing="0" width="100%">
          <
tr>
            <
td width="33%"><smallfont>0%</td>
            <
td width="34%">
              <
p align="center"><smallfont>50%</td>
            <
td width="33%">
              <
p align="right"><smallfont>100%</smallfont></p>
            </
td>
          </
tr>
        </
table>
        
      </
td>
    </
tr
Reply With Quote
  #74  
Old 07-08-2002, 05:49 PM
87GTR 87GTR is offline
 
Join Date: Apr 2002
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok here is mine forumhome_pmloggedin
Where does that backgroud tag keep showing up after I make a post?

im going to put this into a txt file and attach it.
this is insane when I post its chaning my code........
Code:
<tr id="cat">
	<td bgcolor="#336D95" background="https://vborg.vbsupport.ru/images/catagory_backing.gif" colspan="6"><a href="private.php?s=$session[sessionhash]" title="Click Here to Open Your Private Messages $inboxname"><normalfont color="#000000"><b>Private Messages</normalfont></b></a></td>
</tr>
<tr>
	<td bgcolor="#1C5780" align="center" valign="top"><img src="https://vborg.vbsupport.ru/images/$lightbulb.gif" alt=""></td>
	<td bgcolor="#13486D" colspan="5">
<table width=100% valign=top><tr><td width=50% valign=top><smallfont>
	<b>$bbuserinfo[username]</b> - You have $newpm[messages] new message(s) since your last visit.<br>
	(You have $unreadpm[messages] unread messages and $allpm[messages] total messages in all your folders.)</smallfont></td>
   <td bgcolor="#13486D" > <table width=100%><tr> <td colspan=3><smallfont>Your PM usage is $pmpercent% full.</td></tr><tr><td colspan=3><img src="$barimg" width="$pmpercent%" height="5"></td></tr>
           <tr>
            <td width="33%"><smallfont>0%</td>
            <td width="34%">
              <p align="center"><smallfont>50%</td>
            <td width="33%">
              <p align="right"><smallfont>100%</smallfont></p>
            </td>
          </tr>
        </table>
</td>
          </tr>
        </table>
</td>
          </tr>
        </table>
      </td>


</tr>
strange when I posted it using [ php ] tags it changed my code
Reply With Quote
  #75  
Old 07-08-2002, 06:07 PM
87GTR 87GTR is offline
 
Join Date: Apr 2002
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok here is the txt ver

I dont understand why this board is still parseing inside of the

[ php ] and [ code ] tags
need to get that fixed.
Reply With Quote
  #76  
Old 07-08-2002, 06:09 PM
Prince Prince is offline
 
Join Date: Oct 2001
Posts: 333
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I figured out how you did it, mine is a tad different I put the gauge in a separate box, different color, etc., though.
Reply With Quote
  #77  
Old 07-08-2002, 06:16 PM
87GTR 87GTR is offline
 
Join Date: Apr 2002
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lets see a SS of yours ver

Im going to rewrite this hack so it doesnt use images
so that a few less images download each time.
Reply With Quote
  #78  
Old 07-10-2002, 07:29 PM
Prince Prince is offline
 
Join Date: Oct 2001
Posts: 333
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My inbox in now 78% full, however the bar is still yellow, it's supposed to change to red after 75%.

any ideas?
Reply With Quote
  #79  
Old 07-11-2002, 04:26 PM
Prince Prince is offline
 
Join Date: Oct 2001
Posts: 333
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

okay, for those of you using the bar graph here is the correct code to display the green, yellow and red images:

PHP Code:
//PM GAUGE HACK BY GOBLIN
$inboxpms=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] $ignoreusers");
$pmpercent=round(($inboxpms[messages] / $pmquota) * 100,2);
  if (
$pmpercent>50 && $pmpercent<=76) {
  
$barimg="https://vborg.vbsupport.ru/images/yellow.gif";
  } else if (
$pmpercent>75) {
  
$barimg="https://vborg.vbsupport.ru/images/red.gif";
  } else {
  
$barimg="https://vborg.vbsupport.ru/images/green.gif";
  }
//PM GAUGE HACK BY GOBLIN 
* don't forget to change the path to the images
Reply With Quote
  #80  
Old 07-11-2002, 08:21 PM
Wolf42's Avatar
Wolf42 Wolf42 is offline
 
Join Date: Nov 2001
Location: Vienna, Austria, Europe
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice hack, just working great with my vB 2.2.6!!

Thank you!!
Reply With Quote
  #81  
Old 07-11-2002, 11:08 PM
87GTR 87GTR is offline
 
Join Date: Apr 2002
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you dont need this line

Code:
$inboxpms=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] $ignoreusers");
as you have just done the same query about 3 line before.

you can replace it with this line.

Code:
$inboxpms=$allpm;
that is 1 less query you have to do. and if you have busy site every little bit helps.
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 09:17 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.05232 seconds
  • Memory Usage 2,331KB
  • 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
  • (2)bbcode_php
  • (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
  • (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