vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - Activity Modification (https://vborg.vbsupport.ru/showthread.php?t=177366)

-=Leb=- 08-25-2008 01:48 PM

Nice work and thx for the update :)

john102774 08-26-2008 07:03 AM

I'm using vb 3.7.2 pl2

The problem is when I go to the stats page and I try to veiw the secound or third page it takes me to the main page.

WetWired 08-26-2008 11:19 AM

Quote:

Originally Posted by john102774 (Post 1604265)
Quote:

Originally Posted by butch3r (Post 1502131)
Open template "activity_navbar" and replace it with

Code:

                <td class="vbmenu_control"><a href="forum.php?$session[sessionurl]do=activitystat">$vbphrase[WWU002_stats_short]</a></td>

Thank you!

Quote:

Originally Posted by john102774 (Post 1607139)
I'm using vb 3.7.2 pl2

The problem is when I go to the stats page and I try to veiw the secound or third page it takes me to the main page.

I believe your second problem is related to your first one. You should not need to change activity_navbar in the release version in order for it to point to the correct page. Make sure that AdminCP>vB Options>Forums Home Page Options>Script Name for Forum Home Page is set correctly. If the code in the quote worked for you, it should say "forum", not "index"

john102774 08-27-2008 05:59 AM

Quote:

Originally Posted by WetWired (Post 1607287)
I believe your second problem is related to your first one. You should not need to change activity_navbar in the release version in order for it to point to the correct page. Make sure that AdminCP>vB Options>Forums Home Page Options>Script Name for Forum Home Page is set correctly. If the code in the quote worked for you, it should say "forum", not "index"

Thanks for the response Wet, However I have vBadvanced CMPS v3.0.1 as my main page. Which throws the link off a bit.

Main page = index.php
Page with all threads = forum.php

Is there a workaround for me to get it to work?

Thanks again :)

WetWired 08-27-2008 11:48 AM

I just told you.
Quote:

Make sure that AdminCP>vB Options>Forums Home Page Options>Script Name for Forum Home Page is set correctly. If the code in the quote worked for you, it should say "forum", not "index"
The purpose of this stock vB setting is tell the forum software where the forum index page is, because they know you might have something else as index.php . Following this established convention, the Activity Mod uses this setting in all links to the Top Activity page.

SSJB_7 08-27-2008 10:12 PM

Thank you very much you are the best is working just fine thanks again

john102774 08-28-2008 02:57 AM

Quote:

Originally Posted by SSJB_7 (Post 1608531)
Thank you very much you are the best is working just fine thanks again

+1.

It's kinda tricky but here it goes.

I want the Vba page to be the main page when members logs in (index page). On the index page lies a link called forum which take you to a page that displays a list of categories etc.

If I set the AdminCP>vB Options>Forums Home Page Options>Script Name for Forum Home Page, to forum, it works but the default page that members will be directed to when loggin on will be the page with all the categories.

However if I set the AdminCP>vB Options>Forums Home Page Options>Script Name for Forum Home Page to index it no longer works but, members who log in will be able to view the page that I want.

Sorry if I caused any confusion. Thanks for the help. yep I'm a noob.. haha

WetWired 08-28-2008 11:37 AM

Well if that's the case, you'll have to manually edit the mod. Go to Admin CP>Plugins & Products>Plugin Manager. Edit each of the plugins starting with "Top Activity", replacing each occurance of
Code:

$vbulletin->options['forumhome']
with
Code:

'forum'
(with the single quotes)

I would suggest that you inquire at vbadvanced.com about an alternate means of making the login redirect propperly.

john102774 08-28-2008 03:56 PM

Quote:

Originally Posted by WetWired (Post 1608970)
Well if that's the case, you'll have to manually edit the mod. Go to Admin CP>Plugins & Products>Plugin Manager. Edit each of the plugins starting with "Top Activity", replacing each occurance of
Code:

$vbulletin->options['forumhome']
with
Code:

'index'
(with the single quotes)

I would suggest that you inquire at vbadvanced.com about an alternate means of making the login redirect propperly.

Unfortunately that didn't work. I will take your suggestion and inquire at vbadvanced.

Thanks for all your help! GREAT Mod! :up:

WetWired 08-28-2008 10:24 PM

Err, I meant to say replace with 'forum' o_0. Not sure how I mixed that up.

thecore762 08-28-2008 11:46 PM

Wired, I can't figured out for the life of me to get this thing installed properly, I keep getting the error on line 107 on global.php

Tell me what to edit, and where to go since I just got started off with vB.

Here is the exact error I get:
Quote:

Fatal error: Cannot pass parameter 2 by reference in /home/xxxxxx/public_html/forums/global.php(404) : eval()'d code on line 107

My website link: www.47r-squad.com

WetWired 08-29-2008 12:54 AM

Not sure how I missed that one.
Go to Activity Settings>Rank and Promotions, then set Promote in absence to No untill the next release.

dreads 08-29-2008 04:21 AM

isnt that in a defualt setting tat its set to "no"

thecore762 08-29-2008 05:39 AM

Yup, its set to no by default.
Anyways, I still need help with my issue, read post #: https://vborg.vbsupport.ru/showpost....&postcount=131

