TinyPortal

Development => Support => Installation => Topic started by: Rafferty on November 09, 2009, 08:57:37 AM

Title: After Logging in TP going to Forum page instead of Home page
Post by: Rafferty on November 09, 2009, 08:57:37 AM
New installation on SMF 1.1.10
TP Ver 1.083 (TinyPortal v1.0 beta 4)
Firefox Browser 3.5.3


Settings in TP are correct (Frontpage Settings: Forum-posts and articles - sorted on date)

Even redirecting with redirection mod to /forum/index.php, it still goes direct to forum, bypassing home page to /forum/index.php?action=forum
Title: Re: After Logging in TP going to Forum page instead of Home page
Post by: IchBin on November 09, 2009, 02:47:46 PM
Login/shoutbox Redirect (http://www.tinyportal.net/index.php?topic=23213.msg188221#msg188221)
Title: Re: After Logging in TP going to Forum page instead of Home page
Post by: Rafferty on November 10, 2009, 12:21:37 AM
I have attempted to make the code change in http://www.tinyportal.net/index.php?topic=23213.0 however the closest I can find is:

redirectexit(strip_tags($_POST['tp-shout-url']),false,true); which appears in two places in TPShout.php

Is this the change required?

Made the change also in subs.php and my forum wont show at all just a blank page.

Title: Re: After Logging in TP going to Forum page instead of Home page
Post by: IchBin on November 10, 2009, 12:28:32 AM
Then you did something wrong in your subs file, otherwise the site would load. Shoutbox is likely fine if you found both instances of the code.
Title: Re: After Logging in TP going to Forum page instead of Home page
Post by: Rafferty on November 10, 2009, 01:01:24 AM
No mistake. The code in subs.php was placed in exactly as shown. I have tried it yet again and same thing, changing the false to true, i get only a blank page when attempting to load the forum.

Title: Re: After Logging in TP going to Forum page instead of Home page
Post by: IchBin on November 10, 2009, 01:06:40 AM
After you have added the code, attach your file here so I can try it out.
Title: Re: After Logging in TP going to Forum page instead of Home page
Post by: Rafferty on November 10, 2009, 01:25:43 AM
Attached
Title: Re: After Logging in TP going to Forum page instead of Home page
Post by: IchBin on November 10, 2009, 05:36:23 PM
Whatever editor you using you should try something else. Your editor when you save it is changing characters as well as line returns etc. Try this file that I've attached. I would suggest you use a good text editor like context or notepad++ for editing text files.

Title: Re: After Logging in TP going to Forum page instead of Home page
Post by: Rafferty on November 11, 2009, 12:03:53 AM
Thank you for the tip, I did suspect it may be that however, the subs.php provided gave me a blank page on log on.
Title: Re: After Logging in TP going to Forum page instead of Home page
Post by: IchBin on November 11, 2009, 04:33:39 AM
So after your blank page, are you able to browse the site? Can you run through the manual edits for TP and make sure they are all done?
Manual edit Instructions (http://docs.tinyportal.co.uk/index.php?topic=140)
Title: Re: After Logging in TP going to Forum page instead of Home page
Post by: Rafferty on November 11, 2009, 04:50:22 AM
will do and ill get back to you.
Title: Re: After Logging in TP going to Forum page instead of Home page
Post by: markym on November 12, 2009, 05:53:28 PM
interesting that all of a sudden I'm having the same problem with my TP forums -- it's loading direct to the forum on login and it used to load direct to the home page.

Theme is Black Rain by Crip
SMF 1.1.10
TP 1.0 beta 4
mozilla 3.5.3

I've not added any mods so I'm stumped as to what has caused it to change how it loads ...

I did find the fix for this problem in another post on this issue -- !
Title: Re: After Logging in TP going to Forum page instead of Home page
Post by: ZarPrime on November 12, 2009, 06:30:29 PM
markym,

Please start your own support topic for this issue.

ZarPrime
Title: Re: After Logging in TP going to Forum page instead of Home page
Post by: markym on November 18, 2009, 02:19:25 AM
 ...well I found the fix in this topic as noted in my post so need to start a new topic, eh? This info below worked perfectly.

http://www.tinyportal.net/index.php?topic=23213.msg188221#msg188221