rogueangel2k
Posts: 2
|
| Posted: 08/29/2004, 3:27 PM |
|
Ok, so I checked out http://docs.codecharge.com/studio/html/QuickStart/EnhAp...rInitEvent.html - as a possible solution to my user specific editing question in topic http://forums.codecharge.com/posts.php?post_id=50465 - So now comes the hard part. I've tried and tried, I can't make the page work, possibly because I know nothing of PHP other than what code charge is doing for me. I am trying yet no matter, I cannot make the page "Non-Public".
Ok, check it. http://rogueangel2k.kicks-ass.net:9000 is my page, not a plug but you get my jist. A user should be able to get to my main page, register (or login) and then click on the "My Account" link (which is not active) and get a page with ONLY their info on it. Here's what the example provides:
global $tasks;
global $Redirect;
global $DBIntranetDB;
$current_task = CCGetParam("task_id", "");
if ($current_task != 0 && CCGetUserID() != CCDLookUp("user_id_assign_to", "tasks", "task_id=".
$DBIntranetDB->ToSQL($current_task, ccsInteger), $DBIntranetDB))
{
$tasks->Visible = false;
// $Redirect = "tasks_list.php";
// $tasks->UpdateAllowed = false;
// $tasks->DeleteAllowed = false;
}
Now is global $tasks the page, or a table, or a variable, i am guessing variable. I am not using auto incremented fields in my accounts table, what is task_id supposed to represent, and $current_task I am stumped, and ready to quit. Should I quit?
Let me know please, gawd help me!!!
2k
_________________
Flying from the inside
2k |
 |
 |
Karsten
|
| Posted: 08/29/2004, 3:58 PM |
|
dont drink so much alkohol 
no just joking...
i think you have an error in SQL relationship or something, im sure its
not a real problem for me to solve if you want me to help send your project to
entwicklung@fivea.de and i take a look on it, dont ask me why i do tis, i think its because i like your writingstyle and i remember my own programming beginnings.
regards
Karsten from germany
|
|
|
 |
|