Closed (works as designed)
Project:
Custom Ranks by Post Count
Version:
4.5.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2005 at 23:41 UTC
Updated:
21 Jan 2005 at 16:07 UTC
Comments
Comment #1
pyromanfo commentedThis is not a permissions module, just display purposes only. Simply cosmetic, it won't control any user's ability to do anything. I think there are other modules around that do what you want.
Comment #2
Drupy-1 commentedHi Pyromanfo, I like the idea of your module very much, thank you!
I am the Administrator with all permissions to my Drupal website, and I have successfully patched the profile.module with your patch, and also have set up the hidden fields for three ranks called "Newbie", "Junior", and "Senior", and set them up for 10, 25 and 50 posts. And I have members who have posted up to 10, 25 and 50 posts, so I expect them to obtain their ranks.
What I don't understand is I cannot see this module doing anything, also after doing the cron, so I must be missing something I don't know what. I also have "Node Privacy by Role" module installed, and I have two roles, called "Moderator" and "Author" and some people are either just Authorized users, moderators, or authors. Now, do these two modules in conflict with each other? Is "Rank" the same as "Role"? Do I have to make the names of the "Ranks" the same with the the names in my "Roles"? I have done so, but still I see nothing on both the Post Count page, nor under the Ranks category in each user's Profile page. So I really don't know what this module do. What am I supposed to see with this module, and where?
Please help, and once again thank you so much!
Comment #3
pyromanfo commentedYou can't see anything because the field isn't being shown in your theme. You have to edit your theme to show the profile field. It's in the database, but the module doesn't provide a display mechanism.
I was just planning on putting it in my theme.
Comment #4
Drupy-1 commentedThank you.
I have looked around in the database, under profile_fields, profile_values, and users, and clicking on "browse" (I'm using Windows and MySQL PhpMyAdmin) but I just saw the list of Countries under profile_values. Could you please tell me exactly where in the data base?
Also I will be very thankful if you tell us what to add to our theme so that it will be showing up, you mean we must add something (a few lines or codes) in our style.css, right? I just don't know how to do it.
Thank you again.
Comment #5
pyromanfo commentedI was planning on putting it in my PHPTemplate theme, which is basically getting it directly from the database.
So it's nothing to do with CSS.
As for where in the database, it should be in profile_values, find the fid of your profile field that you're storing the rank in and that should be the fid in your profile_values table. In mine, it has the user's rank in there with their uid and that fid.
Comment #6
Drupy-1 commentedThank you, Pyromanfo. I still have not seen it under profile_values and under uid or fid or anywhere, I just see list of countries, the registration number of member under uid, and number "1" under fid.
But maybe I make a mistake somehere with the patching (I did it manually), or maybe because I use the cvs version of the module and patch, while my Drupal is 2.5.2.
Thank you for your prompt replies.
Comment #7
pyromanfo commentedIt won't bet set until your users post something, so you might want to try posting something with a user.
Comment #8
Drupy-1 commentedOh I mean Drupal 4.5.2, sorry.
Comment #9
Drupy-1 commentedWow you are so fast!! *shocked*
Okay, I will do that, thanks!!!