Author |
Message |
blahpunk
New Member


Joined: Dec 16, 2004
Posts: 17
|
Posted:
Sat Apr 01, 2006 9:44 pm |
|
The group/points isn't working. I don't even know where to begin to troubleshoot. I have setup my groups and even changed my memberslist module to show the points field. I set the settings for the points i.e. forum posts, comments, etc. Tested by posting in the forums and nothing is showing in points field within the memberslist module.
Using: rn76 distro 2.
Any help is greatly appreciated,
Blahpunk |
|
|
|
 |
Guardian2003
Site Admin

Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Sun Apr 02, 2006 4:06 am |
|
So you have set up the points in Nuke admin User Group/Points
http://www.yoursite.com/admin.php?op=Groups
and points are still not showing via the memberlist?
Are any points listed when you to to Your Account?
Edited by me as an after thought........
You did create some groups as well right? |
|
|
|
 |
blahpunk

|
Posted:
Sun Apr 02, 2006 7:27 pm |
|
Yes, i have setup the points, groups. Nothing showing in the memberslist. They are showing in my account. |
|
|
|
 |
Guardian2003

|
Posted:
Sun Apr 02, 2006 9:59 pm |
|
That is the correct behaviour for the Member List module - it does not show user points. However, there is a way to get it to do so.
OK here we go..........
Assuming you are using the default fisubice theme.
Here is replacement code for the file;
themes/fisubice/forums/memberlist_body.tpl
Code:<form method="post" action="{S_MODE_ACTION}">
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td class="nav"><a href="{U_INDEX}">{L_INDEX}</a></td>
</tr>
</table>
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<th>#</th>
<th> {L_PM} </th>
<th> {L_USERNAME} </th>
<th> {L_EMAIL} </th>
<th>{L_FROM}</th>
<th>{L_JOINED}</th>
<th>{L_POSTS}</th>
<th>{L_POINTS}</th>
<th>{L_WEBSITE}</th>
</tr>
<!-- BEGIN memberrow -->
<tr>
<td class="{memberrow.ROW_CLASS}" align="center"> {memberrow.ROW_NUMBER} </td>
<td class="{memberrow.ROW_CLASS}" align="center"> {memberrow.PM_IMG} </td>
<td class="{memberrow.ROW_CLASS}" align="center"><a href="{memberrow.U_VIEWPROFILE}">{memberrow.USERNAME}</a></td>
<td class="{memberrow.ROW_CLASS}" align="center"> {memberrow.EMAIL_IMG} </td>
<td class="{memberrow.ROW_CLASS}" align="center">{memberrow.FROM}</td>
<td class="{memberrow.ROW_CLASS}" align="center"><span class="gensmall">{memberrow.JOINED}</span></td>
<td class="{memberrow.ROW_CLASS}" align="center">{memberrow.POSTS}</td>
<td class="{memberrow.ROW_CLASS}" align="center">{memberrow.POINTS}</td>
<td class="{memberrow.ROW_CLASS}" align="center"> {memberrow.WWW_IMG} </td>
</tr>
<!-- END memberrow -->
<tr align="center">
<td class="cat" colspan="8">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="genmed">{L_SELECT_SORT_METHOD}: </td>
<td>{S_MODE_SELECT} </td>
<td class="genmed">{L_ORDER}: </td>
<td>{S_ORDER_SELECT} </td>
<td><input type="submit" name="submit" value="{L_SUBMIT}" class="catbutton" /></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td class="nav"><a href="{U_INDEX}">{L_INDEX}</a><br />
{PAGINATION}</td>
</tr>
</table>
</form>
<br clear="all" />
<div align="left">{JUMPBOX}</div>
|
Here are the file edits for modules/Members_List/index.php
Search for
Code:
//
// Memberlist sorting
//
$mode_types_text = array($lang['Sort_Joined'], $lang['Sort_Username'], $lang['Sort_Location'], $lang['Sort_Posts'], $lang['Sort_Email'], $lang['Sort_Website'], $lang['Sort_Top_Ten']);
$mode_types = array('joined', 'username', 'location', 'posts', 'email', 'website', 'topten');
|
Replace that with
Code:
//
// Memberlist sorting
//
$mode_types_text = array($lang['Sort_Joined'], $lang['Sort_Username'], $lang['Sort_Location'], $lang['Sort_Posts'], $lang['Points'], $lang['Sort_Email'], $lang['Sort_Website'], $lang['Sort_Top_Ten']);
$mode_types = array('joined', 'username', 'location', 'posts', 'points', 'email', 'website', 'topten');
|
Find
Code:'L_POSTS' => $lang['Posts'],
|
add on a new line below it
Code:'L_POINTS' => $lang['Points'],
|
Find
Code:case 'posts':
$order_by = "user_posts $sort_order LIMIT $start, " . $board_config['topics_per_page'];
break;
|
Add on a new line below it
Code:case 'points':
$order_by = "points $sort_order LIMIT $start, " . $board_config['topics_per_page'];
break;
|
Find
Code:$sql = "SELECT username, user_id, user_viewemail, user_posts, user_regdate, user_from, user_website, user_email, user_icq, user_aim, user_yim, user_msnm, user_avatar, user_avatar_type, user_allowavatar
FROM " . USERS_TABLE . "
|
Replace with
Code:$sql = "SELECT username, user_id, user_viewemail, user_posts, points, user_regdate, user_from, user_website, user_email, user_icq, user_aim, user_yim, user_msnm, user_avatar, user_avatar_type, user_allowavatar
FROM " . USERS_TABLE . "
|
Find
Code:$posts = ( $row['user_posts'] ) ? $row['user_posts'] : 0;
|
Add on a new line below that
Code:$points = ( $row['points'] ) ? $row['points'] : 0;
|
Find
add on new line below
Code:'POINTS' => $points,
|
And finally.........
In modules/Forums/language/lang_english/lang_main.php
add
Code:$lang['Points'] = 'Points';
|
|
|
|
|
 |
