TinyPortal

Development => Support => Topic started by: signal15 on December 06, 2006, 02:58:28 AM

Title: Main page set to forum - how to still display featured news?
Post by: signal15 on December 06, 2006, 02:58:28 AM
I have the main page set to go directly to the forum.  Is it possible to put a couple of blocks above the forum just on the front page that contain the featured articles?
Title: Re: Main page set to forum - how to still display featured news?
Post by: rebelrose on December 06, 2006, 03:23:50 AM
Center Blocks will show in the forum, if that is what you are asking, as to where front page block show, well on the front page.
Title: Re: Main page set to forum - how to still display featured news?
Post by: Thurnok on December 06, 2006, 03:36:28 AM
The contents of an Article or a Front Page block cannot be shown on the Forum page.  You can show left/right/center blocks on your forum page.  A block being shown on your Forum page can contain a link to an Article however, which would then display only that article, without the forum page.

You could use Center blocks for your articles if you really wanted some articles to show up on the Forum page, but you would use the Block Manager and not the Article Manager for creating/editing them.
Title: Re: Main page set to forum - how to still display featured news?
Post by: signal15 on December 06, 2006, 04:41:23 AM
I couldn't seem to make the center block work.  Am I missing something?  I added an articlebox to it, and enabled the articlebox.  Then double checked that the centerbox was enabled.  Nothing showed up.
Title: Re: Main page set to forum - how to still display featured news?
Post by: Thurnok on December 06, 2006, 04:56:53 AM
Make sure you go to Admin Control Panel -> TinyPortal Settings -> Settings -> User Center Panel: ON and Hide center panel when in forum? NO.

Also ensure you enable the block you are putting the article in, and set the appropriate membergroups to be able to see the block.
Title: Re: Main page set to forum - how to still display featured news?
Post by: G6Cad on December 06, 2006, 09:04:25 AM
Find the Tportal.php and replace it with your old one.
The file is in the News section thread where Bloc announced the TP V.096. I think it was on page 12 if i remember correct

[EDIT] found the file for you. Download and replace it with the one in your Sources folder
Title: Re: Main page set to forum - how to still display featured news?
Post by: signal15 on December 06, 2006, 04:44:55 PM
What does this TPortal.php do?
Title: Re: Main page set to forum - how to still display featured news?
Post by: G6Cad on December 06, 2006, 04:46:08 PM
Fix your issues
Title: Re: Main page set to forum - how to still display featured news?
Post by: signal15 on December 06, 2006, 05:22:12 PM
I have it working now with the Centerbox.  I was using the Front page box before, my mistake.  It would be nice if I could get the centerbox to only appear on the front page (which goes directly to the forum).  I wonder if I could modify the "action" code for each block (where you can display stuff on certain actions) to only show a block when there are NO arguments to index.php.