vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Statistics Modifications - vbTrends - An Enhanced Statistics Box on Forum Home (https://vborg.vbsupport.ru/showthread.php?t=143001)

Daky 04-18-2007 02:02 PM

Quote:

Originally Posted by hambil (Post 1228994)
I have no idea.


it wont i am using both.

www.diskusije.net

dbirosel 04-18-2007 06:17 PM

Quote:

Originally Posted by RedGTiVR6 (Post 1228971)
I just tried to install this update and have run into an issue.

I uploaded the files and I've uploaded the .xml file allowing rewrite.

I then go into the usergroups to allow the various user groups to view, when on an administrator and I select yes to can view, then hit update, I get the following database error:

Code:

Database error in vBulletin 3.6.5:

Invalid SQL:
UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
        `title` = 'Administrators',
        `description` = '',
        `usertitle` = 'Administrator',
        `opentag` = '',
        `closetag` = '',
        `passwordexpires` = '0',
        `passwordhistory` = '0',
        `vbtrends_permissions` = '1',
        `vbgmepermissions` = '31',
        `vbclassified` = '122879',
        `vbclassified_timeframe_limit` = '365',
        `vbimghost` = '3',
        `vbimghost_upslots` = '20',
        `vbimghost_files` = '500',
        `forumpermissions` = '1048575',
        `attachlimit` = '0',
        `pmquota` = '2000',
        `pmpermissions` = '7',
        `pmsendmax` = '5',
        `calendarpermissions` = '63',
        `wolpermissions` = '31',
        `adminpermissions` = '3',
        `genericpermissions` = '1038884799',
        `genericoptions` = '55',
        `profilepicmaxwidth` = '100',
        `profilepicmaxheight` = '100',
        `profilepicmaxsize` = '100000',
        `avatarmaxwidth` = '100',
        `avatarmaxheight` = '100',
        `avatarmaxsize` = '65536',
        `signaturepermissions` = '230911',
        `sigpicmaxwidth` = '500',
        `sigpicmaxheight` = '100',
        `sigpicmaxsize` = '20000',
        `sigmaxrawchars` = '0',
        `sigmaxchars` = '0',
        `sigmaxlines` = '0',
        `sigmaxsizebbcode` = '7',
        `sigmaximages` = '0',
        `akspam_permissions` = '0',
        `vbwikiroles` = '',
        `vbwikipermissions` = '524287'
WHERE usergroupid=6;

MySQL Error  : Unknown column 'vbtrends_permissions' in 'field list'
Error Number : 1054

Seems that there is an issue with "vbtrends_permissions"...

Any help?

Also, do you have any special uninstall instructions? I'd like to be able to uninstall if possible for future.

EDIT: I had to completely uninstall the .xml then reinstall it to prevent this database error from occuring.

On another note, now the stats are all exagerated. Previously, our numbers were up 8%, 11%, etc.

Now it's showing a 90% increase, 88% increase, etc.

The change is just after the update...not after a few days...but rather just within a matter of a few minutes.

I'm also getting that error....

Neo_Angelo 04-18-2007 09:29 PM

sweet hack thanks *neo clicks install*

rjmjr69 04-18-2007 10:24 PM

After installing per instructions I get no display in the forum statics box nothing. images are there product installed correctly did the template edit manually. ?

hambil 04-18-2007 10:27 PM

Did you also follow the instructions in giant red letters?

rjmjr69 04-18-2007 10:28 PM

Quote:

Originally Posted by hambil (Post 1226596)
Go into the usergroups and save them (even though you haven't made a change). There is some sort of odd permission bug happening.

Sorry did not catch this post before installing. This has fixed my issues. Thank you very nice hack


Quote:

Did you also follow the instructions in giant red letters?
:( Sadly NO I did not Sorry to waste your time :o

hambil 04-18-2007 10:44 PM

Quote:

Originally Posted by rjmjr69 (Post 1230851)
Sorry did not catch this post before installing. This has fixed my issues. Thank you very nice hack




:( Sadly NO I did not Sorry to waste your time :o

LOL - it happens ;)

rjmjr69 04-19-2007 12:43 AM

Would it be possible to have the new usernames appear with the usergoup assigned colors?
Like staff is blue registered are green etc etc......
I looked for the normal [username] to change to [musername] but did not find anything in the template or the plug in

hambil 04-19-2007 01:11 AM

Quote:

Originally Posted by rjmjr69 (Post 1230921)
Would it be possible to have the new usernames appear with the usergoup assigned colors?
Like staff is blue registered are green etc etc......
I looked for the normal [username] to change to [musername] but did not find anything in the template or the plug in

Sure. In the forumhome_complete hook find
PHP Code:

$newusername $member['username']; 

And replace it with:
PHP Code:

$newusername fetch_musername($member); 


Daky 04-19-2007 08:19 PM

Quote:

Originally Posted by Daky (Post 1230429)
This is very nice script, i love it!

Thank you!

I would just like to ask you how to bold this:

Teme: 2,342, Ovaj mesec: 159 (99%)
Poruke: 72,221, Ovaj mesec: 6366 (102%)
Članovi: 4,971, Ovaj mesec: 274 (4%)

I would like all numbers to be bold, only numbers.

TO BE LIKE: Teme: 2,342, Ovaj mesec: 159 (99%)

teme = threads
poruke = posts


Thank you!


Looks like there is no way to do this? to bold the numbers eh?:)

Pls help, i would like to have it bold on my site www.diskusije.net

D

rayw 04-22-2007 05:47 AM

Installed and working great on my forum, i think! :)

rayw 04-22-2007 10:11 AM

There is an option in the admincp Set this to number of previous months you want included in trend data.

If I set this to 1, will it calculate the figures based on the previous months registrations, posts, threads etc? I'm assuming that by leaving it at 6 months it uses averages based on a 6 month period?

Can anyone confirm this for me please?

Thanks :)

