ElkArte Community

Title: quickbuttons to top
Post by: inter on September 29, 2016, 10:59:57 am
1. How to remove empty space?
2. How to return the old display profile?
Title: Re: quickbuttons to top
Post by: emanuele on September 29, 2016, 03:50:22 pm
1) how did you put the buttons up there?
2) what is the "old display profile"?
Title: Re: quickbuttons to top
Post by: inter on September 30, 2016, 02:58:19 am
1. I like the buttons above.
2. old view, there is no need to hover over the user name
Title: Re: quickbuttons to top
Post by: emanuele on September 30, 2016, 05:16:08 am
Yes, I got that, but how did you put them up there?
What did you change?
Title: Re: quickbuttons to top
Post by: inter on September 30, 2016, 05:25:48 am
Code: [Select]
<ul id="buttons_28840" class="quickbuttons sf-js-enabled sf-arrows">
...
</ul>

move to up
Title: Re: quickbuttons to top
Post by: ahrasis on September 30, 2016, 06:54:58 am
Possibly:
1. Edit the relevant css or overwrite it with custom css.
2. Edit Display / Generic Templates after copying default theme.

The best is to use modified copies of default theme template or use addon to remove / add after / before without manually have to change the default.
Title: Re: quickbuttons to top
Post by: emanuele on September 30, 2016, 08:38:57 am
Quote from: inter –
Code: [Select]
<ul id="buttons_28840" class="quickbuttons sf-js-enabled sf-arrows">
...
</ul>

move to up
It depends where you moved it up...
Is it too bothersome attach the modified file? ;)
Title: Re: quickbuttons to top
Post by: inter on September 30, 2016, 08:54:28 am
I'm not good at css
Title: Re: quickbuttons to top
Post by: ahrasis on September 30, 2016, 08:57:36 am
I think you are moving the said code above this one:
Code: [Select]
      // Show the post itself, finally!
      echo '
                  <div class="inner" id="msg_', $message['id'], '"', $ignoring ? ' style="display:none;"' : '', '>', $message['body'], '</div>';
As such, you need to rectify this css:
Code: [Select]
.quickbuttons:after
By changing it to:
Code: [Select]
.inner:after

For poster info to be displayed in old "SMF" display profile style, last time I check, it involves the Generic template. I have to check again for it.
Title: Re: quickbuttons to top
Post by: ahrasis on September 30, 2016, 09:08:57 am
Ok. I think I got it. For old SMF display profile style, you need to edit GenericMessages.template.php and find the code between // Don't show these things for guests. and // Done with the detail information about the poster.

The ul under first li for $message['member']['name'] should be restored to main list by:
1. Move the code to before // Are we showing the warning status?
2. Then, remove opening and closing ul under first li for $message['member']['name'].

I guess that's about it.
Title: Re: quickbuttons to top
Post by: inter on September 30, 2016, 11:04:28 am
thanks  ahrasis, emanuele.

problem #2 is almost solved  ;D