This content has been marked as final. Show 2 replies
You can set the article id to a session variable and use that. This will only work single threaded (i.e., multiple separate logins to view multiple articles created before login will all go to the same article. Ideally you want to pass a $_GET (URL variable) parameter to the main login page and redirect to the appropriate page from your main login page.
Otherwise adding some PHP to includes/tng/tNG_config.php and changing the values of $tNG_login_config_redirect_success and/or $tNG_login_config["redirect_success"]. You will need to use isset() a lot to write safe code and you need to be careful about preventing injection attacks.
$input_integer_value = isset($_GET['some_integer_input']) ? (int)($_GET['some_integer_input']) : 0;
You can then directly set new values for the login redirect at runtime. You just need to be careful with how you modify these automatic files or you can break them so adding code at the very bottom of the file might be wise with ADDT.
Thanks for the reply. I'm not that good with php yet. I see the line in tNG_config.inc.php that redirects the user on successful login but i don't understand the code that you suggest I use.
I've been building this blog based on the DW 8 and Interakt tutorial here
and trying to adapt it to DW CS3 and ADDT.
Anyway, if you can help more I appreciate it, otherwise I'll keep muddeling through.