Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's RavenNuke(tm) v2.00.00 - v2.02.00 Distro
Author Message
blahpunk
New Member
New Member



Joined: Dec 16, 2004
Posts: 17

PostPosted: Sat Apr 01, 2006 9:44 pm Reply with quote

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
 
View user's profile Send private message
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Sun Apr 02, 2006 4:06 am Reply with quote

So you have set up the points in Nuke admin User Group/Points [ Only registered users can see links on this board! Get registered or login! ]
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?
 
View user's profile Send private message Send e-mail
blahpunk







PostPosted: Sun Apr 02, 2006 7:27 pm Reply with quote

Yes, i have setup the points, groups. Nothing showing in the memberslist. They are showing in my account.
 
Guardian2003







PostPosted: Sun Apr 02, 2006 9:59 pm Reply with quote

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>&nbsp;{L_PM}&nbsp;</th>
<th>&nbsp;{L_USERNAME}&nbsp;</th>
<th>&nbsp;{L_EMAIL}&nbsp;</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">&nbsp;{memberrow.ROW_NUMBER}&nbsp;</td>
<td class="{memberrow.ROW_CLASS}" align="center">&nbsp;{memberrow.PM_IMG}&nbsp;</td>
<td class="{memberrow.ROW_CLASS}" align="center"><a href="{memberrow.U_VIEWPROFILE}">{memberrow.USERNAME}</a></td>
<td class="{memberrow.ROW_CLASS}" align="center">&nbsp;{memberrow.EMAIL_IMG}&nbsp;</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">&nbsp;{memberrow.WWW_IMG}&nbsp;</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}:&nbsp;</td>
<td>{S_MODE_SELECT}&nbsp;&nbsp;</td>
<td class="genmed">{L_ORDER}:&nbsp;</td>
<td>{S_ORDER_SELECT}&nbsp;&nbsp;</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
Code:
'POSTS' => $posts,

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







PostPosted: Sun Apr 02, 2006 10:20 pm Reply with quote

Right on thanks guardian. Its working like a charm.

I used this post and it didn't work. http://www.ravenphpscripts.com/posts8328-highlight-points.html 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
Regular



Joined: Jan 09, 2006
Posts: 56
Location: Under your bed

PostPosted: Thu May 18, 2006 9:31 am Reply with quote

Is it just my imagination or is this no longer a module as it used to be?
 
View user's profile Send private message Send e-mail Visit poster's website
Guardian2003







PostPosted: Thu May 18, 2006 3:41 pm Reply with quote

Is what no longer a module?
Sorry, I don't understand your question.
 
Duke







PostPosted: Thu May 18, 2006 11:58 pm Reply with quote

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. Confused
 
Guardian2003







PostPosted: Fri May 19, 2006 5:02 am Reply with quote

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

PostPosted: Fri May 19, 2006 5:31 am Reply with quote

Duke, RavenNuke is almost 100% pure nuke76 functionality, so if it wasn't in nuke 76, it wasn't in RavenNuke.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
Duke







PostPosted: Sat May 20, 2006 4:49 pm Reply with quote

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 Confused

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







PostPosted: Sat May 20, 2006 6:18 pm Reply with quote

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.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's RavenNuke(tm) v2.00.00 - v2.02.00 Distro

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©