WetWired 08-29-2008 09:24 PM

You can only get that error on that line if the setting is set to yes. The only other thing I can suggest is to comment out the line causing the error untill I can fix it; unfortunately the fix requires rethinking the way I do it, so it'll take a bit of time.

To comment out the offending line, edit the global_start Activity Modification plugin, find
Code:

WWU002promoteUser($userinfo,0);
and replace it with
Code:

//WWU002promoteUser($userinfo,0);
I intend to post a release fixing this within the next week.

merk_aus 08-29-2008 10:33 PM

nice mod would come in helpful - that way i can reward those who have high activity - thanks

xyzmary2001 09-02-2008 11:05 AM

Geez, I found a very nasty problem and I had to uninstall. I really love this hack, and I want to know what to do to fix the issue.

In fact, when is enabled and a user tries to post, it appears a white page with novpostTD and one has to press "back" button and refresh in order to see what it posted.

Also, under the close threads appears a novPost message, this until I disable the hack.

Please, can you help me with this? I am quite puzzled why this happens and I like very much the hack.

technom8t 09-02-2008 11:15 AM

Quote:

Originally Posted by xyzmary2001 (Post 1612703)
Geez, I found a very nasty problem and I had to uninstall. I really love this hack, and I want to know what to do to fix the issue.

In fact, when is enabled and a user tries to post, it appears a white page with novpostTD and one has to press "back" button and refresh in order to see what it posted.

http://img367.imageshack.us/img367/2640/novpostiv2.jpg

Also, under the close threads appears a novPost message, this until I disable the hack.

Please, can you help me with this? I am quite puzzled why this happens and I like very much the hack.


does this problem occur on all styles? or just the 1 style, i have it workin on 10 styles on 3.7.3 with no problems at all, it sound like some sort of security token issue with a style, if u have a custom style try reverting the new post template, this may solve the issue, although do note that if you do this and it doesn't work you will have to reinstall the xml file for that style and also add any additional template changes you might have manually made to it before you reverted

thanks

xyzmary2001 09-02-2008 11:24 AM

I have checked now and it appears on all my skins, including the default one.

Also, I have to mention that I have used the second method (I installed the activity folder in misc for every style). I didn't do any template modification, just uploaded the folder and imported the product.

Thanks!

WetWired 09-02-2008 11:46 AM

I've never seen anything like this. If I had to guess, I'd think it meant that the AJAX request wasn't getting what it was expecting, but this is very much a guess. Can you look at your HTTP error log and see if any entries are added when you get this issue?

Vinyljunky 09-02-2008 04:20 PM

I think these stats look much better than VBExperience :up:

I still have VBExperience active but Ive stopped it displaying those horrible bars.

Thanks for sharing your work :)

yotsume 09-05-2008 06:01 AM

Does this take VB Blog usage into account? Does this calculate both forum and blog time? If not I cant use this at all.

thecore762 09-05-2008 06:48 AM

Quote:

Originally Posted by WetWired (Post 1610181)
You can only get that error on that line if the setting is set to yes. The only other thing I can suggest is to comment out the line causing the error untill I can fix it; unfortunately the fix requires rethinking the way I do it, so it'll take a bit of time.

To comment out the offending line, edit the global_start Activity Modification plugin, find
Code:

WWU002promoteUser($userinfo,0);
and replace it with
Code:

//WWU002promoteUser($userinfo,0);
I intend to post a release fixing this within the next week.

Sir, you are the best, thank you for helping me!:D

WetWired 09-06-2008 02:35 PM

I have posted the fixed version

Oria 09-14-2008 02:29 PM

i can not uninstall this mod, the eror is :
Code:

Database error in vBulletin 3.7.2:

Invalid SQL:
ALTER TABLE `user`
  DROP `wwu002activitybd`;

MySQL Error  : Can't DROP 'wwu002activitybd'; check that column/key exists
Error Number  : 1091
Request Date  : Sunday, September 14th 2008 @ 06:26:59 PM
Error Date    : Sunday, September 14th 2008 @ 06:27:00 PM
Script        : http://.....com/admincp/plugin.php?do=productkill
Referrer      : http://....com/admincp/plugin.php?do=productdelete&productid=wwu002&s=
IP Address    :
Username      : System
Classname    : vb_database
MySQL Version : 4.1.22-standard

if i enable this product my board dead and i cant uninstall it !

help :O ?

WetWired 09-14-2008 06:15 PM

The only way that can happen is if it was not completely/propperly installed. Instead of uninstall, choose edit. The third section will be "Existing Install/Uninstall Code." Check the box for delete next to the third row (which should contain the query you posted), then click save at the bottom. You should then be able to uninstall.

lazydesis 09-18-2008 10:17 PM

i like this one very much. thank you so much for the mod....

Thijmen1992 09-24-2008 11:07 AM

Hmm... i installed it.
But when i view a post, it only shows the first post, and keeps loading.

Anyone have a solution?:S

Cocko 09-24-2008 03:36 PM

Thanx for this great add-on. Just installed, translated and try how its working.
I have done all maintenance manually.

