Module: User Tagging
Posted by Maurice Makaay
|
Re: Module: User Tagging July 01, 2008 10:49AM |
Registered: 23 years ago Posts: 687 |
Thanks Maurice,
I have been playing and have (for the moment) implemented a concept of primary and secondary "ranks" for users. These are RANK1 and RANK2 in my templates. The first is based on post count and affects all users. The second is for assigning a particular rank to an individual. I output this (if it exists) in brackets after the main rank. You can see an example here: [www.st-neots.co.uk]
This is a very flexible module, so thanks for writing it!
/\dam
--
My notable Phorum sites:
Movie Deaths Database - "review comments" system mostly powered by Phorum
Learn Chinese! - integrated forum quiz
I have been playing and have (for the moment) implemented a concept of primary and secondary "ranks" for users. These are RANK1 and RANK2 in my templates. The first is based on post count and affects all users. The second is for assigning a particular rank to an individual. I output this (if it exists) in brackets after the main rank. You can see an example here: [www.st-neots.co.uk]
This is a very flexible module, so thanks for writing it!
/\dam
--
My notable Phorum sites:
Movie Deaths Database - "review comments" system mostly powered by Phorum
Learn Chinese! - integrated forum quiz
|
Re: Module: User Tagging July 01, 2008 01:15PM |
Admin Registered: 22 years ago Posts: 8,532 |
You're welcome, royalty chief! ;-)
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: Module: User Tagging July 21, 2008 08:55PM |
Registered: 21 years ago Posts: 121 |
I think I have something similar to what sheik is talking about on my main site. i call it a "username tail" but basically it's several different icons (contest winner, donator, etc) that conditionally show up after every display of the username.
I'm not at my main machine so i can't paste any code, but what i did was i have 1 field in the database (mine is a tinyint but it could be whatever) that i use as a bitmapped field. by using bitwise operators, i can see which ones are set for a given user and concat the display of the appropriate icon into a variable. show that variable and you're done.
The facility to set the flags is a simple page with a stack of checkboxes. i have the values + icons + anchor titles set in a config, but you could just as easily set them on an admin page > db.
another way you could do it is have a table for awards/badges/tailicons, and put the id for the item into a users.awards field (tinytext or varchar would prob be fine) separated by space or comma or something. the useredit and setup facility could be the same, but it would allow for many more separate awards than the method i have in place . . . which was more an experiment turned feature than anyth else.
I'm not at my main machine so i can't paste any code, but what i did was i have 1 field in the database (mine is a tinyint but it could be whatever) that i use as a bitmapped field. by using bitwise operators, i can see which ones are set for a given user and concat the display of the appropriate icon into a variable. show that variable and you're done.
The facility to set the flags is a simple page with a stack of checkboxes. i have the values + icons + anchor titles set in a config, but you could just as easily set them on an admin page > db.
another way you could do it is have a table for awards/badges/tailicons, and put the id for the item into a users.awards field (tinytext or varchar would prob be fine) separated by space or comma or something. the useredit and setup facility could be the same, but it would allow for many more separate awards than the method i have in place . . . which was more an experiment turned feature than anyth else.
|
Re: Module: User Tagging July 30, 2008 11:39PM |
Registered: 18 years ago Posts: 13 |
Maurice,
Thanks for the great work on the Phorum and the modules. I really love this after switching to it from DCForum+ a few months ago. (I had no control over the old software, heh!)
With this module, I'm wondering if it would be possible to allow the tags to be used on the list pages for the author or recent author of the post. My understanding is that using the tags on the list pages will apply only to the logged in user. I'd be interested in using this so that the tag can add a small image near the username of the (recent) author of the individual posts listed on these pages.
I hope I make myself clear!
Thanks for the great work on the Phorum and the modules. I really love this after switching to it from DCForum+ a few months ago. (I had no control over the old software, heh!)
With this module, I'm wondering if it would be possible to allow the tags to be used on the list pages for the author or recent author of the post. My understanding is that using the tags on the list pages will apply only to the logged in user. I'd be interested in using this so that the tag can add a small image near the username of the (recent) author of the individual posts listed on these pages.
I hope I make myself clear!
|
Re: Module: User Tagging July 31, 2008 01:57AM |
Admin Registered: 22 years ago Posts: 8,532 |
Yes, the idea is clear. I think that this can be done. It's just a feature that was not requested so far ;-) I will take a look at it.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: Module: User Tagging July 31, 2008 11:07AM |
Admin Registered: 22 years ago Posts: 8,532 |
Please check out if version 1.0.3 fits your needs. That version adds a new option to the rule settings page for enabling user tags on the list page.
Both authors and recent authors are tagged. If you create a tag "FOO", then the created tags would respectively end up in {MESSAGES->user->FOO} and {MESSAGES->recent_user->FOO}.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Both authors and recent authors are tagged. If you create a tag "FOO", then the created tags would respectively end up in {MESSAGES->user->FOO} and {MESSAGES->recent_user->FOO}.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: Module: User Tagging July 31, 2008 08:34PM |
Registered: 18 years ago Posts: 13 |
Thanks.
That is what I'm going for.
However, there seems to be a minor problem. I currently have four rules that define a value for the same variable name. For some reason, the list pages are only showing the appropriate tag for the most recently created rule that is set to display them in the list page.
The right idea is there, though!
Thanks again.
That is what I'm going for.
However, there seems to be a minor problem. I currently have four rules that define a value for the same variable name. For some reason, the list pages are only showing the appropriate tag for the most recently created rule that is set to display them in the list page.
The right idea is there, though!
Thanks again.
|
Re: Module: User Tagging August 01, 2008 02:00AM |
Admin Registered: 22 years ago Posts: 8,532 |
Fixed. Download the 1.0.3 package again for the fix.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: Module: User Tagging August 01, 2008 09:11AM |
Registered: 18 years ago Posts: 13 |
|
Re: Module: User Tagging August 06, 2008 03:07PM |
Registered: 18 years ago Posts: 95 |
Hi, I have downloaded this mod and I'm having a bit of trouble making it work. Basically I have a list of ranks depending on the number of posts each person has. Example below:
Beginner: no posts
White Belt: less than 10 posts but more than 0
Orange Belt: less than 20 posts but more than 10
Yellow Belt: less than 30 posts but more than 20
And so on...
This does not seem to be working for me. When I use this all the way up until Secret Ninja (with more than 5000 posts) none of it works. I read the README and put the correct code in read.tpl and profile.tpl and I'm sure because if I get rid of the "but more than" part it shows up but incorrectly. (example: If someone has 30 posts they are in the category labeled "less than 20 posts" and so on) I have checked this script over and over again but with no success. I do NOT know what I am doing know because I have checked everything and there are NO overlaps or anything like that. I have wasted several hours getting more and more frustrated about how this thing is not working. Please help...it would be greatly appreciated.
Just a point in the right direction for a newbie...SecretNinjaMan.com Forum
Beginner: no posts
White Belt: less than 10 posts but more than 0
Orange Belt: less than 20 posts but more than 10
Yellow Belt: less than 30 posts but more than 20
And so on...
This does not seem to be working for me. When I use this all the way up until Secret Ninja (with more than 5000 posts) none of it works. I read the README and put the correct code in read.tpl and profile.tpl and I'm sure because if I get rid of the "but more than" part it shows up but incorrectly. (example: If someone has 30 posts they are in the category labeled "less than 20 posts" and so on) I have checked this script over and over again but with no success. I do NOT know what I am doing know because I have checked everything and there are NO overlaps or anything like that. I have wasted several hours getting more and more frustrated about how this thing is not working. Please help...it would be greatly appreciated.
Just a point in the right direction for a newbie...SecretNinjaMan.com Forum
Sorry, only registered users may post in this forum.

