pligg rtl pagination
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) {
$output .= ‘<span>’.$i.’</span>’;
} else {
$output .= ‘<a href=”?page=’.$i.$query.’”>’.$i.’</a>’;
}
}
change it to this one
/**pliggArabia.co.cc**/
$temp=”";
for ($i=$start;$i<=$end && $i<= $total_pages;$i++) {
if($i==$current) {
$temp = ‘<span>’.$i.’</span>’.$temp;
} else {
$temp = ‘<a href=”?page=’.$i.$query.’”>’.$i.’</a>’.$temp;
}
}
$output .= $temp;
/**pliggArabia.co.cc**/
this code will reverse the order of the added links from:
previous,1,2,3,4,…,next
to
previous,…,4,3,2,1,next
now you should use the css to swap “next” and “previous”
you may get a complete copy of an arabic pligg from this link
all the best


about 2 months ago
Hello! Great article, but I had a question. I like to reverse the article shorting, too. Example: i want to show the first article on page one, and the newest article on the highest numbered page. How is it possible?
Regards,
Tibor
about 2 months ago
as for pligg 1.0.4, you may want to modify index.php, line 48:
if(!isset($_REQUEST['search'])){$search->orderBy = “link_published_date DESC, link_date DESC”;}
try to change DESC to ASC