vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Activity Modification (https://vborg.vbsupport.ru/showthread.php?t=93831)

dbirosel 07-10-2007 04:00 AM

A new mod came out for THREADS:

https://vborg.vbsupport.ru/showthread.php?t=151844

Instead of having "TODAY", can i replace that with "THREADS"? how?

WetWired 07-10-2007 10:42 PM

From the opening post:
Quote:

  • Can you make X number get split up into digits?
    I understand where you're coming from with this one, but I just can't figure out a way to work this that would be simple to use.


Milad 07-16-2007 07:41 AM

can you please make this hack compatible with the new $template_hook system?

You're gonna save many templates edits.

webgod 07-17-2007 04:21 PM

I'm getting this error message:

Quote:

Active Users: PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of wwu002promoteuser(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in D:\WEB\website\forums\global.php3(360) : eval()'d code on line 425

it shows up in my Inferno vBShout Lite hack



any suggestions?

Blackhat 08-12-2007 10:12 AM

does it work with the latest Vb ?

Blackhat 08-12-2007 08:18 PM

how can I alter my own join date ?

WetWired 08-15-2007 12:45 AM

If you are asking how to set the start point for longevity, it's in the activity maintenance section under maintenance in the admin cp. You can also click the link from the activity options panel where it is displayed.

ForYou 09-22-2007 08:52 PM

Hello ,

I don't see any chang for any group on today ,

http://dardasha.net/montada/uploaded/1_error.png

Just see for admin ,

I hope understand me ,

Regards

WetWired 09-27-2007 05:47 PM

AdminCP|vbulletin options|Activity Settings|Find today's activity for all users
Set it to yes. It starts off because it can add a lot of queries.

columbusgeek 10-22-2007 06:02 PM

Is it possible to not show the postbit info for unregistered users? I have a section that is open for posting but since guests are not tracked this leaves empty boxes for them and looks a little dumb.

Great plugin BTW.

WetWired 10-25-2007 04:02 AM

It should be as simple as surrounding the table you added to the postbit with
Code:

<if condition="$post['userid']"></if>

WetWired 10-25-2007 07:21 PM

Edited the above post; I was half asleep when I originally posted it, and it was wrong...

mri_mohammad 10-29-2007 12:55 AM

any one have module for vba to show top 10 activity?

maidos 11-01-2007 10:12 AM

hm i followed the instruction but it seems i cant see the stats please help

WetWired 11-01-2007 12:41 PM

What exactly is the problem you're having? You can't see the top activity page? You can't see your template modifications? The images aren't showing? If you're using FireFox and you don't have the images in the right place, you may not see any activity stuff on the postbit. Check for redexs with IE.

mri_mohammad 11-02-2007 12:32 AM

do you have anything for vbadvanced like top 5 ?

WetWired 11-02-2007 12:48 PM

No, though it shouldn't be too hard for a coder to take the code for the stand-alone Top Activity page and turn it into a vBA module. The relevant code is in the "Top Activity" plugin in the "forumhome_start" hook location.

mri_mohammad 11-02-2007 01:56 PM

but i see somebody have it on vba if you want i can give you a website of them

mystic10 11-02-2007 08:24 PM

https://vborg.vbsupport.ru/external/2007/11/49.jpg

what am i doing wrong i uploaded everything and changed all the necessary templates please help

sinisterpain 11-02-2007 10:26 PM

Did you read the FAQ above

WetWired 11-03-2007 11:04 PM

It looks like your browser cannot find the images and is displaying the "alt" content, instead. You need to upload one of the "activity" folders in the zip file to misc folder of each style. So if you go to AdminCP>Style Manager>My Style>Style vars, and the misc image directory is
images/mycoolstyle/misc
then you need to make sure that the activity folder is in that directory so the path to an image would be, for example
images/mycoolstyle/misc/activity/activity0.gif

WetWired 11-03-2007 11:05 PM

Quote:

Originally Posted by mri_mohammad (Post 1374179)
but i see somebody have it on vba if you want i can give you a website of them

As I said, it shouldn't be too hard to do. Why don't you contact them yourself and ask for it?

ChrisSy 11-10-2007 01:24 PM

The 'Today' activity bar isnt working, any suggestions on what i need to check?

LiLSnooP 11-11-2007 09:40 PM

hello i have question about this great hack

in this area domain.com/index.php?do=activitystat

it shows my username

what about color
because every single group have other color to recognise it
could you explain me how to make colors for

/index.php?do=activitystat

?

or maybe add some other option like it is in members.php ?

thay you for replay

mri_mohammad 11-11-2007 10:34 PM

Quote:

Originally Posted by WetWired (Post 1375230)
As I said, it shouldn't be too hard to do. Why don't you contact them yourself and ask for it?

i contact them but they didn't give me can you make it?

WetWired 11-12-2007 03:52 PM

Quote:

Originally Posted by ChrisSy (Post 1379712)
The 'Today' activity bar isnt working, any suggestions on what i need to check?

It's probably turned off. By default, activity today is only shown for the logged in user, since it requires extra queries.

WetWired 11-12-2007 04:10 PM

Quote:

Originally Posted by LiLSnooP (Post 1380600)
what about color
because every single group have other color to recognise it
could you explain me how to make colors for

/index.php?do=activitystat

I haven't tested this, but it should work... you should copy out the old plugin and keep it in notepad so you can put it back if it doesn't work.

Go to AdminCP|Plugin System|Plugin Manager, and find the Activity Modification plugin named "Top Activity" for forumhome_start.

find
Code:

//*****************************
// Display the top X activity

$count=0;
$userlist='0';
foreach($WWU002statdata as $index=>$value){
  $userlist.=','.$value[0];
}//endforeach($WWU002statdata as $index=>$value)

$exists=$vbulletin->db->query_read('SELECT posts,userid,usergroupid,membergroupids,username FROM '.TABLE_PREFIX.'user WHERE userid IN ('.$userlist.')');
$userlist=array();
while($existuser=$vbulletin->db->fetch_array($exists)){
  $userlist[intval($existuser['userid'])]=$existuser;
}//endwhile($existuser=$vbulletin->db->fetch_row($exists))
$vbulletin->db->free_result($exists);

replace it with
Code:

//*****************************
// Display the top X activity

$count=0;
$userlist=array();
foreach($WWU002statdata as $index=>$value){
  $userlist[intval($value[0])]=fetch_userinfo($value[0]);
}//endforeach($WWU002statdata as $index=>$value)

below that, find
Code:

    $info[1]=$userinfo['username'];
replace it with
Code:

    $info[1]=$userinfo['musername'];
This may result in extra queries to view the Top Activity page. Again, this may not work, so make a backup of the old version of the plugin before editing it. I'll try to remember this feature for when I release a new version.

WetWired 11-12-2007 04:12 PM

Quote:

Originally Posted by mri_mohammad (Post 1380631)
i contact them but they didn't give me can you make it?

I do not use vBA and thus do not have the knowledge to write it, nor the means of testing it.

711 11-21-2007 01:58 AM

My forum uses postbit_legacy exclusively. When I did the template edits, all the user titles in postbit area were missing. Even after I undid the template edits, no user titles were showing. Only when I uninstalled the product did they reappear.

Is it possible to completely disable the user rank and title stuff in the postbit areas? I tried turning this off in the admin CP, but it didn't seem to work.

Also, if my forum only uses postbit_legacy, do I still need to do the postbit template edits?

Thanks!

WetWired 11-21-2007 03:04 AM

What version of vB are you using?
To confirm, when you re-install the product, the user-titles linked to postcount and usergroup disappear?
The mod is not supposed to hide any existing information, only add new information.
If you disabled the mod-generated user ranks in the admin CP and it didn't go away, something is wrong.

Perhaps you have a caching issue of some sort? I'm using vB 3.6.8 and don't have either of your problems.

No, you don't need to edit the "postbit" template, if you don't use it.

711 11-21-2007 07:03 AM

Quote:

Originally Posted by WetWired (Post 1386612)
What version of vB are you using?
To confirm, when you re-install the product, the user-titles linked to postcount and usergroup disappear?
The mod is not supposed to hide any existing information, only add new information.
If you disabled the mod-generated user ranks in the admin CP and it didn't go away, something is wrong.

Perhaps you have a caching issue of some sort? I'm using vB 3.6.8 and don't have either of your problems.

No, you don't need to edit the "postbit" template, if you don't use it.

I am using vB 3.6.8, sorry forgot to mention in my post.

I will try reinstalling again, it's possible that I made an error when editing the templates, or that another installed mod is interfering.

Thanks for the quick response. ;)

WetWired 11-21-2007 07:37 PM

Try just installing the XML first, and see if you have the problem before you edit the templates.

711 11-25-2007 11:21 AM

I'm getting this error on one of my non-vB pages that uses vb's global.php for login purposes:

PHP Code:

Fatal errorCannot redeclare wwu002activityupdate() (previously declared in /path/to/forums/global.php(360) : eval()'d code:238) in /path/to/forums/global.php(360) : eval()'d code on line 238 

Here is the top part of the page which generates the error:

PHP Code:

<?php
error_reporting
(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS'1);
define('THIS_SCRIPT''chat');
chdir('/path/to/forums');
require(
'/path/to/forums/global.php');
include(
'/path/to/forums/global.php');
chdir('/path/to/forum.com');

I tried to disable the mod for the chat page by using this conditional in postbit:

PHP Code:

<if condition="THIS_SCRIPT == chat">
    &
nbsp;
<else />
ACTIVITY MOD CODE
</if> 

but it had no effect. I see that this mod has hooks in global_start. Perhaps there is a way to disable this mod for the chat script? This seems likely to work, since the only vB file included in the chat page is globals.php

Any assistance appreciated, thanks!

WetWired 11-25-2007 05:23 PM

Your problem is
Code:

require('/path/to/forums/global.php');
include('/path/to/forums/global.php');

You only need one of those lines. Remove one and it will work fine.

711 11-25-2007 06:07 PM

Quote:

Originally Posted by WetWired (Post 1389247)
Your problem is
Code:

require('/path/to/forums/global.php');
include('/path/to/forums/global.php');

You only need one of those lines. Remove one and it will work fine.

Actually, both of those lines have been in the script for well over a year now, and it ran just fine during that time. In fact, the base code for the page was provided by the chat software creators, and it included both lines.

In any case I tried:

Code:

require('/path/to/forums/global.php');
then

Code:

include('/path/to/forums/global.php');
and even

Code:

require_once('/path/to/forums/global.php');

and they all still result in the same error.

Any ideas?

711 11-26-2007 04:09 AM

Chat still not working because of this error :(

Chat is an important feature for my members, who are also thrilled with the new activity/longevity meters.

I'd really love to get this error sorted. Is there a conditional I can use somewhere to prevent the activity mod from initalizing on non-vB pages that use the vB global.php for login purposes?

WetWired 11-26-2007 05:42 AM

The root cause of the problem is globals.php being included multiple times, or global_start, at least. If you can't figure out why global_start is running twice, you could modify the activity mod's global_start plugin by wrapping the whole thing in
Code:

if(!$WWU002globalstartonce++){
}

which should prevent that specific plugin from executing twice.

711 11-26-2007 05:47 AM

Quote:

Originally Posted by WetWired (Post 1389496)
The root cause of the problem is globals.php being included multiple times, or global_start, at least. If you can't figure out why global_start is running twice, you could modify the activity mod's global_start plugin by wrapping the whole thing in
Code:

if(!$WWU002globalstartonce++){
}

which should prevent that specific plugin from executing twice.

That worked, thank you very much!! :up:

711 11-26-2007 05:50 AM

**EDIT** Found the activity_config_guide.txt file earlier in this thread. Any reason why this is no longer included in the download package? It is still referenced in the help popups in admincp.

Question, I would like to set the weeks reflected back even further than 10, but it is hardcoded in the admin CP. If I manually change the entry in my forum database, will this work? I would also like to raise the counted posts per day slightly.

Also, could you give any tips on more advanced tweaking of the activity rating forumula (i.e. including other variables such as reputation power, etc)? I assume this would need to be done by manually editing the plugins, correct?

Also, any plans to support vBulletin blog entries in the activity calculations?

coffee 11-28-2007 01:00 AM

Installed, Thank you.


All times are GMT. The time now is 08:31 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.03144 seconds
  • Memory Usage 1,841KB
  • 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
  • (12)bbcode_code_printable
  • (3)bbcode_php_printable
  • (10)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
  • (40)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