Turning profile.php into a blog (sort of)
I’d like to change the profile page to look more like a blog, so I want to have the user’s info on the left and the topics that they’ve started listed down the right complete with text and a link to the topic to read the comments (replies). Right now I’m stuck on how to show the text of the topic post. Here’s what I’ve got so far:
<?php foreach ($threads as $topic) : ?>
<a href="<?php topic_link(); ?>"><?php topic_title(); ?></a>
<p class="postmeta"><?php printf(__('posted %s ago'), get_topic_start_time()); ?>
<?php post_text(); ?>
<?php endforeach; ?>
but post_text() just returns the text of the first topic for all the topics, instead of each topic showing the text that it’s supposed to.
Thanks for any help…
(by topic, I mean the first post of a thread – just so we’re clear)
- You must be logged in to reply to this topic.