Jump to content

Archived

This topic is now archived and is closed to further replies.

sim0ng

need a lot of help

Recommended Posts

I'm trying to create a new portal system to run a site of mine off, currently its running on an extremly modified version of php-nuke... well... I built a new system but based on nuke and ripped loads of code rather then writing my own which I completeley regret now as I have a lot of problems.

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 simon@sim0ng.com  can get me on yahoo too through blink182maniack but I dont go on there very often.

thanks in advance,
simon :)

Share this post


Link to post
Share on other sites
Not to sound negative, but this sounds a bit like a lifetime's work rather than a 'lot' of help.  You [i]might[/i] be able to persuade someone to give you a few pointers on one or two of those, but trying to talk someone through fixing home-brewed code is not for the faint-hearted.  Don't be too disappointed if there are no takers on your request for free help.

Share this post


Link to post
Share on other sites
mainly... i just need to know what bit of code in php-nuke decodes users passwords and how to make a start page for the user and admin sides of the portal... the changeable templates can be added in at a later date but thought i may aswell ask it and everything else I asked in one go rather then making multiple questions over and over.

Share this post


Link to post
Share on other sites
You're more likely to find a friendly, helpful, responsive soul if you break things down into discrete problems rather than an overwhelming shopping list.

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.

Share this post


Link to post
Share on other sites
okay, I'll bear that in mind for next time and I dont really know what to show, I deleted the templates code I had because it wasn't working and I was getting far to stressed with it so thought I'dleave it and see if anybody could shine a light on how to do it.

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

Share this post


Link to post
Share on other sites
did you define the $template variable?

i.e.
$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.

Share this post


Link to post
Share on other sites
i did indeed but i cannot remember exactly what I wrote as I deleted it after ages of playing about trying to make it work with no luck.

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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.