vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   PM stats in Postbit (https://vborg.vbsupport.ru/showthread.php?t=90206)

peterska2 12-18-2004 10:00 PM

PM stats in Postbit
 
This is a quick port of my hack for 3.0.0 beta 7 bringing it up to date. The original version can be found here. There actually isn't much change to it but I have improved it a bit.

In your POSTBIT or POSTBIT_LEGACY template find

Code:

                <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
ADD ABOVE

Code:

<div><if condition="$userinfo['options'] & $_USEROPTIONS['receivepm']">
 <a href="private.php?userid=$post[userid]$session[sessionid]">PM box:
 $userinfo[pmtotal] /
 <if condition="$userinfo[usergroupid]==x">y</if>
 <if condition="$userinfo[usergroupid]==x">y</if>
 <if condition="$userinfo[usergroupid]==x">y</if>
 <if condition="$userinfo[usergroupid]==x">y</if>
 </a></if></div>

Repeat the if line as often as required as you will need one line per usergroup.

Replace x with the usergroup id number eg 2 for members 6 for admins etc
Replace y with the PM box size you have allocated to the usergroup with the usergroup manager

This takes account of the action of having PM's turned on or off and will not show if a user has PM's off.

It also supplies a link to the members PM inbox regardless of which users PM Box Status link they click on.

If you install this please click install.


Important information regarding support - 20/04/06
Due to time constraints and the amount of things that are being planned for future modifications, priority support will now be provided here. Support provided in this thread will be on an as and when basis.


All times are GMT. The time now is 10:01 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.01007 seconds
  • Memory Usage 1,711KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete