Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Oct 2002
Posts: 18
KLB
Offline
Newbie
Newbie
Offline
Joined: Oct 2002
Posts: 18
I would like to set it up so that users would be sent directly to the forum (as opposed to main index) when they log on and delete the Mian Index feature. Is this possible?

Sponsored Links
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Do you mean have them sent to the forums list (ubbthreads.php) regardless of their preferences? Currently there's two choices, they can be taken to "My Home" or the "Main Index". What you want to do is overide their choice?

If so you need to edit your ubbt.inc.php file. Down around line 1144 you should see a line that looks like this:

if ( ($startpage == "mi") && ($firstlogin) ) {


Add this line just above that line:

$startpage = "mi"; $firstlogin = "1";






I think that should do it.

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I missread your post. You want to send users to a specific board and not the forums list? If this is what you want to do then I don't have a clue as to how one would go about this...

perhaps sending a header with postlist.php and the related variables after a successfull login.

Joined: Jun 2002
Posts: 375
Enthusiast
Enthusiast
Offline
Joined: Jun 2002
Posts: 375
Forward to THE forum? You only have one forum I take it? Exactly which page do you want them forwarded from? A little more info would be helpful...

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
My guess would be he wants to go to postlist.

There was a mod somewhere that allowed you to choose IIP as a default page after login... I bet that could be adapted if that was the case.

If nobody beats me to this, I'll look at this later this evening.

Sponsored Links
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
But how does one decide what board postlist is to use for the viewer logging on?

That's my question... lol

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yeah, good point.


Joined: Jun 2002
Posts: 375
Enthusiast
Enthusiast
Offline
Joined: Jun 2002
Posts: 375
Yeah I made a startpage hack that would add an option to send them to any page on the site.

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Yes but going to postlist.php without a board being defined gives the "access denied" error page. One needs to define the board the viewer is to be taken to at login. It's still doable but needs some database work, I think.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yeah.... definitely would need to pass a board keyword along with it.

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Just looked at that hack....

you probably would know for sure.... but it looks like where it's got this:

code:
<meta http-equiv="Refresh" content="1;url={$config['phpurl']}/index.php">



You could change to the actual URL of the forum you wants to drop them into (and you might not want the refresh in there either).... kinda like this:
code:
<meta http-equiv="Refresh" content="1;url={$config['phpurl']}/postlist.php?Cat=&Board=keyword">



Above where I've got "keyword" put the keyword to the forum you want to drop them into. If you don't know this.... hover your mouse over the link to the forum from your main index.... you'll see the keyword in the URL.

Hope that helps.

Joined: Oct 2002
Posts: 18
KLB
Offline
Newbie
Newbie
Offline
Joined: Oct 2002
Posts: 18
I would like them to go to http://www.sbhonline.com/ubbthreads/postlist.php?Cat=&Board=sam if that helps (and yes - I only have one board)

Many thanks.


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,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
Morgan 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)