Logged in as admin, the visit activity shows 0%. Don't know where is calculated.

Some of my settings:
Find today's activity for all users: Yes (and No - tried both)
Find today's activity for logged-in user: Yes
Show activity breakdown in tooltip: Yes (here at tooltip, visit activity: 0%)

WetWired 09-25-2008 02:14 PM

Quote:

Originally Posted by Cocko (Post 1629330)
Thanx for this great add-on. Just installed, translated and try how its working.
I have done all maintenance manually.

Logged in as admin, the visit activity shows 0%. Don't know where is calculated.

Some of my settings:
Find today's activity for all users: Yes (and No - tried both)
Find today's activity for logged-in user: Yes
Show activity breakdown in tooltip: Yes (here at tooltip, visit activity: 0%)

Quote:

Originally Posted by FAQ
I just installed and everyone's activity seems low
  1. Part of the activity calculation is what days users visited on. This information isn't collected before the mod is installed, so no user can have 100% activity untill you've been running the mod for the full period of time you have it set to monitor
  2. Please realize that there is no "roll over" for activity; if you have it set to look at 4 posts per day, your users must post 4 posts on each individual day to obtain 100%.

Your visit activity will start at zero, because vBulletin does not track when you visited before you install the mod.

WetWired 09-25-2008 02:23 PM

Quote:

Originally Posted by Thijmen1992 (Post 1629171)
Hmm... i installed it.
But when i view a post, it only shows the first post, and keeps loading.

Anyone have a solution?:S

This is most likely an issue with the javascript to modify the postbit; it may not work correctly if your postbit has been modified significantly from the default. Setting Automatic postbit alteration to None or Default location and setting Remove postcount and Remove joindate to No should prevent this. If you set Automatic postbit alteration to None, you can manually add the modifications by following the instructions in the Manual postbit modifications section in activity_mod_customization.html in the zip file.

john102774 09-25-2008 05:20 PM

Quote:

Originally Posted by WetWired (Post 1630063)
Your visit activity will start at zero, because vBulletin does not track when you visited before you install the mod.

With that said in the Stat page it states, 19 days to 100% and 87%.

Some members do not have days, they just have percentages.

what does this mean or what is it referring to?

Thanks! :)

WetWired 09-25-2008 06:24 PM

If they do not have an "x days to 100%", then they have not started on their way to 100% (they missed visiting or posting yesterday) or are already there. This feature was added because it's hard to tell otherwise; for good reasons your activity may seem to "stall" while "bubbles of inactivity" are purged. On my forum, I have rewards for reaching and sustaining 100% activity; if it doesn't matter much on your forum, you may want to disable the feature.

john102774 09-25-2008 07:58 PM

Quote:

Originally Posted by WetWired (Post 1630260)
If they do not have an "x days to 100%", then they have not started on their way to 100% (they missed visiting or posting yesterday) or are already there. This feature was added because it's hard to tell otherwise; for good reasons your activity may seem to "stall" while "bubbles of inactivity" are purged. On my forum, I have rewards for reaching and sustaining 100% activity; if it doesn't matter much on your forum, you may want to disable the feature.

Thanks for the explanation!

If they are "already there" how can reward them for reaching and sustaining 100% like how you have on your forum? :D

WetWired 09-26-2008 02:53 AM

I have a usergroup that I add people to that gives them a larger avatar. I use template conditionals to make it smaller while they are under a certain activity level. I have a second group for those that sustain 100% for 28 days that goes small at a lower activity level. You can use the variables mentioned in the customization document to implement such systems.

In any case, the rewards are manual and could be something easier to setup.

GoTTi 09-26-2008 08:49 AM

i have the casino installed, and i noticed that my casino cash was not showing in the postbit after i installed this. any ideas?

WetWired 09-26-2008 12:15 PM

Try turning off the "Remove x" options in the Activity Display options.

Cocko 09-26-2008 06:08 PM

Quote:

Originally Posted by WetWired (Post 1630063)
Your visit activity will start at zero, because vBulletin does not track when you visited before you install the mod.

Sorry and thanx a lot!

Barteh 09-27-2008 03:59 PM

Is there any way to make the data (both postbit and ranks page) accessible only to the administrator usergroup? i.e. similar to a user's IP address only showing for mods and higher.

This mod sounds like quite an interesting way of gauging clan member activity, but making it public might promote spamming to influence ranking. If this sounds unusual to you, we also have karma padders on our board :rolleyes:

WetWired 09-27-2008 04:34 PM

Well the whole point of the system to cut down on spam, since it only counts a limited number of posts each day. That said, you should be able to use template conditionals so that the info only shows to certain usergroups. Surround the templates
activity_rankblock,activity_statblock,activity_top statpage
with
Code:

<if condition="is_member_of($bbuserinfo,6)"></if>
, then set User profile page statistics to Right Side and Remove postcount and remove joindate to no. You'll also want to set Add navbar link for Top Activity to no so people don't have questions about a navbar link to a blank page.


All times are GMT. The time now is 02:25 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.01633 seconds
  • Memory Usage 1,847KB
  • 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
  • (11)bbcode_code_printable
  • (16)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
  • (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