News:

Wondering if this will always be free?  See why free is better.

Main Menu

How do i remove this?

Started by 1833, September 28, 2014, 10:57:03 AM

Previous topic - Next topic

1833

Hi

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

I attach a screenshot

Steve

#1
Edited out unnecessary question.
DO NOT pm me for support!

ARG01

<---------  I believe that he means the profile area.
No, I will not offer free downloads to Premium DzinerStuido themes. Please stop asking.

margarett

You want to remove all the user info? So... Who posted what?
It is doable, yes. But a strange request, nonetheless...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Kindred

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?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

ARG01

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.  ;)
No, I will not offer free downloads to Premium DzinerStuido themes. Please stop asking.

1833

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.

1833

Quote from: Steve on September 28, 2014, 11:04:08 AM
Edited out unnecessary question.

Action not deliberate, apologies.

Illori



Kindred

you're really sort of looking for a custom theme to make your site look like VB... (ICK, BTW, very ICK)

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

1833

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.

Kindred

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.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

1833

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?



Antechinus

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?

1833

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!

Gwenwyfar

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.

Antechinus

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

kat

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>';


1833

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.

Advertisement: