TinyPortal

Development => Support => Topic started by: Bryan on January 24, 2008, 07:41:18 PM

Title: Center Block Articlebox "jumps" to top when viewed with a forum board
Post by: Bryan on January 24, 2008, 07:41:18 PM
Using a Center block articlebox that’s set to “Show when inside this board”, I’m having the following problem.  When you click on a board topic below the articlebox, the new page opens at the top of the articlebox instead of at the top of the topic, requiring the user to scroll back down to view the first post in the topic.  Is there a way to change this?  I’m using the DilberMC theme for TP.
Title: Re: Center Block Articlebox "jumps" to top when viewed with a forum board
Post by: IchBin on January 24, 2008, 07:46:11 PM
Not much you can do about that. The page loads to the top based on the template files.
Title: Re: Center Block Articlebox "jumps" to top when viewed with a forum board
Post by: Bryan on January 24, 2008, 08:13:35 PM
Is there a way to have the Center Block articlebox show only when the board topic list is displayed but not when a topic is open?
Title: Re: Center Block Articlebox "jumps" to top when viewed with a forum board
Post by: IchBin on January 24, 2008, 09:04:08 PM
That is not available as a setting in TP, but you could use some custom code. If you'd like to do that let me know and I'll type up some code for you.
Title: Re: Center Block Articlebox "jumps" to top when viewed with a forum board
Post by: Bryan on January 24, 2008, 09:30:46 PM
Thanks IchBin,

I'm not in a big hurry to figure this out, so I'll try to mess with it a bit to see if I can make it work.  I'll yelp if I need more help.
Title: Re: Center Block Articlebox "jumps" to top when viewed with a forum board
Post by: Bryan on January 27, 2008, 01:25:34 AM
Any chance you know what template file puts the article the thread?  Extra kudos for linenumbers!
Title: Re: Center Block Articlebox "jumps" to top when viewed with a forum board
Post by: IchBin on January 27, 2008, 02:22:53 AM
Sorry, but I don't understand what you're asking. Could you be a bit more specific?
Title: Re: Center Block Articlebox "jumps" to top when viewed with a forum board
Post by: Bryan on January 27, 2008, 03:28:04 AM
The Center Block articlebox displays as desired in the board I’ve specified in the topic list view:      /index.php/board,24.0.html

It also displays when you open a topic (undesirable):      /index.php/topic,96.0.html

Which file(s) controls this behavior?

Title: Re: Center Block Articlebox "jumps" to top when viewed with a forum board
Post by: IchBin on January 27, 2008, 04:24:31 AM
There are multiple files that keep this stuff together. Thats why I didn't give you the code to add the option. Also, why I said you can do it with custom code. Not much you can do about it at this time except to use some custom php code. All the stuff you're looking for exists in the TPortal files.