Previous Thread
Next Thread
Print Thread
Rate Thread
#233134 01/13/2003 12:53 PM
Joined: Jan 2003
Posts: 2
Lurker
Lurker
Offline
Joined: Jan 2003
Posts: 2
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.

Sponsored Links
Joined: Jul 2002
Posts: 19
bud Offline
Newbie
Newbie
Offline
Joined: Jul 2002
Posts: 19
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.

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
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

Joined: Aug 2002
Posts: 109
Journeyman
Journeyman
Offline
Joined: Aug 2002
Posts: 109
No attachment there lol

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
4th post down

link to file



Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Sponsored Links
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
The post above your post in that thread contains the attachment.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)