pligg, stories with no comments
Pligg is an open source digg clone. in addition to that, it is flexible and very easy to modify.
Pligg shows published stories in the front page, and it has a link to show the queued stories.
Today I am going to teach you the way to show both commented and not commented stories in the same way of published and queued pages.
The procedure contains many steps. Please be ready to face a tidy job.
Download the complete guide and (ready to use) files from here: pligg no-with comments
Adding those features to your pligg site will help you building a pligg-based Q & A website. Where stories are the questions and comments are the answers. More than this, you can configure pligg to not ask for a URL in the submission process. Last step is to give more points for comments by modifying /libs/karma.php
Feel free to contact me if you have any questions.
No trackbacks yet.
pligg avatar based on user id
August 15, 2009 - 12:33 pm
Tags: avatar, based, Easy, id, on, pligg, user, userid
Posted in Web Development | 2 comments
hello, this is a simple trick to force pligg avatar system to use user id instead of username. the problem of pligg avatar system arise with non english letter. it happens when pligg try to write the avatar image file using the username_30.jpg which gives a wrong filename so pligg can not reuse the image [...]
write text on image using php
August 10, 2009 - 3:54 am
Tags: image, imagettftext, on, php, text, using, write
Posted in Web Development | 1 comment
hello,
this is a simple method to write text on image using php. in fact, my friends asked me to create a php page that will take a specific information about their website visitors and return an image of a certificate with the visitor information written on it.
the logic of the program has three steps:
read input [...]
pligg rtl pagination
August 5, 2009 - 10:29 pm
Tags: left, pagination, pligg, right, rtl, to
Posted in Web Development | No comments
hello,
pligg is digg clone. it is a very famous one. i am working on converting its template from LTR to RTL. one of the problems is the pagination. it is can not be changed using CSS. so i opened html1.php and do the following.
first: open html1.php and find this line
for ($i=$start;$i<=$end && $i<= $total_pages;$i++) {
if($i==$current) [...]
multi separators for pligg 1.0 tags
July 15, 2009 - 7:54 pm
Tags: 1.0, arabic, clone, comma, content, digg, english, for, managment, multi, non, pligg, separators, system
Posted in Web Development | No comments
pligg is one of most promising content managment systems. it is an open source digg clone. it has a very good development team. still it will need more time to reach its golden age.
i am using pligg for many of my web projects. this is one of them: http://www.alegabat.net/
it is working on an arabized version [...]
Dynamic Meta keywords and description,PhpNuke
February 9, 2009 - 8:22 pm
Tags: description, Dynamic, Easy, keywords, Meta, php, PhpNuke, them run properly on my site
Posted in Software, Web Development | 1 comment
Hi all,
Even that PhpNuke is a popular CMS, still it has not implemented in a way that it can generate dynamic Meta keywords or descriptions for its pages. Fortunately, there are many modules to deal with this problem. They are easy to install, but really I can not make them run properly on my site. [...]
Own a website in no time and with no fees
February 9, 2009 - 8:08 pm
Tags: CO.CC, content management, content management systems, Easy, free, free blog systems, free web host, Google, no fee, no time, own, php, then search, ultimate web designer, website, wonderful blog systems, Yahoo
Posted in Programming, Software, Web Development | No comments
Hi,
Nowadays many people dream of making there own websites. Their aims are vary from one to one. But I am sure that all of them have the aim to share something with others. As one of those people, I want to make a home page for myself, a blog to write my ideas and forum [...]
installing mysql, php , apache on ubuntu
February 9, 2009 - 7:19 pm
Tags: apache, Apache services, install, mysql, php, php site, ubuntu
Posted in Software, Web Development | No comments
installing mysql, php , apache on ubuntu
i have got my lovely new aspire one note book , which Yamani (MY FRIEND) helped me formatting it and installing ubuntu in it.
now i was thinking on the best way of using it and i think the best way is that i will need it in demonstrating the [...]

September 9, 2009 - 6:22 pm
Thank you very much this works good. can you tell if u know code which will show subcategory under parent category ? this code here shows at bottom only.. thanks.
{if $pagename eq ‘published’ || $pagename eq ‘upcoming’}
{******Get the parent category******}
{assign var=requested_cat value=$request_category}
{* if story page – set the story’s category to this *}
{if $pagename eq ’story’}
{assign var=requested_cat value=’sub’}
{/if}
{assign var=mainCatStr value=”}
{assign var=parentCat value=-1}
{section name=thecat loop=$cat_array}
{if $cat_array[thecat].safename eq $requested_cat}
{if $cat_array[thecat].parent neq 0}
{assign var=parentCat value=$cat_array[thecat].parent}
{assign var=mainCatStr value=$cat_array[$parentCat].safename}
{else}
{assign var=parentCat value=$cat_array[thecat].auto_id}
{assign var=mainCatStr value=$cat_array[thecat].safename}
{/if}
{/if}
{/section}
{********* Displaying the Main categories *******************}
{section name=thecat loop=$cat_array}
{if $cat_array[thecat].parent eq 0}
{if $cat_array[thecat].safename eq $requested_cat || $cat_array[thecat].auto_id eq $parentCat}
{if $pagename eq “published”}
{$cat_array[thecat].name}
{else}
{$cat_array[thecat].name}
{/if}
{elseif $requested_cat eq “” && $cat_array[thecat].auto_id eq 0}
{if $pagename eq “published”}
{$cat_array[thecat].name}
{else}
{$cat_array[thecat].name}
{/if}
{else}
{if $pagename eq “published”}
{$cat_array[thecat].name}
{else}
{$cat_array[thecat].name}
{/if}
{/if}
{/if}
{/section}
{********* Displaying the Sub categories *******************}
{if $parentCat gt 0}
{*{if $requested_cat eq $mainCatStr}
{if $pagename eq “published”}
{$cat_array[thecat].name}
{else}
{$cat_array[thecat].name}
{/if}
{else}
{if $pagename eq “published”}
3{$cat_array[thecat].name}
{else}
4{$cat_array[thecat].name}
{/if}
{/if}*}
{section name=thecat loop=$cat_array}
{if $cat_array[thecat].parent eq $parentCat}
{if $cat_array[thecat].safename eq $requested_cat}
{if $pagename eq “published”}
{$cat_array[thecat].name}
{else}
{$cat_array[thecat].name}
{/if}
{else}
{if $pagename eq “published”}
{$cat_array[thecat].name}
{else}
{$cat_array[thecat].name}
{/if}
{/if}
{/if}
{/section}
{/if}
{elseif $pagename neq ’submit’}
{********* Displaying the Main categories *******************}
{section name=thecat loop=$cat_array}
{if $cat_array[thecat].parent eq 0}
{$cat_array[thecat].name}
{/if}
{/section}
{else}
{/if}
{*
All {$link_category}
{section name=thecat loop=$cat_array start=1}
{$cat_array[thecat].name}
{/section}
*}
September 10, 2009 - 6:58 pm
Please, could you explain your question in more details ?
September 10, 2009 - 7:27 pm
hi,
above code
makes category display in this order when clicked n visited any main category.
Main cat 1
main cat 2
main cat 3
main cat 4
sub cat 1 for main cat 1
sub cat 2 for main cat 1
It shows subcategory all the way at bottom of all main category, not like this which is i like to have -
Main cat 1
sub cat 1 for main cat 1
sub cat 2 for main cat 1
main cat 2
main cat 3
main cat 4
September 12, 2009 - 1:33 pm
You can utilize cede from wisti/category.tpl
for example you can do the following:
take that code and add it into upcoming_center.tpl
this code will show the categories as list with correct parent/child order
October 25, 2009 - 7:29 pm
hi, this works good but wen URL Method 2 for pligg is activated and new story submit button is clicked, next page is blank. It doesn’t redirect to proper page..
Thanks
October 25, 2009 - 10:06 pm
hi, i believe that your problem is related to (htaccess) file.
first you need to rename (htaccess.default) to (.htaccess)
it will be nice to give me the link of your website, so i can visit it and check the problem.
October 26, 2009 - 7:05 am
hi, I had it renamed to .htaccess and pligg is installed in subfolder.
Everything else works perfect just after submitting it didn’t redirect to nocomment page, just showed blank page.
1 thing I didn’t do was inserted category code from admin in .htaccess file, as once i insert it would show error page not found due to misconfiguration. But without it just works fine.
October 26, 2009 - 10:39 am
I checked the htaccess code and it seems fine.
in fact, after submitting a new link the page should redirect to (upcoming) page.
is this problem existed when you are using url method #1 ?
October 26, 2009 - 1:15 pm
no, with method #1 its working fine.
October 26, 2009 - 1:16 pm
It just shows http://www.mysite.com/pligg/submit as next page once clicked submit button, and it stays blank. Story does get submitted when checked on main page.
October 26, 2009 - 6:14 pm
you may want to play with submit.php line 352
change:
header(“Location: ” . getmyurl(‘upcoming’));
to:
header(‘Location: http://www.mysite.com/pligg/upcoming‘);
October 27, 2009 - 6:52 am
thank you. I modified it to http://www.mysite.com/plig/nocom.php and it worked, it didnt go with upcoming.
Thank you.
October 27, 2009 - 12:06 pm
It is my Pleasure
October 31, 2009 - 10:58 am
hey k found another issue. pagination will not work.
As format will be like below.
http://www.mysite.com/plig/nocom/2
This works, but what to modify to make it like that.
http://www.mysite.com/pligg/nocom.php?page=3
Anyway to just make it work as default /nocom/2 as it will take more modifications.
Thank you.
October 31, 2009 - 11:22 am
I got it. I added
RewriteRule ^nocom/page/([^/]+)/?$ nocom.php?page=$1 [L]
RewriteRule ^wcom/page/([^/]+)/?$ wcom.php?page=$1 [L]
in .htaccess
Thank you.
November 3, 2009 - 12:09 pm
Hi, I settled this as instructed and with url method 2. However, when clicked no either nocom page or wcom page, it lists all topics from all categories.
How to make it sort by category also, like it does in upcoming page when clicked on category it sorts by upcoming only.
i want to make it sort by category, with and without comments.
November 3, 2009 - 12:27 pm
may be by doing it on top wistie header where put link to wcom and nocom link. when in category page, and clicked on top, it list all in category only.