News:

Join the Facebook Fan Page.

Main Menu

TinyPortal

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

Previous topic - Next topic

tinoest

Quote from: rcane on February 12, 2022, 02:16:39 PMThanks for the quick answer/reply.

I'm going to experiment with some php code in a block.  The site isn't open for users yet so it's just me.  If I have a someFile.php on server, what's the smartest way to make a block and implement it?  I ask because TP doesn't appear to be responsive on the theme I'm using (ant's mutant)

Make sure the box isn't checked for non response themes in the Settings page, otherwise TinyPortal should be responsive.

What is the contents of the someFile.php? You can either require it and load what you want that way, or just have the contents of it in a php block.

rcane

Quote from: tinoest on February 12, 2022, 02:21:36 PM
Quote from: rcane on February 12, 2022, 02:16:39 PMThanks for the quick answer/reply.

I'm going to experiment with some php code in a block.  The site isn't open for users yet so it's just me.  If I have a someFile.php on server, what's the smartest way to make a block and implement it?  I ask because TP doesn't appear to be responsive on the theme I'm using (ant's mutant)

Make sure the box isn't checked for non response themes in the Settings page, otherwise TinyPortal should be responsive.

What is the contents of the someFile.php? You can either require it and load what you want that way, or just have the contents of it in a php block.

It's some code I was helped with.  I'm dumping PDF docs into a folder and want to show the most current one only with a stock image to click. 

I think it might work in the body window.  Does it require the <? php    ?> or does the body presume that and not require it?

tinoest

Quote from: rcane on February 12, 2022, 02:24:03 PMI think it might work in the body window.  Does it require the <? php    ?> or does the body presume that and not require it?

You don't need the <?php ?> tags.

gevv

Hi,

@lurkalot    Error log occurs on every page refresh.

Smf 2.1.1
Tinyportal 2.2.0
Php 7.4

Sources/TPBlock.php (line 92)

Use of undefined constant TP_BLOCK_SITEMAP - assumed 'TP_BLOCK_SITEMAP' (this will throw an Error in a future version of PHP)




    #0: smf_error_handler()
    Sources/TPBlock.php on line 92
    #1: getBlocks()
    Sources/Subs.php on line 5779
    #2: call_integration_hook()
    Sources/TPortal.php on line 175
    #3: TPortal_init()
    TinyPortal/Integrate.php on line 809
    #4: hookPreLogStats()
    Sources/Subs.php on line 5779
    #5: call_integration_hook()
    index.php on line 272
    #6: smf_main()
    index.php on line 199





Sources/TPBlock.php (line 86)

Use of undefined constant TP_BLOCK_ARTICLEBOX - assumed 'TP_BLOCK_ARTICLEBOX' (this will throw an Error in a future version of PHP)



    #0: smf_error_handler()
    Sources/TPBlock.php on line 86
    #1: getBlocks()
    Sources/Subs.php on line 5779
    #2: call_integration_hook()
    Sources/TPortal.php on line 175
    #3: TPortal_init()
    TinyPortal/Integrate.php on line 809
    #4: hookPreLogStats()
    Sources/Subs.php on line 5779
    #5: call_integration_hook()
    index.php on line 272
    #6: smf_main()
    index.php on line 199
ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

@rjen

Clean install or upgrade ?

Not having any such issues...

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

bienquangcao

I run SMF on LEMP (PHP 7.4 and Nginx), my forum index redirect loop forever.

gevv

Quote from: @rjen on February 14, 2022, 10:54:13 AMClean install or upgrade ?

Not having any such issues...



Clean install

Quote from: bienquangcao on February 15, 2022, 02:08:35 PMI run SMF on LEMP (PHP 7.4 and Nginx), my forum index redirect loop forever.

i had the same problem
ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

@rjen

Quote from: bienquangcao on February 15, 2022, 02:08:35 PMI run SMF on LEMP (PHP 7.4 and Nginx), my forum index redirect loop forever.

That bug is in TP version 2.2.0 only. Version 2.2.1 was released yesterday to fix that. Please do NOT use version 2.2.0 anymore....
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

@rjen

TinyPortal 2.2.1 can be used on SMF 2.0 and 2.1

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

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

Bugfixes:
- fix for shoutbox block causing too many redirects on a new install
- fix for download announcement topic assigned to guest
- restored PHP support for PHP 7.0 and 7.1

Note:
when updating from TinyPortal versions older than 2.1.0, recent topics blocks are enhanced with a new block setting: "Characters to display in titles". Due to this change any pre-existing recent topics blocks 'may' have a changed title length after installing the new version of TP. Please check these blocks and adjust the block setting "Characters to display in titles" to the desired length...
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

Steve

So what is the latest version that will work with PHP 5.6 and SMF 2.0.19?
DO NOT pm me for support!

tinoest


Steve

DO NOT pm me for support!

landyvlad

Quote from: Steve on February 20, 2022, 07:45:35 PMSo what is the latest version that will work with PHP 5.6 and SMF 2.0.19?

Just as an aside - why are you running PHP5.6? That's WAY old.
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

Steve

I know ... the hosting system I'm on goes to 7.0 but one of the mods I MUST have only works with 5.6 or below.   :-[
DO NOT pm me for support!

landyvlad

Wow. OK well you KNOW that mod will likely never be updated if it's still that old, and it will come to a point where SMF won't support 5.6 in future (and probably sooner that most mods won't) so you may really nee to reevaluate the MUST part. :)   

Which mod out of interest?
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

Oldiesmann

Also time to find a better host if they don't offer anything newer than 7.0
Michael Eshom
Christian Metal Fans

Arantor

Or find someone to update said mod.

@rjen

Not a question to TinyPortal, but one FROM TinyPortal..

trying to trace down a specifically hard to find css issue. Hoping that one of the css experts from SMF can help me find this one.

Issue:
on SMF2.1.x with TinyPortal (version 2.2.1) installed I find that on mobile screens the board-index will not fit when the Quick moderation is set to "checkboxes"

I tracked it down to the element with the ID quick_actions: this contains a few element that are using flex css.

Here is the issue: on a clean SMF install this works fine on small screens. With TP installed this element will not fit on small screen anymore.
I have been trying to get to the bottom, and it has something to do with the flex settings. But I cannot find WHAT...

any clues?

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

@rjen

Anyone with above average css understanding who wants to check the issue? If so I can share a member access to the test forum...
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

marcosbr

Two bugs that bothered me about TinyPortal. I always ignored them and today I decided to look for them.

Themes/default/css/tp-style.css

Find:
max-height: 300 px;Replace:
max-height: 300px;

Find:
6px 0 0 0; !important;Replace:
6px 0 0 0 !important;

Old validation error:
Nothing in life is absolute. We are always learning... Did you know that?
https://amigosdaeletronica.com.br

Advertisement: