TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 341
  • Total: 341

[bugtracker] Frontpage Blocks Double/Replicate based on specific Frontpage settings

Started by Renegd98, March 10, 2009, 01:22:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Renegd98

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.

bloc

- 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)){

This website is proudly hosted on Crocweb Cloud Website Hosting.