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)

mahakala 07-27-2006 06:36 PM

sorry, still can't get it :(
i have 3 ranks: 1=Junior Member, 2=Member, 3=Senior Member
and the default group ranks (admin, mod, guest).

how can i set to only show a board to e.g. "senior members"? when i promote a user to level 2 and add the title to the secondary usergroup, i should have a usergroup "members", when i add 3rd level, i got "senior members" - is that right?!
so i need to set the ranks "member" and "senior member" as usergroup in vb with the special permissions?

-----------------------

when i now have a group "specialposter" and got them mentioned in "Override Level Ranks on a primary usergroup id basis", these groups aren't touched by the plugin?!
so maybe this is the reason, why the people of this group aren't updated by the plugin?

thanks?,
thomas

WetWired 07-28-2006 04:08 AM

I'm having a hard time understanding what you are asking. It should be noted that a user is only promoted when they log in after achieving the requirement.

To show a board only to senior members, you would go into the forum permissions, and click "Deny All" for that forum, then select your senior member usergroup under the forum, edit it, and select "use default usergroup permissions".

mahakala 07-28-2006 04:32 AM

it's ok, i got it.

by the way, as admin i can't see the stats in threadview "only for registered users"...

HomerJay 07-28-2006 11:49 AM

hi,

first of all: sorry, but my english is not the best, cause i am form germany

i have a question reffering to your activity-addon.

i want to have a statistic for the activity of my members...something like a top-ten. so i have to know, how the activity is calculated with the parameters out of the database.

can you please give me some hints, how i can do this? something like a formula for the activity-calculation would be great.

thank you very much!

greetings
Oli

HomerJay 07-30-2006 08:08 PM

please give me a hint. i searched the whole weekend for a solution...

i need a standalone-script, to calculate the activity-percentage...the formula seems to be:

Code:

$WWU002_activitypercent=intval($WWU002_activity/$GLOBALS['WWU002maxPoints']*100);
now i need to know, how to get the $GLOBALS['WWU002maxPoints']...i think, they are calculated every day..right?

thank you 4 help.

Oli

WetWired 08-01-2006 11:02 PM

The WWU002maxPoints is calculated in global_start at the beginning of each page. LiveWire wrote an addon that does what you are trying to do, which is to list the top 10 activity as it exists in the user table. It should be noted that activity only changes when it is viewed. This means that if a user gets to 100% activity, then goes away and noone views one of his posts or his profile, the database will leave him at 100% activity untill his post or profile is viewed. In reality, this is only an issue for users with low activity to start.

Logikos 08-02-2006 06:04 AM

I had that hack removed. I'm not really involved with making hacks anymore, but I think I did fix the activity view problem that WW was talking about. Anyway, if you want to show a list of top active users, then follow these instructions.

Create a new template. Name it activity with the following contents.
HTML Code:

<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center" style="border-bottom-width:0px">
<tr>
        <td class="tcat" width="100%">Top Active Users</td>

</tr>
</table>

<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<tr>
        <td class="thead" align="left" nowrap="nowrap">User Name</td>
        <td class="thead" nowrap="nowrap">Activity</td>
        <td class="thead" nowrap="nowrap">Posts</td>
        <td class="thead" nowrap="nowrap">Join Date</td>
</tr>

$activity_bit

</table>

Create a new template. Name it activity_bit with the following contents.
HTML Code:

<tr>
        <td class="alt1Active" align="left" id="u5968">
                <div class="smallfont"><a href="member.php?u=$activity[userid]">$activity[username]</a></div>
                <div class="smallfont">$activity[usertitle]</div>
        </td>
        <td class="alt2" align="center"><div class="smallfont">$ActivityPercent</div></td>
        <td class="alt1" align="center">$activity[post]</td>
        <td class="alt2" align="center">$activity[joindate]</td>
</tr>

Upload the attached file to your forums directory and you should be all set. You can edit this hack anyway you wish.

WetWired 08-02-2006 06:42 PM

No, you never did fix that. Essentially, you have to re-calculate the activity for every user in order to fix it. You can skip members who haven't visited since the cuttoff, and you can cache the results so you only do it once a day. One of these days, I'll get arround to converting the old script I did for the hack version and prettying up some templates for it.

WetWired 08-03-2006 09:48 AM

Okay, I got the accurate top 10 script converted to 3.5, now I just need to give it some time on Zelaron, then I'll be ready to beta it.

MissKalunji 08-05-2006 12:22 PM

Quote:

Originally Posted by Firestar.chkn
This works with 3.6, yes. I'm running it over at www.prophecy.co.za/forums if you want to have a look


anyone else?


All times are GMT. The time now is 03:55 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.01509 seconds
  • Memory Usage 1,751KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)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