Gossamer Forum
Home : Products : Others : Gossamer Community :

User Ranks

(Page 1 of 2)
> >
Quote Reply
User Ranks
Hi Andy,
what about a plugin, that integrates a "user rank"-system in gcommunity.
The more links a user in glinks has, the higher his rank
Starting for example with: beginner and ends with profi or something else...

Much better, but tricky, would be a points system
here is only the beginning of a points system:
http://www.gossamer-threads.com/...?post=292398#p292398

Thanks
Matthias

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] User Ranks In reply to
Hi,

Mmm.. possibly. What would be the point in the ranking though? i.e what effect would it have on the user?

Coding it shouldn't be a problem - would just be a script that would run say once a day, and update their ranking - based on how many "active" links they have in GLinks.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] User Ranks In reply to
Andy wrote:
Mmm.. possibly. What would be the point in the ranking though? i.e what effect would it have on the user?
Cheers

Hi Andy,
it needs no effect. For an effect we have the status in gcommunity.
Should be just something similar like we have in gforum (new user, user, veteran ...)

Matthias

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] User Ranks In reply to
Hi,

Ok, well that shouldn't be too hard. Once I've got the last few bugs out of the Affiliate plugin, I'll take a look.

Trying to get an "image" tracking system in place, combined with JS - so people who are not using mod_rewrite to show their site dynamically, can still make use of the tracking features of the affiliate plugin.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] User Ranks In reply to
Hi Andy,
are you still working on affiliate plugin
Matthias

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] User Ranks In reply to
Hi,

Ya, still adding some more features :(

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] User Ranks In reply to
In case you have noththing to do Angelic
Matthias

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] User Ranks In reply to
Hi,

I'll try and have a look today, but I'm mainly aiming for paid jobs this week, as my back balance is suffering again (with all the freebies I've been doing recently Tongue)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Matthias70] User Ranks In reply to
Hi,

I'm having a go at this plugin now - but have come across a bit of a problem with plugins in GComm:

http://www.gossamer-threads.com/...?post=300500#p300500

Once thats sorted, it shouldn't be long before its ready.

It adds a new field in the comm_users table:

Number_of_Links_In_GLinks

..then, in GComm pages - you could do:

Code:
<%if Number_of_Links_In_GLinks > 0 and Number_of_Links_In_GLinks < 10%>
Newbie
<%elsif Number_of_Links_In_GLinks >= 10 and Number_of_Links_In_GLinks < 20%>
Whatever
<%elsif Number_of_Links_In_GLinks >= 20 and Number_of_Links_In_GLinks < 30%>
Whatever
<%elsif Number_of_Links_In_GLinks > 30%>
Veteran
<%endif%>

It will require a script (update_stats.cgi) to be run via cronjob - but I can't test if the script I've got so far works, as it requires a plugin option (the path to GLinks) Pirate

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Matthias70] User Ranks In reply to
Hi,

Give this version a go.

You need to change (in /cgi-bin/community/update_stats.cgi):

Code:
### SET THIS!!!#####
use lib '/path/to/your/glinks/admin';
###################
..and

Code:
#### SET THIS!!! ###
$PCFG->{Path_To_Glinks} = q|/path/to/your/glinks/admin/defs|;
#####################

I've had to just hard-code it in for now, as the plugin options don't work =)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] User Ranks In reply to
Depending on how you want to use this plugin, its most basic format is something like this in user_home.html (in GComm);

Code:
<%if Number_of_Links_In_GLinks > 0 and Number_of_Links_In_GLinks < 10%>
<%set StatusUser = 'Newbie'%>
<%elsif Number_of_Links_In_GLinks >= 10 and Number_of_Links_In_GLinks < 20%>
<%set StatusUser = 'Something'%>
<%elsif Number_of_Links_In_GLinks >= 20 and Number_of_Links_In_GLinks < 30%>
<%set StatusUser = 'Something Else'%>
<%elsif Number_of_Links_In_GLinks > 30%>
<%set StatusUser = 'Veteran'%>
<%else%>
<%set StatusUser = 'Newbie'%> <%-- catchall, in case the script hasn't run on this user yet - in which case it would be blank --%>
<%endif%>

You are currently a <%StatusUser%> - with <%Number_of_Links_In_GLinks%> validated links in our directory.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] User Ranks In reply to
Hi Andy,
when I'm running update_stats.cgi I get an error:
Code:
Global symbol "$PCFG" requires explicit package name at update_stats.cgi line 42.
Global symbol "$PCFG" requires explicit package name at update_stats.cgi line 45.
Execution of update_stats.cgi aborted due to compilation errors.

Matthias

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] User Ranks In reply to
Hi Andy,
I think I found the problem.
I just uncomment this line. I think you forgot it.

Code:
# my $PCFG = Community::Web::Plugins::get_plugin_user_cfg('NumberOfLinksUser');

I do some testing now

Thanks
Matthias

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] User Ranks In reply to
Hi Andy,
a want to include another field

<% if prof_user = newuser and if Number_of_Links_In_GLinks > 0 and Number_of_Links_In_GLinks < 10%>
<%set StatusUser = 'Newbie'%>

Would this work?
Thanks
Matthias

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] User Ranks In reply to
Matthias70 wrote:
Hi Andy,
a want to include another field

<% if prof_user = newuser and if Number_of_Links_In_GLinks > 0 and Number_of_Links_In_GLinks < 10%>
<%set StatusUser = 'Newbie'%>

Would this work?
Thanks
Matthias
Yup, that should work.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] User Ranks In reply to
Hi Andy,
I love this plugin.
It's a nice addon for a community.

Thanks a lot
Matthias

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] User Ranks In reply to
Hi,

I'm guessing it works ok? =) If so, I'll get it added to our site - and link to this thread, so people know what to do with it (as there is no "readme")

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] User Ranks In reply to
Hi Andy,
sure it works fine. I would not love it, if it does not ;-)

Thanks
Matthias

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] User Ranks In reply to
Hi Andy,
can you modify the file NumberOfLinksUser to NumberOfReviewsUser?

Thanks

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] User Ranks In reply to
Hi,

So you want a new field, but for reviews? (if so, then I will just need to add that as part of this plugin, so it does both the number of links as well as number of reviews (in different fields obviously ;))

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] User Ranks In reply to
Hi Andy,
all in one plugin would be fine :-)

Thanks

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] User Ranks In reply to
Please try the attached version. The new field is <%Number_of_Reviews_In_GLinks%>

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] User Ranks In reply to
Hi Andy,
as far as I can see at the moment, the plugin is running fine.
Thanks

Matthias
gpaed.de
Quote Reply
Re: [Andy] User Ranks In reply to
Hi Andy,
I have a timeout problem with this plugin :-(
Is there a way to speed up this plugin.
Maybe it's faster, if the counter update for number of links and number of reviews is splitted into two scripts?

I know that you are on holiday right now.
An answer after your holiday is just fine
Thanks

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] User Ranks In reply to
You able to run it via SSH (or cronjob). If you can do that, then there won't be an issue.

Otherwise, it will have to be a case of splitting the functions up (i.e calling each function seperatly)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
> >