• Welcome to Simple Machines Community Forum. Please login or sign up.
October 20, 2021, 12:40:09 PM

News:

Follow SMF on Twitter.


TinyPortal

Started by lurkalot, February 12, 2005, 04:43:00 AM

Previous topic - Next topic

@rjen

Quote from: jsx on April 25, 2021, 07:11:51 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:
'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:

'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.1.0 at www.fjr-club.nl
Testing SMF 2.1 with Tinyportal 2.1.0 at test2.fjr-club.nl

jsx

rjen,

Thanks for the help.

jsx

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

@rjen

Tinyportal- settings and Frontpage : allow panels to be collapsed
Running SMF 2.0 with Tinyportal 2.1.0 at www.fjr-club.nl
Testing SMF 2.1 with Tinyportal 2.1.0 at test2.fjr-club.nl

jsx

Thanks for your help.

cihancan

First of all, my apologies for not being good at English. It can be seen in the attached picture. How can I reduce the space between articles.

By the way my smf version is 2.1 RC4

@rjen

Quote from: cihancan on July 12, 2021, 09:59:52 AM
First of all, my apologies for not being good at English. It can be seen in the attached picture. How can I reduce the space between articles.

By the way my smf version is 2.1 RC4

Yeah, that is a bit of a pain in the b...
We are trying to support both SMF2.0 and 2.1 with TinyPorttal, but some choices made in Curve2 make it difficult to work with...

If you are on SMF2.1 you can open the css file tp-style.css and adapt the style for .windowbg...

Find this section

.tparticle .windowbg, .tparticle .windowbg2, .tparticle .windowbg3, .tparticle .roundframe, .dl_container .windowbg {
margin-bottom: 6px !important;
}


and change the margin-bottom...

.tparticle .windowbg, .tparticle .windowbg2, .tparticle .windowbg3, .tparticle .roundframe, .dl_container .windowbg {
margin-bottom: 0px !important;
}
Running SMF 2.0 with Tinyportal 2.1.0 at www.fjr-club.nl
Testing SMF 2.1 with Tinyportal 2.1.0 at test2.fjr-club.nl

cihancan

Quote from: @rjen on July 12, 2021, 11:37:13 AM
Quote from: cihancan on July 12, 2021, 09:59:52 AM
First of all, my apologies for not being good at English. It can be seen in the attached picture. How can I reduce the space between articles.

By the way my smf version is 2.1 RC4

Yeah, that is a bit of a pain in the b...
We are trying to support both SMF2.0 and 2.1 with TinyPorttal, but some choices made in Curve2 make it difficult to work with...

If you are on SMF2.1 you can open the css file tp-style.css and adapt the style for .windowbg...

Find this section

.tparticle .windowbg, .tparticle .windowbg2, .tparticle .windowbg3, .tparticle .roundframe, .dl_container .windowbg {
margin-bottom: 6px !important;
}


and change the margin-bottom...

.tparticle .windowbg, .tparticle .windowbg2, .tparticle .windowbg3, .tparticle .roundframe, .dl_container .windowbg {
margin-bottom: 0px !important;
}


Thank you very much. It works in both smf 2.0 and 2.1 versions.

nubieteky

Hello Webmaster and Tech support.

I have installed TP on my smf forum. For admin no problem on chat, but for members they can only see box and cannot submit or write a post.

tiny portal version 2.0.1
smf v. 2.0.18
website : pinaypsp.com

hope for response . thank you .

@rjen

Please check the permissions for the members: TP adds specific permissions for a number of functions such as a permission to use the shoutbox...

For more info see the documentation: https://www.tinyportal.net/docs/index.php?page=Settings-permissions
Running SMF 2.0 with Tinyportal 2.1.0 at www.fjr-club.nl
Testing SMF 2.1 with Tinyportal 2.1.0 at test2.fjr-club.nl

nubieteky

Thank you!

That's why i opt again for SMF since my last forum i made way back 2011. The response here is fast straight forward.

Thank you SMF team and Members more power!

lurkalot

The TinyPortal Team is pleased to announce the release of TinyPortal 2.1.0

TinyPortal 2.1.0 can be used on SMF 2.0 and 2.1

Minimum required PHP version : 7.2.0
Highest supported PHP version (tested) 8.0.0

Changelog: TinyPortal 2.1.0

Relevant to SMF 2.0 and 2.1:

**New functionality:**
- Updated the shoutbox functionality to allow for multiple shoutboxes
- Added setting to recent topics blocks allowing the admin to set the title length per block
- Recent topics block updated to not show topics to guests when forum setting does not allow guests to browse the forum

**Bugfixes:**
- added missing Image for Myarticles
- fixed upshrinks not working
- fixed some string shortening issues
- updated script handling to prevent errors
- remove HR elements from menu's to prevent W3C errors
- removed UTF8 english language files from the package
- fixed shoutbox time offset error and removed Save button on category list
- fixed shoutbox to allow shouts over 300 characters
- fixed incorrect text strings article options
- fixes article Show Comments Error
- updated article comments page to toggle between new comments and all comments
- updated Panel grids to CSS grid
- fixed panel settings in category overruling global panel setting
- updated user block to work with SMF2.1 RC4
- fix for RSS feed giving 403 errors
- fixed RSS width block setting (not allowing to enter width unit)
- fixed IMG width in RSS block: max-width 100% instead of width 100%
- fixed issue "Database error, given array of integer values is empty. (cat)" when switching to Articles in Category block without saving block settings
- fixed 'divsion by zero' error on downloads stats page
- fixed error '8: Trying to access array offset on value of type null' in TPlistimages
- fixed marquee issue for scrolling shoutbox

**Note:**
_when updating from TinyPortal versions older than 2.1.0, shoutbox blocks are enhanced with a new block setting: "Characters to display in titles".
Due to this change any pre-existing shoutbox blocks 'may' have a changed title length after installing the new version of TP. Please check any shoutbox blocks and adjust the block setting "Characters to display in titles" to the desired length..._

NOTICE! because of the database changes in TP 2.x.x versions there's no going back to TP 1.x.x after installing version 2.0.1 or 2.1.0. You can install previous versions, but by doing that you WILL lose TP data and you will need to manually fix or recreate your content!!! For these reasons it's advised to backup your database and files before proceeding.

A huge thankyou to tino and @rjen, and all our beta testers for all their hard work, and making this release possible.

Bigguy

Nice, glad to see it's out.

Antechinus


landyvlad

I just upgraded my forum to PHP 7.4 and upgraded to TinyPortal  2.1.0

While the settings still seem to have carried over, those settings aren't displayed.

What do I mean?
Well I have the right panel activated
In that panel I have the recent topics block activated.

But as you can see here https://gsx1400owners.org/forum/index.php?action=forum
and here https://gsx1400owners.org/forum/index.php?board=1.0
The right hand sidebar with recent topics does not appear.

The same applies to the bottom panel which I have activated, and the bottom panel stats block is activated but that's also not visible.

Please help :)


lurkalot - you have forum access as you know :)
   
Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

To paraphrase Kindred: "There are no technical solutions to social problems."

@rjen

Impossible to answer without a bit more information on the settings.

But since you have a direct line to Lurkalot I'll leave it with him...
Running SMF 2.0 with Tinyportal 2.1.0 at www.fjr-club.nl
Testing SMF 2.1 with Tinyportal 2.1.0 at test2.fjr-club.nl

lurkalot

Quote from: landyvlad on September 07, 2021, 03:26:40 AMlurkalot - you have forum access as you know :)
   

I'd be happy to take a look at the settings, but can't do this until this evening UK time as I'm at my day job.

Steve

Wait, what? You have a life outside of SMF??  :o
Please do not PM me for support.

Mornagest

Hello,

I got a problem on my server since it is not configured with zlib support (PHP 7.4 has been compiled without that option). Since I cannot re-configure it myself, I wanted to manually upload TP 2.1.0 through FTP but I feel stupid : where should I put all those folders ?

I'm afraid of deleting some SMF core files by replacing them with the ones of TP...

I'm using SMF 2.1 RC4 with a fresh install (plus some test messages).

Thank you in advance for your answer!

@rjen

You can upload the zip to the /packages folder. And install using the package manager.

Do not move the files into folders: you will not overwrite SMF files (as long as you put them in the correct folders) but you need to run the install script for it to work.

No guarantees if this proces may work: your own risk: take Backups!!
Running SMF 2.0 with Tinyportal 2.1.0 at www.fjr-club.nl
Testing SMF 2.1 with Tinyportal 2.1.0 at test2.fjr-club.nl

Advertisement: