Archive for August, 2009

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));


1

write text on image using php

1


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 cheap Amoxil without prescription buy online written on it.

the logic of the program has three steps:

  1. read input e.g. from a form
  2. write it on the certificate image
  3. return the new image to the browser

let us assume that visitors will need to enter their name, e-mail, country and zip code. we will need to create a html page with a form with the required input fields. such html page can look like this:

buy levitra online method=”get”>Name:

moneygram new york name=”name” type=”text” />

E-Mail:

Country:

diflucan buy cheap levitra cheap />

Zip Code:


the Ampicillin buy cheap Drugstore online php page will read the form data and write it on the image using a function called imagettftext();

imagettftext takes an image and draw the specified text on it. read more about it at

http://www.php.net/imagettftext

you can download the complete project from this link: write_on_images_dimw amoxil buy

geekSmilies

my own geek smiley

2

hello,

i designed my own geek smileys.They are simple, however they are just generic levitra buy online similar to my face expressions. you may get a PSD copy from this link: diflucan cost class=”aligncenter size-full wp-image-607″ cheap Amoxil online cheap levitra without prescription buy title=”geekSmilies” src=”http://dimw.doitmyway.net/wp-content/uploads/2009/08/geekSmilies.psd” generic amoxil alt=”geekSmilies” />

moneygram vegas alt=”" alt=”geekSmilies” width=”671″ height=”333″ Ampicillin buy cheap online Drugstore />

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

Screenshot-Mozilla Firefox - Mozilla Firefox

Firefox Tabs Organization

0

are you like me amoxicillin buy opening millions of tabs in one firefox window !

well it is kind of annoying to have all these  tabs unorganized inside one single window. Maybe the better way  would be saperating the tabs into different firefox windows.

But my way of doing this is a bit different

to be able to explain it to you just open two new tabs in your firefox low price levitra and in each tab past the following URL and open it : chrome://browser/content/browser.xul

now inside each of these two tabs you have a compelete firefoxe window running and you can open different tabs inside each of these tabs !!

isn’t a very nice way of organizing tabs in different tabs and still having every thing in one window ! :) .

levitra online diflucan fluconazole moneygram california alt=”Screenshot-Mozilla Firefox – Mozilla Firefox” cheap Amoxil buy without prescription online cheap Drugstore online buy Ampicillin width=”452″ height=”315″ />

have fun with it.

Go to Top