Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: Henzo - kesäkuu 12, 2011, 09:33:31 IP

Otsikko: Is there a way to remove custom titles from private messages?
Kirjoitti: Henzo - kesäkuu 12, 2011, 09:33:31 IP
 ;)
Otsikko: Re: Is there a way to remove custom titles from private messages?
Kirjoitti: mashby - kesäkuu 12, 2011, 09:37:57 IP
Have a look in Themes/default/PersonalMessage.template.php
Otsikko: Re: Is there a way to remove custom titles from private messages?
Kirjoitti: All Colours Sam - kesäkuu 12, 2011, 09:39:41 IP
are you sing 1.1.x?   on the default theme, the personal messages only displays the

username
post group
member group
stars
post count
Otsikko: Re: Is there a way to remove custom titles from private messages?
Kirjoitti: Henzo - kesäkuu 12, 2011, 09:49:02 IP
Lainaus käyttäjältä: mashby - kesäkuu 12, 2011, 09:37:57 IP
Have a look in Themes/default/PersonalMessage.template.php

Hrmm... Perhaps this section is relevant?


if (isset($message['member']['title']) && $message['member']['title'] != '')
echo '
', $message['member']['title'], '<br />';
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
', $message['member']['group'], '<br />';

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 />';
Otsikko: Re: Is there a way to remove custom titles from private messages?
Kirjoitti: Henzo - kesäkuu 12, 2011, 09:50:21 IP
Lainaus käyttäjältä: Miss All Sunday - kesäkuu 12, 2011, 09:39:41 IP
are you sing 1.1.x?   on the default theme, the personal messages only displays the

username
post group
member group
stars
post count

I am using SMF 1.1.13, a custom theme. Previously I had changed it so custom titles were able to use BBCode. For some reason it displays as a block of code in PMs.
Otsikko: Re: Is there a way to remove custom titles from private messages?
Kirjoitti: mashby - kesäkuu 12, 2011, 09:50:35 IP
Yup, very likely this:
if (isset($message['member']['title']) && $message['member']['title'] != '')
echo '
', $message['member']['title'], '<br />';
Otsikko: Re: Is there a way to remove custom titles from private messages?
Kirjoitti: All Colours Sam - kesäkuu 12, 2011, 09:51:48 IP
oh!  my apologizes, I confused custom titles with something else   :-[
Otsikko: Re: Is there a way to remove custom titles from private messages?
Kirjoitti: Henzo - kesäkuu 12, 2011, 09:53:58 IP
Lainaus käyttäjältä: mashby - kesäkuu 12, 2011, 09:50:35 IP
Yup, very likely this:
if (isset($message['member']['title']) && $message['member']['title'] != '')
echo '
', $message['member']['title'], '<br />';


Beautiful! Thanks!
Otsikko: Re: Is there a way to remove custom titles from private messages?
Kirjoitti: Henzo - kesäkuu 12, 2011, 09:54:14 IP
Lainaus käyttäjältä: Miss All Sunday - kesäkuu 12, 2011, 09:51:48 IP
oh!  my apologizes, I confused custom titles with something else   :-[

No problem! Thanks!

Marked as solved!