Module: User Tagging

Posted by Maurice Makaay 
Re: Module: User Tagging
August 06, 2008 03:51PM
Even if you are sure that you did everything right, tell me what you did. What fields did you fill in using what values? What template variable name did you setup using what values for the rules? What code did you add to your templates to show the special titles?

Additionally, did you go to the third tab in the settings screen to recalculate the post counts? The module uses its own counters for doing special stuff like handling post counts per vroot or forum as opposed to using the global total post count.

And please, stop plugging your forum.
There's enough links to your forum by now.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: User Tagging
August 06, 2008 04:13PM
Sorry about that. Ok. This is going to take a LONG time, but here we go! I'll only type down the stuff that I filled in. Everything else is empty. I checked every box in the display settings for every tag. All template names are STATUS.

Beginner:
The post count is equal to or more than (>=): 0
The post count is less than (<): 10
HTML: Beginner (No Posts)

White Belt:
The post count is equal to or more than (>=): 11
The post count is less than (<): 20
HTML: <b><font color="#CCCCCC">White Belt</font> (10 Posts)</b>

Orange Belt:
The post count is equal to or more than (>=): 21
The post count is less than (<): 30
HTML: <b><font color="orange">Orange Belt</font> (200 Posts)</b>

Yellow Belt:
The post count is equal to or more than (>=): 31
The post count is less than (<): 50
HTML: <b><font color="yellow">Yellow Belt</font> (30 Posts)</b>

Intermediate:
The post count is equal to or more than (>=): 51
The post count is less than (<): 70
HTML: <b>Intermediate</font> (50 Posts)</b>

Green Belt:
The post count is equal to or more than (>=): 71
The post count is less than (<):100
HTML: <b><font color="green">Green Belt</font> (70 Posts)</b>

Blue Belt:
The post count is equal to or more than (>=): 101
The post count is less than (<):130
HTML: <b><font color="blue">Blue Belt</font> (100 Posts)</b>

Purple Belt:
The post count is equal to or more than (>=): 131
The post count is less than (<):160
HTML: <b><font color="purple">Purple Belt</font> (130 Posts)</b>

Brown Belt:
The post count is equal to or more than (>=): 161
The post count is less than (<): 250
HTML: <b><font color="brown">Brown Belt</font> (160 Posts)</b>

Red Belt:
The post count is equal to or more than (>=): 250
The post count is less than (<): 400
HTML: <b><font color="red">Red Belt</font> (250 Posts)</b>

THEN I HAVE DEGREE BLACK BELTS 1-9. ALL OF THEM LOOK LIKE THE ONE BELOW EXCEPT FOR THE CHANGE OF LABELS:

1st Degree Black Belt:
The post count is equal to or more than (>=): 401
The post count is less than (<): 500
HTML: <b>1st Degree Black Belt(400 Posts)</b>

(This ends at 3000 posts)

THEN I HAVE THE FINAL ONES WITH BIG VALUES:

Master:
The post count is equal to or more than (>=): 3001
The post count is less than (<): 4000
HTML: <b>Master (3000 Posts)</b>

Ultimate Master:
The post count is equal to or more than (>=): 4001
The post count is less than (<): 5000
HTML: <b>Ultimate Master (4000 Posts)</b>

Secret Ninja:
The post count is equal to or more than (>=): 5001
HTML: <b><u><font color="red">Secret</font> <font color="black">Ninja</font></u> (5000 Posts)</b>


AND THAT'S ALL! *whew!*

If you have anymore questions, just ask. But PLEASE don't make me do this again!! ;)
Re: Module: User Tagging
August 06, 2008 04:27PM
Yes, I had more questions. They are in my previous post.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: User Tagging
August 06, 2008 04:28PM
Oh ya. And I went to the third tab. All of my numbers were correct. I recounted it and all the post numbers remained the same. Thanks.
Re: Module: User Tagging
August 06, 2008 04:31PM
Quote

What fields did you fill in using what values?
I answered that.

Quote

What template variable name did you setup using what values for the rules?
I answered that.

Quote

What code did you add to your templates to show the special titles?
I answered that.

Quote

Additionally, did you go to the third tab in the settings screen to recalculate the post counts?
I just answered that. Forgot to, sorry.

Quote

And please, stop plugging your forum. There's enough links to your forum by now.
Sorry.
Re: Module: User Tagging
August 06, 2008 04:38PM
Quote

Quote

What code did you add to your templates to show the special titles?
I answered that.

No you didn't.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: User Tagging
August 06, 2008 04:42PM
OOHH!! THAT!! I'm so sorry! It just totally flew by me! Ok. Here it is:

In read.tpl:

Quote

{IF MESSAGES->user}
{LANG->DateReg}: {MESSAGES->user->date_added}<br />
{LANG->Posts}: {MESSAGES->user->posts}
{IF MESSAGES->user->STATUS}
<br />
Level: {MESSAGES->user->STATUS}
{/IF}
{/IF}

In profile.tpl:

Quote

{IF PROFILE->posts}
<dt>{LANG->Posts}:&nbsp;</dt>
<dd>{PROFILE->posts}</dd>
{/IF}
{IF PROFILE->STATUS}
<dt>SecretNinjaMan Rank:&nbsp;</dt>
<dd>{PROFILE->STATUS}</dd>
{/IF}

I didn't put code anywhere else yet.



Edited 2 time(s). Last edit at 08/06/2008 04:44PM by SecretNinjaMan Maker.
Re: Module: User Tagging
August 06, 2008 04:56PM
Well, I don't see what's wrong. I created a few of the first rules to a test setup and added the status to the read page template read.tpl. And there it was. My white belt. See this thread on my testserver. So conceptually, the thing should work.

Things to check are:

  • Are you sure that you edited the correct template?
  • To check, try something like adding BLAH at some good spot (like the start of the read.tpl file) to see if it really shows up in the template output. If it doesn't, then you know you're in the wrong place.
  • Check if the checkboxes for enabling the rules on the read and profile pages are really enabled in the rules' settings.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: User Tagging
August 06, 2008 05:01PM
No...it doesn't work. In your example, white belt is supposed to be for users with 1-10 posts. But your user has 17 posts, so he is supposed to be an orange belt. Correspondingly, your orange belts are supposed to be yellow belts. That's the problem I ran into last time.
Re: Module: User Tagging
August 06, 2008 05:05PM
wait...never mind.
Sorry, only registered users may post in this forum.

Click here to login