Advertisement:

"view your posts"

Aloittaja apsara, tammikuu 26, 2009, 05:41:41 AP

« edellinen - seuraava »

apsara

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.

Kermit

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.
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Lainaa
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

Antechinus

And for their convenience they would like that link on the forum itself. It's a reasonable request.

Aspara, which theme are you using?

apsara

#3
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



Antechinus

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/>
                           &raquo; <a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a> <br />
                           &raquo; <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/>
                           &raquo; <a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a> <br />
                           &raquo; <a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />
                           &raquo; <a href="', $scripturl, '?action=profile;u=', $context['member']['id'], ';sa=showPosts">', $txt[460], ' ', $txt[461], '.</a><br />
                        </span>';

apsara

Thank you I will try and post my experience

greyknight17

apsara, did you try the code replacement yet? Did that resolve the problem?

apsara

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.

apsara

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?

Rumbaar

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.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

apsara

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.

Rumbaar

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.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Advertisement: