Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: 1833 on September 28, 2014, 10:57:03 AM

Title: How do i remove this?
Post by: 1833 on September 28, 2014, 10:57:03 AM
Hi

How do i remove the user's info that appears at left side of every comment on a thread?

I attach a screenshot
Title: Re: How do i remove this?
Post by: Steve on September 28, 2014, 11:04:08 AM
Edited out unnecessary question.
Title: Re: How do i remove this?
Post by: ARG01 on September 28, 2014, 11:14:48 AM
<---------  I believe that he means the profile area.
Title: Re: How do i remove this?
Post by: margarett on September 28, 2014, 11:35:50 AM
You want to remove all the user info? So... Who posted what?
It is doable, yes. But a strange request, nonetheless...
Title: Re: How do i remove this?
Post by: Kindred on September 28, 2014, 11:45:37 AM
Before we go handing out code which would be viewed as breaking the system, Perhaps an explanation of WHY anyone would want to remove the poster information from the posts?
Title: Re: How do i remove this?
Post by: ARG01 on September 28, 2014, 12:14:51 PM
Quote from: Kindred on September 28, 2014, 11:45:37 AM
Before we go handing out code which would be viewed as breaking the system, Perhaps an explanation of WHY anyone would want to remove the poster information from the posts?

This is exactly why I did not offer a solution just yet.  ;)
Title: Re: How do i remove this?
Post by: 1833 on September 28, 2014, 04:52:10 PM
Quote from: Kindred on September 28, 2014, 11:45:37 AM
Before we go handing out code which would be viewed as breaking the system, Perhaps an explanation of WHY anyone would want to remove the poster information from the posts?

Oh dear, excuse the awkwardness please, it happened as a result of gadget malfunction, i haven't got stable network till now. Very sorry!

Some of the things i posted do not appear, dunno why, but i posted twice in this thread and uploaded two screenshots.

The screenshot below is how i want the posts to look like after removing the left side profile area. I want only the username to appear along with comments.
Title: Re: How do i remove this?
Post by: 1833 on September 28, 2014, 04:55:43 PM
Quote from: Steve on September 28, 2014, 11:04:08 AM
Edited out unnecessary question.

Action not deliberate, apologies.
Title: Re: How do i remove this?
Post by: Illori on September 28, 2014, 04:58:06 PM
maybe http://custom.simplemachines.org/mods/index.php?mod=2924 would be useful.
Title: Re: How do i remove this?
Post by: 1833 on September 28, 2014, 05:10:38 PM
Quote from: Illori on September 28, 2014, 04:58:06 PM
maybe http://custom.simplemachines.org/mods/index.php?mod=2924 would be useful.

Ehm, i saw that mod before and skip it. Thanks.
Title: Re: How do i remove this?
Post by: Kindred on September 28, 2014, 06:33:28 PM
you're really sort of looking for a custom theme to make your site look like VB... (ICK, BTW, very ICK)

Title: Re: How do i remove this?
Post by: 1833 on September 28, 2014, 06:59:03 PM
Quote from: Kindred on September 28, 2014, 06:33:28 PM
you're really sort of looking for a custom theme to make your site look like VB... (ICK, BTW, very ICK)

Something a little more like above screenshot, be it theme, mod or a code to edit it look that way.
Title: Re: How do i remove this?
Post by: Kindred on September 28, 2014, 07:01:41 PM
basically - what you ask is not a MINOR change... it's a fairly MAJOR layout change...   which takes it well outside the real of support and into the real of custom coding.
Title: Re: How do i remove this?
Post by: 1833 on September 28, 2014, 07:51:07 PM
Quote from: Kindred on September 28, 2014, 07:01:41 PM
basically - what you ask is not a MINOR change... it's a fairly MAJOR layout change...   which takes it well outside the real of support and into the real of custom coding.

How unfortunate, so, it wasn't easy as I presume. Thanks for the education.

However, I will so much appreciate a veteran advice about this custom coding, I pretty much learn the basics of php from w3schools and some random youtube videos and am putting effort to learn as much as I can, is php enough and are the sources am learning from good enough to support me excel to a stage I can customize my site to my taste?


Title: Re: How do i remove this?
Post by: Antechinus on September 28, 2014, 07:56:53 PM
Yeah you can do it. It is really more suited for the "Coding Discussion" or "Graphics and Temples" boards, rather than 2.0.x support as such. This board is for problems with the default installation. :)

Anyway, someone can move the thread if necessary.

What you want to do isn't that difficult ( IMO, says he from his ivory tower :D ). One question: what is the @Whoever text?
Title: Re: How do i remove this?
Post by: 1833 on September 28, 2014, 08:18:45 PM
Relieved at last, glad I didn't fall for that power yoga thing[something proposed by a close friend], it will now be power php all the way. Wish me success :)

About  @whoever, dunno what the heck that is!
Title: Re: How do i remove this?
Post by: Gwenwyfar on September 29, 2014, 05:40:47 AM
Removing everything but name and online status would be very simple, but to have it look like that you'll have to edit quite a bit around the php indeed. The text files to display gender info as well, probably. Its still just moving things around on the code and removing others though, so shouldn't be too complicated.
Title: Re: How do i remove this?
Post by: Antechinus on September 29, 2014, 05:53:34 AM
Quote from: 1833 on September 28, 2014, 08:18:45 PM
Relieved at last, glad I didn't fall for that power yoga thing[something proposed by a close friend], it will now be power php all the way. Wish me success :)

About  @whoever, dunno what the heck that is!

You have avatar > username > gender > @whoever
Title: Re: How do i remove this?
Post by: kat on September 29, 2014, 05:53:52 AM
In the default theme's Display.template.php I removed this lot and it seems to do what you want...

...'course, the theme that you're using might be subtly different.

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

// Show the member's primary group (like 'Administrator') if they have one.
if (!empty($message['member']['group']))
echo '
<li class="membergroup">', $message['member']['group'], '</li>';

// 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 '
<li class="postgroup">', $message['member']['post_group'], '</li>';
echo '
<li class="stars">', $message['member']['group_stars'], '</li>';

// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<li class="avatar">
<a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">
', $message['member']['avatar']['image'], '
</a>
</li>';

// Show how many posts they have made.
if (!isset($context['disabled_fields']['posts']))
echo '
<li class="postcount">', $txt['member_postcount'], ': ', $message['member']['posts'], '</li>';

// Is karma display enabled?  Total or +/-?
if ($modSettings['karmaMode'] == '1')
echo '
<li class="karma">', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '</li>';
elseif ($modSettings['karmaMode'] == '2')
echo '
<li class="karma">', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '</li>';

// Is this user allowed to modify this member's karma?
if ($message['member']['karma']['allow'])
echo '
<li class="karma_allow">
<a href="', $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.' . $context['start'], ';m=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $modSettings['karmaApplaudLabel'], '</a>
<a href="', $scripturl, '?action=modifykarma;sa=smite;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';m=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $modSettings['karmaSmiteLabel'], '</a>
</li>';

// Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '' && !isset($context['disabled_fields']['gender']))
echo '
<li class="gender">', $txt['gender'], ': ', $message['member']['gender']['image'], '</li>';

// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
<li class="blurb">', $message['member']['blurb'], '</li>';

// Any custom fields to show as icons?
if (!empty($message['member']['custom_fields']))
{
$shown = false;
foreach ($message['member']['custom_fields'] as $custom)
{
if ($custom['placement'] != 1 || empty($custom['value']))
continue;
if (empty($shown))
{
$shown = true;
echo '
<li class="im_icons">
<ul>';
}
echo '
<li>', $custom['value'], '</li>';
}
if ($shown)
echo '
</ul>
</li>';
}

// This shows the popular messaging icons.
if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
echo '
<li class="im_icons">
<ul>
', !empty($message['member']['icq']['link']) ? '<li>' . $message['member']['icq']['link'] . '</li>' : '', '
', !empty($message['member']['msn']['link']) ? '<li>' . $message['member']['msn']['link'] . '</li>' : '', '
', !empty($message['member']['aim']['link']) ? '<li>' . $message['member']['aim']['link'] . '</li>' : '', '
', !empty($message['member']['yim']['link']) ? '<li>' . $message['member']['yim']['link'] . '</li>' : '', '
</ul>
</li>';

// Show the profile, website, email address, and personal message buttons.
if ($settings['show_profile_buttons'])
{
echo '
<li class="profile">
<ul>';
// Don't show the profile button if you're not allowed to view the profile.
if ($message['member']['can_view_profile'])
echo '
<li><a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt['view_profile'] . '" title="' . $txt['view_profile'] . '" />' : $txt['view_profile']), '</a></li>';

// Don't show an icon if they haven't specified a website.
if ($message['member']['website']['url'] != '' && !isset($context['disabled_fields']['website']))
echo '
<li><a href="', $message['member']['website']['url'], '" title="' . $message['member']['website']['title'] . '" target="_blank" class="new_win">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $message['member']['website']['title'] . '" />' : $txt['www']), '</a></li>';

// Don't show the email address if they want it hidden.
if (in_array($message['member']['show_email'], array('yes', 'yes_permission_override', 'no_through_forum')))
echo '
<li><a href="', $scripturl, '?action=emailuser;sa=email;msg=', $message['id'], '" rel="nofollow">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . '" />' : $txt['email']), '</a></li>';

// Since we know this person isn't a guest, you *can* message them.
if ($context['can_send_pm'])
echo '
<li><a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . ($message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']) . '" />' : ($message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']), '</a></li>';

echo '
</ul>
</li>';
}

// Any custom fields for standard placement?
if (!empty($message['member']['custom_fields']))
{
foreach ($message['member']['custom_fields'] as $custom)
if (empty($custom['placement']) || empty($custom['value']))
echo '
<li class="custom">', $custom['title'], ': ', $custom['value'], '</li>';
}

// Are we showing the warning status?
if ($message['member']['can_see_warning'])
echo '
<li class="warning">', $context['can_issue_warning'] ? '<a href="' . $scripturl . '?action=profile;area=issuewarning;u=' . $message['member']['id'] . '">' : '', '<img src="', $settings['images_url'], '/warning_', $message['member']['warning_status'], '.gif" alt="', $txt['user_warn_' . $message['member']['warning_status']], '" />', $context['can_issue_warning'] ? '</a>' : '', '<span class="warn_', $message['member']['warning_status'], '">', $txt['warn_' . $message['member']['warning_status']], '</span></li>';
}
// Otherwise, show the guest's email.
elseif (!empty($message['member']['email']) && in_array($message['member']['show_email'], array('yes', 'yes_permission_override', 'no_through_forum')))
echo '
<li class="email"><a href="', $scripturl, '?action=emailuser;sa=email;msg=', $message['id'], '" rel="nofollow">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . '" />' : $txt['email']), '</a></li>';

Title: Re: How do i remove this?
Post by: 1833 on September 29, 2014, 08:21:06 AM
Quote from: Fortytwo on September 29, 2014, 05:40:47 AM
Removing everything but name and online status would be very simple, but to have it look like that you'll have to edit quite a bit around the php indeed. The text files to display gender info as well, probably. Its still just moving things around on the code and removing others though, so shouldn't be too complicated.

Could you please direct me to the things I should remove/modify.
Title: Re: How do i remove this?
Post by: Gwenwyfar on September 29, 2014, 08:26:15 AM
Try the changes Antechinus gave you, you have to edit it on display.template.php :)
Title: Re: How do i remove this?
Post by: 1833 on September 29, 2014, 08:32:29 AM

[/quote]

You have avatar > username > gender > @whoever
[/quote]

Lol, my forum still have the default layout, the screenshot with the @whoever is not my forum. What I need is avatar, username, gender and time of post displayed "inline" then comments after

If you notice I didn't include @whoever when I mark some areas in red.

Title: Re: How do i remove this?
Post by: Antechinus on September 29, 2014, 08:46:39 AM
Quote from: Fortytwo on September 29, 2014, 08:26:15 AM
Try the changes Antechinus gave you, you have to edit it on display.template.php :)

That was K@. ;) It's not a complete solution though.
Title: Re: How do i remove this?
Post by: Antechinus on September 29, 2014, 08:51:48 AM
Quote from: 1833 on September 29, 2014, 08:32:29 AMLol, my forum still have the default layout, the screenshot with the @whoever is not my forum. What I need is avatar, username, gender and time of post displayed "inline" then comments after

If you notice I didn't include @whoever when I mark some areas in red.

I thought it might be a feature you wanted (like from a mod or something). What about the buttons for the quote, etc?
Title: Re: How do i remove this?
Post by: Gwenwyfar on September 29, 2014, 09:01:20 AM
Oh, sorry, still not used to everyone's names :P

I went back to read the name and was so focused on writing it right I didn't notice I copied the wrong one lol
Title: Re: How do i remove this?
Post by: 1833 on September 29, 2014, 09:04:50 AM
Quotei thought it might be a feature you wanted (like from a mod or something). What about the buttons for the quote, etc?

I want those buttons to stay at the bottom. Could you help me with that?



Title: Re: How do i remove this?
Post by: Antechinus on September 29, 2014, 09:21:36 AM
Yeah I can do it easy enough, but I'm thinking I should be a bit of a bastard and make the others put their thinking caps on. :D It's late here and I'm only checking in here while doing something else.

Basically, you want to move the whole .quickbuttons ul and all its contents from the default location to under the post div. That will sort the button location. CSS can then be tweaked to suit.

For the .poster area, there's a div with that name that holds all the stuff. By default it is floated left with a fixed width set in em. You need to get rid of most of its content and put it the rest up top inside the .keyinfo div, or next to that div. Anyway, it has to go inside .postarea unless you want to rewrite the whole shebang (which is what I would do, but I'm used to it and you aint). The bits you want to keep should be fairly obvious if you (or someone else) check(s) the template coding. You will need to switch the order of username and avatar to get the look you want.

You will also need to get rid of the left margin on .postarea. Have a bash. See how you go. It's not too bad as long as you keep your PHP syntax straight, to avoid parse errors.
Title: Re: How do i remove this?
Post by: 1833 on September 29, 2014, 09:48:46 AM

Quote

That was K@. ;) It's not a complete solution though.

What he posted is the exact of what I have here, I didn't see any solution.
Title: Re: How do i remove this?
Post by: 1833 on September 29, 2014, 09:51:32 AM
K@....

Are those codes supposed to show the area  I shall modify? Cos they match my display.template.php codes.
Title: Re: How do i remove this?
Post by: Gwenwyfar on September 29, 2014, 09:56:13 AM
Try changing the part he posted to this then:


// Don't show these things for guests.
if (!$message['member']['is_guest'])
{

// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<li class="avatar">
<a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">
', $message['member']['avatar']['image'], '
</a>
</li>';


// Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '' && !isset($context['disabled_fields']['gender']))
echo '
<li class="gender">', $txt['gender'], ': ', $message['member']['gender']['image'], '</li>';


// Any custom fields to show as icons?
if (!empty($message['member']['custom_fields']))
{
$shown = false;
foreach ($message['member']['custom_fields'] as $custom)
{
if ($custom['placement'] != 1 || empty($custom['value']))
continue;
if (empty($shown))
{
$shown = true;
echo '
<li class="im_icons">
<ul>';
}
echo '
<li>', $custom['value'], '</li>';
}
if ($shown)
echo '
</ul>
</li>';
}

// Show the profile, website, email address, and personal message buttons.
if ($settings['show_profile_buttons'])
{
echo '
<li class="profile">
<ul>';
// Don't show the profile button if you're not allowed to view the profile.
if ($message['member']['can_view_profile'])
echo '
<li><a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt['view_profile'] . '" title="' . $txt['view_profile'] . '" />' : $txt['view_profile']), '</a></li>';

// Don't show an icon if they haven't specified a website.
if ($message['member']['website']['url'] != '' && !isset($context['disabled_fields']['website']))
echo '
<li><a href="', $message['member']['website']['url'], '" title="' . $message['member']['website']['title'] . '" target="_blank" class="new_win">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $message['member']['website']['title'] . '" />' : $txt['www']), '</a></li>';

// Don't show the email address if they want it hidden.
if (in_array($message['member']['show_email'], array('yes', 'yes_permission_override', 'no_through_forum')))
echo '
<li><a href="', $scripturl, '?action=emailuser;sa=email;msg=', $message['id'], '" rel="nofollow">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . '" />' : $txt['email']), '</a></li>';

// Since we know this person isn't a guest, you *can* message them.
if ($context['can_send_pm'])
echo '
<li><a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . ($message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']) . '" />' : ($message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']), '</a></li>';

echo '
</ul>
</li>';
}

// Any custom fields for standard placement?
if (!empty($message['member']['custom_fields']))
{
foreach ($message['member']['custom_fields'] as $custom)
if (empty($custom['placement']) || empty($custom['value']))
echo '
<li class="custom">', $custom['title'], ': ', $custom['value'], '</li>';
}

// Are we showing the warning status?
if ($message['member']['can_see_warning'])
echo '
<li class="warning">', $context['can_issue_warning'] ? '<a href="' . $scripturl . '?action=profile;area=issuewarning;u=' . $message['member']['id'] . '">' : '', '<img src="', $settings['images_url'], '/warning_', $message['member']['warning_status'], '.gif" alt="', $txt['user_warn_' . $message['member']['warning_status']], '" />', $context['can_issue_warning'] ? '</a>' : '', '<span class="warn_', $message['member']['warning_status'], '">', $txt['warn_' . $message['member']['warning_status']], '</span></li>';
}
// Otherwise, show the guest's email.
elseif (!empty($message['member']['email']) && in_array($message['member']['show_email'], array('yes', 'yes_permission_override', 'no_through_forum')))
echo '
<li class="email"><a href="', $scripturl, '?action=emailuser;sa=email;msg=', $message['id'], '" rel="nofollow">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . '" />' : $txt['email']), '</a></li>';


Please remember to backup the original file somewhere. I did not test this, but this should remove most of what you need. You still need to have the name moved to in between avatar and gender, though. But I need to go get the template to do that now, I used K@'s code. You also need to move the whole poster box to the "keyinfo" area or before it as well, like Antechinus said.

Then later, in css, add this:

.poster .avatar img {
height: 30px; }

.poster ul li {
display: inline; }
Title: Re: How do i remove this?
Post by: 1833 on September 29, 2014, 09:57:54 AM
@antechinus

I will try that. Thanks
Title: Re: How do i remove this?
Post by: 1833 on September 29, 2014, 10:18:15 AM
@fortytwo

When I finish I will upload a screenshot. Thanks
Title: Re: How do i remove this?
Post by: Gwenwyfar on September 29, 2014, 01:16:51 PM
As for the avatar size, if you're planning on leaving it always like this no matter what, you could change the settings instead as well, so that the actual images will not be larger than the size you want. This way it would save on downloaded images/space used too.
Title: Re: How do i remove this?
Post by: 1833 on September 29, 2014, 01:22:05 PM
Av added:
.poster .avatar img {height: 30px; }
and
.poster ul li {display: inline;} to index.css

And remove everything in:
// 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.
// Show how many posts they have made.
// Is karma display enabled?  Total or +/-?
// Is this user allowed to modify this member's karma?
// This shows the popular messaging icons.


QuoteYou still need to have the name moved to in between avatar and gender, though. But I need to go get the template to do that now, I used K@'s code. You also need to  move the whole poster box to the "keyinfo" area or before it as well, like Antechinus said.

I haven't done any of the bolded, couldn't locate them on the template.

Below is the screenshot of what i get.
Title: Re: How do i remove this?
Post by: Gwenwyfar on September 29, 2014, 01:36:24 PM
Ok, some actual editing this time, at least my templates uses the same avatar-name order, didn't need to change that :P

find:
// Done with the information about the poster... on to the post itself.
Change it to:
// Done with the information about the poster... on to the post itself.
echo '
<div class="postarea">
<div class="flow_hidden">';


Then remove everything right above the "done with information about poster" until "//Show information about the poster of this image".

Then copy this:
// Show information about the poster of this message.
echo '
<div class="poster">';

// Show a link to the member's profile.
echo '
<ul class="reset smalltext" id="msg_', $message['id'], '_extra_info">';


// Don't show these things for guests.
if (!$message['member']['is_guest'])
{

// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<li class="avatar">
<a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">
', $message['member']['avatar']['image'], '
</a>
</li>';

echo ' <li>
<h4>';

// Show online and offline buttons?
if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest'])
echo '
', $context['can_send_pm'] ? '<a href="' . $message['member']['online']['href'] . '" title="' . $message['member']['online']['label'] . '">' : '', '<img src="', $message['member']['online']['image_href'], '" alt="', $message['member']['online']['text'], '" />', $context['can_send_pm'] ? '</a>' : '';

// Show a link to the member's profile.
echo '
', $message['member']['link'], '
</h4>
</li>';


// Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '' && !isset($context['disabled_fields']['gender']))
echo '
<li class="gender">', $message['member']['gender']['image'], '</li>';


// Show the profile, website, email address, and personal message buttons.
if ($settings['show_profile_buttons'])
{
echo '
<li class="profile">
<ul>';
// Don't show the profile button if you're not allowed to view the profile.
if ($message['member']['can_view_profile'])
echo '
<li><a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt['view_profile'] . '" title="' . $txt['view_profile'] . '" />' : $txt['view_profile']), '</a></li>';

// Don't show an icon if they haven't specified a website.
if ($message['member']['website']['url'] != '' && !isset($context['disabled_fields']['website']))
echo '
<li><a href="', $message['member']['website']['url'], '" title="' . $message['member']['website']['title'] . '" target="_blank" class="new_win">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $message['member']['website']['title'] . '" />' : $txt['www']), '</a></li>';

// Don't show the email address if they want it hidden.
if (in_array($message['member']['show_email'], array('yes', 'yes_permission_override', 'no_through_forum')))
echo '
<li><a href="', $scripturl, '?action=emailuser;sa=email;msg=', $message['id'], '" rel="nofollow">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . '" />' : $txt['email']), '</a></li>';

// Since we know this person isn't a guest, you *can* message them.
if ($context['can_send_pm'])
echo '
<li><a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . ($message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']) . '" />' : ($message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']), '</a></li>';

echo '
</ul>
</li>';
}

// Any custom fields for standard placement?
if (!empty($message['member']['custom_fields']))
{
foreach ($message['member']['custom_fields'] as $custom)
if (empty($custom['placement']) || empty($custom['value']))
echo '
<li class="custom">', $custom['title'], ': ', $custom['value'], '</li>';
}

// Are we showing the warning status?
if ($message['member']['can_see_warning'])
echo '
<li class="warning">', $context['can_issue_warning'] ? '<a href="' . $scripturl . '?action=profile;area=issuewarning;u=' . $message['member']['id'] . '">' : '', '<img src="', $settings['images_url'], '/warning_', $message['member']['warning_status'], '.gif" alt="', $txt['user_warn_' . $message['member']['warning_status']], '" />', $context['can_issue_warning'] ? '</a>' : '', '<span class="warn_', $message['member']['warning_status'], '">', $txt['warn_' . $message['member']['warning_status']], '</span></li>';
}
// Otherwise, show the guest's email.
elseif (!empty($message['member']['email']) && in_array($message['member']['show_email'], array('yes', 'yes_permission_override', 'no_through_forum')))
echo '
<li class="email"><a href="', $scripturl, '?action=emailuser;sa=email;msg=', $message['id'], '" rel="nofollow">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . '" />' : $txt['email']), '</a></li>';


// End poster box
echo '</ul>
    </div>'


And add it right after "div class="post_wrapper".

But you'll need to end the echo in it, and start another at the end, to separate the content in it. So right before the place you paste it, add: '; then after the code you pasted, add echo '

As for the css, I did some testing and I guess we'll have to go for the float approach, remove the "inline" part, and add this instead:

.poster li {
float: left;
margin-right: 10px; }
Title: Re: How do i remove this?
Post by: 1833 on September 30, 2014, 10:29:54 AM
Got some errors!
Title: Re: How do i remove this?
Post by: Gwenwyfar on September 30, 2014, 12:19:20 PM
I'm pretty busy today, so I won't have time to check that. I can test it tomorrow or the day after, unless someone wants to give a look for him before that, this is the original (working) code I based that one off from, name is already after the avatar:

// Show information about the poster of this message.
echo '
<div class="poster">';

// Show a link to the member's profile.
echo '
<ul class="reset smalltext" id="msg_', $message['id'], '_extra_info">';


// Don't show these things for guests.
if (!$message['member']['is_guest'])
{

// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<li class="avatar">
<a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">
', $message['member']['avatar']['image'], '
</a>
</li>';

echo ' <li>
<h4>';

// Show online and offline buttons?
if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest'])
echo '
', $context['can_send_pm'] ? '<a href="' . $message['member']['online']['href'] . '" title="' . $message['member']['online']['label'] . '">' : '', '<img src="', $message['member']['online']['image_href'], '" alt="', $message['member']['online']['text'], '" />', $context['can_send_pm'] ? '</a>' : '';

// Show a link to the member's profile.
echo '
', $message['member']['link'], '
</h4>
</li>';

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

// 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 '
<li class="stars">', $message['member']['group_stars'], '</li>';
echo '
<li class="postgroup">', $message['member']['post_group'], '</li>';

// Show how many posts they have made.
if (!isset($context['disabled_fields']['posts']))
echo '
<li class="postcount">', $txt['member_postcount'], ': ', $message['member']['posts'], '</li>';

// Is karma display enabled?  Total or +/-?
if ($modSettings['karmaMode'] == '1')
echo '
<li class="karma">', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '</li>';
elseif ($modSettings['karmaMode'] == '2')
echo '
<li class="karma">', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '</li>';

// Is this user allowed to modify this member's karma?
if ($message['member']['karma']['allow'])
echo '
<li class="karma_allow">
<a href="', $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.' . $context['start'], ';m=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $modSettings['karmaApplaudLabel'], '</a>
<a href="', $scripturl, '?action=modifykarma;sa=smite;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';m=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $modSettings['karmaSmiteLabel'], '</a>
</li>';

// Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '' && !isset($context['disabled_fields']['gender']))
echo '
<li class="gender">', $message['member']['gender']['image'], '</li>';

// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
<li class="blurb">', $message['member']['blurb'], '</li>';

// Any custom fields to show as icons?
if (!empty($message['member']['custom_fields']))
{
$shown = false;
foreach ($message['member']['custom_fields'] as $custom)
{
if ($custom['placement'] != 1 || empty($custom['value']))
continue;
if (empty($shown))
{
$shown = true;
echo '
<li class="im_icons">
<ul>';
}
echo '
<li>', $custom['value'], '</li>';
}
if ($shown)
echo '
</ul>
</li>';
}

// This shows the popular messaging icons.
if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
echo '
<li class="im_icons">
<ul>
', !empty($message['member']['icq']['link']) ? '<li>' . $message['member']['icq']['link'] . '</li>' : '', '
', !empty($message['member']['msn']['link']) ? '<li>' . $message['member']['msn']['link'] . '</li>' : '', '
', !empty($message['member']['aim']['link']) ? '<li>' . $message['member']['aim']['link'] . '</li>' : '', '
', !empty($message['member']['yim']['link']) ? '<li>' . $message['member']['yim']['link'] . '</li>' : '', '
</ul>
</li>';

// Show the profile, website, email address, and personal message buttons.
if ($settings['show_profile_buttons'])
{
echo '
<li class="profile">
<ul>';
// Don't show the profile button if you're not allowed to view the profile.
if ($message['member']['can_view_profile'])
echo '
<li><a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt['view_profile'] . '" title="' . $txt['view_profile'] . '" />' : $txt['view_profile']), '</a></li>';

// Don't show an icon if they haven't specified a website.
if ($message['member']['website']['url'] != '' && !isset($context['disabled_fields']['website']))
echo '
<li><a href="', $message['member']['website']['url'], '" title="' . $message['member']['website']['title'] . '" target="_blank" class="new_win">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $message['member']['website']['title'] . '" />' : $txt['www']), '</a></li>';

// Don't show the email address if they want it hidden.
if (in_array($message['member']['show_email'], array('yes', 'yes_permission_override', 'no_through_forum')))
echo '
<li><a href="', $scripturl, '?action=emailuser;sa=email;msg=', $message['id'], '" rel="nofollow">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . '" />' : $txt['email']), '</a></li>';

// Since we know this person isn't a guest, you *can* message them.
if ($context['can_send_pm'])
echo '
<li><a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . ($message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']) . '" />' : ($message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']), '</a></li>';

echo '
</ul>
</li>';
}

// Any custom fields for standard placement?
if (!empty($message['member']['custom_fields']))
{
foreach ($message['member']['custom_fields'] as $custom)
if (empty($custom['placement']) || empty($custom['value']))
echo '
<li class="custom">', $custom['title'], ': ', $custom['value'], '</li>';
}

// Are we showing the warning status?
if ($message['member']['can_see_warning'])
echo '
<li class="warning">', $context['can_issue_warning'] ? '<a href="' . $scripturl . '?action=profile;area=issuewarning;u=' . $message['member']['id'] . '">' : '', '<img src="', $settings['images_url'], '/warning_', $message['member']['warning_status'], '.gif" alt="', $txt['user_warn_' . $message['member']['warning_status']], '" />', $context['can_issue_warning'] ? '</a>' : '', '<span class="warn_', $message['member']['warning_status'], '">', $txt['warn_' . $message['member']['warning_status']], '</span></li>';
}
// Otherwise, show the guest's email.
elseif (!empty($message['member']['email']) && in_array($message['member']['show_email'], array('yes', 'yes_permission_override', 'no_through_forum')))
echo '
<li class="email"><a href="', $scripturl, '?action=emailuser;sa=email;msg=', $message['id'], '" rel="nofollow">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . '" />' : $txt['email']), '</a></li>';

// Done with the information about the poster... on to the post itself.
echo '
</ul>
</div>
Title: Re: How do i remove this?
Post by: Hj Ahmad Rasyid Hj Ismail on October 03, 2014, 02:09:32 AM
I think you are doing the hard way. You can simply hide the poster area by css and add the short poster info as required via minor editing the Display.template.php. Let me see if I can come out with this solution.
Title: Re: How do i remove this?
Post by: Hj Ahmad Rasyid Hj Ismail on October 03, 2014, 03:15:28 AM
Ok. Let's try this. First add this css at the end of your index.css file:


.poster, .postarea .flow_hidden ul, .keyinfo {display:none;}
.postarea, .moderatorbar {margin: 0 0 0 1em;}
ul.quickbuttons {margin: 1em 0; float:left; text-align:left;}
ul.quickbuttons li {margin:0 1em 0 0;}
.keyinfo2 .avatar {float:left; margin-right: 5px; height:2em; width:2em;}


The first two lines will hide the poster area and the top part of your post. Others are for our add ons. So now we just need to add code to Display.template.php.

Find:
// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
Add before:

echo '
<div class="keyinfo2">
<div class="normaltext">', $message['member']['link'], ' ', $txt['on'], ' ', $message['time'], '';
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<div class="avatar">
<a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">
', $message['member']['avatar']['image'], '
</a>
</div>
</div>
</div>';



This is for avatar, poster name and time of posting. Do note, style of time can be adjusted in ACP.

The last part, is to put the button to the bottom. Simply copy the button code and put it somewhere before the custom profile fields above the signature (or elsewhere that you want):

// Are there any custom profile fields for above the signature?

You can apply background:none to li button in the end of index.css to remove its images.
Title: Re: How do i remove this?
Post by: Hj Ahmad Rasyid Hj Ismail on October 03, 2014, 03:54:32 AM
Just in case you are not sure how to remove the button images, add this code at the end of index.css file:


ul.quickbuttons li.approve_button, ul.quickbuttons li.quote_button, ul.quickbuttons li.modify_button, ul.quickbuttons li.remove_button, ul.quickbuttons li.split_button, ul.quickbuttons li.restore_button {background:none;}
ul.quickbuttons li a {padding:0;}
Title: Re: How do i remove this?
Post by: Gwenwyfar on October 03, 2014, 04:31:06 AM
True. I was thinking it would be too icky to go around absolute positioning stuff to the top, but could always just move the whole thing to the top and then use css on it if that was a problem. Quite busy these last few days, didn't even think about it more than what was already suggested here :P I Guess I ended mistaking how the default looks with what my forum looks as well, where the topic name occupies the area above the avatar.
Title: Re: How do i remove this?
Post by: Hj Ahmad Rasyid Hj Ismail on October 03, 2014, 06:22:13 AM
No problem. We all have our own real life to attend to. I can see you giving a good css solution in other post. Keep it up.
Title: Re: How do i remove this?
Post by: Hj Ahmad Rasyid Hj Ismail on October 03, 2014, 07:36:38 AM
I was bored and played around with my earlier suggestion. This is an alternative/upgrade to my earlier suggestion:

Change the above CSS code to:
.poster, .postarea .flow_hidden ul, .keyinfo, .modifybutton, #forumposts .reportlinks a {display:none;}
.postarea, .moderatorbar {margin: 0 0 0 1em;}
ul.quickbuttons {margin: 1em 0; float:left; text-align:left;}
ul.quickbuttons li {margin:0 0.5em 0 0;}
.keyinfo2 .avatar {float:left; margin-right: 5px; height:2em; width:2em;}
ul.quickbuttons li.approve_button, ul.quickbuttons li.quote_button, ul.quickbuttons li.modify_button, ul.quickbuttons li.remove_button, ul.quickbuttons li.split_button, ul.quickbuttons li.restore_button {background:none;}
ul.quickbuttons li a {padding:0 0.5em; border:1px solid lightblue; border-radius:5px;}
ul.quickbuttons li a:hover {background: #fff; border: 1px solid lime; border-radius:5px;}


This will hide quick edit button, report to moderator and warning from its current position as well other than just hide poster area and the top part of your post. It also adjusts the margin and padding where it is concerned. Button is roundly bordered with lightblue color and highlighted upon hover.

For button code, try to use this instead.

// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
if ($message['can_approve'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
echo '
<ul class="reset smalltext quickbuttons">';

// Maybe we can approve it, maybe we should?
if ($message['can_approve'])
echo '
<li class="approve_button"><a href="', $scripturl, '?action=moderate;area=postmod;sa=approve;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $txt['approve'], '</a></li>';

// Can they reply? Have they turned on quick reply?
if ($context['can_quote'] && !empty($options['display_quick_reply']))
echo '
<li class="quote_button"><a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';last_msg=', $context['topic_last_message'], '" onclick="return oQuickReply.quote(', $message['id'], ');">', $txt['quote'], '</a></li>';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_quote'])
echo '
<li class="quote_button"><a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';last_msg=', $context['topic_last_message'], '">', $txt['quote'], '</a></li>';


// Can the user modify the contents of this post?  Show the modify inline image.
if ($message['can_modify'])
echo '
<li class="quick_edit_button"><a id="modify_button_', $message['id'], '" onclick="oQuickModify.modifyMsg(\'', $message['id'], '\')" class="modify_button">Quick Edit</a></li>';

// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
<li class="modify_button"><a href="', $scripturl, '?action=post;msg=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], '">', $txt['modify'], '</a></li>';

// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
<li class="remove_button"><a href="', $scripturl, '?action=deletemsg;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '" onclick="return confirm(\'', $txt['remove_message'], '?\');">', $txt['remove'], '</a></li>';

// What about splitting it off the rest of the topic?
if ($context['can_split'] && !empty($context['real_num_replies']))
echo '
<li class="split_button"><a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '">', $txt['split'], '</a></li>';

// Can we restore topics?
if ($context['can_restore_msg'])
echo '
<li class="restore_button"><a href="', $scripturl, '?action=restoretopic;msgs=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $txt['restore_message'], '</a></li>';

// Maybe they want to report this post to the moderator(s)?
if ($context['can_report_moderator'])
echo '
<li class="report_button"><a href="', $scripturl, '?action=reporttm;topic=', $context['current_topic'], '.', $message['counter'], ';msg=', $message['id'], '">Report</a></li>';

// Can we issue a warning because of this post?  Remember, we can't give guests warnings.
if ($context['can_issue_warning'] && !$message['is_message_author'] && !$message['member']['is_guest'])
echo '
<li class="warning_button"><a href="', $scripturl, '?action=profile;area=issuewarning;u=', $message['member']['id'], ';msg=', $message['id'], '">Warn</a></li>';

// Show a checkbox for quick moderation?
if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $message['can_remove'])
echo '
<li class="inline_mod_check" style="display: none;" id="in_topic_mod_check_', $message['id'], '"></li>';

if ($message['can_approve'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
echo '
</ul>';


Quick edit, report to moderator and warning buttons are added here. Note that I hard coded the text for Quick Edit, Report and Warn. You may warn to add $txt strings and replace them accordingly.
Title: Re: How do i remove this?
Post by: Kindred on October 03, 2014, 10:35:53 AM
Meh... I am Opposed to leaving crap present in the HTML if it is not getting displayed...
Title: Re: How do i remove this?
Post by: Hj Ahmad Rasyid Hj Ismail on October 03, 2014, 10:39:21 AM
Lol... Original SMF code is not a crap. But sure, you can remove the unused code if all seems to work fine.
Title: Re: How do i remove this?
Post by: Kindred on October 03, 2014, 10:40:25 AM
Crap is any code that is not being actually used.
Title: Re: How do i remove this?
Post by: Gwenwyfar on October 03, 2014, 10:57:22 AM
If its something you're sure you'll remove for good, I agree, had forgotten about this detail. On my forum there are very few stuff I hid, but when I'm done changing everything it'll be fun to remove them from the code all at once and compare the improvement, reason I'm leaving them there for now :P

Getting some more free time soon, I'll post the update to that code later in case he still wants that.



Title: Re: How do i remove this?
Post by: 1833 on October 03, 2014, 11:49:26 AM
Yes, I still want everything coming from anyone that spare some time to help. I will go through the codes and apply them where necessary. Thanks

Will be uploading screenshots soon
Title: Re: How do i remove this?
Post by: Hj Ahmad Rasyid Hj Ismail on October 03, 2014, 11:55:35 AM
This how the upgraded one looks.
Title: Re: How do i remove this?
Post by: 1833 on October 03, 2014, 01:40:48 PM
I got this after putting your codes to overwrite the default.

The upgraded codes.
Title: Re: How do i remove this?
Post by: 1833 on October 03, 2014, 01:42:08 PM
And this after applying css
Title: Re: How do i remove this?
Post by: 1833 on October 03, 2014, 02:14:30 PM
I encountered little problem with the first php codes, I ll explain below..



QuoteFind:

// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.


I located that and  didn't see this inside it or before it:

QuoteAdd before:

echo '

<div class="keyinfo2">

<div class="normaltext">', $message['member']['link'], ' ',$txt['on'], ' ', $message['time'], '';

// Show avatars, images, etc.?

if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))

echo '

<div class="avatar">

<a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">

', $message['member']['avatar']['image'], '

</a>

</div>

</div>

</div>';





This is what i find inside;


if ($message['can_approve'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
echo '
<ul class="reset smalltext quickbuttons">'; 


And this before it;

// Done with the information about the poster... on to the post itself.
echo '
</ul>
</div>
<div class="postarea">
<div class="flow_hidden">
<div class="keyinfo">
<div class="messageicon">
<img src="', $message['icon_url'] . '" alt=""', $message['can_modify'] ? ' id="msg_icon_' . $message['id'] . '"' : '', ' />
</div>
<h5 id="subject_', $message['id'], '">
<a href="', $message['href'], '" rel="nofollow">', $message['subject'], '</a>
</h5>
<div class="smalltext">&#171; <strong>', !empty($message['counter']) ? $txt['reply_noun'] . ' #' . $message['counter'] : '', ' ', $txt['on'], ':</strong> ', $message['time'], ' &#187;</div>
<div id="msg_', $message['id'], '_quick_mod"></div>
</div>'; [code]

Title: Re: How do i remove this?
Post by: Hj Ahmad Rasyid Hj Ismail on October 03, 2014, 02:52:06 PM
The css is not working correctly. Please remove all the changes you made and restore the original. Then please attach your Display.template.php as well as your index.css files.
Title: Re: How do i remove this?
Post by: 1833 on October 03, 2014, 03:04:04 PM
Quote from: ahrasis on October 03, 2014, 02:52:06 PM
The css is not working correctly. Please remove all the changes you made and restore the original. Then please attach your Display.template.php as well as your index.css files.

You mean I shall attach them seperately? If yes av already attached the php? Shall I restore everything and add the css alone to the default and upload for you to see?
Title: Re: How do i remove this?
Post by: Hj Ahmad Rasyid Hj Ismail on October 03, 2014, 03:07:02 PM
I prefer if you can attach your files as before they are modified. It is easier to attend to them. Thank you.
Title: Re: How do i remove this?
Post by: 1833 on October 03, 2014, 03:14:04 PM
Owwwk. Will do just that. Thanks.
Title: Re: How do i remove this?
Post by: Antechinus on October 03, 2014, 04:13:25 PM
Quote from: Kindred on October 03, 2014, 10:35:53 AM
Meh... I am Opposed to leaving crap present in the HTML if it is not getting displayed...

*mumble* responsive design *mumble*
Title: Re: How do i remove this?
Post by: Gwenwyfar on October 03, 2014, 04:18:46 PM
Quote from: Antechinus on October 03, 2014, 04:13:25 PM
Quote from: Kindred on October 03, 2014, 10:35:53 AM
Meh... I am Opposed to leaving crap present in the HTML if it is not getting displayed...

*mumble* responsive design *mumble*
Isn't that the opposite on many cases? People remove functions that would normally be there just so it fits on mobile, on both versions...

Though with all the bootstrap and so on stuff there's probably a lot of useless stuff on either case :P
Title: Re: How do i remove this?
Post by: Hj Ahmad Rasyid Hj Ismail on October 03, 2014, 04:29:53 PM
Here you go.
Title: Re: How do i remove this?
Post by: Antechinus on October 03, 2014, 04:45:52 PM
Quote from: Fortytwo on October 03, 2014, 04:18:46 PM
Quote from: Antechinus on October 03, 2014, 04:13:25 PM
Quote from: Kindred on October 03, 2014, 10:35:53 AM
Meh... I am Opposed to leaving crap present in the HTML if it is not getting displayed...

*mumble* responsive design *mumble*
Isn't that the opposite on many cases? People remove functions that would normally be there just so it fits on mobile, on both versions...

Though with all the bootstrap and so on stuff there's probably a lot of useless stuff on either case :P

Nope. People usually do responsive by simply hiding markup on small screens. It's very inefficient, in terms of both markup and CSS.

And Bootstrap is chockers full of all sorts of crud. :D
Title: Re: How do i remove this?
Post by: Gwenwyfar on October 04, 2014, 08:21:03 AM
True, but its still better than using the site on mobile without these hidden elements, and its not a big problem if you're just hiding text and having images or other heavy stuff change for each version :P And unless you're making two entirely different versions or hiding more than text, I think its still better than having to use javascript.

I wish php would get its own version of css media queries.

We'd get hanged by most devs out there for saying that, you know, haha, but I completely agree  :D
Title: Re: How do i remove this?
Post by: Hj Ahmad Rasyid Hj Ismail on October 04, 2014, 12:45:40 PM
There is no response so far. I hope it works well.
Title: Re: How do i remove this?
Post by: 1833 on October 04, 2014, 01:30:16 PM
It works very well when users upload avatar to their profile.
Title: Re: How do i remove this?
Post by: 1833 on October 04, 2014, 01:33:10 PM
But when users have no avatars, the  posts overlaps, and the buttons disappear.
Title: Re: How do i remove this?
Post by: Antechinus on October 04, 2014, 05:07:43 PM
Quote from: Fortytwo on October 04, 2014, 08:21:03 AMI wish php would get its own version of css media queries.

Oh yeah. I have mentioned that before. if you could use screen res to trigger php conditionals directly it would be awesome. Unfortunately it's not possible (at the moment). You can pile of a whole lot of javscript to find out res and then play havoc with things, but it's not nice at all.


QuoteWe'd get hanged by most devs out there for saying that, you know, haha, but I completely agree  :D

Responsive is like most things. It has its good points and bad points. The good point, the big one, is that it will adjust to any screen size without requiring user agent sniffing in the PHP. However, to do this it relies on using HTML and CSS that is more complex and less efficient than if each screen size had a theme coded specifically for it, particularly in the case of CSS.
Title: Re: How do i remove this?
Post by: Hj Ahmad Rasyid Hj Ismail on October 04, 2014, 09:46:40 PM
Sorry for that 1833. The fixed display template file is attached.

I also submitted this as a mod to the mod site with extra modifications. This is however, it is a bit different from the current one. But I attached it here as well, if somebody wanna test it. I have tested it fine in default theme and DilberMC theme for SMF 2.0.
Title: Re: How do i remove this?
Post by: 1833 on October 05, 2014, 09:06:07 AM
You're awesome, thanks man.

The mod and the template gave all those features.

A little suggestion though, instead of redirecting to user profile when avatar was clicked why not make the avatar to enlarge/display its full/default width only? I propose this cos the username also redirect to the profile.
Title: Re: How do i remove this?
Post by: Hj Ahmad Rasyid Hj Ismail on October 05, 2014, 12:30:31 PM
Well, if I could create a mini profile that sort of pop up with that, then the idea can definitely be implemented.
Title: Re: How do i remove this?
Post by: 1833 on October 05, 2014, 12:49:42 PM
People will love that, I will love that ;D

When that's implemented users can easily view other user's dp by just clicking the avatar. And those that want to view users forum activites shall click username .

Quoteif I could create a mini profile that sort of pop up with that then the idea can definitely be implemented

Ehm, isn't it doable?
Title: Re: How do i remove this?
Post by: 1833 on October 05, 2014, 12:59:28 PM
This came a bit late but anyway "happy eid ul Adha", wish you success in all your good endeavours.
Title: Re: How do i remove this?
Post by: Hj Ahmad Rasyid Hj Ismail on October 05, 2014, 04:10:02 PM
It is doable but with a lot of works. ;) You can see that in some of Bloc's themes.

Thank you for the wish.
Title: Re: How do i remove this?
Post by: 1833 on October 06, 2014, 07:59:34 AM
Putting my hands on some php ebooks and videos, things are easy so far, wanna learn as much as I can and do lots of stuff on my own.

Expect my entries whenever I got stucked ;D
Title: Re: How do i remove this?
Post by: Hj Ahmad Rasyid Hj Ismail on October 06, 2014, 12:24:43 PM
I did manage to add sort of pop up feature.

Note that I haven't remove anything in Display.template.php via this mod. This is due to the fact that after thorough testing of disabling default poster and keyinfo area, the quick modify failed to work properly. As such, I leave them intact so that the quick modify will work.

I also test this mod with Ajax Quick Reply as well Quick Reply Reposition mod and there work awesome. So far, it works fine and without error(s).

This mod is still pending approval. If anybody like to try it, here is the said package latest version (with pop up on hover feature).