ORDER BY tp.post_datestamp DESC LIMIT 100"
if ($rows > 20) { echo "<div align='center' style='margin-top:5px;'>\n".makepagenav($_GET['rowstart'], 20, $rows, 3)."\n</div>\n";
Quote
mojkan wrote:
Hope that it's ok that I submit the issue and just link to the thread I have started in the forum?
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: my_posts.php
| Author: Nick Jones (Digitanium)
| Modified by Joe Kriz to show All User Posts
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "../../maincore.php";
require_once THEMES."templates/header.php";
if (!iMEMBER) { redirect("../../index.php"); }
add_to_title($locale['global_200'].$locale['global_042']);
$result = dbquery(
"SELECT tp.forum_id, tp.post_author, tf.forum_access
FROM ".DB_POSTS." tp
INNER JOIN ".DB_FORUMS." tf ON tp.forum_id=tf.forum_id
WHERE ".groupaccess('tf.forum_access')." AND post_author='".$_GET['lookup']."'"
);
$rows = dbrows($result);
if ($rows) {
if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) { $_GET['rowstart'] = 0; }
$result = dbquery(
"SELECT tp.forum_id, tp.thread_id, tp.post_id, tp.post_author, tp.post_datestamp,
tf.forum_name, tf.forum_access, tt.thread_subject
FROM ".DB_POSTS." tp
INNER JOIN ".DB_FORUMS." tf ON tp.forum_id=tf.forum_id
INNER JOIN ".DB_THREADS." tt ON tp.thread_id=tt.thread_id
WHERE ".groupaccess('tf.forum_access')." AND tp.post_author='".$_GET['lookup']."'
ORDER BY tp.post_datestamp DESC LIMIT ".$_GET['rowstart'].",20"
);
$i=0;
opentable("All posts by this member");
echo "<table cellpadding='0' cellspacing='0' width='100%' class='tbl-border'>\n<tr>\n";
echo "<td width='1%' class='tbl2' style='white-space:nowrap'><strong>".$locale['global_048']."</strong></td>\n";
echo "<td width='100%' class='tbl2'><strong>".$locale['global_044']."</strong></td>\n";
echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'><strong>".$locale['global_049']."</strong></td>\n";
echo "</tr>\n";
while ($data = dbarray($result)) {
if ($i % 2 == 0) { $row_color = "tbl1"; } else { $row_color = "tbl2"; }
echo "<tr>\n";
echo "<td width='1%' class='".$row_color."' style='white-space:nowrap'>".trimlink($data['forum_name'], 30)."</td>\n";
echo "<td width='100%' class='".$row_color."'><a href='".FORUM."viewthread.php?thread_id=".$data['thread_id']."&pid=".$data['post_id']."#post_".$data['post_id']."' title='".$data['thread_subject']."'>".trimlink($data['thread_subject'], 40)."</a></td>\n";
echo "<td align='center' width='1%' class='".$row_color."' style='white-space:nowrap'>".showdate("forumdate", $data['post_datestamp'])."</td>\n";
echo "</tr>\n";
$i++;
}
echo "</table>\n";
closetable();
if ($rows > 20) { echo "<div align='center' style='margin-top:5px;'>\n".makepagenav($_GET['rowstart'], 20, $rows, 3)."\n</div>\n"; }
} else {
opentable("All posts by this member");
echo "<div style='text-align:center'><br />\n".$locale['global_054']."<br /><br />\n</div>\n";
closetable();
}
require_once THEMES."templates/footer.php";
?>
Quote
Joe Kriz wrote:
mojkan,
Thanks for the tip on the attachments....
I found them thanks to you...
They weren't in their old spot in the admin panel...
I guess attachments are not turned ON in this section of the forums and that is why I can't attach a photo here of the profile.php panel that I tweaked to include the "View All Posts by this member"
Category Forum
Suspected Bugs and Errors - 8Labels
None yet
Statistics
5 participants
Notifications
You are not receiving notifications from this thread.
Related Questions