runnerjp Posted March 5, 2007 Share Posted March 5, 2007 hey guys.. ok this is pritty big and complex so i will try my best to tell you lol ok me and a friend have come up wiht a profile script but we are now stuck...this is why The way the program works is when someone visits the user's profile page, the script detects the directory using php's cwd function. The profile info is indexed in the database by the full directory path. After the lookup, the script plugs in the info for that profile. This can only work in the user's directory. i had to make it so that the user area was installed by the script so that it solved sum security issues. we want to modify the script so that we have a header and and body what we use for all other bits of information like so (i will just paste the body because this is where the content needs to go) <center><?include("include/info.inc.php"); ?></center> <?include("$menu");?></td> <td width="1%" align="left" valign="top" bgcolor="#FFFFFF"> <div id="linedown"> <img src="http://www.runnerselite.com/images/linedown.jpg" alt="linedown"></div></td> <td width="84%" align="left" valign="top"> <? if (file_exists($content)) { include($content); } else {?><?echo $content;?> </p><?} ?> see the content script is where we have all the content show With haveing it so that we link the body and header with the users profile, nobody else would see the user's profile since the profile would be in the main directory and php's cwd function couldn't get the individual info to use. any ways we can work round it ?? hope thats informational for you lol Link to comment https://forums.phpfreaks.com/topic/41263-profile-website-help-needed/ Share on other sites More sharing options...
runnerjp Posted March 5, 2007 Author Share Posted March 5, 2007 hot no ideas at all n e 1? Link to comment https://forums.phpfreaks.com/topic/41263-profile-website-help-needed/#findComment-200051 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.