Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

Custom Titles overwriting Rank names?

Aloittaja oakley, tammikuu 16, 2005, 02:41:50 IP

« edellinen - seuraava »

oakley

Hello.

Being the newbie I am, I can't seem to find a way to get a custom title to overwrite a member's rank name.

As it is now:

[Name]
[Custom title]
[Rank name]
*stars*
[Avatar]

Is it possible to make it:

[Name]
[Custom Title]
*stars*
[Avatar]

Or just:

[Name]
[Custom Title]
[Avatar]

?

Thanks. :)

Owdy

Yes, remove this from Display.template:

// Show the member's primary group (like 'Administrator') if they have one.
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
', $message['member']['group'], '<br />';

// Don't show these things for guests.
if (!$message['member']['is_guest'])
{
// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
echo '
', $message['member']['post_group'], '<br />';
echo '
', $message['member']['group_stars'], '<br />';

Then it is like
[Name]
[Custom Title]
[Avatar]
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

oakley

#2
Alright. Thanks alot. :)

But is there no way to keep the stars?

Please have patience with me, I know nothing about these things... :-[

Oldiesmann

Lainaus käyttäjältä: Owdy - tammikuu 16, 2005, 03:02:40 IP
Yes, remove this from Display.template:

// Show the member's primary group (like 'Administrator') if they have one.
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
', $message['member']['group'], '<br />';

// Don't show these things for guests.
if (!$message['member']['is_guest'])
{
// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
echo '
', $message['member']['post_group'], '<br />';
echo '
', $message['member']['group_stars'], '<br />';

Then it is like
[Name]
[Custom Title]
[Avatar]


Replace all of that with this:

// Don't show these things for guests.
if (!$message['member']['is_guest'])
{
echo '
', $message['member']['group_stars'], '<br />';


That will make it:

[Name]
[Custom Title]
*stars*
[Avatar]
Michael Eshom
Christian Metal Fans

oakley

A little easier, thanks. :)

Is it possible to make that member-specific?

So that one member has his/her Rank and Titile, while someone just has his/her Title?

Sorry for any inconvenience.

[Unknown]

You could use $message['member']['id'], yes...

-[Unknown]

kowtow

Maybe I need some sleep or I'm just stupid but I just don't understand.
I would like to remove the Rank only from only 2 listing as such:

[Name]
[Admin]
*stars*
[Avatar]
and
[Name]
[Global Mod]
*stars*
[Avatar]

but have all others as:
[Name]
[Rank]
*stars*
[Avatar]

Sorry if you explained this, I didn't understand
TIA

[Unknown]

Admin -> Theme and Layout Settings -> default theme -> hide post groups for grouped members.

-[Unknown]


Advertisement: