Advertisement:

Author Topic: Remove file tag on picture in post ?  (Read 718 times)

Offline SaltedWeb

  • Sr. Member
  • ****
  • Posts: 859
  • Gender: Male
  • The Tired One
Remove file tag on picture in post ?
« on: February 05, 2018, 11:14:09 PM »
Is there a way to remove file tag on picture in post ?
I included a snippet of what I am talking about when adding 3-4 pictures its makes the area look
messy and I would like the tag to not be there. It might be just a setting but not sure what that is?

Thanks
SW
Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 8,326
  • Riding the long highway in the sky.
Re: Remove file tag on picture in post ?
« Reply #1 on: February 05, 2018, 11:26:49 PM »
Not a setting, that's the download link.  Try this -

Display.template.php

Code: [Select]

}
// echo '
// <a href="' . $attachment['href'] . '"><img src="' . $settings['images_url'] . '/icons/clip.gif" align="middle" alt="*" />&nbsp;' . $attachment['name'] . '</a> ';

if (!$attachment['is_approved'] && $context['can_approve'])
echo '
[<a href="', $scripturl, '?action=attachapprove;sa=approve;aid=', $attachment['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $txt['approve'], '</a>]&nbsp;|&nbsp;[<a href="', $scripturl, '?action=attachapprove;sa=reject;aid=', $attachment['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $txt['delete'], '</a>] ';
// echo '
// (', $attachment['size'], ($attachment['is_image'] ? ', ' . $attachment['real_width'] . 'x' . $attachment['real_height'] . ' - ' . $txt['attach_viewed'] : ' - ' . $txt['attach_downloaded']) . ' ' . $attachment['downloads'] . ' ' . $txt['attach_times'] . '.)<br />';

echo ' <br />';

}


You can add one or two additional <br /> if you want more spacing between stacked images.

Offline SaltedWeb

  • Sr. Member
  • ****
  • Posts: 859
  • Gender: Male
  • The Tired One
Re: Remove file tag on picture in post ?
« Reply #2 on: February 05, 2018, 11:44:27 PM »
Cool, i'll give it a go tomorrow, thank you.
Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.

Offline SaltedWeb

  • Sr. Member
  • ****
  • Posts: 859
  • Gender: Male
  • The Tired One
Re: Remove file tag on picture in post ?
« Reply #3 on: February 06, 2018, 12:11:10 PM »
Perfect, did a little tweaking but worked thank you Osis exactly what I needed now looks nice and clean. :-)


Not a setting, that's the download link.  Try this -

Display.template.php

Code: [Select]

}
// echo '
// <a href="' . $attachment['href'] . '"><img src="' . $settings['images_url'] . '/icons/clip.gif" align="middle" alt="*" />&nbsp;' . $attachment['name'] . '</a> ';

if (!$attachment['is_approved'] && $context['can_approve'])
echo '
[<a href="', $scripturl, '?action=attachapprove;sa=approve;aid=', $attachment['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $txt['approve'], '</a>]&nbsp;|&nbsp;[<a href="', $scripturl, '?action=attachapprove;sa=reject;aid=', $attachment['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $txt['delete'], '</a>] ';
// echo '
// (', $attachment['size'], ($attachment['is_image'] ? ', ' . $attachment['real_width'] . 'x' . $attachment['real_height'] . ' - ' . $txt['attach_viewed'] : ' - ' . $txt['attach_downloaded']) . ' ' . $attachment['downloads'] . ' ' . $txt['attach_times'] . '.)<br />';

echo ' <br />';

}


You can add one or two additional <br /> if you want more spacing between stacked images.

Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.