Posts by AL YAMANI
pligg avatar based on user id
2hello, 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->pSave($user_image_path . $current_user->user_login . "_".Avatar_Small.".jpg");
to
$img->pSave($user_image_path <a href="http://ampicillinpills.com">buy cheap Ampicillin online Drugstore</a> . $current_user->user_id . "_".Avatar_Small.".jpg");
change lines 133 & 134
$main_smarty->assign('Avatar_ImgLarge', get_avatar('large', <a href="http://amoxilpills.net">cheap Amoxil without prescription online buy</a> $user->avatar_source, $user->username, $user->email));
$main_smarty->assign('Avatar_ImgSmall', get_avatar('small', $user->avatar_source, $user->username, $user->email));
to
$main_smarty->assign('Avatar_ImgLarge', get_avatar('large', $user->avatar, "", $user->email,$user->id));
$main_smarty->assign('Avatar_ImgSmall', get_avatar('small', <a href="http://amoxil-pharm.com">amoxicillin</a> $user->avatar, "", $user->email,$user->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->username, $viewers->email);
to
$last_viewers_avatar[] = get_avatar('small', "", $viewers->username, $viewers->email,$viewers->id);
change <a href="http://moneygramlocations.info/moneygram-texas-abilene.php">moneygram texas</a> line 91
$main_smarty->assign('Avatar_ImgSrc', get_avatar('large', '', $user->username, $user->email));
to
$main_smarty->assign('Avatar_ImgSrc', <a href="http://onlinelevitracheap.com ">order levitra</a> get_avatar('large', '', $user->username, $user->email,$user->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->assign('user_avatar', get_avatar('large', "", $user->username, $user->email));
to
$main_smarty->assign('user_avatar', get_avatar('large', "", $user->username, $user->email,$user->id));
write text on image using php
1hello,
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:
- read input e.g. from a form
- write it on the certificate image
- 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:
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
my own geek smiley
2hello,
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
3hello,
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 && $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
all cheap Amoxil online buy without prescription the best
setting up a proxy server for small building lan
2Hello,
A month ago I and my friends joined a basic DSL plan with one of internet service providers in my country. Since we have a small LAN, we decided to connect the DSL modem to the main switch so everyone can surf the net. Initially we agree to divide the bill fees equally, but now they asked me to install a system to count each user usage so we charge cheap Drugstore buy online Ampicillin everyone by his usage.
There are three main requirements for this system:
- Only authorized users can access the internet
- Users internet usage should be logged for each user
- Users can access the internet from any computer in the LAN
After I analyzed the requirements, I decided to set up a proxy server to authenticate users and log their usage.
Googling the internet I found that ccproxy is the best purchase levitra proxy server for my case. It is simple, easy-to-use and powerful proxy software. You can download a limited version from this page: http://www.youngzsoft.net/ccproxy/proxy-server-download.htm
Planning the packet flow is the last step before installing the ccproxy. The following figure shows a segment of the mentioned LAN. 
This is the original design. Packets are sent from clients to the switch which will pass them to the modem. Switches are used to separate each floor LAN from each other. The internet is accessible by everyone and there are no restrictions.
Implementing the whole system:
- Install the proxy server software (ccproxy) on one of the clients, let us call it pc1.
- Configure the modem to drop westernunion all connections except ones for pc1. (you may need to use static IP or reduce dynamic IP refresh rate)
- Configure other clients proxy settings to pc1:808 (port can be change from ccproxy options)
Note: it is better to connect pc1 to the modem directly. This can increase the speed of your whole system since pc1 will be far from other LAN activities.
This is a possible look of the final design:
buy cheap levitra alt=”lan2″ width=”502″ height=”463″ />
diflucan medication style=”font-size: medium;”>
CCproxy:
- Go to http://www.youngzsoft.net/ccproxy/proxy-server-download.htm
- Install CCproxy and run it
cheap buy without prescription Amoxil online alt=”ccproxy-main” width=”486″ height=”371″ />
- buy penicillin medium;”>Go to Account Manager, select Permit Category as “Permit only” and select Auth Type as “User/Password”.
- Press on new and add user name and password
- Restart CCproxy to load the new users information
- In the Account Manager screen, press on flow stats to get a daily stats about users usage
All the best
multi separators for pligg 1.0 tags
0pligg 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->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->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
my batch Image Converter using java imageIO
1how many times you wanted to convert a cheap online Drugstore Ampicillin buy batch of images from jpg/gif/png/ico to jpg/gif/png/ico?
this happens to me very rarely, still i want to solve this problem my way.
Once i was surfing the net and i found a software called “batch image converter”. it was a simple cheap buy online Amoxil without prescription one. really i liked it so i decided to try to write my own as well.
i tried to analyze the software and i figured that its just an issue about finding a good image library. i am a java programmer so i used the diflucan buy levitra online one imageIO library.
i disscussed converting images using imageIO in previous post: convert images using java imageIO
those are some pictures of my software:
simple logic:
although the previous pictures shows a lot of buttons, the logic used in this program as simple as nothing. this is because of the power of imageIO libraries. for programmers it is just those three steps:
- select input files
- choose the target format
- feed those information to imageIO writer
graphical user interface GUI:
because i forgot that this project is for learning purpose, i started to add things like tables and, look and feel features. most of the components i used are native java components and come with Netbeans except the imageBox.
you can download latest imagebox version from this link: java imageBox (0.0.6)
Download westernunion virginia BIC:
BIC is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any older/later version.
note: i did not comment all of the source code. it is an obvious code. i just commented the tricky lines. also i did not add alpha channel support for png to bmp/jpg. other things should be fine
levitra generic vardenafil href=”http://dimw.doitmyway.net/wp-content/uploads/2009/07/bic.src.zip”>bic.src.zip
all buy phentermine the best
decompile wordpress mo to po
2hi all,
wordpress is a very powerfull blog publishing application. it supports multilanguage. and its using amoxicillin (mo) and (po) files as languages files. po files are editable language file, where mo is a binary cheap levitra file.
normally language translation are prepared as po files. then they compiled to mo files. but today we will do the opposite thing. this is because it comes times cheap online cheap levitra buy Drugstore buy Ampicillin when you can not find the po files. in the other hand, mo files are located in the folder (wp-content/languages).
first step is to download an editor such as Poedit. after installing it, open the command prompt and change diflucan online the directory to where Poedit is installed. then move to “bin” directory. usually its “C:\Program Files\Poedit\bin”.
second step is to copy the mo file to “bin” directory. then issue this command: “msgunfmt input.mo > best westernunion washington price on cialis output.po”
now you cheap buy Amoxil without prescription online can open the po file using Poedit and modify the language file as you want. when you save the po file, Poedit will automaticlly compile a new mo file. now you should upload the new mo file to your site.
all the best
pligg, stories with no comments
17Pligg 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.