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

Recent

Welcome to TinyPortal. Please login or sign up.

May 20, 2024, 04:21:50 PM

Login with username, password and session length

Recent posts

#1
Support / Re: Importing simple portal bl...
Last post by @rjen - Today at 10:28:26 AM
If we are just talking about blocks I would suggest simply creating the blocks in TinyPortal.

You did not mention what type of blocks you have and how many. Html, bbc an php blocks are quite similar between SP and TP I believe. Other blocks I don't know
#2
Support / Importing simple portal blocks...
Last post by samsonwilliams - Today at 08:55:09 AM
Hi I was wondering if a dev of tiny portal can import my blocks from simple portal in to my new install of latest up grade of simple machines & now using install of TP as i have no clue how to do this or if it can be done in to TP, hoping i can transfer all my old code.
#3
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
#4
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.
#5
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',
                ),
            );
        }
    }
#6
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.
#7
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...
#8
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.                       
#9
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.
#10
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.