TinyPortal

Development => Support => Topic started by: karag8z on February 09, 2009, 10:29:53 AM

Title: Tp shout box error?
Post by: karag8z on February 09, 2009, 10:29:53 AM
(https://www.tinyportal.net/index.php?action=dlattach;topic=28113.0;attach=18596;image)
Title: Re: Tp shout box error?
Post by: Ken. on February 09, 2009, 10:35:43 AM
This has been covered many times karag8z. :)
Do a search for 'shoutbox redirect' and you'll find the answer.
Title: Re: Tp shout box error?
Post by: karag8z on February 09, 2009, 11:11:42 AM
i am using beta 2 and i havent any code what bloc say in http://www.tinyportal.net/index.php/topic,23213.0.html (http://www.tinyportal.net/index.php/topic,23213.0.html). Also my shoutbox loo sux. dont u look screenshot?

he said
Open up tp-files/tp-modules/tp-shoutbox/Sources/TPShout.php and find:
Code:
redirectexit($_POST['tp-shout-url']);

Replace it with:
Code:
redirectexit($_POST['tp-shout-url'], false, true);

If you want to change it for all though, you can do that too. Open up Sources/Subs.php and find:
Code:
function redirectexit($setLocation = '', $refresh = false, $tp_not = false)

replace with:
Code:
function redirectexit($setLocation = '', $refresh = false, $tp_not = true)

My code in tp-files/tp-modules/tp-shoutbox/Sources/TPShout.php
1-redirectexit(strip_tags($_POST['tp-shout-url']));
2-redirectexit('action=forum');
3-redirectexit('action=tpmod;shout=admin');
Title: Re: Tp shout box error?
Post by: Ken. on February 09, 2009, 11:26:33 AM
Please read the Posting Guidelines.html (http://www.tinyportal.net/index.php/topic,581) so that we know what we are working with.

Yes I looked at your screen shot... including the part where you say, "when i push button going to forum page."
If you follow the posting guide and give the info requested there it will be lots easier to help.
Title: Re: Tp shout box error?
Post by: karag8z on February 09, 2009, 02:52:02 PM
http://www.sitename.com/Forum/index.php?action=tpmod;shout=admin;settings

when u select scrooling, that template error appear, and u rigth, i can see redirect error from orjinal packages.