<?xml version="1.0" encoding="UTF-8"?>
 		<rss version="2.0"><channel>
 		<title><![CDATA[Cyfervoid // Robert Concha Weblog]]></title>
 		<description><![CDATA[Articles]]></description>
 		<link>http://cyfervoid.com/</link>
 		<copyright><![CDATA[Copyright Cyfervoid // Robert Concha Weblog]]></copyright>
 		<generator>sNews CMS</generator><item>
			<title><![CDATA[Tweet Counter Button]]></title>
			<description>
				<![CDATA[
				<p>Twitter is totally hot now a days and everyone is getting to like it. I myself used twitter on my site. The green button on the right block of each article which is twitter counter button from tweetmeme service is the one we are going to create but with a different service. There's a new service that will help us create the counter button by adding only two or three lines of code, its called <a href="http://www.retweet.com" title="ReTweet">ReTweet</a>.
<br />
<br />
This one will create the big counter button similar to what im using.


url = 'http://www.example.com/blog/post';




and if you prefer to use the smaller button use this code.


url = 'http://www.example.com/blog/post';
size = 'small';




If you are programmer you can easily integrate it to your blog or site but for those who find it hard. I will provide you a premade code that will get the url of your site automatically and display the button. Copy the code below and save it as php format.<br />


function currentURL() {
 $pageURL = 'http';
 if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
 $pageURL .= "://";
 if ($_SERVER["SERVER_PORT"] != "80") {
  $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"]
.$_SERVER["REQUEST_URI"];
 } else {
  $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
 }
 return $pageURL;
}
$url = currentURL(); //get the current url

//I use big button here, feel free to change it
echo "
url = '$url';

";

<br />
Sample Results:
<img src="http://lh4.ggpht.com/_TqPdHmAEwTM/So8oSHIkY3I/AAAAAAAAFlk/XkBuk-mWbi0/retweet.png" alt="retweet button" />


</p>

				]]>
			</description>
			<pubDate>Sat, 29 Aug 2009 09:53:33 +0000</pubDate>
			<link>http://cyfervoid.com/web/tweet-counter-button/</link>
			<guid>http://cyfervoid.com/web/tweet-counter-button/</guid>
			</item><item>
			<title><![CDATA[Fighting Spam]]></title>
			<description>
				<![CDATA[
				Hi, It's been a long time since I wrote my last post. I have rough days last month that's why I couldn't add even one single post. Recently, I noticed my blog that are attacked by spam and its all over my post and I know its a big problem. What I did was to add code that will check and prevent bots from targeting my site. Today you will notice that the spam post are all deleted but I am confident that my blog now is secured from it.

<br /><br />
Expect more blog entry this month. Bye! Bye!
				]]>
			</description>
			<pubDate>Tue, 18 Aug 2009 14:10:18 +0000</pubDate>
			<link>http://cyfervoid.com/general/fighting-spam/</link>
			<guid>http://cyfervoid.com/general/fighting-spam/</guid>
			</item><item>
			<title><![CDATA[Article Tags Added]]></title>
			<description>
				<![CDATA[
				<p>
Recently, I've been busy doing some <i>to do work</i> for my blog. It include the tags support in every blog entry publish. The idea is to get my meta keywords in every blog post and make it a tags. The tags must be unique in every way and will be shown in small or large font size. So far it is done and im happy on it.<br /><br />

I have also added the <i>about me</i> page in my blog, You can see that it is short but maybe I will update it some other time. It get things more excited this time so just stick on it and you will enjoy my blog :).

</p>
				]]>
			</description>
			<pubDate>Thu, 09 Jul 2009 11:58:36 +0000</pubDate>
			<link>http://cyfervoid.com/general/article-tags-added/</link>
			<guid>http://cyfervoid.com/general/article-tags-added/</guid>
			</item><item>
			<title><![CDATA[Creating Tabs and Sliders in Joomla]]></title>
			<description>
				<![CDATA[
				<p>
Do you know that joomla has a built in library for tabs and sliders? It is available in joomla 1.5 inside the <a href="http://api.joomla.org/Joomla-Framework/HTML/JPane.html">JPane class</a>, It is an abstract class that has seven methods. The getInstance method in JPane class return reference to a JPanel object either tabs or sliders. The following code get the object of tabs and sliders.<br />




//include first the JPane class
jimport('joomla.html.pane');
//JPaneTabs instance
$myTabs = & JPane::getInstance('tabs',array('startOffset'=>0)); 
//JPaneSliders instance
$mySliders = & JPane::getInstance('sliders',
array('startOffset'=>0)); 

First, We include the JPane class using the jimport function and create an instance for tabs or sliders. Now, we will use the other four methods. An example implimentation of Tabs will look as follows:
<br /><br />



//Create the pane

$html = '';

$html .= $myTabs->startPane( 'mytabs' );

//Create the 1st Tab

$html .= $myTabs->startPanel( 'Tab-1', 'tab1' );


$html .= '<p>This is the first tab</p>';


$html .= $myTabs->endPanel();

//Create the 2nd Tab

$html .= $myTabs->startPanel( 'Tab-2', 'tab2' );

$html  .= '<p>This is the second tab</p>';

$html .= $myTabs->endPanel();

//End Pane

$html .= $myTabs->endPane();


//show it now

echo $html;

<br />
And for the sliders:<br /><br />



//Create the pane

$html = '';

$html .= $mySliders->startPane( 'mysliders' );

//Create the 1st slider

$html .= $mySliders->startPanel( 'Slider-1', 'slider1' );


$html .= '<p>This is the first slider</p>';


$html .= $mySliders->endPanel();

//Create the 2nd slider
$html .= $mySliders->startPanel( 'Slider-2', 'slider2' );

$html  .= '<p>This is the second slider</p>';

$html .= $mySliders->endPanel();

//End Pane

$html .= $mySliders->endPane();


//show it now

echo $html;

<br /><br />
That is it. Have fun!

</p>
				]]>
			</description>
			<pubDate>Fri, 26 Jun 2009 09:37:23 +0000</pubDate>
			<link>http://cyfervoid.com/web/creating-tabs-and-sliders-in-joomla/</link>
			<guid>http://cyfervoid.com/web/creating-tabs-and-sliders-in-joomla/</guid>
			</item><item>
			<title><![CDATA[PHP Coding Tips]]></title>
			<description>
				<![CDATA[
				In this post I will show and share to you some of the tips in php that will make your code more cleaner, faster and flexible. This is good for beginner who just starting to learn php. There are many shorcuts to achieve the same result output in php.
<br />
<br />


<strong>Single & Double Quotes</strong><br /><br />


For me, single quotes is more faster than using a double quotes. I will try to explain it in my example.<br />


echo '$var - static text here';

// Output: $var - static text here.


$var2 = "Rob";

echo "$var2 - static text here.";

// Output: Rob - static text here.


<br />

As you can see in a single quotes it will not read the variable so it will run fast. Im not telling you not to use double quotes but avoid it as possible.<br />
<br />

<strong>Arithmetic</strong><br />
Okay, we will use some shortcut here.<br />

$var = $var + 1;

$var2 = $var2 - 1;
<br />
Is the same as:<br />


$var ++;
// or
$var2 --;

<br />
<br />

<strong>Control Structure</strong><br />
You can see here the normal if else statement.

    if( $name == 'rob' ) {

        echo 'Rob';

    } else {

        echo 'Not Rob';

    }

<br />
The other statement that will do same result.<br />

echo ( $name == 'rob' ) ? 'Rob' : 'Not Rob';

<br />
<br />

<strong>Concatenation</strong><br />
This example is an email message code.<br />

$message = "Greetings $user, nn"

    ."We have contacted you. n"

    ."You have won!n"

    ."and taking all your assets.nn"

    ."Thank you ";

<br />
<br />Also, use tabs instead of space in formatting your code. Thats all. Hopefully you learn something in this post :).
				]]>
			</description>
			<pubDate>Wed, 24 Jun 2009 14:37:57 +0000</pubDate>
			<link>http://cyfervoid.com/web/php-coding-tips/</link>
			<guid>http://cyfervoid.com/web/php-coding-tips/</guid>
			</item></channel></rss>