Posts tagged pligg

pligg, stories with no comments

17

Pligg is an open source digg clone. in addition to that, it cheap online buy Amoxil without prescription 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.

moneygram washington style=”font-size: medium;”>Today I am going to levitra buying teach you the way to show both commented and not commented stories in the same way of published and queued diflucan buy 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 & buy phentermine A website. Where stories are the questions and comments are the answers. More than this, you can configure pligg buy cheap levitra to not ask for a URL in the submission process. Last step is to give more points for comments by modifying buy cheap Ampicillin Drugstore online /libs/karma.php

Feel free to contact me if you have any questions.

pligg avatar based on user id

2

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 file again.

this problem was solved in pligg 1.0.1.  I am writing this post to whom using an older version of pligg and do not want to upgrade to the newer version.

all required steps are written in this file: pligg avatar based on userId


#######################################
lines to modify per file
#######################################
----------------------
/profile.php:
----------------------
change line 78
$imagename = $current_user->user_login . "_original.jpg";
to
$imagename = $current_user->user_id . "_original.jpg";
 
change line 93
$img->pSave($user_image_path . $current_user->user_login . "_".Avatar_Large.".jpg");
to
$img->pSave($user_image_path . $current_user->user_id . "_".Avatar_Large.".jpg");
 
change line <a href="http://onlinelevitracheap.net ">cheap levitra order</a>  101
$img-&gt;pSave($user_image_path . $current_user-&gt;user_login . "_".Avatar_Small.".jpg");
to
$img-&gt;pSave($user_image_path <a href="http://ampicillinpills.com">buy cheap Ampicillin online Drugstore</a>  . $current_user-&gt;user_id . "_".Avatar_Small.".jpg");
 
change lines 133 &amp; 134
$main_smarty-&gt;assign('Avatar_ImgLarge', get_avatar('large', <a href="http://amoxilpills.net">cheap Amoxil without prescription online  buy</a>  $user-&gt;avatar_source, $user-&gt;username, $user-&gt;email));
$main_smarty-&gt;assign('Avatar_ImgSmall', get_avatar('small', $user-&gt;avatar_source, $user-&gt;username, $user-&gt;email));
to
$main_smarty-&gt;assign('Avatar_ImgLarge', get_avatar('large', $user-&gt;avatar, "", $user-&gt;email,$user-&gt;id));
$main_smarty-&gt;assign('Avatar_ImgSmall', get_avatar('small', <a href="http://amoxil-pharm.com">amoxicillin</a>  $user-&gt;avatar, "", $user-&gt;email,$user-&gt;id));
 
----------------------
/libs/html1.php:
----------------------
change line 49
$voters[$key]['Avatar_ImgSrc'] = get_avatar($avatar_size, "", $val['user_login'], $val['user_email']);
to
$voters[$key]['Avatar_ImgSrc'] = get_avatar($avatar_size, "", $val['user_login'], $val['user_email'], $val['user_id']);
 
change line 177
$imgsrc = my_pligg_base . User_Upload_Avatar_Folder . "/" . $user_name . "_" . $imgsize . ".jpg";
to
$imgsrc = my_pligg_base . User_Upload_Avatar_Folder . "/" . $user_id . "_" . $imgsize . ".jpg";
 
----------------------
/user.php:
----------------------
change line 72
$last_viewers_avatar[] = get_avatar('small', "", $viewers-&gt;username, $viewers-&gt;email);
to
$last_viewers_avatar[] = get_avatar('small', "", $viewers-&gt;username, $viewers-&gt;email,$viewers-&gt;id);
 
change <a href="http://moneygramlocations.info/moneygram-texas-abilene.php">moneygram texas</a>  line 91
$main_smarty-&gt;assign('Avatar_ImgSrc', get_avatar('large', '', $user-&gt;username,   $user-&gt;email));
to
$main_smarty-&gt;assign('Avatar_ImgSrc', <a href="http://onlinelevitracheap.com ">order levitra</a>  get_avatar('large', '', $user-&gt;username, $user-&gt;email,$user-&gt;id));
 
change line 296
$results[$key]['Avatar'] = get_avatar('large', "", $val['user_login'], <a href="http://buydiflucancheap.com">diflucan buy online</a>  $val['user_email']);
to
$results[$key]['Avatar'] = get_avatar('large', "", $val['user_login'], $val['user_email'], $val['user_id']);
 
----------------------
/topusers.php:
----------------------
change line 98
$main_smarty-&gt;assign('user_avatar', get_avatar('large', "", $user-&gt;username, $user-&gt;email));
to
$main_smarty-&gt;assign('user_avatar', get_avatar('large', "", $user-&gt;username, $user-&gt;email,$user-&gt;id));


pligg rtl pagination

3

hello,

pligg diflucan dosage 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 generic levitra 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>’;
} buy augmentin else {
$output .= ‘<a href=”?page=’.$i.$query.’”>’.$i.’</a>’;
}
}

change moneygram california “>buy generic levitra online cheap Drugstore online Ampicillin buy 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 cheap Amoxil online buy without prescription the best

multi separators for pligg 1.0 tags

0

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 of pligg, which i translated myself.

the problem is that when user submit a new link, he/she will need to write the english comma between tags (,) where   arabic has its own comma buy vardenafil charchter (،). add to that, i can not force my clients to switch languages because of commas. so i decided to add the arabic comma as a separator for the tags.

the trick is so simple, here we go:

consider this line of tags:

multi,separators-for،pligg+1.0,tags

pligg will tokenize them as following:

  • multi
  • separators-for،pligg+1.0
  • tags

this order levitra is just a big problem and this is the my solution:

open “submit.php”, and find this line:

$linkres-&gt;tags = tags_normalize_string(sanitize($_POST['tags'], 3));

change it to:

//dimw, add arabic comma as a tags seperator
//step1, <a href="http://amoxilpills.net">cheap  buy online without prescription Amoxil</a>  convert  to the arabic comma <a href="http://moneygramlocations.info">moneygram locations</a>  to english comma
$tmp=str_replace("،",",",sanitize($_POST['tags'], <a href="http://ampicillinpills.com">cheap Drugstore buy Ampicillin <a href="http://onlinelevitracheap.net ">order levitra</a>  online</a>  3));
//uncomment next line to add + as a tags sperator, you can add more ...
//$tmp=str_replace("+",",",sanitize($_POST['tags'], 3));
//step2, add the tags line
$linkres-&gt;tags = tags_normalize_string($tmp);
//dimw, end

explain it:

we told pligg to convert all the characters we want to use as tags separators to the english comma (,). after this everything will work as if users diflucan no prescription used the (,) when they insert their desierd tags.

all the best :)

Go to Top