Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Problem including news several times

 
Reply to topic    Forum Index » Help View previous topic
View next topic
Problem including news several times
Author Message
Falconer



Joined: 01 Feb 2006
Posts: 50

Post Problem including news several times Reply with quote
Hi all,



I'm trying to convert to CuteNews.RU but I'm running into some really odd problems. I've managed to solve almost everything but one major thing is still not working correctly.



This will be my main page:



http://www.hookedgamers.com/indexm.php



It works fine but then I want to go to the full story of the article on the right side. (Gaming Lag) I push the read more button and it takes me (via PHP Self) to http://www.hookedgamers.com/indexe.php but that page totally screws up on me.



The top 3 images/articles are gone and the box that used to have the short story for the Gaming Lag article is empty. Both show "Post not found." instead of the content they should show. I've been experimenting with $static which made the "Post not found." go away, but didn't show anything at all. I've been at it for hours and I'm not understanding what I'm doing wrong. I've even reverted to the default templates but that didn't help either.



Here are the includes for that page:



<?php

$skip= "3";

$number= "3";

$template = "Articles";

$category = "3, 4, 5, 6";

include $cutepath.'/show_news.php';

?>

note 1: should show the 3 images/articles at the top, works fine on the main page

note 2: if I remove skip, it doesn't even find the template anymore and the entire page falls apart like http://www.hookedgamers.com/indexz.php (click on read more)



<?php

$template = "AndThenSome";

include $cutepath.'/show_news.php';

?>

note 1: this shows the full story of the article clicked on from the main page, this works



<?php

$skip = "1";

$number= "1";

$template = "AndThenSome";

$category = "7";

include $cutepath.'/show_news.php';

?>

note 1: this should show the 2nd article's short story

note 2: it makes no difference if I change $skip = "1" to 0.



Does anyone have an idea of how to get this to work?
Wed Feb 01, 2006 11:10 pm View user's profile Send private message
Guest








Please login to hide the ads.

Ramon



Joined: 12 Oct 2005
Posts: 551
Location: Hoogeveen, NL

Post Reply with quote
Try it again with the next includes..



Code:
<?php

   $skip= "3";

   $number= "3";

   $template = "Articles";

   $category = "3,4,5,6";

   $static['number'] = "4";

   $static['skip'] = "3";

   $static['category'] = "3,4,5,6";

   $static['template'] = "Articles";



   include $cutepath.'/show_news.php';

?>


and



Code:
<?php

   $skip = "1";

   $number= "1";

   $template = "AndThenSome";

   $category = "7";

   $static['number'] = "1";

   $static['skip'] = "1";

   $static['category'] = "7";

   $static['template'] = "AndThenSome";



   include $cutepath.'/show_news.php';

?>

Thu Feb 02, 2006 2:01 am View user's profile Send private message Visit poster's website
Falconer



Joined: 01 Feb 2006
Posts: 50

Post Reply with quote
If you were a girl and sitting next to me, I'd kiss you!



Thanks! Smile
Thu Feb 02, 2006 12:58 pm View user's profile Send private message
Terminator



Joined: 04 Feb 2006
Posts: 31

Post Reply with quote
EDIT: Whoops I'm sorry wrong topic

_________________
Sat Feb 11, 2006 9:06 am View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Help All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.