Previous Thread
Next Thread
Print Thread
Rate Thread
#233134 01/13/2003 12:53 PM
Joined: Jan 2003
Posts: 2
W
William Offline OP
Lurker
OP Offline
Lurker
W
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
B
bud Offline
Newbie
Offline
Newbie
B
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
J
That 70's Guy
Offline
That 70's Guy
J
Joined: Jun 2001
Posts: 3,273
If I understand correctly then this modification may be what your looking for:

https://www.ubbdev.com/threads/php/...collapsed&sb=5&o=186&fpart=1

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

Joined: Feb 2002
Posts: 2,286
Veteran
Offline
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
J
That 70's Guy
Offline
That 70's Guy
J
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
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,551
Posts293,833
Members13,838
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 403
Topics Created 0
Posts Made 0
Users Online 2
Birthdays 30
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,808
Greg Hard 4,625
Top Posters(30 Days)
isaac 25
WebGuy 6
Gizmo 2
Top Likes Received
isaac 62
Gizmo 12
Brett 7
Morgan 2
Top Likes Received (30 Days)
isaac 16
WebGuy 2
Gizmo 2
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2020 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.5
(Release build 20201027.dev)
Responsive Width:

PHP: 5.4.45 Page Time: 0.053s Queries: 27 (0.022s) Memory: 3.2967 MB (Peak: 3.4980 MB) Data Comp: Zlib Server Time: 2020-10-31 07:15:38 UTC
Valid HTML 5 and Valid CSS