kiFF 04-22-2007 04:26 PM

It's not working for me. I tried it with and without auto replace. If "auto replace" is off and I add edit the template, the statistics box is empty. And if I turn "auto replace" on and leave the template unedited, it just shows the default statistics.

Ronak 04-22-2007 04:29 PM

Awesome hack ;)

Digbijoy 04-25-2007 09:38 AM

will surely install when it is out of beta stage.

I hope by that time, more features get added.

nikki712 04-25-2007 11:58 PM

Edited: I got it fixed. Great hack!

rayw 04-26-2007 04:43 AM

Quote:

Originally Posted by rayw (Post 1233276)
There is an option in the admincp Set this to number of previous months you want included in trend data.

If I set this to 1, will it calculate the figures based on the previous months registrations, posts, threads etc? I'm assuming that by leaving it at 6 months it uses averages based on a 6 month period?

Is anyone able to answer this for me please?

Thanks! :)

FreshFroot 04-27-2007 11:36 PM

Quote:

Originally Posted by kiFF (Post 1233456)
It's not working for me. I tried it with and without auto replace. If "auto replace" is off and I add edit the template, the statistics box is empty. And if I turn "auto replace" on and leave the template unedited, it just shows the default statistics.

same here.. very odd... i don't get why? could another stats hack be causing a problem or something? This hack doesn't show anything at all..

NVM... guys if it doesn't work.. MAKE SURE it is FTPed properly. Since my admincp folder is different it missed 1 file.. but anyways, be SURE everything is FTPed right.. double check it for the people that it isn't working for.

hambil 04-30-2007 06:15 PM

Quote:

Originally Posted by rayw (Post 1235628)
Is anyone able to answer this for me please?

Thanks! :)

Yes, that is how it works. Month to date average for the past x months (not including the current month, since the current month is the comparison point).

wolfe 05-03-2007 07:10 PM

heres a alteration to show the newest members in the usergroup colour

FIND: plugin manager > [vbTrends] Run Main Trends Code
Code:

        $vbtrends_newmembers_bit = '';   
        while($member = $db->fetch_array($vbtrends_last_x_joins_result))
        {
              $newuserid = $member['userid'];
              $newusername = $member['username'];
              eval('$vbtrends_newmembers_bit .= "' . fetch_template('forumhome_vbtrends_newmember_bit') . '";');
        }
    }

