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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,911
  • Total Topics: 21,307
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 429
  • Total: 429

Shouts and Login going to Forums.

Started by ColdCoffee, April 09, 2008, 10:47:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ColdCoffee

Ok I just recently reinstalled TP with the new beta build.
When I hit shout or login it brings me to forums instead of the frontpage.
Is there a setting I forgot to click ?

bloc

No, its supposed to do that. Its simply a fix for SMF. Since SMF expects a empty redirect would go to the forum index(thats the "frontpage" of SMF) TP changed that to go to TP frontpage. But by adding a "action=forum" into an empty redirect this problem in SMF is solved. However..shouting should redirect you to whatever page you are on, if not its a bug.

Login should ALWAYS redirect you to SMF "frontpage", so thats correct.

ColdCoffee

In .9 it would take you to the TP frontpage using the userbox to login and I liked that. I could create HTML blocks set them only for members to view and post important items into them. I'm afraid new members will miss them now if it goes directly to the forum index. Could I change something in 1.0.5 to make that work like the old one ?

Thank you for you response.

wmiles

If you post on the shoutbox, it takes you to the forum, even when you post from the portal, i reported this in another topic here and was told it was a bug we have to "live with" for now :)

mr juntao

One option for you is to get something along the lines of yshout and use that in place of the shoutbox in a block, if I remember it was only a small bit of code to change in order to integrate it.

bloc

Its already fixed in the next beta, for shoutbox at least, so shouts made from portal frontpage doesn't redirect to forum index:

Open 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);



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

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

TimUSA

any word on how to do this with the adv shoutbox?

bloc

Well, Stormlrd have been working on a fix for that one, so it will be out soon enough. I think he may have did it slightly different. :) The trouble is really that the update fucntion of TP modules isn't 100% yet otherwise you could just update the module with a click. We hope in beta 2 to have those in place and allow for easy updates of modules through TP admin. Much like SMF updates itself through package manager.

Jpg

@Bloc, you could have patches that edit pre-existing code using mod packages.

Use a url base like-
http://yourdomain.com/forum/index.php?action=pgdownload;auto;package=http://tinyportal.co.uk/downloads/patch.zip;sesc=#


It'll be a 1-click patch download.

wmiles

That code fixed both the shoutbox problem and my login problems

Shoutbox isnt picking up group colors tho bloc, dont know if you will fix this in the next release

Cheers for the update tho :)

This website is proudly hosted on Crocweb Cloud Website Hosting.