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 &amp;&amp; $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

pliggArabia.co.cc

all the best

Related Posts

  1. pligg, stories with no comments
  2. pligg avatar based on user id
  3. multi separators for pligg 1.0 tags
Print This Post