Web
Read feedburner awareness api using php simplexml_load_file()
1hi cheap Drugstore all,
this is a simple php script to retrieve and read feedburner awareness xml file.
it is based on simplexml_load_file() function.
all what you need to do is changing the $title variable. all the best.
< ?php $title="Dimw"; $apicall="https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=".$title; $xml = simplexml_load_file($apicall); echo "URI: ".$xml->feed['uri']; echo "DATE: ".$xml->feed->entry['date']; echo "CIRCULATION: ".$xml->feed->entry['circulation']; echo "HITS: ".$xml->feed->entry['hits']; echo "REACH: ".$xml->feed->entry['reach']; ?>
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
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
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
html tokenizer
1Hypertext Markup Language (HTML), is the most predominant language for web development.
This articles aims to discuss a simple HTML Tokenizer design logic and implementation.
outline:
- introduction to Tokenizers
- Why html tokenizer?
- Html tokens
- Example of tokenizing
- Prototype using Java
introduction to Tokenizers:
Tokenizers are tools used to tokenize tokens. Tokenize is the work of dividing a string into smaller pieces. Those pieces are called tokens.
Why a html tokenizer?:
Html tokenizer is used to extract information from web pages. Good example is converting a table in a web page to an excel sheet.
Html tokens:
html code can be divided into two type. First is the plain text. Second is the tags text.
Tags are starting with (<) and ending with (>). this means that plain text is the one before (<) or after (>).
Example of tokenizing:
assume the following html code:
price of diflucan embed;” dir=”ltr”>———————————————-
<html> <head> <title > MY EXAMPLE PAGE</title> </head><body>
This is a link for <a href=”example.com”> example.com</a >
</body>
</html>
—example #1:
moneygram locations class=”MsoNormal” style=”text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;” dir=”ltr”>Now let us run a generic tokenizer on it with delimiter (” \n\t”).
\t means tab, \n means new line and before them we make a space.
Results of the tokenizing process should be:
- <html>
- <head>
- <title
- >
- MY
- EXAMPLE
- PAGE</title>
- </head><body>
- This
- is
- a
- link
- for
- <a
- href=”example.com”>
- example.com</a
- >
- </body>
- </html>
—example #2:
Now let us run a generic tokenizer on it with delimiter (“<>”).
Results of the tokenizing process should be:
- html
- head
- title
- buy Drugstore cheap online Ampicillin
- amoxil buy 0cm; margin-left: 36pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;” dir=”ltr”> MY EXAMPLE PAGE
- /title
- /head
- body
- This is a link for
- a href=”example.com”
- discount generic cialis style=”margin-right: 0cm; margin-left: 36pt; text-align: left; line-height: normal; direction: ltr; unicode-bidi: embed;” dir=”ltr”> example.com
- /a
- /body
- /html
We can conclude that we need to build a customized tokenizer in order to get better tokens.
prototype:
Here we will try to construct a prototype of the html tokenizer. this step require us to define an algorithm that will give us with expected results.
First we need to choose the generic tokenizer delimiters. Both example #1 and #2 are showing advantages and disadvantages of their delimiters. By making a fast review on the results we can point on those differences:
- in example #1, both plain text and tagged text are divided in smaller pieces. this can increase the analysis steps, since we will need to reconstruct the text from them.
- in example #2, plain text is untouched which is good. Still tagged text is missing (<) and (>). also there are some unwanted empty tokens (spaces only).
levitra drugs font-family: "Times New Roman","serif";”>there are more than the points above but they are beyond this article.
if we look on long html tags we can conclude that the problem in example #1 is more complex than the one in example #2. this is because there are many html tags with large number of options, this is an example:
<input class=”exampleClass” name=”example” type=”checkbox” id=”exId” value=”AAA” checked=”checked” />
so we will use delimiters from example #2.
Draft of pseudo code: (not complete
)
1. read html file into string
2. make a list to store final tokens
3. make a buffer to collect characters
buy cheap levitra -18pt; line-height: normal; direction: ltr; unicode-bidi: embed;” dir=”ltr”>4. for i=0 to i<string.length
a. if first character, then append it to buffer
b. else if it is ‘<’, then
i.make token from the existence buffer
ii. add the new token to the list
buy cheap without prescription Amoxil online Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;”> iii. buffer = new buffer
iv. append ‘<’ to the buffer
c. else if it is ‘>’ then
i. append it to the buffer
ii. make token from the buffer
iii. add token to the list
iv. buffer = new buffer
d. else if not ‘<’ nor ‘>’ then
i. append it to the buffer
download java code of html tokenizer from here HtmlTokenizer
Finish
See Whether IIS is Installed and Add Any Necessary Components
0- Click Start, point to Settings, and then click Control Panel.
- Double-click Add/Remove Programs.
- Click buy cheap Amoxil online without westernunion ohio prescription Add/Remove Windows Components in the left pane.
- In the Windows Components Wizard, look for the Internet buy online Ampicillin cheapest levitra Drugstore cheap Information Services (IIS) entry in the list of components.
- If IIS is already installed, the check box next to it is selected. To see what components are installed, click the IIS entry, and then click Details.
- If IIS is cialis amoxil online buy generic diflucan online daily use review not installed, click to select the Internet Information Services (IIS) check box, and then click Details.
- Select any additional components, and then click OK. The following components are the minimum components to install:
- Common files
- Internet generic levitra Information Services snap-in
- SMTP service
- Network News Transfer Protocol (NNTP) service (for newsgroups)
- World Wide Web service
- To complete the installation process, click Next, and then click Finish.
installing mysql, php , apache on ubuntu
0i have got my lovely new aspire one note book , which Yamani (MY FRIEND) helped me formatting it and installing ubuntu in it.

now i was thinking on the best way of using it and i think the best way is that i will need it in demonstrating the sites i create to the clients, well the problem is i need to install Apache, PHP, and MYSQL in the machine now to
moneygram new york be able to show the sites i have created.
so with some search and few tries this is the way of doing that
to install apache2 open the terminal and write the following command
sudo apt-get install apache2
then to start the diflucan 150 mg Apache services write
sudo /etc/init.d/apache2 start
now cheap online Amoxil buy without prescription you can check if Apache is working by visiting
http://localhost
now installing php return to the terminal and write
sudo apt-get install php5 libapache2-mod-php5
this will install php engine and it will be working with apache , but you need to restart apache for that by
sudo /etc/init.d/apache2 restart
and now if you want to test simply create a php file and put in apache buy penicillin sites directory which will be in
/var/www
installing MYSQL is again simple type the following in your terminal
sudo apt-get install mysql-server
while installing pay special care when it asks you for you mysql root password since if forget it it will not work
now to run mysql type
mysql -uroot -pyourpassword
and there we are every thing is ready to make my php site run on my ubuntu cialis online buy cheap levitra sale spire one box
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.