Post Reply 
Add PageID and URL to Admin manage_comments page
26-Dec-2010, 09:17 PM
Post: #1
Add PageID and URL to Admin manage_comments page
I have a lot of dynamic pages(not a static page) with add-on ArbitraryID.
Admin:Page .The comment is URL where is not distinguished easily.

Quote:###################################
#
# Add PageID and URL to
# Admin:Page: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>


#
##

-----------------------------
Sorry...I am not good at English.
-----------------------------
Visit this user's website Find all posts by this user
Quote this message in a reply
27-Dec-2010, 03:40 PM
Post: #2
RE: Add PageID and URL to Admin manage_comments page
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...
Find all posts by this user
Quote this message in a reply
29-Dec-2010, 03:35 PM
Post: #3
RE: Add PageID and URL to Admin manage_comments page
Thanks
That is exactely what I was looking for
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Alternative admin panel->Tools->viewers hosts 2 1,548 10-Mar-2012 04:15 PM
Last Post: Steven

Forum Jump:


User(s) browsing this thread: 1 Guest(s)