Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: dominioboys - syyskuu 20, 2019, 05:10:46 IP

Otsikko: move the personal text
Kirjoitti: dominioboys - syyskuu 20, 2019, 05:10:46 IP
how can I move the "personal text" under the custom title in the posts of each profile
Otsikko: Re: move the personal text
Kirjoitti: Kindred - syyskuu 21, 2019, 03:18:43 AP
You would have to edit display.template.php
Otsikko: Re: move the personal text
Kirjoitti: dominioboys - syyskuu 21, 2019, 05:03:20 AP
ok which string?
Otsikko: Re: move the personal text
Kirjoitti: shadav - syyskuu 21, 2019, 04:24:55 IP
in display.template.php
find or similar
// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
<li class="blurb">', $message['member']['blurb'], '</li>';


unless you mean their custom title in which case
find or similar
// Show the member's custom title, if they have one.
if (!empty($message['member']['title']))
echo '
<li class="title">', parse_bbc($message['member']['title']), '</li>';
Otsikko: Re: move the personal text
Kirjoitti: dominioboys - syyskuu 21, 2019, 07:40:04 IP

ok and how do i move it over?
Otsikko: Re: move the personal text
Kirjoitti: shadav - syyskuu 21, 2019, 09:08:37 IP
just reread your first post....
so you want the personal text under the custom title? (I swear that wasn't there before  :-\ :o, or well i'm having a blonde moment)

so in display.template.php
find and remove
// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
<li class="blurb">', $message['member']['blurb'], '</li>';


find
// Show the member's custom title, if they have one.
if (!empty($message['member']['title']))
echo '
<li class="title">', parse_bbc($message['member']['title']), '</li>';

add after
// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
<li class="blurb">', $message['member']['blurb'], '</li>';
Otsikko: Re: move the personal text
Kirjoitti: dominioboys - syyskuu 21, 2019, 09:22:45 IP
ok done thank but why is there a space between the line above and the one below?
Otsikko: Re: move the personal text
Kirjoitti: shadav - syyskuu 21, 2019, 09:59:58 IP
because it's in a list format
you should be able to play with it in your index.css

.poster li.stars, .poster li.avatar, .poster li.blurb, li.postcount, li.im_icons ul
{
margin-top: 0.5em;
}


I'm not sure where the other one is at....but you should be able to play with the blurb's top margin or remove it completely (keeping in mind that it will affect the rest listed there as well [avatars, stars, post count, icons] )

or if you don't want to do that you can try this but keep in mind if you want to move it later you'll need to fix it

find
// Show the member's custom title, if they have one.
if (!empty($message['member']['title']))
echo '
<li class="title">', parse_bbc($message['member']['title']), '</li>';
// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
<li class="blurb">', $message['member']['blurb'], '</li>';

replace with (not sure if this will work but it should)
// Show the member's custom title, if they have one.
if (!empty($message['member']['title']))
echo '
<li class="title">', parse_bbc($message['member']['title']), '<br />';
// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
', $message['member']['blurb'], '</li>';
Otsikko: Re: move the personal text
Kirjoitti: dominioboys - syyskuu 22, 2019, 05:53:10 AP
work man thanks you :)