News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

View own post as topic list

Started by LondonDragon, March 17, 2010, 05:33:28 PM

Previous topic - Next topic

LondonDragon

Hi guys, I wanted to add to the Curve Theme using RC3 a link below:

# Show unread posts since last visit.
# Show new replies to your posts.

To show members post but listed as topics rather that post the way it shows under the profile, is this simple to do?

So that I could list is as:

# Show unread posts since last visit.
# Show new replies to your posts.
# Show my posts.

Many thanks :)

Arantor

Actually it is.

Themes/default/index.template.php

Code (find) Select
<li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>
<li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>';


Code (replace) Select
<li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>
<li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>
<li><a href="', $scripturl, '?action=profile;area=showposts">Show my posts.</a></li>';
Holder of controversial views, all of which my own.


LondonDragon

Thanks, but that just shows the post the same way its displayed on the profile, just wanted to display the message in the same format they are displayed in the board index.

Arantor

In which case, no it's not simple to do, because it involves adding new files to the forum to splice the look and layout of messageindex into the dataset of profile. Big job :(
Holder of controversial views, all of which my own.


LondonDragon

Thought that was the case, I did have a look at all the actions the forum had and could not spot anything like that.
Just I came from a PHPBB background and always enjoyed those features.

Arantor

Oh, don't get me wrong, it's doable, just it's not a small amount of work :(

Would be a nice mod though, and if someone is clever/careful enough, it's possible to have it directly reuse the message list template.

I take it, it would only be a user being able to see their own posts through that (and not anyone else's)?
Holder of controversial views, all of which my own.


LondonDragon

Quote from: Arantor on March 17, 2010, 06:35:02 PM
I take it, it would only be a user being able to see their own posts through that (and not anyone else's)?
Initially yes, but would be nice to have the option also of viewing all topics with no replies, which is always useful ;)

Arantor

Which increases the complexity again, and it was bad enough before...
Holder of controversial views, all of which my own.


Advertisement: