Advertisement:

Author Topic: move the personal text  (Read 327 times)

Offline dominioboys

  • Semi-Newbie
  • *
  • Posts: 85
move the personal text
« on: September 20, 2019, 05:10:46 PM »
how can I move the "personal text" under the custom title in the posts of each profile

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,500
  • Gender: Male
    • Kindred-999 on GitHub
Re: move the personal text
« Reply #1 on: September 21, 2019, 03:18:43 AM »
You would have to edit display.template.php
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline dominioboys

  • Semi-Newbie
  • *
  • Posts: 85
Re: move the personal text
« Reply #2 on: September 21, 2019, 05:03:20 AM »
ok which string?

Offline shadav

  • Jr. Member
  • **
  • Posts: 205
  • Gender: Female
Re: move the personal text
« Reply #3 on: September 21, 2019, 04:24:55 PM »
in display.template.php
find or similar
Code: [Select]
// 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
Code: [Select]
// 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>';

Offline dominioboys

  • Semi-Newbie
  • *
  • Posts: 85
Re: move the personal text
« Reply #4 on: September 21, 2019, 07:40:04 PM »

ok and how do i move it over?

Offline shadav

  • Jr. Member
  • **
  • Posts: 205
  • Gender: Female
Re: move the personal text
« Reply #5 on: September 21, 2019, 09:08:37 PM »
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
Code: [Select]
// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
<li class="blurb">', $message['member']['blurb'], '</li>';

find
Code: [Select]
// 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
Code: [Select]
// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
<li class="blurb">', $message['member']['blurb'], '</li>';

Offline dominioboys

  • Semi-Newbie
  • *
  • Posts: 85
Re: move the personal text
« Reply #6 on: September 21, 2019, 09:22:45 PM »
ok done thank but why is there a space between the line above and the one below?

Offline shadav

  • Jr. Member
  • **
  • Posts: 205
  • Gender: Female
Re: move the personal text
« Reply #7 on: September 21, 2019, 09:59:58 PM »
because it's in a list format
you should be able to play with it in your index.css

Code: [Select]
.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
Code: [Select]
// 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)
Code: [Select]
// 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>';

Offline dominioboys

  • Semi-Newbie
  • *
  • Posts: 85
Re: move the personal text
« Reply #8 on: September 22, 2019, 05:53:10 AM »
work man thanks you :)