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)
-   -   Improved PM Folderview (https://vborg.vbsupport.ru/showthread.php?t=36764)

kreftt 07-12-2003 06:06 AM

@gutspiller

in your PRIVFOLDER template, find this:

Code:

$readreceiptsoption
                </select> $gobutton</smallfont></td>
        </form></tr>
        </table>
        </td>
</tr>
</table>

maybe it looks a bit different, but only a bit. in the next line you see a table starting with the cellpadding of 5. change this 5 to 0.
aditionally, place a
Code:

<br>
directly after the code that i pasted above (means, directly before the beginning table where you changed the 5 to 0).

still in the PRIVFOLDER template you search for
Code:

<td width="33%" align="right"><font class="sf">100%</font>
</td>
</tr>
</table>
<br>

<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0"><TR><TD ALIGN="CENTER">

< !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!>

</TD></TR></TABLE>

</td>

directly after that you paste

PHP Code:

<td width="10">&nbsp;&nbsp;&nbsp;</td


@groovesalad

could you make a screeny please? and please log in as a user, not as an administrator and check if you can see the colors then.

greetz

Xelation 07-19-2003 11:42 AM

I'm using this hack also, what would I have to do for this hack and the one in this link to work together correctly?

https://vborg.vbsupport.ru/showthrea...threadid=43148

Frozen Dreams 07-20-2003 02:41 AM

Quote:

Yesterday at 02:42 PM Xelation said this in Post #212
I'm using this hack also, what would I have to do for this hack and the one in this link to work together correctly?

https://vborg.vbsupport.ru/showthrea...threadid=43148


quite a few people have asked this ... I have both hacks installed and I'd love to have both go together but seemingly no sulution yet :(
the one suggested in this thread didnt work for me :(

Ludelover 07-22-2003 02:28 AM

I have what I hope is an easy question. My quota bar only works when I go to "message tracking." If i go to inbox or sent items nothing shows up.

any idears?

Ludelover 07-22-2003 03:18 AM

sorry to waste your time. I actually figured it out. I messed up in the private.php code.

This hack works great. Many thanks

kreftt 07-24-2003 11:44 AM

@Xelation & Frozen Dreams

to make this work with the pm quota by usergroup hack you have to do some changes to private.php and private2.php

in my instructions there is this part of code, that you have to put in both private and private2.php:

Code:

//////////////////////////////////////////////////////////////////////////////hack//////////////////////////////////////////////////////////////
// PM GAUGE ENHANCED by WWW.TOTAL-IMPACT.COM aka princeton
// Original PM GAUGE by GOBLIN
// if you want to ignore admin convert the line below to --> if ($pmquota>0 and $bbuserinfo[usergroupid] != 6) {
if ($pmquota>0 ) {
  $ignoreusers="";
  if (trim($bbuserinfo['ignorelist'])!="") {
    $ignoreusers='AND fromuserid<>'.implode(' AND fromuserid<>',explode(' ', trim($bbuserinfo['ignorelist'])));
  }
  $msgcount = $DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] $ignoreusers");


  if ($msgcount < 1) {
  $pmpercent = "1"; // stop divisions by zero
  } else {
  $pmpercent = round(($msgcount[messages] / $pmquota) * 100,2);
  }
  if ($pmpercent>75) {
  $barimg="{imagesfolder}/red.gif";
  } elseif ($pmpercent>50) {
  $barimg="{imagesfolder}/yellow.gif";
  } else {
  $barimg="{imagesfolder}/green.gif";
  }
}
//check if there is message in folder(s) and if yes displays gauge
// if you want to ignore admin convert the line below to --> if ($pmquota>0 and $bbuserinfo[usergroupid] != 6) {
if ($msgcount[messages]>0 and $pmquota>0) {
    eval("\$pmgauge=\"".gettemplate("privfolder_pmgauge")."\";");
 }
// PM GAUGE ENHANCED by WWW.TOTAL-IMPACT.COM aka princeton
// Original PM GAUGE by GOBLIN
//////////////////////////////////////////////////////////////////////////////hack//////////////////////////////////////////////////////////////

you go to that code and put this:

Code:

$pmboxlmt = $DB_site->query_first("SELECT pmlimit FROM usergroup WHERE usergroupid='$bbuserinfo[usergroupid]'");
$pmboxlimit = $pmboxlmt[pmlimit];

directly after the commented out area, means, before:
Code:

if ($pmquota>0 ) {
after that, you change all 3 (THREE) instances of
Code:

$pmquota
in this piece of code to
Code:

$pmboxlimit
this worked fine for me

greetz

kreftt

Gutspiller 07-26-2003 04:24 AM

Quote:

07-12-03 at 01:06 AM kreftt said this in Post #211
@gutspiller

in your PRIVFOLDER template, find this:

Code:

$readreceiptsoption
                </select> $gobutton</smallfont></td>
        </form></tr>
        </table>
        </td>
</tr>
</table>

maybe it looks a bit different, but only a bit. in the next line you see a table starting with the cellpadding of 5. change this 5 to 0.
aditionally, place a
Code:

<br>
directly after the code that i pasted above (means, directly before the beginning table where you changed the 5 to 0).

still in the PRIVFOLDER template you search for
Code:

<td width="33%" align="right"><font class="sf">100%</font>
</td>
</tr>
</table>
<br>

<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0"><TR><TD ALIGN="CENTER">

< !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!>

</TD></TR></TABLE>

</td>

directly after that you paste

PHP Code:

<td width="10">&nbsp;&nbsp;&nbsp;</td


@groovesalad

could you make a screeny please? and please log in as a user, not as an administrator and check if you can see the colors then.

greetz


I don't have this code:

Code:

<td width="33%" align="right"><font class="sf">100%</font>
</td>
</tr>
</table>
<br>

<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0"><TR><TD ALIGN="CENTER">

<  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!>

</TD></TR></TABLE>

</td>

in my privfolder. What else should I search for?

Xelation 07-26-2003 05:35 AM

hey kreftt thanks, that did it! although I had to edit the templates and replace the variable from $pmprec% to $pmpercent%

legendarysk8er 07-26-2003 05:35 AM

Nice hack, but my members wouldn't need it.

kreftt 07-26-2003 07:56 AM

@gutspiller

2 weeks ago you had this code, now rhe advert is there instead of it. so put it after
Code:

<!-- END: AdSolution-Tag 4.0: AdSpot-Code -->

</TD></TR></TABLE>

</td>

greetz

kreftt


All times are GMT. The time now is 02:27 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.01553 seconds
  • Memory Usage 1,766KB
  • 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
  • (13)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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