UBB.Dev
Posted By: William Change the landing page... - 01/13/2003 7:53 PM
I have a forum which I want to start every person who logs into the forum at the same page, is there a way I would be able to modify the code to yield such results?

http://www.lan.homeboyz.com/sandbox/campbellw/Townsquare_dev/student_discussion/login.php

http://www.lan.homeboyz.com/sandbox/campbellw/Townsquare_dev/student_discussion/ubbthreads.php

It comes to the first page once the login is completed. I would however like it to end up at the second URL once the login is completed. I realize that this setting can be set on a per user basis, but I would like to know if it can be set on a site-wide level.
Posted By: bud Re: Change the landing page... - 01/13/2003 10:29 PM
If you want to change the default such that any new user would be directed to the Main Index page, simply modify lines 262 and 263 of the 6.2 version of adduser to include the U_FrontPage and U_StartPage columns and the appropriate values:

Code
<br />         INSERT INTO {$config['tbprefix']}Users (U_LoginName,U_Username,U_Password,U_Email,U_Totalposts,U_Laston,U_Status,U_Sort,U_Display,U_View,U_PostsPer,U_EReplies,U_Post_Format,U_Registered,U_RegEmail,U_RegIP,U_Groups,U_Title,U_Color,U_Privates,U_Approved, U_FrontPage, U_StartPage)<br />         VALUES ('$Username_q','$Username_q','$crypt','$Email_q','0','$date','$Status_q','{$theme['sort']}','$Display_q','$View_q','{$theme['postsperpage']}','$EReplies_q','$PFormat','$date','$Email_q','$ip_q','$Groups_q','$Title_q','$Color_q','1','$approved', 'ubbthreads', 'mi')<br />


If you need to change existing users that could be done with a couple of SQL commands. Additionally, if you want to ignore any user setting, that could be done in ubbt.inc.php.
Posted By: JustDave Re: Change the landing page... - 01/13/2003 11:09 PM
If I understand correctly then this modification may be what your looking for:

https://ubbdev.com/threads/php/...collapsed&sb=5&o=186&fpart=1
Posted By: cstaber Re: Change the landing page... - 01/14/2003 12:50 AM
No attachment there lol
Posted By: Ian_W Re: Change the landing page... - 01/14/2003 12:56 AM
4th post down

link to file

Posted By: JustDave Re: Change the landing page... - 01/14/2003 12:56 AM
The post above your post in that thread contains the attachment.
© UBB.Developers