CuteNews

Welcome Guest ( Log In | Register )

Profile
Personal Photo
Rating
 
Options
Options
Personal Statement
chiipss doesn't have a personal statement currently.
Personal Info
chiipss
Newbie
Age Unknown
Gender Not Set
Location Unknown
Birthday Unknown
Interests
No Information
Statistics
Joined: 9-August 12
Profile Views: 76*
Last Seen: 20th August 2012 - 08:09 PM
Local Time: May 23 2013, 08:57 AM
1 posts (0 per day)
Contact Information
AIM No Information
Yahoo No Information
ICQ No Information
MSN No Information
Contact Private
* Profile views updated each hour

chiipss

Members

*


Topics
Posts
Comments
Friends
My Content
9 Aug 2012
hey ...

i was trying to just edit the example2.php file that comes with cutenews.

i wanted to have it display just one category one a different template.


i put in the following on the indented line.


<?php

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Here we decide what page to include
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

if($_POST['do'] == "search" or $_GET['dosearch'] == "yes"){ $subaction = "search"; $dosearch = "yes"; include("login/search.php"); }
elseif($_GET['do'] == "archives"){ include("login/show_archives.php"); }
elseif($_GET['do'] == "stats"){ echo"You can download the stats addon and include it here to show how many news, comments ... you have"; /* include("login/stats.php"); */ }
elseif($_GET['do'] == "hours")$number=10;$template="hours";$category=5;include("login/show_news.php"); }
else{ include("login/show_news.php");}

?>

let me know if you have a way to make it work.
thanks.
Last Visitors
chiipss has no visitors to display.

Comments
Other users have left no comments for chiipss.

Friends
There are no friends to display.
RSS Lo-Fi Version Time is now: 23rd May 2013 - 12:57 PM