blahpunk

|
Posted:
Sun Apr 02, 2006 10:20 pm |
|
Right on thanks guardian. Its working like a charm.
I used this post and it didn't work. Only registered users can see links on this board! Get registered or login! your post had more modifications that I didn't do, most of the added lines where in there from the previous. Thought you guys might want to update the post or something.
Again thanks for the help. |
|
|
|
 |
Duke
Regular


Joined: Jan 09, 2006
Posts: 56
Location: Under your bed
|
Posted:
Thu May 18, 2006 9:31 am |
|
Is it just my imagination or is this no longer a module as it used to be? |
|
|
|
 |
Guardian2003

|
Posted:
Thu May 18, 2006 3:41 pm |
|
Is what no longer a module?
Sorry, I don't understand your question. |
|
|
|
 |
Duke

|
Posted:
Thu May 18, 2006 11:58 pm |
|
The top user points module used to be a module for phpnuke 7.0 but it's much different in Ravens Distro (or so it seems). Of course I'm pretty new to Ravennuke and haven't had mountains of available time to explore all it's areas so I may be talking completely out my @ss.  |
|
|
|
 |
Guardian2003

|
Posted:
Fri May 19, 2006 5:02 am |
|
The points administration is still available via Nuke admin->User Groups/Points
However, you refer to 'top user points' which I beleive was a block (as against a module) for displaying the top 'X' number of users with the most points on the homepage.
I have found a few blocks of this type via google ('phpnuke top points block') but they do seem rather old in terms of how they are coded and would not recommend their use.
A quick way to assess them is if they have any reference to '$dbi' in the code - they are antique. |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Fri May 19, 2006 5:31 am |
|
Duke, RavenNuke is almost 100% pure nuke76 functionality, so if it wasn't in nuke 76, it wasn't in RavenNuke. |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
Duke

|
Posted:
Sat May 20, 2006 4:49 pm |
|
montego wrote: | Duke, RavenNuke is almost 100% pure nuke76 functionality, so if it wasn't in nuke 76, it wasn't in RavenNuke. |
I figured this would be the case. Before RavenNuke I had used 7.0 exclusively and tried 7.8 through Fantastico (big mistake). I used 7.0 for two years and 7.8 for about 20 minutes. I installed fresh Ravennuke installs on a new webhost I've recently moved to and manually uploaded all info., from my most recent 7.0 w/ 2.06 backup.
I love Ravennuke and will likely stick with it for many years to come. Of course this is my first exposure to any version above 7.0 so I'm pretty new to the entire CMS, hence the n00b question
Incidentally, the Top Users Points System was a Module included with the Power Tool install version of phpnuke 7.0. I liked it because it was a page that listed all user points on a seperate page in order of points per user. I only asked the above since I haven't seen anything similar with 7.6 but it's not really a big deal, more of a question really. |
|
|
|
 |
Guardian2003

|
Posted:
Sat May 20, 2006 6:18 pm |
|
If you still have a copy of the files for that module, the credits may indicate who the original author was - it may be worth contacting them to see if they stil have it available so you can re-install it. |
|
|
|
 |
|