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)

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 03:13 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.01526 seconds
  • Memory Usage 1,755KB
  • 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
  • (7)bbcode_code_printable
  • (3)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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