TinyPortal

Development => Feedback => Bugs/Errors => Topic started by: MyFSI on April 17, 2006, 06:49:40 PM

Title: Mark all messages as read sends you to front page
Post by: MyFSI on April 17, 2006, 06:49:40 PM
First of all, since this is my first post, i'd like to say thanks to bloc for the great themes and also for Tinyportal, they are all great.

Second, i would like to point out a bug when using tinyportal (tp 0.8.6 and smf rc2):
On the forum index, when clicking 'Mark all messages as read' it will redirect you to the front page (http://ironz.myfxh.com/forum/index.php) and not the forum index (http://ironz.myfxh.com/forum/index.php?action=forum). (you can see this by clicking the button in this forum's index)

it's a little annoying and it would be great if someone can provide a fix for this, thx.
Title: Re: Mark all messages as read sends you to front page
Post by: MyFSI on April 19, 2006, 10:05:11 AM
sorry for double posting but does anyone have a fix for this?

Thanks.
Title: Re: Mark all messages as read sends you to front page
Post by: G6Cad on April 19, 2006, 10:15:06 AM
I think this issue is something that regards the forum, and not the portal.
If you take the question over to SMF forums, i think you get better answers there :)
Title: Re: Mark all messages as read sends you to front page
Post by: MyFSI on April 19, 2006, 12:10:33 PM
well i thought it was a hard thing to do, that's why i asked for help. but in fact it's very easy and here's the fix for it if anyone is interested.

open Sources/Subs-Boards.php:
Search for: elseif (isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'unreadreplies')


and just before it you'll find: redirectexit();

replace it with: redirectexit('action=forum');

or for wider use, replace it with: redirectexit($_SERVER['HTTP_REFERER']);which will redirect you back to wherever you came from.
Title: Re: Mark all messages as read sends you to front page
Post by: bloc on April 20, 2006, 01:26:11 AM
Yes, its an easy fix. I haven't applied it because modifying that file for just that option seemed a bit much. But as it turns out, more places go back to frontpage, so I am looking to change all.
Title: Re: Mark all messages as read sends you to front page
Post by: Cholo on February 26, 2007, 12:17:29 AM
If I want to redirect my users to the main forum instead of the front page on registration, so I do this same edit? Thanks a lot!
Title: Re: Mark all messages as read sends you to front page
Post by: Cholo on March 02, 2007, 05:42:18 PM
I think it's fair if I bump this?  Please someone.. :(
Title: Re: Mark all messages as read sends you to front page
Post by: G6Cad on March 02, 2007, 06:38:35 PM
It's not fair as it still is a SMF issue, and not TP ;)

Please refer your question to Simplemachines forums as the forum and posts issues are their doing and not TP
Title: Re: Mark all messages as read sends you to front page
Post by: Zetan on March 02, 2007, 07:03:42 PM
Quote from: colB on April 20, 2006, 01:26:11 AM
Yes, its an easy fix. I haven't applied it because modifying that file for just that option seemed a bit much. But as it turns out, more places go back to frontpage, so I am looking to change all.

ummm.... I think it is a TP issue. If TP wasn't installed then it wouldn't have a homepage to go to.  :-X
I never noticed it to be honest, but I have noticed it elsewhere in the forum.  ::)
Title: Re: Mark all messages as read sends you to front page
Post by: IchBin on March 02, 2007, 07:08:05 PM
Quote from: colB on April 20, 2006, 01:26:11 AM
Yes, its an easy fix. I haven't applied it because modifying that file for just that option seemed a bit much. But as it turns out, more places go back to frontpage, so I am looking to change all.
Title: Re: Mark all messages as read sends you to front page
Post by: Cholo on March 05, 2007, 10:09:31 PM
so the answer is ... I'm not getting one?

Nevermind: I guess I can fix it by doing the edits as shown above, just for the login action instead.  *going to figure it out*
Title: Re: Mark all messages as read sends you to front page
Post by: bloc on March 05, 2007, 10:38:23 PM
The answer is that this will be adressed ..but not for the next immediate release of TP.
Title: Re: Mark all messages as read sends you to front page
Post by: Cholo on March 05, 2007, 11:30:01 PM
Thanks Bloc (and thanks for TP, btw) But I can't fix it manually right now?
Title: Re: Mark all messages as read sends you to front page
Post by: IchBin on March 05, 2007, 11:39:35 PM
Quote from: Cholo on March 05, 2007, 10:09:31 PM
so the answer is ... I'm not getting one?
I don't know what part you didn't understand about this...

Quote from: Bloc on April 20, 2006, 01:26:11 AM
But as it turns out, more places go back to frontpage, so I am looking to change all.

Saying he will look into it isn't enough for you? If you'd like we can have Bloc stop everything he's doing on this project just to take care of every little need that every poster has around here? Don't come here expecting things when things are given from everyone's free time. As he said, he's going to address it. As for the quickfix, look above a few posts and you'll see. But this does not address "All" places that this problem exists.
Title: Re: Mark all messages as read sends you to front page
Post by: RoarinRow on March 06, 2007, 12:01:39 AM
I kinda like that users are brought to the home page instead of the forum page.  The home pages has updates on the site and other useful information they would not normally see if they just hung out on the forum page.

I tried the fix some time ago and I had some errors after awhile so I just changed it back and never thought about it since.
Title: Re: Mark all messages as read sends you to front page
Post by: Cholo on March 06, 2007, 12:42:52 AM
Thanks for that info RoarinRow.

And thanks for this Ichbin:
QuoteAs for the quickfix, look above a few posts and you'll see. But this does not address "All" places that this problem exists.
, that's what I was looking for. Sorry if I didn't get what may have been said earlier, I'm just a noob and some things are past me. 

I, of course don't expect Bloc to drop everything and answer my posts (or anyone else's), that's what you guys are for. lol. I don't remember specifically asking for him either. But anyway, thanks for the help guys.