Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome, Guest. Please login or register.
Did you miss your activation email?

January 31, 2023, 12:20:48 AM

Login with username, password and session length

Recent Posts

Pages: [1] 2 ... 10
1
Support / Re: Links not working and more
« Last post by @rjen on January 29, 2023, 02:18:23 PM »
That will work too
2
Support / Re: Links not working and more
« Last post by Kokoro on January 29, 2023, 02:15:51 PM »
I may just rewrite the article/frontpage as an HTML document instead.
3
Support / Re: Links not working and more
« Last post by lurkalot on January 29, 2023, 04:55:23 AM »
Just curious, as this is only displayed on the front page, would it not be better added to a front page block instead of an article? Or perhaps even a TOP/Upper/Lower/ block and just tell it to only display on the front page.
4
Support / Re: Links not working and more
« Last post by @rjen on January 29, 2023, 04:31:15 AM »
The fix involves fixing two source files..

TParticle.php
line 430

find
Code: [Select]
}
$article_data[$setting] = $value;
break;

replace
Code: [Select]
}
// BBC we need to encode quotes
if (TP_SMF21) {
if( ($_REQUEST['tp_article_type'] == 'bbc') && ($setting == 'body') ) {
$value = $smcFunc['htmlspecialchars']($value, ENT_QUOTES);
}
}
$article_data[$setting] = $value;
break;

and

TPortalAdmin.php
line 1009

find
Code: [Select]
$context['TPortal']['editing_article'] = true;
$context['TPortal']['editarticle']['body'] = $smcFunc['htmlspecialchars']($context['TPortal']['editarticle']['body'], ENT_QUOTES);
$smcFunc['db_free_result']($request);

replace
Code: [Select]
$context['TPortal']['editing_article'] = true;
if (TP_SMF21) {
if($context['TPortal']['editarticle']['type'] != 'bbc') {
$context['TPortal']['editarticle']['body'] = $smcFunc['htmlspecialchars']($context['TPortal']['editarticle']['body'], ENT_QUOTES);
}
}
else {
$context['TPortal']['editarticle']['body'] = $smcFunc['htmlspecialchars']($context['TPortal']['editarticle']['body'], ENT_QUOTES);
}
$smcFunc['db_free_result']($request);
5
Support / Re: Links not working and more
« Last post by @rjen on January 29, 2023, 12:58:27 AM »
Hi, I am not 100% what the issue is, but I suspect that you are seeing that the url's in a bbc articles are broken, after you have changed the article, that was ok at first?

This is an issue that was reported before and caused by a bug in version 2.2.2. that will incorrectly 'parse'  BBC articles after changing them.

This has been fixed in the next version of TinyPortal (2.3.0) which we hope to release soon.

The only workaround in 2.2.2 is to manually fix the broken links and save the article: the first time the link will be parsed correctly, but then chanhing the article will break them again...
6
Support / Links not working and more
« Last post by Kokoro on January 28, 2023, 06:34:16 PM »
Link to my forum: http://www.animerpgs.com/
SMF version: 2.1.3
TP version: 2.2.2
Default Forum Language: English
Theme name and version: Windows XP
Browser Name and Version: Firefox 109.0 (64-bit)
Mods installed: Discord Web Hooks (2.0.1), SMFPacks Social Login (2.3.2), Discord Who's Online (1.0.1), Board Sorting Method (1.0.1), Forum Width Setting (1.2), Login Menu Button (2.0), Members Online Today (1.0), Avatars Display Integration (1.5.4), Post as Another Member (1.6), Dice Roller BBcode (2.0), SMF Post Prefix (4.1.0)
Related Error messages: (none)

I checked on the source code of my document and saw all of this.  I have redone the post, and it comes back.  See screenshot for more information.
7
Support / Re: A few questions
« Last post by @rjen on January 28, 2023, 02:21:20 PM »
Ok, coming back to the original question....

As it seems there is a small bug with the 'Admin can see all blocks' setting in 2.2.2 that we will address in 2.3.0. The change was just merged in for TinyPortal 2.3.0

This change aligns the behaviour of blocks in Front panel and the other panels, and the other change is now if you are part of a member group which can see the block even if your primary membergroup can't, you will still see the blocks.


The expected behaviour is this:
If a user has thee Administrator as primary membergroup, this user will by default see ALL active TinyPortal blocks. The setting 'Admin can see all blocks' in TinyPortal can be used disable this behaviour for Administrators.

The behaviour is in standard TinyPortal:
Admin can see all blocks (Set) - Admin will see All blocks that are active
Admin can see all blocks (Not-Set) - Admin will see blocks if admin is part of another membergroup which can see the block (additional membergroups).
8
Support / Re: A few questions
« Last post by @rjen on January 28, 2023, 01:44:21 PM »
Hmm, isn't 0 the value for ungrouped members?

This is actually an issue in my forum: we have a club forum that allows non-members to participate.

Paying members are assigned to the Club membergroup that gives them additional priviliges. It does NOT mean that they have ever posted, though. So they will be in a membergroup and still be in the 0-post group: this is actually a substantial part of the user community!
9
Support / Re: A few questions
« Last post by tino on January 28, 2023, 01:40:51 PM »
I do however think now we have got them so they are both the same, there is an inherent logic flaw in the code for when you don't have any posts as the check doesn't differentiate between 0 post count and 0 being the user group.

This in practice won't make much difference as you are 0 by default when you sign up. So both being 0 doesn't make any difference, and you are unlikely to have someone in the other groups with 0 posts.
10
Support / Re: A few questions
« Last post by tino on January 28, 2023, 01:34:48 PM »
You may have expected this, but I did not...

Honestly, I forgot post based groups were a thing. Now I have realised they are then it is working how I would expect, as if you add an additional group they will appear again, if that group is set.

This also mean's it does what the OP actually want's providing post based groups are set.
Pages: [1] 2 ... 10