TinyPortal
Development => Feedback => Bugs/Errors => Topic started by: Renegd98 on March 10, 2009, 01:22:35 AM
If you have the Frontpage set as follows:
What to display on frontpage: Frontpanel
How frontpanel will be shown with content: Frontpanel will be added after content
Then Frontpage Blocks get doubled.
I verified this on one of my test sites that was fresh everything with no mods installed.
See attached pic also...
Workaround:
How frontpanel will be shown with content: Frontpanel will be added before content or Hide frontpanel, unless otherwise selected.
and the issue is gone.
See: http://www.tinyportal.net/index.php/topic,28754.20.html if you want to see what led up to this bug being found.
- Wrong logic in frontpanel display routine.Fixed for TP v1.0 beta 4
Open TPortal.template.php and find:
// if frontblocks are chosen, render the frontblocks. Or if frontblocks+news is chosen
if($context['TPortal']['front_type']=='frontblock' || ($context['TPortal']['frontblock_type']=='first' && isset($context['TPortal']['is_frontpage']) && $context['TPortal']['is_frontpage']==true)){
exchange with:
// if frontblocks are chosen, render the frontblocks. Or if frontblocks+news is chosen
if($context['TPortal']['front_type']=='frontblock' && (($context['TPortal']['frontblock_type']=='first' || $context['TPortal']['frontblock_type']=='single') && isset($context['TPortal']['is_frontpage']) && $context['TPortal']['is_frontpage']==true)){