Hey there! I have succesfully installed this script, admin panel works fine (Server type Windows IIS7; Register_GLOBALS ON)
http://love-energy.net/index.php?id=1
Check this at the bottom of page, i see there only news posted, where's form to post comment etc?
And by the way, if i want to post news on separate pages for example www.love-energy.net/news.php (category - NEWS) and www.love-energy.net/interesting-news.php (catergor - Interesting)
how to make this work?
Access: Admin
Total Posts: 1395
Joined: 2006-05-19
Because you're using IIS it means you won't be able to use friendly URLs unfortunately. They require the use of Apache's .htaccess files which don't work in IIS. I'm still trying to find a solution to this.
To get the comments form to show you click on the " 0 Comments" link, but you'll need to disable friendly URLs first for that to work.
Edit: Also, I would recommend turning off register_globals, as this could cause security problems.
And to have news displayed on different pages using different categories you specify the category before the include code like so.
love-energy.net/news.php
Code:
<?php $cat[] = "news"; include 'news/index.php'; ?>
love-energy.net/interesting-news.php
Code:
<?php $cat[] = "interesting"; include 'news/index.php'; ?>
Because you're using IIS it means you won't be able to use friendly URLs unfortunately. They require the use of Apache's .htaccess files which don't work in IIS. I'm still trying to find a solution to this.
To get the comments form to show you click on the " 0 Comments" link, but you'll need to disable friendly URLs first for that to work.
Edit: Also, I would recommend turning off register_globals, as this could cause security problems.
I've disabled friendly URL, but still when i press on "0 Comments" page keep just refreshing, nothing happens, no form etc
Access: Admin
Total Posts: 1395
Joined: 2006-05-19
Register globals would indeed cause the script not to work correctly. Depending on how your host is setup you might be able to disable it my creating a new php.ini file and placing it inside your main www directory and the news directory, inside it put this code
Code:
register_globals = OFF
This will only work though if your host allows it. Register globals is soon to be removed from the next version of php so if this doesn't work I would recommend finding another host which allows you to turn it off or has it off by default.
Register globals would indeed cause the script not to work correctly. Depending on how your host is setup you might be able to disable it my creating a new php.ini file and placing it inside your main www directory and the news directory, inside it put this code
Code:
register_globals = OFF
This will only work though if your host allows it. Register globals is soon to be removed from the next version of php so if this doesn't work I would recommend finding another host which allows you to turn it off or has it off by default.
Its not allowed! Can u show me a page, with this script on?
Register globals would indeed cause the script not to work correctly. Depending on how your host is setup you might be able to disable it my creating a new php.ini file and placing it inside your main www directory and the news directory, inside it put this code
Code:
register_globals = OFF
This will only work though if your host allows it. Register globals is soon to be removed from the next version of php so if this doesn't work I would recommend finding another host which allows you to turn it off or has it off by default.
Its not allowed! Can u show me a page, with this script on?
i can change server type on UNIX/APACHE (Php_mod), but does worth it? What should i write in .htaccess in order to turn register_globals off
Access: Admin
Total Posts: 1395
Joined: 2006-05-19
Before you change your server to unix/apache I would first consult your host to ask if it's possible to disable register_globals as they may have disabled it there too.
Before you change your server to unix/apache I would first consult your host to ask if it's possible to disable register_globals as they may have disabled it there too.
They told me - thats its possible, with .htaccess file. I heard That UNIX/Apache is a lot better for php site?