Pagination issue in Pligg

—-This post is part of my effort to document issues that I face while using Pligg.—-
As the number of posts increase at ShopDeals.in (I have got nothing else to do!), I noticed something that was not right (which I kinda ignored before). As the number of posts became greater that the number of posts that were meant to be one page, I expected a link down at the bottom of the page that would have directed me to older submissions (pagination). That did not occur, after some searching, I came across a Post in the Pligg forum that directed me to download the Admin Total Plugin, that kind of regenerates the total no of pages ;submitted, queued and discarded. after installing and clicking on Regenerate Totals link twice, I was able to fix the issue. If you are unable to see page links in Pligg and have

 do_pages($rows, $page_size, "published");  

uncommented in index_center.tpl , then defintely download the plugin and give it a try.

Customizing Pligg

Customizing Pligg can be as simple as editing some .tpl files.

If you would like to change; the name of the site, e-mail address that is used to send password reset info, RSS description and a few other things, go to the libs directory under your Pligg Installation directory and edit lang.conf (basically search for ‘pligg’ and replace it with the name of your site).

Also if you want to edit the header, login as god and from the admin page, click Template editor and edit the header.tpl and in the headbar div add your link (code), you might want to add the code under both the {if} and {else} clauses.

If you would like to create a custom FAQs/about page (why wouldn’t you?) edit the faq-en_center.tpl file.

I am still trying learn how to configure Pligg. Pligg is still not yet perfect, but, very good. I would prefer writing my own code that I can use for my new project, but Pligg gives me a head-start and I will continue to use it for some time.

Pligg Comment Rating in Safari

I have started using Pligg for one of my new projects and I am going to jot down the technical problems I come across while using it, for my own refernce and for the benefit of others using Pligg.

One of the issues I came across was that the comment rating did not work in Safari with the ygetblue template. After some searching, I came accross this article, whick works for a different template. So after some tweaking, I modified the code in comment_show.tpl (line 7-22) to this:


{if $Enable_Comment_Voting eq 1} {#PLIGG_Visual_Comment_Rating#}: {$comment_votes} {if $comment_user_vote_count eq 0 && $current_userid neq $comment_author}| {#PLIGG_Visual_Comment_Rate_Comment#}: + - {/if} {/if} {if $UseAvatars neq "0"} {/if} {#PLIGG_Visual_Comment_WrittenBy#} {$user_username} {$comment_age} {#PLIGG_Visual_Comment_Ago#} {if $comment_votes lt 0} - {#PLIGG_Visual_Comment_Show_Hide#} {#PLIGG_Visual_Comment_This_Comment#} {/if}

Basically place the span “comment-head” at the top
and now comment rating in Safari works like a charm!