TinyPortal

Development => Support => Topic started by: layne on July 11, 2007, 04:16:28 AM

Title: Frontpage articles and blocks
Post by: layne on July 11, 2007, 04:16:28 AM
When I select the option "Featured article and front page blocks" for "what to show on frontpage", and i select "Frontblocks are added first" for "How frontblocks will be shown" it only shows the whole featured article without any frontpage blocks, and without using the intro. If I turn off "featured" for the article, then it will show the intro to the article under the frontpage blocks, but if i go to the article category page, the frontblocks are still shown. is there no way to have the frontblocks only show on the frontpage, and not the article category page? i can't figure out what code calls the article category pages, but I would think you'd be able to comment out where it shows the frontpage blocks first on those pages.
Title: Re: Frontpage articles and blocks
Post by: MutantCheese on July 11, 2007, 09:40:04 PM
I have been having similar issues. Subscribed.
Title: Re: Frontpage articles and blocks
Post by: Rus on August 10, 2007, 10:53:20 PM
I too am having this problem.

SMF 1.1.3
TP 0.98
Tolkien

Any info would be great.
Title: Re: Frontpage articles and blocks
Post by: Clarky on October 13, 2007, 06:45:01 PM
Im having the same problem! Tried different themes, settings and I just cannot get frontpage blocks.
Title: Re: Frontpage articles and blocks
Post by: IchBin on October 13, 2007, 07:08:44 PM
Frontpage blocks don't work as completely intended. You'll have to wait until TP 1.0 for more block options such as this.
Title: Re: Frontpage articles and blocks
Post by: Clarky on October 13, 2007, 07:48:55 PM
The only thing I can get on my frontpage is news. Is their any block options that work as of yet?
Title: Re: Frontpage articles and blocks
Post by: tick on October 14, 2007, 02:20:05 AM
Quote from: Clarky on October 13, 2007, 07:48:55 PM
The only thing I can get on my frontpage is news. Is their any block options that work as of yet?
Care to elaborate a bit on that.  What options do you have checked?   All the options should work with the exception of the featured article option.  To my knowledge.  Tick
Title: Re: Frontpage articles and blocks
Post by: bloc on October 14, 2007, 11:05:29 PM
It can be changed, the key is a small code in TPortal.template..but let me get this straight: you only want frontblocks shown when showing featured article, nowhere else?
Title: Re: Frontpage articles and blocks
Post by: WKC on October 15, 2007, 01:26:52 PM
I have this working fine.

If you have a featured article showing on your front page (which I do) then you can simply set the desired blocks to show when one is viewing that article. In otherwords, anytime they are on the front page. Of course if you are constantly switching featured articles this would not work as well as you would have to update the settings each time, but my article is pretty static.

Anyway....go to the admin tab, and click on block manager in the tiny portal section.

From there click the edit button of the blocks you wish to manipulate. Down at the bottom of the edit page for each block you can select to "show when viewing this article" option and select the article that is showing on your front page. For me this is the featured article because I made it that way.

There you have it. Rinse and repeat on each block you wish to show on the front page. They will now only show when user is viewing the featured article. (which for me as mentioned above works out to be anytime they are on the front page.)

Did I make that clear as mud, or what?!
Title: Re: Frontpage articles and blocks
Post by: BrendanOO7 on October 15, 2007, 09:25:16 PM
I can't manage my articles or my blocks, I've installed SMF on WAMP and test all new mods there first, when I attempt to edit the blocks or articles I get the message:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1572864 bytes) in C:\wamp\www\forum\Sources\Load.php(1735) : eval()'d code on line 1224

this seems to occur when I display more than three blocks, this also stops me from deleting blocks so I'm stuck with the blocks as the are! any suggestions? Thanks.

Brendan (http://macsplace.de)
Title: Re: Frontpage articles and blocks
Post by: IchBin on October 16, 2007, 01:02:28 AM
Two things Brendan.

1. Please don't hijack another topic with a support question that is not related to the topic.

2. Please use the search as your error has been covered many times already.
Title: Re: Frontpage articles and blocks
Post by: BrendanOO7 on October 16, 2007, 05:35:52 PM
Sorry to have bothered you, I thought the title here was Front page and blocks and I thought the category was support, anyway the problem has been fixed....I removed TP and everything is working just fine, thanks for your time.

Brendan.
Title: Re: Frontpage articles and blocks
Post by: IchBin on October 17, 2007, 03:51:51 AM
Thats exactly what the title says, but your error doesn't have anything to do with the original post. Sorry you took my post harsh, but I did say please and could have been much more harsh. Had you used the search you would have discovered that the error you have is related to the memory limit in PHP and nothing to do with TP. But since you aren't using TP anymore, I don't suppose you'll care anyhow. Good luck with your web experience.
Title: Re: Frontpage articles and blocks
Post by: Chelle on November 16, 2007, 05:00:37 PM
I also wanted to add, I was wondering the same thing, thinking I had some settings wrong and stumbled across a way to get an article to show on the front page with blocks:

If you edit the article you want to show on the front page, select the 'show on the front page' option. 

You'll have that article on the front page with your front page blocks.