I wish there is some way getting a "view your posts" link on the forum. "View new replies to your posts" is not enough for me.
Going into profile and looking for your posts also is not appealing to me.
From users point of view, this is a very important feature.
Where do you want to have "view your posts" link on your forum ?
There is one already on profile page as Show the last posts of this person.
And for their convenience they would like that link on the forum itself. It's a reasonable request.
Aspara, which theme are you using?
I am using ApolloBB.
I chose this theme because it has an avatar on the front page. I wanted this feature so i chose ApolloBB. I would like also to have "view your posts".
Thanks
In index.template.php find this:
/ If you're logged in, show PM info and links to new posts.
if($context['user']['is_logged'])
echo '
<br />
<span class="middletext">'
, $context['allow_pm'] ? '<strong>' . $txt[152] . ' <a href="' . $scripturl . '?action=pm">' . $context['user']['messages'] . ' ' . ($context['user']['messages'] != 1 ? $txt[153] : $txt[471]) . '</a>' . $txt['newmessages4'] . ' ' . $context['user']['unread_messages'] . ' ' . ($context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1']).'</strong>' : '<br/>', '.<br/><br/>
» <a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a> <br />
» <a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />
</span>';
Change it to this:
/ If you're logged in, show PM info and links to new posts.
if($context['user']['is_logged'])
echo '
<br />
<span class="middletext">'
, $context['allow_pm'] ? '<strong>' . $txt[152] . ' <a href="' . $scripturl . '?action=pm">' . $context['user']['messages'] . ' ' . ($context['user']['messages'] != 1 ? $txt[153] : $txt[471]) . '</a>' . $txt['newmessages4'] . ' ' . $context['user']['unread_messages'] . ' ' . ($context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1']).'</strong>' : '<br/>', '.<br/><br/>
» <a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a> <br />
» <a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />
» <a href="', $scripturl, '?action=profile;u=', $context['member']['id'], ';sa=showPosts">', $txt[460], ' ', $txt[461], '.</a><br />
</span>';
Thank you I will try and post my experience
apsara, did you try the code replacement yet? Did that resolve the problem?
No, I am using apollo BB mod and I didnt want to risk code modifications. But while using the "core" theme, there is a package called 'Enhanced Profile Header' which satisfied me a lot.
Lainaus käyttäjältä: greyknight17 - helmikuu 08, 2009, 12:38:47 IP
apsara, did you try the code replacement yet? Did that resolve the problem?
Anyway I tried changing the file: but got the following error
Template Parse Error!
There was a problem loading the /Themes/ApolloBB/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.
You may want to try to refresh this page or use the default theme.
Parse error: syntax error, unexpected '/' in .../Themes/ApolloBB/index.template.php on line 362
353: // language. Otherwise, show a "Guest" avatar based on your color and language.
354: if($context['user']['is_logged'])
355: echo '
356: ', !empty($context['user']['avatar']) ? $context['user']['avatar']['image'] : '<img src="'. $settings['images_url']. '/'. $context['user']['language']. '/'. $settings['theme_main_color']. '/no_avatar.gif" width="80" height="80" alt="" />';
357: else echo '
358: <img src="', $settings['images_url'], '/', $context['user']['language'], '/', $settings['theme_main_color'], '/guest_avatar.gif" width="80" height="80" alt="" />';
359: echo '
360: </td>
361: <td class="memberbar">';
362: / If you're logged in, show PM info and links to new posts.
363: if($context['user']['is_logged'])
364: echo '
365: <br />
366: <span class="middletext">'
So I undid the changes quickly.
Did i do something wrong?
In your custom themes index.template.php file just look for the section that contains the ?action=unread links and add the profile post link below it.
<a href="', $scripturl, '?action=profile;u=', $context['member']['id'], ';sa=showPosts">', $txt[460], ' ', $txt[461], '.</a><br />Just match the syntax and formatting of your custom theme.
I didn't really understand it now. May be i will read it over at leisure and explore it. Thanks a lot for your interest.
Well let us know how you go. You can attach the file and someone might be able to do it, if you're unable too.