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

Recent

Welcome to TinyPortal. Please login or sign up.

Recent posts

#51
Servers & hosts / Error on new host
Last post by bynw - October 23, 2026, 03:56:12 AM

Link to my forum: https://rhemuthcastle.com
SMF version: 2.1.8
TP version: 3.0.3
Default Forum Language: Engilsh
Theme name and version: SMF Default Curve 2
Browser Name and Version: Firefox 158.0.1
Mods installed:
Discord Web Hooks
Discord Who's Online
Email Obfuscator
Google Member Map
Email Inactive Users
ListUnsubscribePost
SMF Gallery Lite
SMF 2.1.5 Update
SMF 2.1.6 Update
SMF 2.1.7 Update
More Spiders
SMF 2.1.8 Update
TinyPortal
Related Error messages: I have recently moved hosts. Updated TinyPortal and SMF. I noticed the the following field in TinyPortal still has the old host's path listed. Path where TinyPortal images are uploaded to on your server.
So prior to updating TinyPortal I went to update this field with the correct new path and got an error. The error still happens after updating TinyPortal as well.


Type of error
General
Error message
readdir(): Argument #1 ($dir_handle) must be of type resource or null, false given
File
/actual/path/hidden/Sources/TPortalAdmin.php
Line
2975
URL of page causing the error
https://rhemuthcastle.com/index.php?action=tpadmin
Backtrace information

    #0: smf_exception_handler()
    Called from unknown on line -1

#52
Support / Re: Remove Comment Counter
Last post by Michael Vail - October 20, 2026, 07:39:55 PM
@rjen :D  :2funny:  ;D  :D
#53
Support / Recent Topics vs Recent Posts
Last post by Itchdog - September 30, 2026, 11:12:36 PM
Hi. Me again. I'm using the recent topics block on my forum. It not only shows the recent topics, but also all new posts as well. So if someone posts on a topic that is months old, it shows up in the recent topics list. That's not really a problem, but is there a way to set up a block that ONLY shows recent topics and not recent posts?

Like I said, not a big deal. I kind of worked around it by using an rss feed that only picks up new topics.
#54
Support / Re: Remove Comment Counter
Last post by @rjen - September 29, 2026, 09:29:09 PM
Quote from: Itchdog on September 29, 2026, 04:33:35 PMI'll give you my cat if you can add the option to have the frontpage topics show horizontal instead of vertical  ;D .

I hate cats...
#55
Support / Re: Remove Comment Counter
Last post by Itchdog - September 29, 2026, 04:33:35 PM
I'll give you my cat if you can add the option to have the frontpage topics show horizontal instead of vertical  ;D .
#56
Support / Re: Recent Topics
Last post by @rjen - September 28, 2026, 10:14:07 AM
In Tinyportal 3.0.4 these options are added now...

You cannot view this attachment.
#57
Support / Re: Remove Comment Counter
Last post by @rjen - September 26, 2026, 04:38:35 PM
After your question I was looking into this functionality and noticed that there is very limited control on the layout for these topics on the frontpage.

I may add some options for this in the Frontpage settings in the next version
#58
Support / Re: Remove Comment Counter
Last post by Itchdog - September 26, 2026, 04:27:49 PM
Awesome! Thanks so much @rjen.
#59
Support / Re: Remove Comment Counter
Last post by @rjen - September 25, 2026, 08:12:23 PM
And to get rid of the comments sections...

File TPsubs.template.php

find

function article_boardnews($render = true)
{
global $context, $scripturl, $txt;

if (!isset($context['TPortal']['article']['replies'])) {
return;
}

and change to

function article_boardnews($render = true)
{
global $context, $scripturl, $txt;

// if (!isset($context['TPortal']['article']['replies'])) {
return;
// }
return;
#60
Support / Re: Remove Comment Counter
Last post by @rjen - September 25, 2026, 07:27:39 PM
This is not configurable. The only way to remove those fields for forum posts on the frontpage is to make code changes to file Article.php

This will get rid of the "views"
File: \TinyPortal\Article.php

Find
              if (!isset($context['TPortal']['frontpage_visopts'])) {
                    $context['TPortal']['frontpage_visopts'] = 'date,title,author,views' . ($context['TPortal']['forumposts_avatar'] == 1 ? ',avatar' : '');
                }

and change to

                if (!isset($context['TPortal']['frontpage_visopts'])) {
                    $context['TPortal']['frontpage_visopts'] = 'date,title,author' . ($context['TPortal']['forumposts_avatar'] == 1 ? ',avatar' : '');
                }

This website is proudly hosted on Crocweb Cloud Website Hosting.