right_side
Due to lack of time, I could not implement sub category module, but I have implemented basic module for one of my client and updated cms.
 
I have updated the main Flax Article CMS, in this update I have made changed in functions.php and category.php file Here is the new function which I added in functions.php file
 
function get_sub_cats($cat_id) {
global $settings;
$g_arr = explode(”,”,SKIN_VARS); foreach($g_arr as $key => $val) global ${”$val”};

$cat_data = Array();
$res=query(”select * from {$prefix}category WHERE cat_parent_id=$cat_id”) or report();
if(mysql_num_rows($res)==0) echo “”;

else {
for($i=0;$i

$row=fetch($res);

$cat_url = $settings['set_seo_onoff'] ==’on’
? “$root_path/category/”.plaintext($row['cat_name']).”-$row[cat_id]-1.html”
: “$root_path/category.php?cat_id=$row[cat_id]“;
$cat_data []= “$row[cat_name]“;
}
}
return implode(” | “,$cat_data);
 }
 
this retrieves all the sub-categories of any specific category ID you pass to the function, and displays it through category.php file, well I never planned sub-categories to be displayed like this, but since I am currentluy busy, I hope it will be a quick update for the people who have been waiting for it, sorry mates, but its good with versoin 1 I guess.
Posted on 20 Nov 2008 In: Random Thoughts

Six Basic Tips For Google Adsense

Google Adsense is a quick way to earn some money, but learning the Google Adsense secret can mean earning even more. Google Adsense is an advertising program that pays you to display ads on your site, using a pay-per-click program. The host site can actually choose between text or image ads. Google will send a check when your account reaches $100, but be aware that this can take some time if you’re just starting out. You may, however, be paid more quickly than you thought, depending on how well you use the program.

If you aren’t already using Google Adsense, you should start; it’s an opportunity you don’t want to miss. Signing up isn’t hard; you simply fill out the information and click on “send”. After Google receives your information, they send a confirmation email, to which you must reply before getting started.

Here are a few Google Adsense Tip ideas that can help you.

- Start a blog about something specific, instead of just making random entries. For instance, if you wanted to sell chocolates, you would write all about chocolates. You wouldn’t stray over to politics or horses, unless they had a connection. This can also help you to keep your traffic.

- Optimize the words you use. I learned that if you bold certain keywords, the Google ads that relate to them will pop up. This can help you with your click-through rate.

- Make sure your site can be easily navigated. If a clicker can’t find his or her way through your site, they probably won’t be coming back.

- Learn where you should place your ads for more optimal click-through exposure.

- Always keep your site current; this helps in keeping your customers coming back to see what is new, and this in turn helps your click-through rate.

- Use the most popular keywords. Advertisers pay more to put their ads on sites that contain popular keywords, as these sites will be visited most often. This will bring in more traffic to your site, resulting in higher click pay rates. There are software programs that you can use to find the most currently popular keywords.

Google actually has a blog that tells about their Google Adsense Tip for the day and any Google news. There are also forums by Google and their affiliates where others will help you to uncover the Google Adsense secret to success. Whether you want to make $5 a week, or $500, Google can be the way to go. Learn the Google Adsense secret and start earning hundreds of dollars a week instead of just a few pennies.

Author : Mike Lane

Posted on 20 Nov 2008 In: Random Thoughts

Are Adsense ready sites a good idea

Are Adsense Ready Sites a good idea ? Many would say that this makes it a lot easier for people who want to make money with adsense because it saves a lot of time but I think you should think twice before paying.

Numbers And Observations -Let’s start with some hard facts about how much a click can be worth. There are a lot of numbers floating around about how much a click can be worth to your site. And from what we have seen this number can be anywhere from $0.01 to $20.0. Sorry we can’t disclose what kind of advertising can generate those higher numbers. On average this number is about $0.25 per click.

-Next important factor is how many clicks can a web site get which will materialize in revenue. If you think though this, you will soon realize it depends on how many visitors you have for your web site. Unless you are a site like MSN, Yahoo or Google this number could be anywhere between 500-5000 visitors per day depending on ranking of your web site’s content. And if you are a new web site, then you will be lucky if you can get 50 users per day to start with.

And these site who are selling these adsense ready web sites are not sites which people visit to buy something or have very latest and greatest news on those topics. These people have copied content from here and there creates pages which are same for every single web site they create in that category.

Here is a kicker for you. Search engine algorithms are very mature to detect duplicate content in no time. Especially google is very strict about this. A site with duplicate content on mirror locations or multiple back door sites get punished pretty heavily. And I have a first hand experience with it.

I was in middle of moving a site from one domain to another and forgot to block searchbot access to old site. Google’s bot indexed both sites and detected dupplicate content. And in no time site’s ranking was dropped. It took us time to bring it back up but we finally did it. But this is a very serious point to think about. So if you are buying these readymade web sites, for quite some time do not expect lot of traffic.

- Next important number is page impressions or how many times ads are getting streamed or displayed on site. Again it depends on what kind of site you have. And how much content you have on web site. These ready made web sites are not going to give you a web site with hundreds or thousands of pages. You will be lucky if they can offer you a site with 10 pages.

- And now comes the very important number. CTR, click through rate. This number is how many clicks you get per page impression of the ads. This number is very critical. Think about your own experience with web surfing and how many ads do you click when you are visiting a web site or when you are searching some content and land on a page where ads are being displayed. Do you click on every single advertisement or banner? I am sure your answers is NO.

My advice to you is to create your own adsense sites from scratch.

To get quality unique content, you can hire some ghostwriters to write articles for your sites between $9 and $15. This way you’ll have good content on your website. To learn how to easily create an adsense site you can download this great e-book here:

www.Free-Adsense-Ebook.com

Here you’ll learn how to find a profitable niche and quickly create an adsense site that will bring you revenue. This e-book is avaliable for instant FREE download, so make sure you read it.

About the Author

To learn more about adsense ready sites visit our blog: http://adsense-ready-sites.blogspot.com

How to create working TABS with javascript and show-hide layers

I am currently working on a CMS project, and the company required a solution to display web TABS on the index page, where they can list the most recent BLOGS from different categories such as “College Football”, “College BasketBall” and “College Lacross”, basically this site is about College Sports. I was pretty confident to develop one for myself knowing that my Javascript knowledge is not as expert’s level, but still it was pretty basic to develop. Due to overload of work, what I did was, I used an open source web tab, but the bad thing was it was extremely difficult to skin it, change colours etc, and it had 3 separate .js files and also separate .css file, which was too bad since it was difficult to change its style, and my client also hated it :) they asked me to change a new within an hour.

the working example of the tabs can be found here
http://www.flaxweb.com/projects/sports

Note : remove * from the all parts of the script below.

The first step I did was to write basic css so that I can change its text colours etc etc. So here it is..

<*style>
.tab_hover {
background-color:blue;
color:white;
cursor:pointer;
width:137px;
height:20px;
background-image:url(./images/ltab_blue.gif);
border:0px;
text-align:center;
font-family:verdana;
font-size:12px;
font-weight:bold;
}
.tab {
background-color:blue;
color:white;
cursor:pointer;
width:137px;
height:20px;
background-image:url(./images/ltab_blue2.gif);
border:0px;
text-align:center;
font-family:verdana;
font-size:12px;
font-weight:none;
}
.data_tab {
border:1px solid gray;
width:500px;
height:100px;
text-align:left;
font-family:verdana;
font-size:12px;
padding:.3em;
}

In the second step I created two images, one for which tab is selected, I named it ltab_blue.gif and placed it in the “images” folder, its always recommended to use a separate folder for your images. The second image was for the other two tabs which were not select, and I renamed that image ltab_blue.gif2.gif and placed it in “images” folder.

Third step was to write a very basic script which will show / hide layers, so here it is

<*script>
last_tab = ‘tab1′;
function show(layerName) {
document.getElementById(layerName).style.display = ”;
}

function hide(layerName) {
document.getElementById(layerName).style.display = ‘none’;
}

function show_next(tab_name) {
document.getElementById(last_tab).className = ‘tab’;
var curr = document.getElementById(tab_name);
curr.className=’tab_hover’;
hide(last_tab+’_data’);
show(tab_name+’_data’);
last_tab=tab_name;
}
</sript>

Place the above code in tag. You already know that ? yeah most probably, but just wanted to mentioned for the noobs :) The code which I placed in the tag is

<*table cellpadding=0 cellspacing=0 border=0>
<tr>
<td id=tab1 class=tab_hover onclick=”java script:show_next(’tab1′)”>Football</td>
<td id=tab2 class=tab onclick=”java script:show_next(’tab2′)”>Basketball</td>
<td id=tab3 class=tab onclick=”java script:show_next(’tab3′)”>Lacrosse</td>
</tr>
<*/table>

<*table width=”50%” border=”0″ cellspacing=”0″ cellpadding=”0″>
<tr>
<td valign=”top” width=”100%”>
<div id=tab1_data>
$tab1_data
</div>
<div id=tab2_data style=’display:none’>
$tab2_data
</div>
<div id=tab3_data style=’display:none’>
$tab3_data
</div>
</td>
</tr>
<*/table>

that’s it, I wont include the source, you should give it a try and see the results yourself, that’s how we learn. By the way you can also control these tabs with external command buttons like this

<*input type=button onclick=”javascript:show_next(’tab1′)” value=’Select Tab1′>
<*input type=button onclick=”javascript:show_next(’tab2′)” value=’Select Tab2′>
<*input type=button onclick=”javascript:show_next(’tab3′)” value=’Select Tab3′>

I hope this will help someone is someway :)
oh yeah I know, YOU ARE WELCOME…