View Single Post
  #7  
Old 03-12-2006, 01:43 AM
jdleung Offline
pixelpost guru
 
Join Date: Feb 2006
Location: Foshan, China
Posts: 553
my original intention is that first showing my favorite images(specified category) in the front page,and then visitors can choose to go into my blog site which is ordered by datetime(normal PP). So I'm thinking how to automatically show category image when the first page loaded.

and GeoS gave me a suggestion adding this:
if(!isset($_GET["category"])) $_GET["category"] = My_category_id ;

it works,but when I want to show images ordered by datetime without any category,it always goes to the specified category.

and the above code from Geos give me inspiration, and find codes in index.php, so add like this:

if (!isset($_GET['showimage']) && !is_numeric($_GET['showimage']) && !isset($_GET["category"]))
{
if(!isset($_GET["category"])) $_GET["category"] = My_category_id;
}

Have fun.

Thanks again,GeoS.
__________________
jdleung's.com @ flickr @ fotoblogs.cn & Addons:Month Calendar & Slideshow & Flickr comment & Modified Addon: Calendar
Reply With Quote