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)
-   -   vB Assistant (https://vborg.vbsupport.ru/showthread.php?t=50991)

Pollo 04-12-2003 04:21 PM

Quote:

04-07-03 at 12:47 AM AnaFreak said this in Post #87
can't understand the directions.......of course I am not that great at this stuff, my problem is on step3.

"Notes: Make sure you edit the "forums" name to the name of your directory!

Some where at the top of your template head insert above $headnewpm"

Where is this???

It is a typo, it should read:

In the template headinclude add the following ABOVE $headnewpm

<snip code: (see install directions)>

Notes: Make sure you edit the "forums" name to the name of your directory!

indiamike 04-14-2003 09:10 PM

I had looked at this hack when it was first released and I didn't think it was something I could use.....boy was I wrong. After some members suggested an easier way to browse my site I installed this. After only a few days it has become a huge hit on my site and I find myself using it all the time to.

Installation was so simple and this hack is such a great addition to any forum so I just want to say thanks Sebastian for releasing this.

This is a most excellent hack. Great Work :D


Cheers
Mike

Kurayami 04-14-2003 10:16 PM

I have a bit of an issue--I run my forum directly off of a domain, and not under a subdirectory. So how do I go about using this, as entering the forum directory as "/" doesn't work.

Thanks! :)

Pollo 04-15-2003 12:33 AM

Quote:

03-31-03 at 11:54 PM Pollo said this in Post #59
Sebastian, well my question was that my forum isn't in a directory (per se, of course it is in a directory, just the web site's home one). In other words, my forum is the site, the site the forum ie: http://domain.com

I solved it by removing:
$forumdir = "???"; // name of your forum directory

-and removing any mention of $forumdir anywhere.

Everything works now, and I'm sure members will really groove on it, DANKE! :D

I had same question (page 4 of this thread), and solved it via the method I posted above. Works fine now.

alwaysweb 04-15-2003 05:25 AM

Quote:

04-01-03 at 05:23 AM Rolodex said this in Post #65
My quota is set to 100 ... my mods are 50, and members are 40.

Edit: My BAD ... I had this set to Zero (Unlimited) ... after placing the members amount into the box, the error went away.

Thanks for the heads up guys! :)

Setting Maximum saved messages in Vbulletin admin area to zero *IS* a valid option (0 means unlimited, it says in the configuration option's description!)

Yes, the code needs a few small bugfixes (marked by the // ADDED comments below) so as not not div by zero if in fact limit is zero :) If max pm limit is 0 (unlimited), just hide the PM quota stuff.

Around line 46, add a simple IF statement. Change this:

PHP Code:

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

if ( 
$amount <= 15 
{     
     
$meter "<br/><br/><small>($amount% full) <img src=\"$images/level1.gif\">¬¬¬¬</small>";
}
elseif ( 
$amount <= 30 
{
     
$meter "<br/><br/><small>($amount% full) <img src=\"$images/level1.gif\"><img src=\"$images/level1.gif\"><img src=\"$images/level2.gif\">¬¬¬</small>";
}
elseif ( 
$amount <= 45 )
{
     
$meter "<br/><br/><small>($amount% full) <img src=\"$images/level1.gif\"><img src=\"$images/level1.gif\"><img src=\"$images/level2.gif\"><img src=\"$images/level3.gif\">¬¬</small>";
}
elseif ( 
$amount <= 60 )
{
     
$meter "<br/><br/><small>($amount% full) <img src=\"$images/level1.gif\"><img src=\"$images/level1.gif\"><img src=\"$images/level2.gif\"><img src=\"$images/level3.gif\"><img src=\"$images/level4.gif\">¬</small>";
}
elseif ( 
$amount <= 90 )
{
     
$meter "<br/><br/><small>($amount% full)</small> <img src=\"$images/level1.gif\"><img src=\"$images/level1.gif\"><img src=\"$images/level2.gif\"><img src=\"$images/level3.gif\"><img src=\"$images/level4.gif\"><img src=\"$images/level5.gif\">";  

else
{
     
$meter "<br/><br/><font color='red'><b>FULL</b></font>";


to be like:

PHP Code:

       if ($pmquota != 0) { // ADDED


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

if ( 
$amount <= 15 
{     
     
$meter "<br/><br/><small>($amount% full) <img src=\"$images/level1.gif\">¬¬¬¬</small>";
}
elseif ( 
$amount <= 30 
{
     
$meter "<br/><br/><small>($amount% full) <img src=\"$images/level1.gif\"><img src=\"$images/level1.gif\"><img src=\"$images/level2.gif\">¬¬¬</small>";
}
elseif ( 
$amount <= 45 )
{
     
$meter "<br/><br/><small>($amount% full) <img src=\"$images/level1.gif\"><img src=\"$images/level1.gif\"><img src=\"$images/level2.gif\"><img src=\"$images/level3.gif\">¬¬</small>";
}
elseif ( 
$amount <= 60 )
{
     
$meter "<br/><br/><small>($amount% full) <img src=\"$images/level1.gif\"><img src=\"$images/level1.gif\"><img src=\"$images/level2.gif\"><img src=\"$images/level3.gif\"><img src=\"$images/level4.gif\">¬</small>";
}
elseif ( 
$amount <= 90 )
{
     
$meter "<br/><br/><small>($amount% full)</small> <img src=\"$images/level1.gif\"><img src=\"$images/level1.gif\"><img src=\"$images/level2.gif\"><img src=\"$images/level3.gif\"><img src=\"$images/level4.gif\"><img src=\"$images/level5.gif\">";  

else
{
     
$meter "<br/><br/><font color='red'><b>FULL</b></font>";
}


// ADDED 

Around line 383 where it prints this messages section:

PHP Code:

if ( $bbuserinfo[userid] != ) {
                        echo 
"<center>You have $unreadpm[messages] new messages. <br/> $allpm[messages] are old messages. $meter $lastpm</center>";
                } else {
                        echo 
$guestmsg;
                } 

change it to be:

PHP Code:

if ($pmquota == 0$meter ""// ADDED
if ( $bbuserinfo[userid] != ) {
                        echo 
"<center>You have $unreadpm[messages] new messages. <br/> $allpm[messages] are old messages. $meter $lastpm</center>";
                } else {
                        echo 
$guestmsg;
                } 


wolfgang2 04-21-2003 03:13 PM

Hello Sebastian( or anyone else) !

great hack idea unfortunately it is not working on my forum.
i use 2.3.0

Could u take a look at the source code of the header area please
and tell me what is wrong there?

Lethal 04-21-2003 08:54 PM

Quote:

Today at 11:13 AM wolfgang2 said this in Post #96
Hello Sebastian( or anyone else) !

great hack idea unfortunately it is not working on my forum.
i use 2.3.0

Could u take a look at the source code of the header area please
and tell me what is wrong there?

the assiatant oopens but only blank...
http://deutsches-architektur-forum.de/forum

thx:)

seems like it is working to me. Opens up fine for me.

Pollo 04-22-2003 04:34 AM

Yep, no problems here, it works fine wolfgang2 (unless you eventually got it working, and thus duh, heh).

Kars10 04-22-2003 09:16 AM

First of all, very nice Hack.
What about a Option in the users Profile, wher Users can select to Popup the Assistant Window automaticly when visit the forums?

Thanks
Kars

/me licks install!

wolfe 04-27-2003 08:08 PM

d00d can't you make it template based please it would be easier to edit the tables how people want them.


All times are GMT. The time now is 04:30 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.01458 seconds
  • Memory Usage 1,785KB
  • 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
  • (4)bbcode_php_printable
  • (4)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