REPLACE WITH:
Code:

        $vbtrends_newmembers_bit = '';   
        while($member = $db->fetch_array($vbtrends_last_x_joins_result))
        {
              $newuserid = $member['userid'];
                        fetch_musername($member);
              $newusername = $member['musername'];
              eval('$vbtrends_newmembers_bit .= "' . fetch_template('forumhome_vbtrends_newmember_bit') . '";');
        }
    }

THEN FIND: plugin manager > [vbTrends] Default Last X Joins Hook
Code:

    // Last x joins
    $vbtrends_last_x_joins_result = $db->query_read("
        SELECT *
        FROM " . TABLE_PREFIX . "user             
        ORDER BY joindate DESC
        LIMIT " . $vbulletin->options['vbtrends_newmembers']
    );

REPLACE WITH:
Code:

    // Last x joins
    $vbtrends_last_x_joins_result = $db->query_read("
        SELECT username, userid, joindate, IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
        FROM " . TABLE_PREFIX . "user AS user             
        ORDER BY joindate DESC
        LIMIT " . $vbulletin->options['vbtrends_newmembers']
    );

result atttached

asked bwt it a while bk and no response so made it my self

foxfirediego 05-04-2007 12:46 PM

issue, using PT-BR language it show me:
Code:

Membros Ativos: 396  (11327%)
T?picos: 1.778, Esse M?s: 57  (111%)
Mensagens: 10.342, Esse M?s: 468  (171%)
Membros: 3.496, Esse M?s: 24  (-86%)

but using english language looks correct:
Code:

Active Members: 396  (11%)
Threads: 1,778, This Month: 57  (111%)
Posts: 10,342, This Month: 468  (171%)
Members: 3,496, This Month: 24  (-86%)


DieselMinded 05-13-2007 05:59 PM

I wish to completely remove the Active Members: Line How do i do this?

BTW Just upgraded to 2.0.0 with VB ver. 3.6.6 So Far So Good

DM

wolfe 05-14-2007 10:02 AM

m8 is there anyway of making a positive / negative for the Active Members: 55 (89%) like if 89% drops then its red arrow neg or if it goes up its green pos ?

tutusinghsohi 05-18-2007 02:13 AM

sorry to be a pain, but i have a small problem...

when i replace
Code:

                <div class="smallfont">
                        <div>
                                $vbphrase[threads]: $totalthreads,
                                $vbphrase[posts]: $totalposts,
                                $vbphrase[members]: $numbermembers<if condition="$show['activemembers']">,
                                        <span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span>
                                </if>
                        </div>
                        <div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
                </div>



with
Code:

                <!-- vbTrends Start -->
                $vbtrends_output
                <!-- vbTrends End -->

nothing shows up...:(


please help...:D...:D

Tearstone 05-22-2007 11:19 PM

Unfortunately, I had to uninstall this mod because the arrows showed up as red "X"s (broken images) on one of the skins I was using. :(

Doctor Death 05-28-2007 05:06 PM

Can you please consider adding to this hack the preservation of formatting for usernames by usergroup? (HTML Usergroup Tags)

It would be useful to retain that formatting.

Thanks much!

Doc

Brandon Sheley 06-14-2007 03:30 AM

I Installed this and I updated the usergroups and everything worked great

now 1 day later and it's just blank. I don't believe anyone touched anything ?

any idea ???

thanks
-Brandon

GuaRRand 06-15-2007 10:48 AM

how does it do the math?

Active Members: 30 (36%)
Threads: 456, This Month: 27 (84%)
Posts: 9,978, This Month: 375 (61%)
Members: 84, This Month: 1 (0%)

I mean, what is the (%) behind the numbers?... the % of posts/threads made by active members or inactive?... or something else?

loonytune15 06-24-2007 08:54 AM

Is this mod still alive? I was waiting for it to come out of BETA, but nothing has happened since April..

provedel 06-29-2007 01:33 AM

Can you please consider adding to this hack a way to show the total number of posts deleted by our mods???

Thanks!


All times are GMT. The time now is 01: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.03377 seconds
  • Memory Usage 1,827KB
  • 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
  • (9)bbcode_code_printable
  • (2)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (30)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