Advertisement:

Author Topic: TinyPortal  (Read 826134 times)

Offline @rjen

  • Sr. Member
  • ****
  • Posts: 743
  • Gender: Male
    • FJR-club Nederland
Re: TinyPortal
« Reply #2920 on: May 08, 2021, 04:17:42 AM »
If this character & is included in the topic title, then on the block of recent posts this character is not displayed in the topic title, only &amp is displayed. This is a bug?

The cause is found, it is caused by a bug in SMF 2.0.18.
No problem in 2.0.17 and also no problem in SMF2.1

Issue reported here: https://www.simplemachines.org/community/index.php?topic=577637

The bug also affects the Frontpage topics (if these exceed the maximum number of characters set) and the TPDowloads descriptions on the category pages.

The fix for SMF 2.0.18 is in the Load.php file in the /sources folder:

Find:
Code: [Select]
'substr' => function($string, $start, $length = null) use ($utf8, $ent_check, $ent_list, $modSettings)
{
$ent_arr = preg_split('~(' . $ent_list . '|.)~' . ($utf8 ? 'u' : '') . '', $ent_check($string), -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
return $length === null ? implode('', array_slice($ent_arr, $start)) : implode('', array_slice($ent_arr, $start, $length));
},

Replace by:
Code: [Select]
'substr' => function($string, $start, $length = null) use ($utf8, $ent_check, $ent_list, $modSettings)
{
$ent_arr = preg_split('~(&#' . (empty($modSettings['disableEntityCheck']) ? '\d{1,7}' : '021') . ';|"|&|<|>| |.)~' . ($utf8 ? 'u' : '') . '', $ent_check($string), -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
return $length === null ? implode('', array_slice($ent_arr, $start)) : implode('', array_slice($ent_arr, $start, $length));
},
Running SMF 2.0 with Tinyportal 2.0.1 at www.fjr-club.nl
Testing SMF 2.1 with Tinyportal 2.1.0 at test2.fjr-club.nl

Offline jsx

  • Full Member
  • ***
  • Posts: 536
  • Gender: Male
Re: TinyPortal
« Reply #2921 on: May 14, 2021, 05:11:59 AM »
rjen,

Thanks for the help.
The Great Winged Hussars

https://www.youtube.com/watch?v=DCdNC1i2eZE

We remember
In september
When The Winged Hussars arrived!

Offline jsx

  • Full Member
  • ***
  • Posts: 536
  • Gender: Male
Re: TinyPortal
« Reply #2922 on: May 15, 2021, 03:49:53 AM »
Where exactly in the TP settings can I disable the display of these buttons to collapse the panels?



These are the buttons:

Left Panel, Right Panel, Upper Panel
The Great Winged Hussars

https://www.youtube.com/watch?v=DCdNC1i2eZE

We remember
In september
When The Winged Hussars arrived!

Offline @rjen

  • Sr. Member
  • ****
  • Posts: 743
  • Gender: Male
    • FJR-club Nederland
Re: TinyPortal
« Reply #2923 on: May 15, 2021, 03:51:45 AM »
Tinyportal- settings and Frontpage : allow panels to be collapsed
Running SMF 2.0 with Tinyportal 2.0.1 at www.fjr-club.nl
Testing SMF 2.1 with Tinyportal 2.1.0 at test2.fjr-club.nl

Offline jsx

  • Full Member
  • ***
  • Posts: 536
  • Gender: Male
Re: TinyPortal
« Reply #2924 on: May 15, 2021, 06:39:55 AM »
Thanks for your help.
The Great Winged Hussars

https://www.youtube.com/watch?v=DCdNC1i2eZE

We remember
In september
When The Winged Hussars arrived!