Pages 1
You must login or register to post a reply
- Registered: 2012-04-04
- Posts: 4
Topic: Style issue
I've got a problem. I decided to seperate my archieved news to pages. Example: http://lenakatina.tatushow.com/video-of-the-year.php (this page includes in php the archieved news from show_archives.php), but when you go to the comments, it is plain, blank page. I have no idea how to fix it
- Registered: 2012-04-28
- Posts: 1
Re: Style issue
I have a similar problem. Anyone an idea?
- Registered: 2005-08-28
- Posts: 16,512
Re: Style issue
what's your CN include code.
Strangley enough your comment link links to show_archives.php
- Registered: 2012-04-04
- Posts: 4
Re: Style issue
I fixed it! Just upload your style.css to the news directory, edit show_archives.php like at the beginning of the file the header of your site up til the content, and then leave the code where you usually have the text, and then add rest of your site like footer and sidebar, and when you want to seperate the news to a file, then make a new php file like firstnews.php and use this code:
<?PHP
echo file_get_contents('news/show_archives.php?archive=1333876794&subaction=list-archive&');
?>
any questions?
- Registered: 2005-08-28
- Posts: 16,512
Re: Style issue
<?PHP
echo file_get_contents('news/show_archives.php?archive=1333876794&subaction=list-archive&');
?>
any questions? smile.gif
yes. Why you think the original author bothered writting a readme.
Your code is all wrong.
And there are 2 good hacks to do the same as you're trying to do with that file_get_contents();
NEVER EVER edit show_news.php or show_archives.php to include html.
- Registered: 2012-04-04
- Posts: 4
Re: Style issue
yes. Why you think the original author bothered writting a readme.
Your code is all wrong.
And there are 2 good hacks to do the same as you're trying to do with that file_get_contents();
NEVER EVER edit show_news.php or show_archives.php to include html.
Sad none of them bothered to write one of these two good hacks.
Posts: 6
Pages 1
You must login or register to post a reply