<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3797173834114842053</id><updated>2024-08-30T22:27:59.312+05:30</updated><category term="Blog Notes"/><category term="Wordpress"/><category term="php"/><category term="jQuery Tutorial"/><category term="Drupal"/><category term="CodeIgniter"/><category term="Magento"/><category term="HTML"/><category term="Images"/><category term="Laravel"/><title type='text'>Blog Notes</title><subtitle type='html'>A message of knowledge</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://get-blognotes.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://get-blognotes.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02518662871932285564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>56</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3797173834114842053.post-5291049617925001483</id><published>2017-11-19T22:14:00.002+05:30</published><updated>2017-11-19T22:17:01.317+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Laravel"/><title type='text'>Laravel - Create models from database</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #242729; font-family: &amp;quot;inherit&amp;quot; , &amp;quot;serif&amp;quot;; font-size: 11.5pt;&quot;&gt;If you are using MySQL and Laravel 5.1 or above you can
use&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: #eff0f1; border: none 1.0pt; color: #242729; font-family: &amp;quot;consolas&amp;quot;; font-size: 10.0pt; padding: 0in;&quot;&gt;php artisan
code:models&lt;/span&gt;&lt;span style=&quot;color: #242729; font-family: &amp;quot;inherit&amp;quot; , &amp;quot;serif&amp;quot;; font-size: 11.5pt;&quot;&gt;&amp;nbsp;from this package:&amp;nbsp;&lt;a href=&quot;https://medium.com/@CristianLLanos/eloquent-models-from-my-database-5d74c632e03c#.qg7cd4vri&quot;&gt;&lt;span style=&quot;border: 1pt none; color: #005999; padding: 0in;&quot;&gt;reliese/laravel&lt;/span&gt;&lt;/a&gt;.
All you need to do is:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-indent: -.25in; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #242729; font-family: &amp;quot;inherit&amp;quot; , &amp;quot;serif&amp;quot;; font-size: 11.5pt;&quot;&gt;1.&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;background: #eff0f1; border: none 1.0pt; color: #242729; font-family: &amp;quot;consolas&amp;quot;; font-size: 10.0pt; padding: 0in;&quot;&gt;composer
require reliese/laravel&lt;/span&gt;&lt;span style=&quot;color: #242729; font-family: &amp;quot;inherit&amp;quot; , &amp;quot;serif&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-indent: -.25in; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #242729; font-family: &amp;quot;inherit&amp;quot; , &amp;quot;serif&amp;quot;; font-size: 11.5pt;&quot;&gt;2.&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;color: #242729; font-family: &amp;quot;inherit&amp;quot; , &amp;quot;serif&amp;quot;; font-size: 11.5pt;&quot;&gt;Add the service
provider to your&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: #eff0f1; border: none 1.0pt; color: #242729; font-family: &amp;quot;consolas&amp;quot;; font-size: 10.0pt; padding: 0in;&quot;&gt;config/app.php&lt;/span&gt;&lt;span style=&quot;color: #242729; font-family: &amp;quot;inherit&amp;quot; , &amp;quot;serif&amp;quot;; font-size: 11.5pt;&quot;&gt;&amp;nbsp;file&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: #eff0f1; border: none 1.0pt; color: #242729; font-family: &amp;quot;consolas&amp;quot;; font-size: 10.0pt; padding: 0in;&quot;&gt;Reliese\Coders\CodersServiceProvider::class&lt;/span&gt;&lt;span style=&quot;color: #242729; font-family: &amp;quot;inherit&amp;quot; , &amp;quot;serif&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-indent: -.25in; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #242729; font-family: &amp;quot;inherit&amp;quot; , &amp;quot;serif&amp;quot;; font-size: 11.5pt;&quot;&gt;3.&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;color: #242729; font-family: &amp;quot;inherit&amp;quot; , &amp;quot;serif&amp;quot;; font-size: 11.5pt;&quot;&gt;Publish the config
file with&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: #eff0f1; border: none 1.0pt; color: #242729; font-family: &amp;quot;consolas&amp;quot;; font-size: 10.0pt; padding: 0in;&quot;&gt;php artisan vendor:publish --tag=reliese-models&lt;/span&gt;&lt;span style=&quot;color: #242729; font-family: &amp;quot;inherit&amp;quot; , &amp;quot;serif&amp;quot;; font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-indent: -.25in; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: #242729; font-family: &amp;quot;inherit&amp;quot; , &amp;quot;serif&amp;quot;; font-size: 11.5pt;&quot;&gt;4.&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;color: #242729; font-family: &amp;quot;inherit&amp;quot; , &amp;quot;serif&amp;quot;; font-size: 11.5pt;&quot;&gt;Make sure your
database is correctly configured in&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: #eff0f1; border: none 1.0pt; color: #242729; font-family: &amp;quot;consolas&amp;quot;; font-size: 10.0pt; padding: 0in;&quot;&gt;config/database.php&lt;/span&gt;&lt;span style=&quot;color: #242729; font-family: &amp;quot;inherit&amp;quot; , &amp;quot;serif&amp;quot;; font-size: 11.5pt;&quot;&gt;&amp;nbsp;and&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: #eff0f1; border: none 1.0pt; color: #242729; font-family: &amp;quot;consolas&amp;quot;; font-size: 10.0pt; padding: 0in;&quot;&gt;.env&lt;/span&gt;&lt;span style=&quot;color: #242729; font-family: &amp;quot;inherit&amp;quot; , &amp;quot;serif&amp;quot;; font-size: 11.5pt;&quot;&gt;&amp;nbsp;files.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: #242729; font-family: &amp;quot;inherit&amp;quot; , &amp;quot;serif&amp;quot;; font-size: 11.5pt; line-height: 107%;&quot;&gt;And finally issue the command:&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: #eff0f1; border: none 1.0pt; color: #242729; font-family: &amp;quot;consolas&amp;quot;; font-size: 10.0pt; line-height: 107%; padding: 0in;&quot;&gt;php artisan
code:models&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://get-blognotes.blogspot.com/feeds/5291049617925001483/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://get-blognotes.blogspot.com/2017/11/laravel-create-models-from-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/5291049617925001483'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/5291049617925001483'/><link rel='alternate' type='text/html' href='http://get-blognotes.blogspot.com/2017/11/laravel-create-models-from-database.html' title='Laravel - Create models from database'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02518662871932285564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3797173834114842053.post-8902036032276387392</id><published>2017-03-24T13:24:00.000+05:30</published><updated>2017-03-24T13:24:17.232+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="CodeIgniter"/><title type='text'>Codeigniter and Bootstrap dynamic dialog messages</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
&lt;h1&gt;
Creating Alert Messages with Bootstrap&lt;/h1&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Set flash data in your controller&lt;br /&gt;
&lt;br /&gt;
$this-&amp;gt;session-&amp;gt;set_flashdata(&#39;alert-danger&#39;, &#39;Invalid Log In&#39;);&lt;br /&gt;
$this-&amp;gt;session-&amp;gt;set_flashdata(&#39;alert-success&#39;, &#39;Success Log In&#39;);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
View dynamic dialog message with simple helper function&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;echo flash_alert();&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Helper function :&lt;br /&gt;
&lt;br /&gt;
f(!function_exists(&#39;flash_alert&#39;)) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; function flash_alert(){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $CI = &amp;amp; get_instance();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $flash_data = $CI-&amp;gt;session-&amp;gt;flashdata();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $alertMsg = &quot;&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(empty($flash_data)) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return $alertMsg;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach($flash_data as $key =&amp;gt; $message) { &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $alertMsg.= &#39;&amp;lt;div class=&quot;alert &#39;.$key.&#39; fade in&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;a href=&quot;#&quot; class=&quot;close&quot; data-dismiss=&quot;alert&quot;&amp;gt;&amp;amp;times;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;.$message.&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&#39;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return $alertMsg;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://get-blognotes.blogspot.com/feeds/8902036032276387392/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://get-blognotes.blogspot.com/2017/03/codeigniter-and-bootstrap-dynamic.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/8902036032276387392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/8902036032276387392'/><link rel='alternate' type='text/html' href='http://get-blognotes.blogspot.com/2017/03/codeigniter-and-bootstrap-dynamic.html' title='Codeigniter and Bootstrap dynamic dialog messages'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02518662871932285564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3797173834114842053.post-8502777410545311165</id><published>2016-07-27T16:58:00.003+05:30</published><updated>2016-07-27T16:58:46.339+05:30</updated><title type='text'>Email with Multiple Attachments in PHP Script</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
function mail_attachment($filenames, $mailto, $from_mail, $from_name, $replyto, $subject, $bodyMessge) {&lt;br /&gt;&lt;br /&gt;$uid = md5(uniqid(time()));&lt;br /&gt;//$name = basename($file);&lt;br /&gt;&lt;br /&gt;$eol = PHP_EOL;&lt;br /&gt;$semi_rand = md5(time()); &lt;br /&gt;$mime_boundary = &quot;==Multipart_Boundary_x{$semi_rand}x&quot;; &lt;br /&gt;&lt;br /&gt;// Basic headers&lt;br /&gt;$header = &quot;From: &quot;.$from_name.&quot; &amp;lt;&quot;.$from_mail.&quot;&amp;gt;&quot;.$eol;&lt;br /&gt;$header .= &quot;Reply-To: &quot;.$replyto.$eol;&lt;br /&gt;$header .= &quot;MIME-Version: 1.0\r\n&quot;;&lt;br /&gt;$header .= &quot;Content-Type: multipart/mixed; boundary=\&quot;&quot;.$mime_boundary.&quot;\&quot;&quot;;&lt;br /&gt;&lt;br /&gt;// Put everything else in $message&lt;br /&gt;$message = &quot;This is a multi-part message in MIME format.&quot;.$eol.$eol.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;--{$mime_boundary}&quot;.$eol;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;//$message = &quot;--&quot;.$uid.$eol;&lt;br /&gt;$message .= &quot;Content-Type: text/html; charset=ISO-8859-1&quot;.$eol;&lt;br /&gt;$message .= &quot;Content-Transfer-Encoding: 8bit&quot;.$eol.$eol;&lt;br /&gt;$message .= $bodyMessge.$eol;&lt;br /&gt;//$message .= &quot;--&quot;.$uid.$eol;&lt;br /&gt;$message .= &quot;--{$mime_boundary}&quot;.$eol;&lt;br /&gt;&lt;br /&gt;foreach ($filenames as $filename) {&lt;br /&gt;$file = UPLOAD_FILE_PATH.$filename;&lt;br /&gt;$file_size = filesize($file);&lt;br /&gt;$handle = fopen($file, &quot;r&quot;);&lt;br /&gt;$content = fread($handle, $file_size);&lt;br /&gt;fclose($handle);&lt;br /&gt;&lt;br /&gt;$content = chunk_split(base64_encode($content));&lt;br /&gt;$message .= &quot;Content-Type: application/octet-stream; name=\&quot;&quot;.$filename.&quot;\&quot;&quot;.$eol;&lt;br /&gt;$message .= &quot;Content-Transfer-Encoding: base64&quot;.$eol;&lt;br /&gt;$message .= &quot;Content-Disposition: attachment; filename=\&quot;&quot;.$filename.&quot;\&quot;&quot;.$eol;&lt;br /&gt;$message .= $content.$eol;&lt;br /&gt;//$message .= &quot;--&quot;.$uid.&quot;--&quot;;&lt;br /&gt;$message .= &quot;--{$mime_boundary}&quot;.$eol;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if (mail($mailto, $subject, $message, $header)){ &lt;br /&gt;&amp;nbsp;&amp;nbsp;echo &quot;success&quot;; &lt;br /&gt;&amp;nbsp;} else {&lt;br /&gt;&amp;nbsp;echo &quot;error&quot;;&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;}&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://get-blognotes.blogspot.com/feeds/8502777410545311165/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://get-blognotes.blogspot.com/2016/07/email-with-multiple-attachments-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/8502777410545311165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/8502777410545311165'/><link rel='alternate' type='text/html' href='http://get-blognotes.blogspot.com/2016/07/email-with-multiple-attachments-in-php.html' title='Email with Multiple Attachments in PHP Script'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02518662871932285564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3797173834114842053.post-830975945512890388</id><published>2014-12-12T15:35:00.002+05:30</published><updated>2014-12-12T15:35:20.372+05:30</updated><title type='text'>PHP MAIL SCRIPT</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
//first copy &amp;amp; pste the below two lines.&lt;br /&gt;$headers = &quot;MIME-Version: 1.0\n&quot;;&lt;br /&gt;$headers .= &quot;Content-Type: text/html; charset=ISO-8859-1\n&quot;;&lt;br /&gt;&lt;br /&gt;// Here comes your to from cc and bcc values&lt;br /&gt;$headers .= &quot;From: &quot;.$fromemail.&quot; &amp;lt;&quot;.$fromemail.&quot;&amp;gt;\n&quot;; &lt;br /&gt;$headers .= &quot;Return-Path: &quot;.$fromemail.&quot;\n&quot;;&lt;br /&gt;$headers .= &quot;Return-Receipt-To: &quot;.$fromemail.&quot;\n&quot;;&lt;br /&gt;&lt;br /&gt;// then comes priority options and mailer version.&lt;br /&gt;$headers .= &quot;X-Priority: 1(Highest)\n&quot;; &lt;br /&gt;$headers .= &quot;X-MSMail-Priority: High\n&quot;; &lt;br /&gt;//$headers .= &quot;X-Mailer: php\n&quot;;&lt;br /&gt;$headers .= &#39;X-Mailer: PHP/&#39; . phpversion();&lt;br /&gt;$headers .= &quot;Importance: High\n&quot;;&lt;br /&gt;&lt;br /&gt;if(mail($toEmail,$subject,$message,$headers)){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &#39;mail sent&#39;;&lt;br /&gt;}else{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &#39;failed&#39;;&lt;br /&gt;}&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://get-blognotes.blogspot.com/feeds/830975945512890388/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://get-blognotes.blogspot.com/2014/12/php-mail-script.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/830975945512890388'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/830975945512890388'/><link rel='alternate' type='text/html' href='http://get-blognotes.blogspot.com/2014/12/php-mail-script.html' title='PHP MAIL SCRIPT'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02518662871932285564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3797173834114842053.post-340323877661374271</id><published>2014-11-26T14:50:00.001+05:30</published><updated>2014-11-26T14:53:05.299+05:30</updated><title type='text'>PHP Bootstrap Dynamic Pagination</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
function pagination($limit,$adjacents,$rows,$page){&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $reqPage=&quot;&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if(isset($_REQUEST[&quot;page&quot;])&amp;amp;&amp;amp; $_REQUEST[&quot;page&quot;]!=&quot;&quot;)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $reqPage.=&quot;&amp;amp;page=&quot;.$_REQUEST[&quot;page&quot;];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;$pagination=&#39;&#39;;&lt;br /&gt;
&amp;nbsp;if ($page == 0) $page = 1; //if no page var is given, default to 1.&lt;br /&gt;
&amp;nbsp;$prev = $page - 1; //previous page is page - 1&lt;br /&gt;
&amp;nbsp;$next = $page + 1; //next page is page + 1&lt;br /&gt;
&amp;nbsp;$prev_=&#39;&#39;;&lt;br /&gt;
&amp;nbsp;$first=&#39;&#39;;&lt;br /&gt;
&amp;nbsp;$lastpage = ceil($rows/$limit);&lt;br /&gt;
&amp;nbsp;$next_=&#39;&#39;;&lt;br /&gt;
&amp;nbsp;$last=&#39;&#39;;&lt;br /&gt;
&amp;nbsp;if($lastpage &amp;gt; 1)&lt;br /&gt;
&amp;nbsp;{&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;//previous button&lt;br /&gt;
&amp;nbsp;if ($page &amp;gt; 1)&lt;br /&gt;
&amp;nbsp;$prev_.= &quot;&amp;lt;li&amp;gt;&amp;lt;a class=&#39;page-numbers&#39; href=\&quot;?view=$prev$reqPage\&quot;&amp;gt;Previous&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;;&lt;br /&gt;
&amp;nbsp;else{&lt;br /&gt;
&amp;nbsp;//$pagination.= &quot;&amp;lt;span class=\&quot;disabled\&quot;&amp;gt;previous&amp;lt;/span&amp;gt;&quot;;&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;//pages&lt;br /&gt;
&amp;nbsp;if ($lastpage &amp;lt; 5 + ($adjacents * 2)) //not enough pages to bother breaking it up&lt;br /&gt;
&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;$first=&#39;&#39;;&lt;br /&gt;
&amp;nbsp;for ($counter = 1; $counter &amp;lt;= $lastpage; $counter++)&lt;br /&gt;
&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;if ($counter == $page)&lt;br /&gt;
&amp;nbsp;$pagination.= &quot;&amp;lt;li class=\&quot;active\&quot;&amp;gt;&amp;lt;span&amp;gt;$counter&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&quot;;&lt;br /&gt;
&amp;nbsp;else&lt;br /&gt;
&amp;nbsp;$pagination.= &quot;&amp;lt;li&amp;gt;&amp;lt;a class=&#39;page-numbers&#39; href=\&quot;?view=$counter$reqPage\&quot;&amp;gt;$counter&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;;&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;$last=&#39;&#39;;&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;elseif($lastpage &amp;gt; 3 + ($adjacents * 2)) //enough pages to hide some&lt;br /&gt;
&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;//close to beginning; only hide later pages&lt;br /&gt;
&amp;nbsp;$first=&#39;&#39;;&lt;br /&gt;
&amp;nbsp;if($page &amp;lt; 1 + ($adjacents * 2))&lt;br /&gt;
&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;for ($counter = 1; $counter &amp;lt; 4 + ($adjacents * 2); $counter++)&lt;br /&gt;
&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;if ($counter == $page)&lt;br /&gt;
&amp;nbsp;$pagination.= &quot;&amp;lt;li class=\&quot;active\&quot;&amp;gt;&amp;lt;span&amp;gt;$counter&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&quot;;&lt;br /&gt;
&amp;nbsp;else&lt;br /&gt;
&amp;nbsp;$pagination.= &quot;&amp;lt;li&amp;gt;&amp;lt;a class=&#39;page-numbers&#39; href=\&quot;?view=$counter$reqPage\&quot;&amp;gt;$counter&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;;&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;$last.= &quot;&amp;lt;li&amp;gt;&amp;lt;a class=&#39;page-numbers&#39; href=\&quot;?view=$lastpage$reqPage\&quot;&amp;gt;Last&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;;&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;//in middle; hide some front and some back&lt;br /&gt;
&amp;nbsp;elseif($lastpage - ($adjacents * 2) &amp;gt; $page &amp;amp;&amp;amp; $page &amp;gt; ($adjacents * 2))&lt;br /&gt;
&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;$first.= &quot;&amp;lt;li&amp;gt;&amp;lt;a class=&#39;page-numbers&#39; href=\&quot;?view=1$reqPage\&quot;&amp;gt;First&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;;&lt;br /&gt;
&amp;nbsp;for ($counter = $page - $adjacents; $counter &amp;lt;= $page + $adjacents; $counter++)&lt;br /&gt;
&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;if ($counter == $page)&lt;br /&gt;
&amp;nbsp;$pagination.= &quot;&amp;lt;li class=\&quot;active\&quot;&amp;gt;&amp;lt;span&amp;gt;$counter&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&quot;;&lt;br /&gt;
&amp;nbsp;else&lt;br /&gt;
&amp;nbsp;$pagination.= &quot;&amp;lt;li&amp;gt;&amp;lt;a class=&#39;page-numbers&#39; href=\&quot;?view=$counter$reqPage\&quot;&amp;gt;$counter&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;;&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;$last.= &quot;&amp;lt;li&amp;gt;&amp;lt;a class=&#39;page-numbers&#39; href=\&quot;?view=$lastpage$reqPage\&quot;&amp;gt;Last&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;;&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;//close to end; only hide early pages&lt;br /&gt;
&amp;nbsp;else&lt;br /&gt;
&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;$first.= &quot;&amp;lt;li&amp;gt;&amp;lt;a class=&#39;page-numbers&#39; href=\&quot;?view=1$reqPage\&quot;&amp;gt;First&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;;&lt;br /&gt;
&amp;nbsp;for ($counter = $lastpage - (2 + ($adjacents * 2)); $counter &amp;lt;= $lastpage; $counter++)&lt;br /&gt;
&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;if ($counter == $page)&lt;br /&gt;
&amp;nbsp;$pagination.= &quot;&amp;lt;li class=\&quot;active\&quot;&amp;gt;&amp;lt;span&amp;gt;$counter&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&quot;;&lt;br /&gt;
&amp;nbsp;else&lt;br /&gt;
&amp;nbsp;$pagination.= &quot;&amp;lt;li&amp;gt;&amp;lt;a class=&#39;page-numbers&#39; href=\&quot;?view=$counter$reqPage\&quot;&amp;gt;$counter&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;;&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;$last=&#39;&#39;;&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;if ($page &amp;lt; $counter - 1)&lt;br /&gt;
&amp;nbsp;$next_.= &quot;&amp;lt;li&amp;gt;&amp;lt;a class=&#39;page-numbers&#39; href=\&quot;?view=$next$reqPage\&quot;&amp;gt;Next&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;;&lt;br /&gt;
&amp;nbsp;else{&lt;br /&gt;
&amp;nbsp;//$pagination.= &quot;&amp;lt;span class=\&quot;disabled\&quot;&amp;gt;next&amp;lt;/span&amp;gt;&quot;;&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;$pagination = &quot;&amp;lt;ul class=\&quot;pagination pagination-sm\&quot;&amp;gt;&quot;.$first.$prev_.$pagination.$next_.$last;&lt;br /&gt;
&amp;nbsp;//next button&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;$pagination.= &quot;&amp;lt;/ul&amp;gt;\n&quot;;&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
return $pagination;&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://get-blognotes.blogspot.com/feeds/340323877661374271/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://get-blognotes.blogspot.com/2014/11/pagination.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/340323877661374271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/340323877661374271'/><link rel='alternate' type='text/html' href='http://get-blognotes.blogspot.com/2014/11/pagination.html' title='PHP Bootstrap Dynamic Pagination'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02518662871932285564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3797173834114842053.post-8889515075300625995</id><published>2013-02-07T20:21:00.003+05:30</published><updated>2013-04-26T10:37:21.366+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Wordpress"/><title type='text'>Filtering categories in the permalink structure</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot;&gt;The way to remove the parent category from a permalink when using the&amp;nbsp;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot;&gt;/%category%/%postname%/ custom structure&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;add_filter( &#39;post_link&#39;, &#39;remove_parent_cats_from_link&#39;, 10, 3 );&amp;nbsp;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot;&gt;function remove_parent_cats_from_link( $permalink, $post, $leavename )
{
    $cats = get_the_category( $post-&amp;gt;ID );
    if ( $cats ) {
     // Make sure we use the same start cat as the permalink generator
     usort( $cats, &#39;_usort_terms_by_ID&#39; ); // order by ID
     $category = $cats[0]-&amp;gt;slug;
     if ( $parent = $cats[0]-&amp;gt;parent ) {
     // If there are parent categories, collect them and replace them in the link
       $parentcats = get_category_parents( $parent, false, &#39;/&#39;, true );
       // str_replace() is not the best solution if you can have duplicates:
       // myexamplesite.com/luxemburg/luxemburg/ will be stripped down to myexamplesite.com/
       // But if you don&#39;t expect that, it should work
        $permalink = str_replace( $parentcats, &#39;&#39;, $permalink );
        }
    }
    return $permalink;
}&lt;code&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://get-blognotes.blogspot.com/feeds/8889515075300625995/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://get-blognotes.blogspot.com/2013/02/filtering-categories-in-permalink.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/8889515075300625995'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/8889515075300625995'/><link rel='alternate' type='text/html' href='http://get-blognotes.blogspot.com/2013/02/filtering-categories-in-permalink.html' title='Filtering categories in the permalink structure'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02518662871932285564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3797173834114842053.post-299300385932597595</id><published>2012-10-12T12:28:00.000+05:30</published><updated>2012-10-12T12:30:05.313+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><title type='text'>Magento DataBase configuration file</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Magento DataBase configuration file location for simple changes, you find that information into the file:&lt;br /&gt;
&lt;i&gt;&lt;b&gt;/app/etc/local.xml&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&amp;lt;default_setup&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;connection&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;host&amp;gt;&amp;lt;![CDATA[&lt;b&gt;localhost&lt;/b&gt;]]&amp;gt;&amp;lt;/host&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;username&amp;gt;&amp;lt;![CDATA[&lt;b&gt;root&lt;/b&gt;]]&amp;gt;&amp;lt;/username&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;password&amp;gt;&amp;lt;![CDATA[]]&amp;gt;&amp;lt;/password&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;dbname&amp;gt;&amp;lt;![CDATA[&lt;b&gt;magento&lt;/b&gt;]]&amp;gt;&amp;lt;/dbname&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;initStatements&amp;gt;&amp;lt;![CDATA[SET NAMES utf8]]&amp;gt;&amp;lt;/initStatements&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;model&amp;gt;&amp;lt;![CDATA[mysql4]]&amp;gt;&amp;lt;/model&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;type&amp;gt;&amp;lt;![CDATA[pdo_mysql]]&amp;gt;&amp;lt;/type&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;pdoType&amp;gt;&amp;lt;![CDATA[]]&amp;gt;&amp;lt;/pdoType&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;active&amp;gt;1&amp;lt;/active&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/connection&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/default_setup&amp;gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://get-blognotes.blogspot.com/feeds/299300385932597595/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://get-blognotes.blogspot.com/2012/10/magento-database-configuration-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/299300385932597595'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/299300385932597595'/><link rel='alternate' type='text/html' href='http://get-blognotes.blogspot.com/2012/10/magento-database-configuration-file.html' title='Magento DataBase configuration file'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02518662871932285564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3797173834114842053.post-4337637736447649349</id><published>2012-10-09T15:19:00.000+05:30</published><updated>2012-10-11T15:54:51.774+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blog Notes"/><category scheme="http://www.blogger.com/atom/ns#" term="CodeIgniter"/><category scheme="http://www.blogger.com/atom/ns#" term="Drupal"/><category scheme="http://www.blogger.com/atom/ns#" term="jQuery Tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="Wordpress"/><title type='text'>PHP Web Developer, Wordpress, PHP Development India,Website Designing</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Contact Us for your web development and design needs!!!!&lt;br /&gt;
&lt;a href=&quot;http://get-blognotes.blogspot.in/p/contact-us.html&quot;&gt;Click here to send a proposal&lt;/a&gt;
&lt;br /&gt;
&lt;a href=&quot;http://get-blognotes.blogspot.in/p/contact-us.html&quot;&gt;PHP Web Developer,  PHP Development India,Website Designing, Wordpress etc., &lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://get-blognotes.blogspot.com/feeds/4337637736447649349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://get-blognotes.blogspot.com/2012/10/php-web-developer-wordpress-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/4337637736447649349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/4337637736447649349'/><link rel='alternate' type='text/html' href='http://get-blognotes.blogspot.com/2012/10/php-web-developer-wordpress-php.html' title='PHP Web Developer, Wordpress, PHP Development India,Website Designing'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02518662871932285564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>5, Koti Main Rd, Koti, Hyderabad, Andhra Pradesh, India</georss:featurename><georss:point>17.385044 78.486671</georss:point><georss:box>16.418729 77.2232435 18.351359000000002 79.750098500000007</georss:box></entry><entry><id>tag:blogger.com,1999:blog-3797173834114842053.post-3219331427322897778</id><published>2012-08-15T15:26:00.000+05:30</published><updated>2012-10-11T15:34:51.400+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blog Notes"/><category scheme="http://www.blogger.com/atom/ns#" term="CodeIgniter"/><category scheme="http://www.blogger.com/atom/ns#" term="Drupal"/><category scheme="http://www.blogger.com/atom/ns#" term="Images"/><category scheme="http://www.blogger.com/atom/ns#" term="jQuery Tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="Wordpress"/><title type='text'>php web developer in Hyderabad</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Contact Us for your web development and design needs!!!!&lt;br /&gt;
&lt;a href=&quot;http://get-blognotes.blogspot.in/p/contact-us.html&quot;&gt;Click here to send a proposal&lt;/a&gt;
&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://get-blognotes.blogspot.com/feeds/3219331427322897778/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://get-blognotes.blogspot.com/2012/10/php-web-developer-in-hyderabad.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/3219331427322897778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/3219331427322897778'/><link rel='alternate' type='text/html' href='http://get-blognotes.blogspot.com/2012/10/php-web-developer-in-hyderabad.html' title='php web developer in Hyderabad'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02518662871932285564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>Secunderabad-Tarnaka Main Rd, Railway Colony, Chilakalguda, Secunderabad, Andhra Pradesh, India</georss:featurename><georss:point>17.434510551522909 78.50830078125</georss:point><georss:box>13.565691051522908 73.454589781250007 21.303330051522909 83.562011781249993</georss:box></entry><entry><id>tag:blogger.com,1999:blog-3797173834114842053.post-6717463386241933630</id><published>2012-07-03T15:14:00.002+05:30</published><updated>2012-07-21T16:42:35.251+05:30</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Get Blog Notes:&amp;nbsp;&lt;/span&gt;&lt;b&gt;Facebook share button&lt;/b&gt;&lt;span style=&quot;background-color: white;&quot;&gt; on your&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;website:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script&amp;gt;function fbs_click() {u=location.href;t=document.title;window.open(&#39;http://www.facebook.com/sharer.php?u=&#39;+encodeURIComponent(u)+&#39;&amp;amp;t=&#39;+encodeURIComponent(t),&#39;sharer&#39;,&#39;toolbar=0,status=0,width=626,height=436&#39;);return false;}&amp;lt;/script&amp;gt;&amp;lt;a href=&quot;http://www.facebook.com/share.php?u=&amp;lt;url&amp;gt;&quot; onclick=&quot;return fbs_click()&quot; target=&quot;_blank&quot;&amp;gt;&amp;lt;img src=&quot;/images/facebook.png&quot; alt=&quot;Share on Facebook&quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://get-blognotes.blogspot.com/feeds/6717463386241933630/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://get-blognotes.blogspot.com/2012/07/get-blog-notes-facebook-share-button-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/6717463386241933630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/6717463386241933630'/><link rel='alternate' type='text/html' href='http://get-blognotes.blogspot.com/2012/07/get-blog-notes-facebook-share-button-on.html' title=''/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02518662871932285564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3797173834114842053.post-2691037537214874279</id><published>2012-05-15T20:18:00.000+05:30</published><updated>2012-10-10T19:10:36.379+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blog Notes"/><category scheme="http://www.blogger.com/atom/ns#" term="jQuery Tutorial"/><title type='text'>Active the corresponding link in navigation menu  by scrolling the content.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;br /&gt;
//&amp;lt;![CDATA[&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; $(function() {&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; $(window).scroll(function() {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var threshold = $(window).height() / 4;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var active_section;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var active_section_top = -Infinity;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(&quot;.scrolling-document-section&quot;).each(function(index, section) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var section_top = $(section).offset().top - $(window).scrollTop();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (section_top &amp;gt; active_section_top &amp;amp;&amp;amp; section_top &amp;lt; threshold) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; active_section_top = section_top;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; active_section = section;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (active_section) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(&quot;#menu-explore-features a&quot;).removeClass(&quot;active&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(&quot;#menu-explore-features a[href$=&#39;#&quot; + $(active_section).attr(&quot;id&quot;) + &quot;&#39;]&quot;).addClass(&quot;active&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; $(window).scroll();&lt;br /&gt;
&amp;nbsp; });&lt;br /&gt;
&lt;br /&gt;
//]]&amp;gt;&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;/code&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://get-blognotes.blogspot.com/feeds/2691037537214874279/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://get-blognotes.blogspot.com/2012/05/corresponding-link-in-navigation-menu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/2691037537214874279'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/2691037537214874279'/><link rel='alternate' type='text/html' href='http://get-blognotes.blogspot.com/2012/05/corresponding-link-in-navigation-menu.html' title='Active the corresponding link in navigation menu  by scrolling the content.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02518662871932285564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3797173834114842053.post-366683105132143271</id><published>2012-04-11T15:48:00.001+05:30</published><updated>2012-10-10T18:58:48.283+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blog Notes"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>How to grab tweets from Twitter using php</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre class=&quot;lang-php prettyprint&quot;&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;$tweets &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-php prettyprint&quot;&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;json_decode&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;file_get_contents&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-php prettyprint&quot;&gt;&lt;code&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&#39;http://twitter.com/statuses/user_timeline.json?&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-php prettyprint&quot;&gt;&lt;code&gt;&lt;span class=&quot;str&quot;&gt;screen_name=USERNAME&amp;amp;count=10&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;));&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;

var_dump&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;$tweets&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-php prettyprint&quot;&gt;&lt;code&gt;&lt;span class=&quot;pun&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-php prettyprint&quot;&gt;&lt;code&gt;&lt;span class=&quot;pun&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-php prettyprint&quot;&gt;&lt;code&gt;&lt;span class=&quot;pun&quot;&gt;//&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;json_decode&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;file_get_contents&lt;/span&gt;()) function&lt;/code&gt;&lt;code&gt;&lt;span class=&quot;pun&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://get-blognotes.blogspot.com/feeds/366683105132143271/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://get-blognotes.blogspot.com/2012/04/how-to-grab-tweets-from-twitter-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/366683105132143271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/366683105132143271'/><link rel='alternate' type='text/html' href='http://get-blognotes.blogspot.com/2012/04/how-to-grab-tweets-from-twitter-using.html' title='How to grab tweets from Twitter using php'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02518662871932285564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3797173834114842053.post-8330795062316377155</id><published>2012-04-11T14:22:00.001+05:30</published><updated>2012-10-11T15:45:43.542+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blog Notes"/><title type='text'>How to add buttons to your website to help your visitors share content and connect with you on Twitter?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;https://twitter.com/about/resources/buttons#follow&quot; target=&quot;_blank&quot;&gt;https://twitter.com/about/resources/buttons#follow&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add buttons to your website to help your visitors share content and connect with you on Twitter. &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://get-blognotes.blogspot.com/feeds/8330795062316377155/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://get-blognotes.blogspot.com/2012/04/how-to-add-buttons-to-your-website-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/8330795062316377155'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/8330795062316377155'/><link rel='alternate' type='text/html' href='http://get-blognotes.blogspot.com/2012/04/how-to-add-buttons-to-your-website-to.html' title='How to add buttons to your website to help your visitors share content and connect with you on Twitter?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02518662871932285564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3797173834114842053.post-1236450663196850018</id><published>2012-03-12T16:45:00.002+05:30</published><updated>2012-03-12T16:53:16.950+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blog Notes"/><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><title type='text'>Magento  How to add a static CMS block to the side bar</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
In Magento Go to&lt;br /&gt;
CMS &amp;gt; Static Blocks.&lt;br /&gt;
Create a new block&lt;br /&gt;
&lt;br /&gt;
Open app/design/frontend/xxxxxx/xxxxxx/layout/catalog.xml&lt;br /&gt;
Add your static block to the left or right section in&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Mage_Catalog --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example to add to the left sidebar..&lt;br /&gt;
&amp;lt;reference name=&quot;left&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;block type=&quot;cms/block&quot; name=&quot;Block Title&quot; &amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action method=&quot;setBlockId&quot;&amp;gt;&amp;lt;block_id&amp;gt;Identifier&amp;lt;/block_id&amp;gt;&amp;lt;/action&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/block&amp;gt;&lt;br /&gt;
&amp;lt;/reference&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
Open the file app/design/frontend/default/[your-theme]/template/page/Xcolumns-left.phtml by your favorite text editor&lt;br /&gt;
Find the line of code&lt;br /&gt;
&amp;lt;?php echo $this-&amp;gt;getChildHtml(&#39;left&#39;) ?&amp;gt;&lt;br /&gt;
Add the following code line&lt;br /&gt;
&amp;lt;?php echo $this-&amp;gt;getLayout()-&amp;gt;createBlock(&#39;cms/block&#39;)-&amp;gt;setBlockId(&#39; Identifier&amp;nbsp;&#39;)-&amp;gt;toHtml() ?&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://get-blognotes.blogspot.com/feeds/1236450663196850018/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://get-blognotes.blogspot.com/2012/03/magento-how-to-add-static-cms-block-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/1236450663196850018'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/1236450663196850018'/><link rel='alternate' type='text/html' href='http://get-blognotes.blogspot.com/2012/03/magento-how-to-add-static-cms-block-to.html' title='Magento  How to add a static CMS block to the side bar'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02518662871932285564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3797173834114842053.post-4544361593520186318</id><published>2012-02-22T14:43:00.003+05:30</published><updated>2012-02-22T15:43:16.470+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blog Notes"/><category scheme="http://www.blogger.com/atom/ns#" term="Wordpress"/><title type='text'>Displaying  the Preview image of Nextgen Gallery Using a Custom Select Query</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;You have to choose from an image of your gallery. If you don&#39;t want use  one of them you can add a new image to the gallery, then click on Gallery settings (Click here for more settings) under the field Preview image&amp;nbsp; choose image from the drop down list!&lt;br /&gt;
&lt;br /&gt;
Paste the bellow code in the template page, where you what to display the preview image of gallery. Don&#39;t forgot to change the gallery id. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$querystr = &quot;SELECT wp_ngg_pictures.*, wp_ngg_gallery.* FROM wp_ngg_pictures, wp_ngg_gallery WHERE wp_ngg_pictures.pid = wp_ngg_gallery.previewpic AND wp_ngg_pictures.galleryid=5 ORDER BY wp_ngg_pictures.pid DESC&lt;br /&gt;
&quot;;&lt;br /&gt;
&lt;br /&gt;
$pageposts = $wpdb-&amp;gt;get_results($querystr, OBJECT);&lt;br /&gt;
$name=$pageposts[0]-&amp;gt;filename;&lt;br /&gt;
$path=get_bloginfo(&#39;siteurl&#39;).&quot;/&quot;.$pageposts[0]-&amp;gt;path.&quot;/&quot;.$pageposts[0]-&amp;gt;filename;&lt;br /&gt;
echo &quot;&amp;lt;img src=&#39;&quot;.$path.&quot;&#39; title=&#39;&quot;.$name.&quot;&#39; width=&#39;100&#39; height=&#39;75&#39;/&amp;gt;&quot;;&lt;br /&gt;
&lt;br /&gt;
?&amp;gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://get-blognotes.blogspot.com/feeds/4544361593520186318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://get-blognotes.blogspot.com/2012/02/displaying-preview-image-of-nextgen.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/4544361593520186318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/4544361593520186318'/><link rel='alternate' type='text/html' href='http://get-blognotes.blogspot.com/2012/02/displaying-preview-image-of-nextgen.html' title='Displaying  the Preview image of Nextgen Gallery Using a Custom Select Query'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02518662871932285564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3797173834114842053.post-7364895661669952770</id><published>2012-02-21T11:00:00.002+05:30</published><updated>2012-02-21T11:02:16.069+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blog Notes"/><category scheme="http://www.blogger.com/atom/ns#" term="Wordpress"/><title type='text'>WordPress how to get the total count  of posts  from specific category</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;container&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;line number1 index0 alt2&quot;&gt;A custom function which will return total post counts from the specified category and its child categories.&lt;code class=&quot;php keyword&quot;&gt;&lt;br /&gt;
&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number1 index0 alt2&quot;&gt;&lt;code class=&quot;php keyword&quot;&gt;function&lt;/code&gt; &lt;code class=&quot;php plain&quot;&gt;wp_get_cat_postcount(&lt;/code&gt;&lt;code class=&quot;php variable&quot;&gt;$id&lt;/code&gt;&lt;code class=&quot;php plain&quot;&gt;) {&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot;&gt;&lt;code class=&quot;php spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;php variable&quot;&gt;$cat&lt;/code&gt; &lt;code class=&quot;php plain&quot;&gt;= get_category(&lt;/code&gt;&lt;code class=&quot;php variable&quot;&gt;$id&lt;/code&gt;&lt;code class=&quot;php plain&quot;&gt;);&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot;&gt;&lt;code class=&quot;php spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;php variable&quot;&gt;$count&lt;/code&gt; &lt;code class=&quot;php plain&quot;&gt;= (int) &lt;/code&gt;&lt;code class=&quot;php variable&quot;&gt;$cat&lt;/code&gt;&lt;code class=&quot;php plain&quot;&gt;-&amp;gt;&lt;/code&gt;&lt;code class=&quot;php functions&quot;&gt;count&lt;/code&gt;&lt;code class=&quot;php plain&quot;&gt;;&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot;&gt;&lt;code class=&quot;php spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;php variable&quot;&gt;$taxonomy&lt;/code&gt; &lt;code class=&quot;php plain&quot;&gt;= &lt;/code&gt;&lt;code class=&quot;php string&quot;&gt;&#39;category&#39;&lt;/code&gt;&lt;code class=&quot;php plain&quot;&gt;;&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number5 index4 alt2&quot;&gt;&lt;code class=&quot;php spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;php variable&quot;&gt;$args&lt;/code&gt; &lt;code class=&quot;php plain&quot;&gt;= &lt;/code&gt;&lt;code class=&quot;php keyword&quot;&gt;array&lt;/code&gt;&lt;code class=&quot;php plain&quot;&gt;(&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number6 index5 alt1&quot;&gt;&lt;code class=&quot;php spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;php string&quot;&gt;&#39;child_of&#39;&lt;/code&gt; &lt;code class=&quot;php plain&quot;&gt;=&amp;gt; &lt;/code&gt;&lt;code class=&quot;php variable&quot;&gt;$id&lt;/code&gt;&lt;code class=&quot;php plain&quot;&gt;,&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number7 index6 alt2&quot;&gt;&lt;code class=&quot;php spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;php plain&quot;&gt;);&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number8 index7 alt1&quot;&gt;&lt;code class=&quot;php spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;php variable&quot;&gt;$tax_terms&lt;/code&gt; &lt;code class=&quot;php plain&quot;&gt;= get_terms(&lt;/code&gt;&lt;code class=&quot;php variable&quot;&gt;$taxonomy&lt;/code&gt;&lt;code class=&quot;php plain&quot;&gt;,&lt;/code&gt;&lt;code class=&quot;php variable&quot;&gt;$args&lt;/code&gt;&lt;code class=&quot;php plain&quot;&gt;);&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number9 index8 alt2&quot;&gt;&lt;code class=&quot;php spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;php keyword&quot;&gt;foreach&lt;/code&gt; &lt;code class=&quot;php plain&quot;&gt;(&lt;/code&gt;&lt;code class=&quot;php variable&quot;&gt;$tax_terms&lt;/code&gt; &lt;code class=&quot;php keyword&quot;&gt;as&lt;/code&gt; &lt;code class=&quot;php variable&quot;&gt;$tax_term&lt;/code&gt;&lt;code class=&quot;php plain&quot;&gt;) {&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number10 index9 alt1&quot;&gt;&lt;code class=&quot;php spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;php variable&quot;&gt;$count&lt;/code&gt; &lt;code class=&quot;php plain&quot;&gt;+=&lt;/code&gt;&lt;code class=&quot;php variable&quot;&gt;$tax_term&lt;/code&gt;&lt;code class=&quot;php plain&quot;&gt;-&amp;gt;&lt;/code&gt;&lt;code class=&quot;php functions&quot;&gt;count&lt;/code&gt;&lt;code class=&quot;php plain&quot;&gt;;&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number11 index10 alt2&quot;&gt;&lt;code class=&quot;php spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;php plain&quot;&gt;}&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number12 index11 alt1&quot;&gt;&lt;code class=&quot;php spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;php keyword&quot;&gt;return&lt;/code&gt; &lt;code class=&quot;php variable&quot;&gt;$count&lt;/code&gt;&lt;code class=&quot;php plain&quot;&gt;;&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number13 index12 alt2&quot;&gt;&lt;code class=&quot;php plain&quot;&gt;}&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://get-blognotes.blogspot.com/feeds/7364895661669952770/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://get-blognotes.blogspot.com/2012/02/wordpress-how-to-get-total-no-of-posts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/7364895661669952770'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/7364895661669952770'/><link rel='alternate' type='text/html' href='http://get-blognotes.blogspot.com/2012/02/wordpress-how-to-get-total-no-of-posts.html' title='WordPress how to get the total count  of posts  from specific category'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02518662871932285564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3797173834114842053.post-1545178681907130970</id><published>2012-02-17T12:38:00.000+05:30</published><updated>2012-10-11T15:54:06.014+05:30</updated><title type='text'>Contact Us for your web development and design needs!!!!</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Contact Us for your web development and design needs!!!!&lt;br /&gt;
&lt;a href=&quot;http://get-blognotes.blogspot.in/p/contact-us.html&quot;&gt;Click here to send a proposal&lt;/a&gt;
&lt;br /&gt;
&lt;a href=&quot;http://get-blognotes.blogspot.in/p/contact-us.html&quot;&gt;PHP Web Developer,  PHP Development India,Website Designing, Wordpress&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://get-blognotes.blogspot.com/feeds/1545178681907130970/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://get-blognotes.blogspot.com/2012/10/contact-us-for-your-web-development-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/1545178681907130970'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/1545178681907130970'/><link rel='alternate' type='text/html' href='http://get-blognotes.blogspot.com/2012/10/contact-us-for-your-web-development-and.html' title='Contact Us for your web development and design needs!!!!'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02518662871932285564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3797173834114842053.post-8647060217888342554</id><published>2012-02-10T15:51:00.001+05:30</published><updated>2012-02-10T15:52:32.454+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blog Notes"/><category scheme="http://www.blogger.com/atom/ns#" term="Wordpress"/><title type='text'>How to display the list of child pages on the parent page.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Displays a list of WordPress pages as links. It is often used to customize the sidebar or header.&lt;br /&gt;
&lt;br /&gt;
We can display the list of child pages on the parent page.&lt;br /&gt;
&lt;br /&gt;
Displays the sub-pages of a single Page only;&lt;br /&gt;
uses the ID for a Page as  the value.&lt;br /&gt;
&lt;br /&gt;
if($post-&amp;gt;post_parent)&lt;br /&gt;
{&lt;br /&gt;
$parent_title = get_the_title($post-&amp;gt;post_parent);&lt;br /&gt;
echo &quot;&amp;lt;h3 class=&#39;product1-title&#39;&amp;gt;&quot;.$parent_title.&quot;:&amp;lt;/h3&amp;gt;&quot;;&lt;br /&gt;
$children = wp_list_pages(&quot;title_li=&amp;amp;child_of=&quot;.$post-&amp;gt;post_parent.&quot;&amp;amp;echo=0&quot;);&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
$parent_title = get_the_title($post-&amp;gt;post_parent);&lt;br /&gt;
echo &quot;&amp;lt;h3 class=&#39;product1-title&#39;&amp;gt;&quot;.$parent_title.&quot;:&amp;lt;/h3&amp;gt;&quot;;&lt;br /&gt;
$children = wp_list_pages(&quot;title_li=&amp;amp;child_of=&quot;.$post-&amp;gt;ID.&quot;&amp;amp;echo=0&quot;);&lt;br /&gt;
}&lt;br /&gt;
if ($children) { ?&amp;gt;&lt;br /&gt;
&amp;lt;ul id=&quot;subnav&quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php echo $children; ?&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;?php }?&amp;gt; &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://get-blognotes.blogspot.com/feeds/8647060217888342554/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://get-blognotes.blogspot.com/2012/02/how-to-display-list-of-child-page-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/8647060217888342554'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/8647060217888342554'/><link rel='alternate' type='text/html' href='http://get-blognotes.blogspot.com/2012/02/how-to-display-list-of-child-page-on.html' title='How to display the list of child pages on the parent page.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02518662871932285564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3797173834114842053.post-1402453294952379766</id><published>2012-02-04T18:39:00.000+05:30</published><updated>2012-02-04T18:39:22.486+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blog Notes"/><category scheme="http://www.blogger.com/atom/ns#" term="Wordpress"/><title type='text'>Display custom wordpress gallery images from post attachment</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;color: red;&quot;&gt;&lt;b&gt;How to display custom wordpress gallery images from post attachment&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
The &lt;code&gt;[gallery]&lt;/code&gt; shortcode is used in a Post or Page to  display a thumbnail gallery of images attached to that post.  Or You can use like this:&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table cellspacing=&quot;0&quot; cellpadding=&quot;5&quot; align=&quot;left&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tbody&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;?php &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $images = get_children( array(&#39;post_parent&#39; =&amp;gt; $post-&amp;gt;ID, &#39;post_status&#39; =&amp;gt; &#39;inherit&#39;, &#39;post_type&#39; =&amp;gt; &#39;attachment&#39;, &#39;post_mime_type&#39; =&amp;gt; &#39;image&#39;, &#39;order&#39; =&amp;gt; &#39;ASC&#39;, &#39;orderby&#39; =&amp;gt; &#39;menu_order ID&#39;) );&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if ($images) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $size = &#39;thumbnail&#39;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $num_of_images = count($images);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; foreach ($images as $image) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $img_title = $image-&amp;gt;post_title;&amp;nbsp;&amp;nbsp; // title.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $img_description = $image-&amp;gt;post_content; // description.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $img_caption = $image-&amp;gt;post_excerpt; // caption.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $img_url = wp_get_attachment_url($image-&amp;gt;ID); // url of the full size image.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $preview_array = image_downsize( $image-&amp;gt;ID, $size );&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $img_preview = $preview_array[0]; // thumbnail or medium image to use for preview.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ?&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td valign=&quot;top&quot;&amp;gt;&lt;br /&gt;
&amp;lt;a class=&quot;lightwindow&quot; href=&quot;&amp;lt;?php echo $img_url; ?&amp;gt;&quot; rel=&quot;example1&quot;&amp;gt;&amp;lt;img class=&quot;alignleft size-full wp-image-911&quot; title=&quot;&amp;lt;?php echo $img_title; ?&amp;gt;&quot; src=&quot;&amp;lt;?php echo $img_preview; ?&amp;gt;&quot; alt=&quot;&amp;lt;?php echo $img_caption; ?&amp;gt;&quot; width=&quot;100&quot; height=&quot;100&quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;?php&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }?&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/tbody&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://get-blognotes.blogspot.com/feeds/1402453294952379766/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://get-blognotes.blogspot.com/2012/02/display-custom-wordpress-gallery-images.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/1402453294952379766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/1402453294952379766'/><link rel='alternate' type='text/html' href='http://get-blognotes.blogspot.com/2012/02/display-custom-wordpress-gallery-images.html' title='Display custom wordpress gallery images from post attachment'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02518662871932285564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3797173834114842053.post-6627570191121724302</id><published>2012-02-03T18:28:00.000+05:30</published><updated>2012-02-03T18:28:56.332+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blog Notes"/><category scheme="http://www.blogger.com/atom/ns#" term="Wordpress"/><title type='text'>WordPress Administration menu example</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
Here is a very simple example of the three steps just described. This plugin will add a sub-level menu item under the Settings top-level menu, and when selected, that menu item will cause a very basic screen to display&lt;br /&gt;
&lt;br /&gt;
In this example, the function, my_plugin_menu(), adds a new item to the Administration menu via the add_options_page function.&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
add_action(&#39;admin_menu&#39;, &#39;my_plugin_menu&#39;);&lt;br /&gt;
&lt;br /&gt;
function my_plugin_menu() {&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;add_options_page(&#39;My Plugin Options&#39;, &#39;My Plugin&#39;, &#39;manage_options&#39;, &#39;my-unique-identifier&#39;, &#39;my_plugin_options&#39;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function my_plugin_options() {&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if (!current_user_can(&#39;manage_options&#39;)) &amp;nbsp;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;wp_die( __(&#39;You do not have sufficient permissions to access this page.&#39;) );&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;echo &#39;&amp;lt;div class=&quot;wrap&quot;&amp;gt;&#39;;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;echo &#39;&amp;lt;p&amp;gt;Here is where the form would go if I actually had options.&amp;lt;/p&amp;gt;&#39;;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;echo &#39;&amp;lt;/div&amp;gt;&#39;;&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://get-blognotes.blogspot.com/feeds/6627570191121724302/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://get-blognotes.blogspot.com/2012/02/wordpress-administration-menu-example.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/6627570191121724302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/6627570191121724302'/><link rel='alternate' type='text/html' href='http://get-blognotes.blogspot.com/2012/02/wordpress-administration-menu-example.html' title='WordPress Administration menu example'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02518662871932285564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3797173834114842053.post-2632762321704237687</id><published>2012-02-03T18:18:00.000+05:30</published><updated>2012-02-03T18:18:48.584+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blog Notes"/><category scheme="http://www.blogger.com/atom/ns#" term="Wordpress"/><title type='text'>How to add administration menus in wordpress</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
This article explains how plugin authors can add administration menus.&lt;br /&gt;
&lt;br /&gt;
Using Wrapper Functions&lt;br /&gt;
&lt;br /&gt;
Since most sub-level menus belong under the Settings, Tools, or Appearance menus, WordPress supplies wrapper functions that make adding a sub-level menu items to those top-level menus easier. Note that the function names may not match the names seen in the admin UI as they have changed over time:&lt;br /&gt;
&lt;br /&gt;
Dashboard&lt;br /&gt;
&amp;lt;?php add_dashboard_page( $page_title, $menu_title, $capability, $menu_slug, $function); ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Posts&lt;br /&gt;
&amp;lt;?php add_posts_page( $page_title, $menu_title, $capability, $menu_slug, $function); ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Media&lt;br /&gt;
&amp;lt;?php add_media_page( $page_title, $menu_title, $capability, $menu_slug, $function); ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Links&lt;br /&gt;
&amp;lt;?php add_links_page( $page_title, $menu_title, $capability, $menu_slug, $function); ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Pages&lt;br /&gt;
&amp;lt;?php add_pages_page( $page_title, $menu_title, $capability, $menu_slug, $function); ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Comments&lt;br /&gt;
&amp;lt;?php add_comments_page( $page_title, $menu_title, $capability, $menu_slug, $function); ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Appearance&lt;br /&gt;
&amp;lt;?php add_theme_page( $page_title, $menu_title, $capability, $menu_slug, $function); ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Plugins&lt;br /&gt;
&amp;lt;?php add_plugins_page( $page_title, $menu_title, $capability, $menu_slug, $function); ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Users&lt;br /&gt;
&amp;lt;?php add_users_page( $page_title, $menu_title, $capability, $menu_slug, $function); ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Tools&lt;br /&gt;
&amp;lt;?php add_management_page( $page_title, $menu_title, $capability, $menu_slug, $function); ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Settings&lt;br /&gt;
&amp;lt;?php add_options_page( $page_title, $menu_title, $capability, $menu_slug, $function); ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
More:Here is an example of a WordPress plugin that inserts new menus into various places:&lt;br /&gt;
&amp;nbsp;&lt;a href=&quot;http://codex.wordpress.org/Administration_Menus&quot; target=&quot;_blank&quot;&gt;Administration_Menus&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://get-blognotes.blogspot.com/feeds/2632762321704237687/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://get-blognotes.blogspot.com/2012/02/how-to-add-administration-menus-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/2632762321704237687'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/2632762321704237687'/><link rel='alternate' type='text/html' href='http://get-blognotes.blogspot.com/2012/02/how-to-add-administration-menus-in.html' title='How to add administration menus in wordpress'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02518662871932285564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3797173834114842053.post-5099961223032958399</id><published>2012-01-31T14:26:00.000+05:30</published><updated>2012-01-31T14:26:19.081+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blog Notes"/><category scheme="http://www.blogger.com/atom/ns#" term="Wordpress"/><title type='text'>Category Posts</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;lt;?php&lt;br /&gt;
/*&lt;br /&gt;
Template Name: Category Posts&lt;br /&gt;
*/&lt;br /&gt;
get_header(); &lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id=&quot;content-container&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id=&quot;content&quot; role=&quot;main&quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php &lt;br /&gt;
//get all terms (e.g. categories or post tags), then display all posts in each term&lt;br /&gt;
$taxonomy = &#39;category&#39;;//&amp;nbsp; e.g. post_tag, category&lt;br /&gt;
$param_type = &#39;category__in&#39;; //&amp;nbsp; e.g. tag__in, category__in&lt;br /&gt;
$term_args=array(&lt;br /&gt;
&amp;nbsp;&#39;orderby&#39; =&amp;gt; &#39;name&#39;,&lt;br /&gt;
&amp;nbsp;&#39;order&#39; =&amp;gt; &#39;ASC&#39;&lt;br /&gt;
);&lt;br /&gt;
$terms = get_terms($taxonomy,$term_args);&lt;br /&gt;
if ($terms) {&lt;br /&gt;
&amp;nbsp;foreach( $terms as $term ) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; $args=array(&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;$param_type&quot; =&amp;gt; array($term-&amp;gt;term_id),&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;post_type&#39; =&amp;gt; &#39;post&#39;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;post_status&#39; =&amp;gt; &#39;publish&#39;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;posts_per_page&#39; =&amp;gt; -1,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;caller_get_posts&#39;=&amp;gt; 1&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; );&lt;br /&gt;
&amp;nbsp;&amp;nbsp; $my_query = null;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; $my_query = new WP_Query($args);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; if( $my_query-&amp;gt;have_posts() ) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &#39;&amp;lt;h2&amp;gt;List of Posts in &#39;.$taxonomy .&#39; &#39;.$term-&amp;gt;name.&#39;&amp;lt;/h2&amp;gt;&#39;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while ($my_query-&amp;gt;have_posts()) : $my_query-&amp;gt;the_post(); ?&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;div id=&quot;post-&amp;lt;?php the_ID(); ?&amp;gt;&quot; &amp;lt;?php post_class(); ?&amp;gt;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;?php if ( is_front_page() ) { ?&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;h2 class=&quot;entry-title&quot;&amp;gt;&amp;lt;?php the_title(); ?&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;?php } else { ?&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;h1 class=&quot;entry-title&quot;&amp;gt;&amp;lt;?php the_title(); ?&amp;gt;&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;?php } ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div class=&quot;entry-content&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;?php //the_content();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; the_excerpt();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; the_post_thumbnail(); ?&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&amp;lt;!-- .entry-content --&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endwhile;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
}&lt;br /&gt;
wp_reset_query();&amp;nbsp; // Restore global post data stomped by the_post().&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&amp;lt;!-- #content --&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&amp;lt;!-- #content-container --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php get_sidebar(); ?&amp;gt;&lt;br /&gt;
&amp;lt;?php get_footer(); ?&amp;gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://get-blognotes.blogspot.com/feeds/5099961223032958399/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://get-blognotes.blogspot.com/2012/01/category-posts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/5099961223032958399'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/5099961223032958399'/><link rel='alternate' type='text/html' href='http://get-blognotes.blogspot.com/2012/01/category-posts.html' title='Category Posts'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02518662871932285564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3797173834114842053.post-94486968497797528</id><published>2012-01-27T14:31:00.000+05:30</published><updated>2012-01-27T14:31:06.178+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blog Notes"/><category scheme="http://www.blogger.com/atom/ns#" term="Wordpress"/><title type='text'>Category Posts Widget</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Adds a widget that shows the most recent posts in a single category.&lt;br /&gt;
&lt;br /&gt;
Category Posts Widget is a light widget designed to do one thing and do  it well: display the most recent posts from a certain category.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://wordpress.org/extend/plugins/category-posts/&quot; target=&quot;_blank&quot;&gt;Category Posts Widget&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://get-blognotes.blogspot.com/feeds/94486968497797528/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://get-blognotes.blogspot.com/2012/01/category-posts-widget.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/94486968497797528'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/94486968497797528'/><link rel='alternate' type='text/html' href='http://get-blognotes.blogspot.com/2012/01/category-posts-widget.html' title='Category Posts Widget'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02518662871932285564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3797173834114842053.post-43480571728521783</id><published>2012-01-24T18:13:00.005+05:30</published><updated>2012-10-11T15:53:32.963+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blog Notes"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>PHP array functions</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;PHP array &amp;nbsp;samples&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&amp;nbsp;1) Desplaing the array in order, with out using sort functions&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$array=array(1,20,5,16,7,19,3);&lt;br /&gt;
$cnt = count($array) - 1;&lt;br /&gt;
$FinalTemp = array();&lt;br /&gt;
for ($i = 0; $i &amp;lt;= $cnt; $i++) {&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;foreach($array as $key=&amp;gt;$value)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; if($value==max($array))&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp;&amp;nbsp;$sort[] = max($array);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp;&amp;nbsp;unset($array[$key]);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
}&lt;br /&gt;
&amp;nbsp;print_r($sort);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2) In the main array, First delete one array values and then add other array values to the main array.&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$array=array(5,4,5,7,3,6,4,1,8,4,5,6,2,1);&lt;br /&gt;
$delete=array(4,5,6);&lt;br /&gt;
$add=array(11,12,12,18);&lt;br /&gt;
&lt;br /&gt;
foreach($array as $k=&amp;gt;$val)&lt;br /&gt;
{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if(in_array($val, $delete))&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; unset($array[$k]);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
}&lt;br /&gt;
$result = array_merge((array)$array, (array)$add);&lt;br /&gt;
arsort($result);&lt;br /&gt;
print_r($result);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3) array_count_values — Counts all the values of an array&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$arr=array(a,c,k,n,n,h,r,a,a,a,c,h,b,h,k,n);&lt;br /&gt;
print_r(array_count_values($arr));&lt;br /&gt;
&lt;div&gt;?&amp;gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://get-blognotes.blogspot.com/feeds/43480571728521783/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://get-blognotes.blogspot.com/2012/01/php-array-functions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/43480571728521783'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/43480571728521783'/><link rel='alternate' type='text/html' href='http://get-blognotes.blogspot.com/2012/01/php-array-functions.html' title='PHP array functions'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02518662871932285564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>5, Koti Main Rd, Koti, Hyderabad, Andhra Pradesh, India</georss:featurename><georss:point>17.385044 78.486671</georss:point><georss:box>16.4143455 77.2232435 18.3557425 79.750098500000007</georss:box></entry><entry><id>tag:blogger.com,1999:blog-3797173834114842053.post-3765589342566433001</id><published>2012-01-24T17:37:00.001+05:30</published><updated>2012-01-24T17:41:38.994+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blog Notes"/><category scheme="http://www.blogger.com/atom/ns#" term="jQuery Tutorial"/><title type='text'>Back to Top Scroll Up</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;The following Javascript will go to top of the page, when the link is clicked.&lt;br /&gt;
// JavaScript Document&lt;br /&gt;
&lt;br /&gt;
var up_timer&lt;br /&gt;
&lt;br /&gt;
function getPosition(){&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;yoko = document.body.scrollLeft || document.documentElement.scrollLeft;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;tate = document.body.scrollTop &amp;nbsp;|| document.documentElement.scrollTop;&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function pageup(x,y){&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if(up_timer) clearTimeout(up_timer);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if(y &amp;gt;= 1){&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;getPosition();&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;var divisionY = (tate-(tate/5));&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;var Y = Math.floor(divisionY);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;window.scrollTo(yoko,Y);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;up_timer = setTimeout(&quot;pageup(&quot;+yoko+&quot;,&quot;+Y+&quot;)&quot;,2);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}else{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;window.scrollTo(yoko,0);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;clearTimeout(up_timer);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function scrollup(){&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;getPosition();&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;pageup(yoko,tate)&lt;br /&gt;
}&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://get-blognotes.blogspot.com/feeds/3765589342566433001/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://get-blognotes.blogspot.com/2012/01/back-to-top-scroll-up.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/3765589342566433001'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3797173834114842053/posts/default/3765589342566433001'/><link rel='alternate' type='text/html' href='http://get-blognotes.blogspot.com/2012/01/back-to-top-scroll-up.html' title='Back to Top Scroll Up'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02518662871932285564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>