Topic: Full intergration into a pre-existing website.
Hi, I'm a new user here, but I've been using CuteNews on and off for years! I first used CuteNews as an alternative to Newspro, so so many years ago. However, a while back, I closed my personal site, and since then the clients I've built sites for wanted something more along the lines of a CMS. However, I decided to help a buddy out, and build him a website under the pretense that it's done entirely my way (beyond the design), and the first thing I did was installed CuteNews. However, things have changed... lol
I'm using 1.5.3 right now.
Here's what I'm attempting to accomplish: a full integration into a website (to avoid anyone BUT admins seeing where CuteNews is installed). I've gone as far as I can, and I'm down to two last steps. I was able to get the news to show within my site without a problem, but the two parts that I also want to get included into the site are user registration (for comments) and a login section (for everyone).
My site is made using simple PHP. One index.php file, that every other page is included into. I attempted to include the registration page into my site, but because of this line:
require_once(SERVDIR.'/skins/'.$config_skin.'.skin.php');
It breaks my design pretty bad. I commented out that line, and it strictly shows the registration page form, but the captcha does not work. Also, the register form has a form action of index.php, which again wont work. When I used the form without the captcha working, it just takes me back to my index.php (obviously), and I have no idea if it worked at all. I'm thinking the easiest way to accomplish this would be to make an independent page (such as register.php) that calls functions from the CuteNews register file, so we don't have to edit any actual system files. I'm just having trouble figuring out how to do that exactly..
The other thing I'd like to do, is a user login/session start type of system. For example, when you first go to the page (or otherwise not logged in), it shows you as not logged in and displays a username/password box. Then, once you (successfully) login, it just echos a little text like "Hello UserName" (which could maybe be added on to later?), and then it keeps you logged in as you browse the site.
Currently, I have my CuteNews installed into a folder named "admin", and if I can do these last two things, then a casual user will never know the directory CuteNews is installed in, which will add just a slightly higher level of security, not to mention just looking prettier.
Once I have a login section finished, then I'll add a link only visible to admins, taking them to the admin section. That way my friend and his wife (the ones who'll actually be using this) wont have to remember anything other than their user/pass.
Thanks for anyone who can help, I really appreciate it!