News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

TinyPortal

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

Previous topic - Next topic

@rjen

Quote from: Greyhound on January 15, 2023, 09:50:38 AMHas the install issue for 2.1.3 been resolved?

It is not ours to resolve: it is an SMF issue..
But it seems that a fix in SMF has been merged and is tagged for SMF2.1.4: https://github.com/SimpleMachines/SMF/pull/7604
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

@rjen

Due to a bug in SMF2.1.3 upgrading TinyPortal may result in below error messages.
QuoteAll parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead

QuoteDatabase error: Invalid default value for 'item_type'


Attached MOD package can be installed on SMF2.1.3 to allow the upgrade of TinyPortal

Fix DBPackages

Current Version: 1.0
Compatibility: SMF 2.1.3                       


Notice
This patch will replace the files DbPackages-mysql.php and DbPackages-postgresql.php with the version for SMF2.1.4. This is needed to be able to upgrade the TinyPortal package while on SMF2.1.3. Uninstalling the package will retrun the files to the code as delivered in SMF2.1.3, which should allow the forum to be patched to SMF2.1.4 without issues.


Installation
Please note that this package is ONLY for SMF2.1.3 and must be uninstalled prior to upgrading to SMF 2.1.4


Support
This package is created by the TinyPortal support team.

30/01/2023 - v1.0
^ Initial release.

Download:
https://www.tinyportal.net/index.php?action=tportal;sa=download;dl=item177
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

Rick53

#3362
It is tedious going through the 169 pages and translating them into my native language each time. So please excuse me if this question has been asked before.

I embedded the Statistics block in TP.
I want to change the code slightly. E.g. everything correctly left aligned etc. Can anyone tell me where I can find the source code? So folder and file name.


(SMF Curve)

@rjen

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

TinyPortal 2.3.0 can be used on SMF 2.0 and 2.1

Minimum required PHP version : 7.0.0
Highest supported PHP version (tested): 8.1.6

Notes:

NOTICE!:
Due to a bug in SMF 2.1.3 upgrading TinyPortal may result in this error message: "All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead".

