TinyPortal

Development => Support => Topic started by: nomadic on May 25, 2011, 08:12:21 PM

Title: Shoutbox Redirect Issue
Post by: nomadic on May 25, 2011, 08:12:21 PM
Link to my site: http://www.thecbg.org/SMF
SMF version: 1.1.13
TP version: 1.103 (1.0 RC1.1)
Default Forum Language: English
Theme name and version: Silver Plus 1.1
Browser Name and Version: Firefox 4.0.1
Mods installed:

I'm in the process of setting up and testing new forum software using SMF with tinyportal and I want to make it feel similar to the old forums we are running on. I am having a minor problem though in that when you put something in the shoutbox on the frontpage and hit shout it redirects you to the forums. I don't want the shoutbox to redirect at all. I did some searching on this and found several topics that talked about it with everyone being redirected to a particular post (this one (http://www.tinyportal.net/index.php?topic=23213.msg188221#msg188221)) to explain how to fix it. However the post seems to be for an older version of tinyportal as when I went in to try and do what it says to do and the first fix is already implemented in my fresh install and the second one did absolutely nothing. I would really like it so that you wouldn't be redirected when posting in the shoutbox but I am unsure about what to do and any help would be appreciated.
Title: Re: Shoutbox Redirect Issue
Post by: IchBin on May 25, 2011, 08:38:23 PM
Hmmm... I think I remember seeing a bug related to this before. In the tp-files/tp-modules/TPShout/Sources/TPShout.php file find this code:
// if using mod rewrite, go to forum
if(!empty($modSettings['queryless_urls']))
redirectexit('action=forum');
else
redirectexit(strip_tags($_POST['tp-shout-url']),false,true);


Replace it with this:

redirectexit(strip_tags($_POST['tp-shout-url']),false,true);


I think the friendly url's option in SMF causes this issue. Please post back if it works.
Title: Re: Shoutbox Redirect Issue
Post by: nomadic on May 25, 2011, 09:33:51 PM
Worked like a charm, thank you very much. :)