03.08.2006

I’ve been informed a few days ago that the Paged Comments feature in BB generally works wonderful but has one drawback - the permalinks for the comments don’t point to the appropriate comment page. Neither do the comments links on the dashboard (admin panel) nor the list that is generated through the popular Brian’s Latest Comments plugin.

So I sat down this evening, once I was back home from the office, to analyzie the possibility to fix these drawbacks, and I was, generally speaking, pretty successful ;). The next upcoming release of my Binary Blue theme suite will contain the fix for the theme itself, and I succeeded to add full support for appropriate Paged comments permalinks to BLC as well.

If you want to fix your current 1.3.0 or 1.4.0 release of Binary Blue just edit your paged-comments-AJAX.php file and find the line that contains

<?php echo bb_pc_url($pager, 'comment-'.get_comment_ID()); ?>

It should be line 36 in the file if you didn’t manipulate anything by yourself before. Now replace that function call with the following one:

<?php echo bb_pc_url($pager, 'comment-'.get_comment_ID(), $pager->get_current_page()); ?>

Reupload that file to your webserver, and the permalinks are corrected automatically.

If you want to enhance the usability of Brian’s Latest Comments, just download this zipfile and overwrite the original brianslatestcomments.php file of the plugin with the contents of the zip. Be aware that Paged Comments will only work if Binary Blue is a) installed, b) activated as your current WordPress theme and c) AJAX Paged Comments have been enabled in the theme’s options page.

Verwandte Artikel:



Hinweis: Wegen des hohen Aufkommens an Kommentarspam und als Kommentar getarnten Werbelinks werden alle Kommentare auf diesem Blog zuerst in die Moderation geschickt. Ich schalte neue Kommentare von echten Besuchern so schnell wie möglich frei. Beleidigende oder gegen geltendes Recht verstoßende Kommentare werden gelöscht.

Bisher 4 Kommentare zum Artikel

  1. daya meint

    I have done the re-directon, in IIS server because, if one tries to browse http://blog.domainname.com it will automatically redirect them to blog.domainname.com/index.php, instead of looking for index.html and saying page not found. Do you think, if i remove the automatic redirection ( which i have to request my hosting provider), and active BB theme, will a user be taken to index.php, or will he be needed to type blog.domainname.com/index.php, instead of just the subdomain name. Please reply, i am looking forward to activate BB in my blog. Thanks in anticipation.

  2. CountZero meint

    you can solve this problem by either getting rid of this automatic redirection inside your IIS configuration, or you configure your blog accordingly, meaning if your server strips off the http://www. anyways, don’t configure your blog URL with http://www. inside it but without it as well.

  3. daya meint

    I need help, I have installed wordpress in IIS server with PHP SQL. I am able to run wordpress with other AJAX powered theme. However, when i install BB i getting regualar error message as such, it been directed for a no solution.
    I have read your forum for more also. My server is configured to look for HTML page, if remove automatic redirect to subdomain.com/index.php i will am getting only blank page. Still i would like is there any other way to solve the problem, for wordpress in IIS server. I use PHP.ini file to have permalink problem solved.

  4. daya meint

    i like your work, i belive, bb latest version at wordpress.themes.net is not complete and creating lot of error. please do check it out. regards daya