PDA

View Full Version : Forum Leaders Usertitle


crashb555
02-07-2007, 05:28 PM
Hey :)
I was wondering if you are able to create a mod that will make it so it shows a special "assigned" usertitle to the Forum Leaders page, for example, I have edited by templates for the forum leaders to show a members usertitle on that page rather than location, so for example:
crashb555
Forum Administrator - my random usertitle

I want it so I can give them a special usertitle in the Admin CP which means that on the Forum Leaders it will give them that usertitle rather than one they made themselves so they can have a usertitle like My Random usertitle - forum admin on their profile/posts but on the leaders page they have Forum Administrator.

Is it hard to make, or does anybody know where I can find this hack already?

Thanks :D

Cyricx
02-08-2007, 06:04 PM
You could likely do this by assigning user ranks for that usergroup.

I'm not certain if the forum leaders page shows ranks, but that should be an easy template modification.

Have you tried that?

crashb555
02-09-2007, 01:27 PM
I have done that one before, but if someone in that group has a different job title but is still in that group like: Forum Administrator and Forum Manager but they would stilll both be in the Forum Administrators group then it wouldn't work.
Basically a mod where it adds another usertitle to the database for a user to show on the forum leaders page, there may be a way to do it by editing the database and the admincp/users.php page but its too complicated for me to figure out.

Cyricx
02-09-2007, 01:39 PM
I think I say something like this for 3.5

It was "additional user title", it had been made to display in the postbit. But I think it could be tweaked to show on the forum leaders page.

I'll take a peek and see if I can find it and tweak it today.

crashb555
02-09-2007, 01:51 PM
It would just be putting the code on the forum leaders rather than on the postbit.

That would be wicked if you could do that :) im guessing it will work on 3.6.x if you tweak it?

Cyricx
02-09-2007, 02:30 PM
O rock! You can do it much easier then I thought :)

Create a new profilefield in the admincp that is NOT editable by the user.

(that will create a field that only you can change through the admincp)

And then go into your templates, specifically the showgroups_usergroupbit

and add the following where you want it

<if condition="$user['fieldXX']">$user[fieldXX]</if>

Be sure to replace the XX with the field number in question :)

crashb555
02-09-2007, 02:57 PM
Wow, thats a good idea :)
Just setting it up now.
Thanks a lot :D