26-Dec-2010, 08:17 PM
I have a lot of dynamic pages(not a static page) with add-on ArbitraryID.
Adminage .The comment is URL where is not distinguished easily.
Adminage .The comment is URL where is not distinguished easily.
Quote:###################################
#
# Add PageID and URL to
# Adminage:manage_comments
#
# * Easy Fix
#
###################################
#
####--- OPEN -------------------------------
#
comments/your_admin/includes/pages/manage_comments.php
#
##---- FIND --------------------------------
#
$page_id = $comment["page_id"];
$page_reference_query = mysql_query("SELECT reference FROM `".$mysql_table_prefix."pages` WHERE id = '$page_id'");
$page_reference_result = mysql_fetch_assoc($page_reference_query);
?>
<td><?php echo $page_reference_result["reference"]; ?></td>
#
##---- Replace With --------------------------------
#
$page_id = $comment["page_id"];
$page_reference_query = mysql_query("SELECT reference ,url FROM `".$mysql_table_prefix."pages` WHERE id = '$page_id'");
$page_reference_result = mysql_fetch_assoc($page_reference_query);
?>
<td><?php echo "<a href='" . $page_reference_result["url"] . "' target='_blank'>" . $page_id .':'.$page_reference_result["reference"].'</a>'; ?></td>
#
##
---------------------------------------------------
Commentics's Japanese Commentary Site
http://commentics.bbfriend.net/
*Sorry...I am not good at English.
---------------------------------------------------