TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,026
  • Total Topics: 21,333
  • Online today: 916
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 179
  • Total: 180
  • lurkalot

shout box creates error

Started by warhonowicz, February 06, 2009, 05:06:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

warhonowicz

Link to my site: http://mmc.uk.com
SMF version: SMF 1.1.8
TP version: 1.0.6 beta2
Theme name and version: SilentWave (www.dziner.studio.com)
Related Error messages:

I have installed the shoutbox module and it seems to work fine, however, every time a user shouts, they are sent to the forum, instead of the page they were on (http://www.mmc.uk.com/index.php?action=forum).

Also, some shouts create an entry in the forum erro log

http://www.mmc.uk.com/index.php?action=tpmod;shout=save 
8: Undefined index: tp-shout-name
File: /home/mmc/public_html/tp-files/tp-modules/TPShout/Sources/TPShout.php
Line: 173


IchBin

Login/shoutbox Redirect

As for the error, should be fixed in the up coming beta3 release.

warhonowicz

Thanks ... seems I need to search wider than I did for this one. So I tried to follow these instructions

QuoteOpen up tp-files/tp-modules/tp-shoutbox/Sources/TPShout.php and find:

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

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

but I only had

/tp-files/tp-modules/TPShout/Sources/

and in the file

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

which I changed to

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

but that doesn't seem to work

FUBAR

You should remove/restore the changes you made and instead use the 2nd suggestion from Bloc's post in that other thread. 

Make the changes in the "/Sources/Subs.php" file and this will correct the redirect for not only the frontpage but every other page on your site.

warhonowicz

yep, that works, I tried the other one as it seemed to only go wrong on the front page. Thanks for the help

This website is proudly hosted on Crocweb Cloud Website Hosting.