In order to update TinyPortal while on SMF 2.1.3 you may need to install the [correction MOD that can be downloaded from the TinyPortal.net support site](https://www.tinyportal.net/index.php?action=tportal;sa=download;dl=item177).

After applying this MOD you will be able to re-install TinyPortal on SMF 2.1.3. Please note that the correction MOD should be uninstalled prior to patching SMF to version 2.1.4.


This version contains an update of the internal block variable handling: after this upgrade there is no returning to older TinyPortal versions while keeping the existing blocks intact!

Changelog:
This release includes the following changes relevant to SMF 2.0 and 2.1:

New functionality:
- Added new blockcode for Mini Calendar in SMF2.1
- Change to recenttopics block to prevent no topics showing when using unpopular boards
- Added option to 'open in New window' for Menu Buttons created in the menu manager
- New permission to control TinyPortal search functionality
- Updated the Top posters blockcode
Multiple shoutbox updates:
- Updated shoutbox timeformat setting to align with SMF settings
- Added link to shoutbox settings for admins in shoutbox block
- Added options to shoutbox blocks for showing avatars, position of post bar and new messages
- Shoutbox now also allows the smileys from the 'Pop-up' to be used
- Removed 'hover' effect on shoutbox timestamp
- Images in shoutbox now limited to a maximum width to prevent from showing full screen

Bugfixes:
- Fix for BBC articles in SMF2.1 not parsing correctly
- Fixed PHP8.1 error explode(): Passing null to parameter #2 ($string) of type string is deprecated
- Fixed error Undefined variable $grid_recycle
- Fixed help popups showing 'error' in SMF2.1.3
- Fixed some language string typo's
- Fixed undefined index: allow_guestAccess
- Fix for avatar size in articles when 'Resize in user's browser' setting used
- Fixed setting 'Admin can see all blocks'
- Force css update with new install
- Moved Copyright notice to Mod Credits in SMF2.1
- Some updates to shoutbox classes to prevent conflicts with other mods
- Improved block handling resetting block values when changing block type
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

@rjen

Quote from: Rick53 on February 05, 2023, 06:37:43 AMIt is tedious going through the 169 pages and translating them into my native language each time. So please excuse me if this question has been asked before.

I embedded the Statistics block in TP.
I want to change the code slightly. E.g. everything correctly left aligned etc. Can anyone tell me where I can find the source code? So folder and file name.
(SMF Curve)

\Themes\default\TPsubs.template.php

line 361 onwards..

// blocktype 3: Stats
function TPortal_statsbox()
{
global $context, $settings, $scripturl, $txt, $modSettings;

$bullet = '<img src="'.$settings['tp_images_url'].'/TPdivider.png" alt="" style="margin:0 4px 0 0;" />';
$bullet2 = '<img src="'.$settings['tp_images_url'].'/TPdivider2.png" alt="" style="margin:0 4px 0 0;" />';

echo'
<div class="tp_statsblock">';

if(isset($context['TPortal']['userbox']['stats']))
// members stats
echo '
<h5 class="mlist"><a href="'.$scripturl.'?action=mlist">'.$txt['members'].'</a></h5>
<ul>
<li>' . $bullet. $txt['total_members'].': ' , isset($modSettings['memberCount']) ? comma_format($modSettings['memberCount']) : comma_format($modSettings['totalMembers']) , '</li>
<li>' . $bullet. $txt['tp-latest']. ': <a href="', $scripturl, '?action=profile;u=', $modSettings['latestMember'], '"><strong>', $modSettings['latestRealName'], '</strong></a></li>
</ul>';
if(isset($context['TPortal']['userbox']['stats_all']))
// more stats
echo '
<h5 class="stats"><a href="'.$scripturl.'?action=stats">'.$txt['tp-stats'].'</a></h5>
<ul>
<li>'.  $bullet. $txt['total_posts'].': '.comma_format($modSettings['totalMessages']). '</li>
<li>'.  $bullet. $txt['total_topics'].': '.comma_format($modSettings['totalTopics']). '</li>
<li>' . $bullet. $txt['tp-mostonline-today'].': '.comma_format($modSettings['mostOnlineToday']).'</li>
<li>' . $bullet. $txt['tp-mostonline'].': '.comma_format($modSettings['mostOnline']).'</li>
<li>('.timeformat($modSettings['mostDate']).')</li>
</ul>';

if(isset($context['TPortal']['userbox']['online']))
{
// add online users
echo '
<h5 class="online"><a href="'.$scripturl.'?action=who">'.$txt['online_users'].'</a></h5>
<div class="tp_stats_users" style="line-height: 1.3em;">';

$online = ssi_whosOnline('array');
echo  $bullet. $txt['tp-users'].': '.$online['num_users']. '<br>
'. $bullet. $txt['tp-guests'].': '.$online['guests'].'<br>
'. $bullet. $txt['tp-total'].': '.$online['total_users'].'<br>
<div style="max-height: 23em; overflow: auto;">';

foreach($online['users'] as $user)
{
echo  $bullet2 , $user['hidden'] ? '<i>' . $user['link'] . '</i>' : $user['link'];
echo '<br>';
}
echo '
</div></div>';
}
echo '
</div>';
}
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

txcas

I tried to upgrade from version 2.2.2 to 2.30 on SMF 2.1.3 and the installation failed with this error:
Invalid default value for 'item_type'
File: /home/creedmoo/public_html/Packages/temp/install.php
Line: 354

Now I also get the same error if I try to install version 2.2.2. Error log also shows:
Database Error: Invalid default value for 'item_type'

tinoest

Quote from: txcas on February 06, 2023, 04:48:36 PMI tried to upgrade from version 2.2.2 to 2.30 on SMF 2.1.3 and the installation failed with this error:
Invalid default value for 'item_type'
File: /home/creedmoo/public_html/Packages/temp/install.php
Line: 354

Now I also get the same error if I try to install version 2.2.2. Error log also shows:
Database Error: Invalid default value for 'item_type'



NOTICE!:
Due to a bug in SMF 2.1.3 upgrading TinyPortal may result in this error message: "All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead".

In order to update TinyPortal while on SMF 2.1.3 you may need to install the [correction MOD that can be downloaded from the TinyPortal.net support site](https://www.tinyportal.net/index.php?action=tportal;sa=download;dl=item177).

After applying this MOD you will be able to re-install TinyPortal on SMF 2.1.3. Please note that the correction MOD should be uninstalled prior to patching SMF to version 2.1.4.

txcas

Thanks for the prompt respond. Everything is working again!

jsx

The first page in this topic does not load fully. After entering the TinyPortal modification, the following error is displayed:

This page is not working
The custom.simplemachines.org server cannot handle this request right now.

HTTP ERROR 500

Shades.

I confirm! Same with the SendGrid mod and maybe others! :o
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

jsx

I downloaded TinyPortal 2.3.0 from tinyportal.net and installed Fix DBPackages then installed TP 2.3.0

Thank you for releasing this version and thank you for implementing some of my suggestions:

Quote from: jsx on October 13, 2022, 05:54:17 AM1. Adding the ability to set newer entries to be displayed at the bottom. Currently, the new entry is displayed at the top.

Quote from: jsx on October 13, 2022, 05:54:17 AM2. Adding the function "Enable display avatars", I mean to display, for example, a round avatar of a user next to his entry. Avatars of users beautify the shoutbox window. Currently it is so empty.

Quote from: jsx on October 13, 2022, 05:54:17 AM5. Adding a function (icon) to go to shoutbox settings, there next to the history icon.

Quote from: jsx on October 13, 2022, 05:54:17 AM6. Adding the ability for more emoticons to appear in [more].

Quote from: jsx on October 13, 2022, 05:54:17 AM8. Change the date display in this layout so that the date is displayed before these buttons:


Quote from: jsx on October 13, 2022, 05:54:17 AM11. Adding the ability to insert an image as img

Bugs noticed:

1. TinyPortal 2.3.0 footer is not displayed in the footer on the home page of the portal.

2. The following errors are generated in the error log:



Examples of errors:











User avatars not displaying fully:



Questions:

Can I change the size of the display field for additional emoticons?

Is it possible to implement a clickable image? After adding the image to the shoutbox, the image is displayed in a reduced size and that's fine, but can't click on it to open it in full size.

@rjen

Quote from: jsx on February 07, 2023, 04:27:14 AMThe first page in this topic does not load fully. After entering the TinyPortal modification, the following error is displayed:

This page is not working
The custom.simplemachines.org server cannot handle this request right now.

HTTP ERROR 500

This is NOT a TinyPortal issue
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

@rjen

QuoteBugs noticed:

1. TinyPortal 2.3.0 footer is not displayed in the footer on the home page of the portal.

2. The following errors are generated in the error log:

1. Is not a bug, but a conscious change. See the release note

2. We have seen those. It seems die to caching someone users still have old version of the changes script

This shoul go away over time as local caches expire
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

Steve

@Shades. and @jsx - Those errors are fixed now.
DO NOT pm me for support!

jsx

@@rjen

Okay, after clearing the cache, these errors will not appear.

Are you going to fix the incorrect display of the user avatar?

I reported that the avatar was not displaying correctly on November 21:

https://www.simplemachines.org/community/index.php?topic=27642.msg4139393#msg4139393

What do you think about this topic now?

https://www.simplemachines.org/community/index.php?topic=27642.msg4134050#msg4134050

Do you leave it as it is or will you write this code in the future?

Quote from: @rjen on September 13, 2022, 08:36:15 AMChanging the Tinyportal block function is possible but it will require to create some coding, where the ssi function is available out of the box...
I am not sure what the priority of such a change would be: I personally would just deactivate the setting "Show group key on board index" and be done with it...

@rjen

Quote from: jsx on February 10, 2023, 11:34:31 AMOkay, after clearing the cache, these errors will not appear.
Good

Quote from: jsx on February 10, 2023, 11:34:31 AMAre you going to fix the incorrect display of the user avatar?

I reported that the avatar was not displaying correctly on November 21:

https://www.simplemachines.org/community/index.php?topic=27642.msg4139393#msg4139393
Is that still an issue? I thought that was fixed.
I recall this may be caused by an avatar sizing in SMF in combination with a very large avatar size?

Quote from: jsx on February 10, 2023, 11:34:31 AMWhat do you think about this topic now?

https://www.simplemachines.org/community/index.php?topic=27642.msg4134050#msg4134050

Do you leave it as it is or will you write this code in the future?

Quote from: @rjen on September 13, 2022, 08:36:15 AMChanging the Tinyportal block function is possible but it will require to create some coding, where the ssi function is available out of the box...
I am not sure what the priority of such a change would be: I personally would just deactivate the setting "Show group key on board index" and be done with it...
I am not going to change that

Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

jsx

Quote from: @rjen on February 10, 2023, 11:55:41 AMIs that still an issue? I thought that was fixed.
I recall this may be caused by an avatar sizing in SMF in combination with a very large avatar size?

Yes, that's still an issue. Even the default 100x100 avatar is not displayed correctly.


@rjen

Well it is not on any of my sites...
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

tinoest

Quote from: @rjen on February 10, 2023, 03:20:40 PMWell it is not on any of my sites...

It's broken on the main TinyPortal Forum, well the avatar isn't resized.

https://www.tinyportal.net/index.php?action=forum

You cannot view this attachment.

There needs to be a width: 100% on the avatar img and then the icons need a width: auto.

Although the edit icon showing all the time is annoying.

@rjen

Interesting. I will check it...

FYI

You cannot view this attachment.
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

Advertisement: