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

Recent

Welcome to TinyPortal. Please login or sign up.

May 03, 2024, 12:35:17 AM

Login with username, password and session length

Recent posts

#1
Support / Re: How to disable TinyPortal ...
Last post by @rjen - May 02, 2024, 05:42:10 AM
Sorry, should have thought about that. Just taking out the line would have been sufficient
#2
Support / Re: How to disable TinyPortal ...
Last post by davo88 - May 01, 2024, 11:47:47 PM
Thanks @rjen. We got a couple of error messages in the log after commenting that section out.
Hook call: function "TinyPortal\Integrate::hookProfileArea" in file /home/... could not be called.The callable TinyPortal\Integrate::hookProfileArea could not be called.Taking out this line out seems to have addressed those and there has been no more errors so far. Will keep an eye on it though.
        $hooks['pre_profile_areas']     = 'TinyPortal\Integrate::hookProfileArea';
A setting for this could be a good candidate for future versions. When introducing TP to a long running forum-only site, it will take a while for members (and me) to adjust and manage all the new features. So being able to slow that process down and roll things out in stages is very good. Thanks again for posting your fix.
#3
Support / Re: How to disable TinyPortal ...
Last post by @rjen - May 01, 2024, 09:10:36 PM
No option to do that. You can try removing this section from Integrate.php

    public static function hookProfileArea(&$profile_areas)
    {
        global $txt, $context;

        $profile_areas['tp'] = array(
            'title' => 'TinyPortal',
            'areas' => array(),
        );

        $profile_areas['tp']['areas']['tpsummary'] = array(
            'label' => $txt['tpsummary'],
            'file' => 'TPSubs.php',
            'function' => 'tp_summary',
            'icon' => 'menu_tp',
            'permission' => array(
                'own' => 'profile_view_own',
                'any' => 'profile_view_any',
            ),
        );

        if (!$context['TPortal']['use_wysiwyg']=='0') {
            $profile_areas['tp']['areas']['tparticles'] = array(
                'label' => $txt['articlesprofile'],
                'file' => 'TPSubs.php',
                'function' => 'tp_articles',
                'icon' => 'menu_tparticle',
                'permission' => array(
                    'own' => 'profile_view_own',
                    'any' => 'profile_view_any',
                ),
                'subsections' => array(
                    'articles' => array($txt['tp-articles'], array('profile_view_own', 'profile_view_any')),
                    'settings' => array($txt['tp-settings'], array('profile_view_own', 'profile_view_any')),
                ),
            );
        }
        else {
            $profile_areas['tp']['areas']['tparticles'] = array(
                'label' => $txt['articlesprofile'],
                'file' => 'TPSubs.php',
                'function' => 'tp_articles',
                'icon' => 'menu_tparticle',
                'permission' => array(
                    'own' => 'profile_view_own',
                    'any' => 'profile_view_any',
                ),
            );
        }

        if(!empty($context['TPortal']['show_download'])) {
            $profile_areas['tp']['areas']['tpdownload'] = array(
                'label' => $txt['downloadsprofile'],
                'file' => 'TPSubs.php',
                'function' => 'tp_download',
                'icon' => 'menu_tpdownload',
                'permission' => array(
                    'own' => 'profile_view_own' && !empty($context['TPortal']['show_download']),
                    'any' => 'profile_view_any' && !empty($context['TPortal']['show_download']),
                ),
            );
        }

        if(!$context['TPortal']['profile_shouts_hide']) {
            $profile_areas['tp']['areas']['tpshoutbox'] = array(
                'label' => $txt['shoutboxprofile'],
                'file' => 'TPShout.php',
                'function' => 'tp_shoutb',
                'icon' => 'menu_tpshout',
                'permission' => array(
                    'own' => 'profile_view_own',
                    'any' => 'profile_view_any',
                ),
            );
        }
    }
#4
Support / How to disable TinyPortal menu...
Last post by davo88 - April 29, 2024, 10:31:24 PM
I would like to disable the TinyPortal menu option that appears in members' profiles.

You cannot view this attachment.

So far, 'Hide TinyPortal menu option' has been enabled in TP General Settings.

You cannot view this attachment.

And 'ShowTPdownloads' has been turned off in TPdownloads > Settings

You cannot view this attachment.

But I am unable to find any further options that might remove that menu from the Profile.
#5
Modules / Re: Top posts (most liked) mod...
Last post by @rjen - April 21, 2024, 08:21:56 PM
I incorporated a setting in the blockcode to controle display of username: the width setting is something admins can do themselves...
#6
Support / Re: Combining TP database tabl...
Last post by davo88 - April 16, 2024, 10:29:25 PM
Have done this now a few times - attached a pre-configured TP installation to an existing SMF forum. It all works very well and it's great being able to build up a TP site, then just bolt it on to an existing SMF.                       
#7
Modules / Re: Top posts (most liked) mod...
Last post by @rjen - April 16, 2024, 09:42:06 PM
Actually, I already fixed that in the new package...

But thanks for reporting it

You cannot view this attachment.
#8
Modules / Re: Top posts (most liked) mod...
Last post by IgorS - April 16, 2024, 08:59:06 PM
Yes, thank you so much!

BTW, if you're considering some updates/bugfixes, probably padding-top should be added to lower-panel, as showed below (red line):
You cannot view this attachment.
#9
Modules / Re: Top posts (most liked) mod...
Last post by @rjen - April 16, 2024, 04:43:04 PM
QuoteIs this possible to set entire panel to have 75% for "Most liked posts" and 25% for "Recent posts" blocks?

This is an option I am considering to include in the next TP version.

Still work in progress though


I understand you are all set now?
#10
Modules / Re: Top posts (most liked) mod...
Last post by IgorS - April 16, 2024, 12:32:03 PM
Ok, I was able to add "sent by: User(link)":
You cannot view this attachment.

Modified blockcode attached.

Is this possible to change width of percent bars to 25% (now they are 50% of the block), or set entire panel to have 75% for "Most liked posts" and 25% for "Recent posts" blocks?

EDIT:
I have added "style="width:25%;float:right" to line: "<dd class="statsbar generic_bar righttext">';" but it looks like text with links is still using only 50% of block width:
You cannot view this attachment.

EDIT 2:
Finally, was able to style it right. V2 attached.