Burts AIS, osCommerce & More Blog
New URL: www.osworld.biz

Tuesday, January 10, 2006

Niche Creator Hack #2

Someone in the NicheCreator Forum wanted a way to grab the fist keyword from the keywords file. Pretty simple... Step 1: Create a file named "firstkeyword" (without the quotes!) Step 2: In this file paste the following code

<?php
// Garys Super Simple KW1 Grabber 
// © http://osworld.blogspot.com
$array_keyword = file($keywordsfile);
print array_shift(array_values($array_keyword));
?>
Step 3: Save it! Upload it to the /include/ directory. Step 4: You can now place
%%firstkeyword%%
into your template, and this will grab the first keyword for you. 2 lines of code for a simple solution :) Enjoy.

New URL: www.osworld.biz - thanks!

<< Home

View Latest Posts

To View Newer Posts - Click Here!