This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Add PageID and URL to Admin manage_comments page
#1

I have a lot of dynamic pages(not a static page) with add-on ArbitraryID.
AdminTongueage .The comment is URL where is not distinguished easily.

Quote:###################################
#
# Add PageID and URL to
# AdminTongueage: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.
---------------------------------------------------
Reply
#2

Yes, this could be useful. The page ID might be better if it had it's own column, but then there's also the custom ID, so the ID is better left off since it doesn't really add anything useful.

I'm giving you three guesses...
Reply
#3

Thanks
That is exactely what I was looking for
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post

Forum Jump:


Users browsing this thread: 2 Guest(s)