need a lot of help
Posted 09 September 2006 - 01:19 AM
I have in the past built a very basic content management system and a small and light forum and am now trying to intergrate them together to make a start with the new system but I have no idea how to go abouts doing it, i dont know how I can make things into "modules" I haven't got a clue how I can import all the old users passwords across from the current site as I dont know how to make the system decode the encrypted passwords generated by php-nuke or are they generated by mysql? Currently, the forum and cms I made the passowrds arent encrypted at all and want to give a bitmore security to it.
Another problem I've been having is trying to figure out how to do changeable templates. I've been starting to mod this into the forum on my site which is the same as the one I'm putting into the portal and keep having a few difficulties. I put a theme thing in the database under both config for a default and under the user so they can choose but have been getting stressed out as my 'if' and 'else' commands aren't working right as i've got it like if its a user then show the template from them but if its not get it from the config but it ether chucks up a load of code saying nope, i dont wanna do that all your codings wrong or it it wont change at all and stays on the default skin.
If somebody could help me I'm be most greatfull, and if somebody is willing to talk me through it on msn my login is firstname.lastname@example.org can get me on yahoo too through blink182maniack but I dont go on there very often.
thanks in advance,
Posted 09 September 2006 - 01:26 AM
Posted 09 September 2006 - 01:30 AM
Posted 09 September 2006 - 02:08 AM
Since your first problem relates to a specific third party script, I'd suggest you post a specific problem/request there rather than in PHP Help. Do remember that people are more likely to help when they know you're working towards a solution rather than sitting back hoping someone will do it all for you. After all, these are 'help' forums, not 'helpless' forums. Narrow your problems down to the specifics, post some useful information about your code - what it does right/wrong, what it doesn't do, etc.- and your chances of getting help will improve enormously.
If you don't get semi-immediate help, don't post the same question in a different forum (moderators love deleting duplicate posts), it just means the person who really can help is sleeping or out shopping and will show up soon ... maybe.
Posted 09 September 2006 - 02:22 AM
I have have added a templates field into both my config and my users tables and at the top and bottom of the page where it calls in the header and footer I put an "if/else" command in so it would be like
<?php require('/templates/$template/header.php.inc'); ?>
but it didn't like that as I only had the directory name stored in the database which it would pull up and slot in the place of the "$template" tag but it didn't seem to work
Posted 09 September 2006 - 02:28 AM
$template = 'blah'
where blah is the name of the template folder.. Or if storing the template information in the database, you will need to make a connection to the database to retrieve the template name and store it as the $template variable.
Posted 09 September 2006 - 02:37 AM
Will have another shot tomorrow, will try just doing changeable templates through the admin first, if that works then I'll see if I can get it to work with users too using the if/else command. Right now, I'm heading off to bed so will let you know how I get on tomorrow.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users