Vladimir’s WordPress Forum


 
Current User: Guest
Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

SEO Super Comments on Parent Comments Only

Add a New Topic Reply to Post
UserPost

18:06
1 December, 2010


jason

Guest

Post edited 18:08 – 1 December, 2010 by jason


Is it possible to have SEO Super Comments create a page only for parent comments in the loop and not for nested replies? I tried editing the code, but not really sure how I'd approach this.

EDIT: changed "parent pages" to "parent comments"

7:50
2 December, 2010


jason

Guest

I think I figured it out, and I hope I did it right.

First I identified the comment_parent in a new variable after the cid had been defined:
BEFORE

$cid=$comment->comment_ID;

AFTER

$cid=$comment->comment_ID;
$parent_id=$comment->comment_parent;

Then on line 85 I updated the IF statement:
BEFORE

if (strpos($link, 'http://') === false)

AFTER

if ((strpos($link, 'http://') === false) AND ($parent_id == 0))

This seems to be working so far… but I'm not done testing. I'd love some feedback on my approach.

Reply to Post

Reply to Topic:
SEO Super Comments on Parent Comments Only

Guest Name (Required):

Guest Email (Required):

HTML Editor
Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
2 + 10