Forums

Comment links (20 posts)

  1. dulcechick
    Member
    Posted 5 years ago #

    Hello,
    The links of my commentspopup page are not opening in a new page, how do I fix this? I'm talking about the url of the authors who leave comments...

  2. dulcechick
    Member
    Posted 5 years ago #

    Oh by the way, I tried adding target="_blank" to this tag <?php comment_author_link() ?> but I received an error... somebody please help me.

  3. southerngal
    Member
    Posted 5 years ago #

  4. LaughingLizard
    Member
    Posted 5 years ago #

    A word of warning: This will break XHTML 1.0 strict validation but...
    Here is the fix:
    Find the line below in your template-functions.php (which is inside your wp-includes folder):
    echo '" rel="external">' . $author . '';
    And replace it with:
    echo '" target="_blank" rel="external">' . $author . '';

  5. southerngal
    Member
    Posted 5 years ago #

    Which is what I put in the hack. ;)

  6. LaughingLizard
    Member
    Posted 5 years ago #

    LOL...QOTK (quick on the keyboard)... :-)

  7. southerngal
    Member
    Posted 5 years ago #

    *LOL* ;)

  8. dulcechick
    Member
    Posted 5 years ago #

    wow, thank you so much! :)

  9. dulcechick
    Member
    Posted 5 years ago #

    I have another problem regarding the comments I don't know If I should create a new topic or just post it here instead? :-/

  10. dulcechick
    Member
    Posted 5 years ago #

    I can see that the comments are placed ascending, how do I place the comments descending? I just want the new posts in the top.

  11. Anonymous
    Unregistered
    Posted 5 years ago #

    open your b2comments.php and scrolldown to line 17 and you'll see <b>comment_date");</b> just add DESC so it will look like this <b>comment_date DECS");</b> try it. it should work :-)

  12. Anonymous
    Unregistered
    Posted 5 years ago #

    open your b2comments.php and scrolldown to line 17 and you'll see
    comment_date");
    just add DESC so it will look like this
    comment_date DECS");
    try it. it should work :-)

  13. Anonymous
    Unregistered
    Posted 5 years ago #

    open your b2comments.php and scrolldown to line 17 and you'll see
    comment_date");
    just add DESC so it will look like this
    comment_date DESC");
    try it. it should work :-)

  14. armina
    Member
    Posted 5 years ago #

    sorry for the multiple post, if you're using the b2comments popup then edit the
    b2commentspopup.php in line 28 just add the DESC right after the comment_date
    :-D

  15. dulcechick
    Member
    Posted 5 years ago #

    Now I'm getting a lot of errors when I try to login to b2login.php :(
    Warning: Cannot modify header information - headers already sent by (output started at /home/dulcechi/public_html/wordpress/b2-include/b2template.functions.php:1582) in /home/dulcechi/public_html/wordpress/b2login.php on line 256
    Warning: Cannot modify header information - headers already sent by (output started at /home/dulcechi/public_html/wordpress/b2-include/b2template.functions.php:1582) in /home/dulcechi/public_html/wordpress/b2login.php on line 257
    Should I change the permissions to 777 or something?

  16. southerngal
    Member
    Posted 5 years ago #

    That couldn't be related to the above comments for the DESC as you only did the template for the comments, right?
    Looks like you have another error in your b2-includes. Nothing to do with CHMODing, you probably messed around in there and you just need to restore it to your back up. :)

  17. dulcechick
    Member
    Posted 5 years ago #

    well... honestly I did the two things, lol, ok I will reset everything in a minute. :) Thansk.

  18. dulcechick
    Member
    Posted 5 years ago #

    Ack... sorry, I meant Thanks.

  19. dulcechick
    Member
    Posted 5 years ago #

    Wow, everything's working now! thanks a looooot! :)

  20. Daisyhead
    Member
    Posted 5 years ago #

    What if you're not using B2? I would like to change my comment orders as well from ascending to descending. Any clues on how I can do this?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.