Author |
Message |
gom
Regular


Joined: Apr 26, 2007
Posts: 89
|
Posted:
Sat Aug 11, 2007 8:24 am |
|
Hello all..
hope everyone is doing well.
There may be a post on this already and I am sorry if there is.
I want to add Rank Title to the Member List [ index page ] I guess you would call it right after the User name but before the email. It would be nice to see the rank of a member with out looking at the profile of the member.
I guess that I would need to edit
modules/Members_List/index.php
and
modules/Forums/memberlist.php
to do this. Would anyone hear be willing to share with me the code to do this and where I would need to place it to make this work, as I am still a noob, but getting better. I rely do thank you all for the work and time you all put into php and helping noobs like me out.
I was also reading about CNB Your Account, version 5.0 and this looks cool. Would version 4.0 be stable to use on a production site ? The read me say not to use on a production site.. |
|
|
|
 |
fkelly
Former Moderator in Good Standing

Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY
|
Posted:
Sat Aug 11, 2007 7:25 pm |
|
There is a long thread on CNBYA including some very recent posts from people who have experience with it. Read it and judge for yourself. My take on it is that it is not ready for prime time (nor will it be until some experienced coders do some more work on it (which is not guaranteed to happen)).
With respect to your other question, where are are you going to get the rank title data? I haven't double checked but I don't recall that being in the users table. If you had such data you'd probably need to modify Members_List/index.php but without digging thru the code no one could tell you exactly where. But first you need a way to store and maintain that data. Or do you have that already? |
|
|
|
 |
gom

|
Posted:
Sun Aug 12, 2007 7:01 am |
|
The rank data comes from phpbb or that is where you can make ranks and add to a members profile via the phpbb/ACP. The rank shows under the avatar when you look at a member profile via the member list, and in post. I use Raven nuke latest distro, so this is bbtonuke, not the stand alone phpbb. So I would guess that the Rank Title is stored in a bb-nuke table. |
|
|
|
 |
fkelly

|
Posted:
Sun Aug 12, 2007 7:46 am |
|
Yes, you are correct. I just checked, there is a field called user_rank in the users table. Also user_level. You have the definition of that table in your distribution: look in the INSTALLATION/sql/rn_core_pl32.sql file. I guess they probably added it to the standard Nuke users table when they did the phpbb integration, but that doesn't matter. It's there.
I just double checked and the report is done in /modules/Members_List/index.php. However, while anything can be done, it would take a bit of work to modify this. The report uses, for instance, language constants for some of the titles and you might need to set those up for rank also if you want to be consistent. If it looks like that previous sentence is in some foreign language itself, then you would have difficulties with making these changes. If you do decide to take a hack at it, first back it up and I'd also suggest maybe creating a new module called Rank_list or something similar and just make it available to admins and hack away there on a copy of Members_List. |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Sun Aug 12, 2007 8:25 am |
|
|
|
 |
gom

|
Posted:
Sun Aug 12, 2007 8:46 am |
|
Ya, I will work on a test site..
montego,
Thanks for the links to your hacks, I will give it a try... |
|
|
|
 |
|