show only subject on recent posts page

Started by Jesus Friends, February 10, 2010, 03:31:31 AM

Previous topic - Next topic

Jesus Friends

Hello dears

Is it possible to display only subjects of topics without post content on ?action=recent page? if it's possible, so what changes that should be done ??

Greetings
My SMF version is 2.0 RC3
the link is: www.Jesus-friends.com/forum
The default language is Arabic

I LOVE SMF!

forumman

I am also interested to know if this is possible...

Jesus Friends

My SMF version is 2.0 RC3
the link is: www.Jesus-friends.com/forum
The default language is Arabic

I LOVE SMF!

Jesus Friends

My SMF version is 2.0 RC3
the link is: www.Jesus-friends.com/forum
The default language is Arabic

I LOVE SMF!

Owdy

#4
Yes its possible, you need to edit Recent.template.php

In RC3, find and remove this

<div class="list_posts">', $post['message'], '</div>

If you want those buttons gone too, remove this also:



if ($post['can_reply'] || $post['can_mark_notify'] || $post['can_delete'])
echo '
<div class="quickbuttons_wrap">
<ul class="reset smalltext quickbuttons">';

// If they *can* reply?
if ($post['can_reply'])
echo '
<li class="reply_button"><a href="', $scripturl, '?action=post;topic=', $post['topic'], '.', $post['start'], '"><span>', $txt['reply'], '</span></a></li>
<li class="quote_button"><a href="', $scripturl, '?action=post;topic=', $post['topic'], '.', $post['start'], ';quote=', $post['id'], '"><span>', $txt['quote'], '</span></a></li>';

// Can we request notification of topics?
if ($post['can_mark_notify'])
echo '
<li class="notify_button"><a href="', $scripturl, '?action=notify;topic=', $post['topic'], '.', $post['start'], '"><span>', $txt['notify'], '</span></a></li>';

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

if ($post['can_reply'] || $post['can_mark_notify'] || $post['can_delete'])
echo '
</ul>
</div>';



edit: i attached modifyed file for you. Its for SMF 2.0 RC3. Try that :)
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Jesus Friends

Oh Great Man ...
Many thanks for your help .... It works properly :)

Please accept my Appreciation, Mr.Positive
My SMF version is 2.0 RC3
the link is: www.Jesus-friends.com/forum
The default language is Arabic

I LOVE SMF!

Owdy

Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

forumman

and what should be edited for version 1.1.11? Thanks

Jesus Friends

actually I marked this topic as solved .... and redid

I need another help ...

how to show only one post at the recent posts page ???
I mean show only the latest post of each topic not all new reply
My SMF version is 2.0 RC3
the link is: www.Jesus-friends.com/forum
The default language is Arabic

I LOVE SMF!

Jesus Friends

My SMF version is 2.0 RC3
the link is: www.Jesus-friends.com/forum
The default language is Arabic

I LOVE SMF!

Antechinus

You'd be best to request a mod for that as it will require editing Sources.

Advertisement: