Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
gom
Regular
Regular


Joined: Apr 26, 2007
Posts: 89

PostPosted: Sat Aug 11, 2007 8:24 am Reply with quote

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.

Image

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..
 
View user's profile Send private message
fkelly
Former Moderator in Good Standing


Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Sat Aug 11, 2007 7:25 pm Reply with quote

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?
 
View user's profile Send private message Visit poster's website
gom
PostPosted: Sun Aug 12, 2007 7:01 am Reply with quote

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
PostPosted: Sun Aug 12, 2007 7:46 am Reply with quote

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: 9449
Location: Arizona

PostPosted: Sun Aug 12, 2007 8:25 am Reply with quote

gom, while I do not have time to help code this for you, I had done something similar for one of my sites awhile back (different field, same Members List) and I had posted the hacks on my site here:
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!

See if these help you.

_________________
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! 
View user's profile Send private message Visit poster's website
gom
PostPosted: Sun Aug 12, 2007 8:46 am Reply with quote

Ya, I will work on a test site..

montego,

Thanks for the links to your hacks, I will give it a try...
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

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 ©