Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: oakley - tammikuu 16, 2005, 02:41:50 IP

Otsikko: Custom Titles overwriting Rank names?
Kirjoitti: oakley - tammikuu 16, 2005, 02:41:50 IP
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. :)
Otsikko: Re: Custom Titles overwriting Rank names?
Kirjoitti: 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]
Otsikko: Re: Custom Titles overwriting Rank names?
Kirjoitti: oakley - tammikuu 16, 2005, 03:25:07 IP
Alright. Thanks alot. :)

But is there no way to keep the stars?

Please have patience with me, I know nothing about these things... :-[
Otsikko: Re: Custom Titles overwriting Rank names?
Kirjoitti: Oldiesmann - tammikuu 16, 2005, 03:31:35 IP
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]
Otsikko: Re: Custom Titles overwriting Rank names?
Kirjoitti: oakley - tammikuu 16, 2005, 03:59:43 IP
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.
Otsikko: Re: Custom Titles overwriting Rank names?
Kirjoitti: [Unknown] - tammikuu 17, 2005, 09:49:14 AP
You could use $message['member']['id'], yes...

-[Unknown]
Otsikko: Re: Custom Titles overwriting Rank names?
Kirjoitti: kowtow - helmikuu 14, 2005, 11:11:27 IP
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
Otsikko: Re: Custom Titles overwriting Rank names?
Kirjoitti: [Unknown] - helmikuu 15, 2005, 01:35:58 AP
Admin -> Theme and Layout Settings -> default theme -> hide post groups for grouped members.

-[Unknown]
Otsikko: Re: Custom Titles overwriting Rank names?
Kirjoitti: kowtow - helmikuu 16, 2005, 10:28:14 IP
Thanks [Unknown]