TinyPortal

Development => Support => Topic started by: [chrisB] on February 23, 2025, 04:02:36 PM

Title: Standalone help
Post by: [chrisB] on February 23, 2025, 04:02:36 PM
Link to my forum: https://poetryartonline.com/community/forum/
SMF version: SMF ver. 2.1.4
TP version: TP ver. 3.0.1C
Default Forum Language: Your Default Forum Language. English
Theme name and version: Custom
Browser Name and Version: Chrome Version 133.0.6943.127 (Official Build) (64-bit)
Mods installed: Mods listed here
Related Error messages: Error message here. N/A

I have managed to sort out the standalone side, by editing the standalone.php file placing it in my root index. Yet TinyPortal is rewiring my forums URL to /commmunity/forum/.

How would I remove the forum part?
Title: Re: Standalone help
Post by: @rjen on February 23, 2025, 05:15:28 PM
I don't think that is TinyPortal doing that: your forum IS in the /forum directory, you have now placed TinyPortal standalone OUTSIDE that directory (which is what standalone is supposed to do), but the main forum is not 'jumping' with it!

If you want your forum outside the subdomain folder, you will have to move the forum itself...
Title: Re: Standalone help
Post by: [chrisB] on February 23, 2025, 07:55:55 PM
It might be the VGamer's Pretty URLs Pro mod.

I have successfully removed Tiny Portal, Pretty URLs Pro, and another extension from my system. SMF is inside a folder called /community/

 Which works, I think, when I enable TinyPortal; when it creates the 'Home' and moves the boardurl to a forumurl - I think this is where the forum comes from. index.php?action=forum I might be mistaken, but I would like to just keep everything within the folder.
Title: Re: Standalone help
Post by: @rjen on February 23, 2025, 08:10:49 PM
The /forum does not come from TinyPortal.

TinyPortal places the forum in such a link : /index.php?action=forum

I do not know what Pretty URLs does to that. TBH I do not use that mod and would not recommend it either...
Title: Re: Standalone help
Post by: [chrisB] on February 26, 2025, 01:23:28 PM
Quote from: @rjen on February 23, 2025, 08:10:49 PMThe /forum does not come from TinyPortal.

TinyPortal places the forum in such a link : /index.php?action=forum

I do not know what Pretty URLs does to that. TBH I do not use that mod and would not recommend it either...

Just out of curiosity, which file is responsible for creating the index.php?action=forum?
Title: Re: Standalone help
Post by: tino on February 27, 2025, 09:20:04 PM
Quote from: [chrisB] on February 26, 2025, 01:23:28 PM
Quote from: @rjen on February 23, 2025, 08:10:49 PMThe /forum does not come from TinyPortal.

TinyPortal places the forum in such a link : /index.php?action=forum

I do not know what Pretty URLs does to that. TBH I do not use that mod and would not recommend it either...

Just out of curiosity, which file is responsible for creating the index.php?action=forum?


From memory it's integrate.php in the TinyPortal folder.
Title: Re: Standalone help
Post by: [chrisB] on February 28, 2025, 02:04:28 AM
There's something in TinyPortal, which is telling Pretty URLs to use /forum/ - I have temporarily uninstalled TP. I know I'm going to sound picky, but /community/ works when it's not in use. https://poetryartonline.com/community/.

vbgamer suggested giving this a try:
(https://i.imgur.com/pgbqIJm.png)
'community' => array('BoardIndex.php', 'BoardIndex'),

Is there anything like this in TinyPortal which could explain why when it's installed, the URL becomes forum? I know TP doesn't create the friendly URL. Yet something is overriding this line when it is in use.
Title: Re: Standalone help
Post by: tino on February 28, 2025, 12:39:33 PM
https://github.com/Tinyportal/TinyPortal/blob/984df1fbdf7b4673e58a899e832c4d2c6f97af99/TinyPortal/Integrate.php#L621

I think you're referring to this line in the actions hook.
Title: Re: Standalone help
Post by: [chrisB] on February 28, 2025, 01:50:43 PM
Quote from: tino on February 28, 2025, 12:39:33 PMhttps://github.com/Tinyportal/TinyPortal/blob/984df1fbdf7b4673e58a899e832c4d2c6f97af99/TinyPortal/Integrate.php#L621

I think you're referring to this line in the actions hook.

There seems a bit more to it, I looked at other instances where 'forum' exists in the code but I'm unable figure it out.
Title: Re: Standalone help
Post by: @rjen on February 28, 2025, 02:28:46 PM
That is EXACTLY the code that Tino just gave you...
Title: Re: Standalone help
Post by: [chrisB] on February 28, 2025, 03:05:27 PM
Quote from: @rjen on February 28, 2025, 02:28:46 PMThat is EXACTLY the code that Tino just gave you...

I'm not saying it isn't, Rjen. What I am saying is, I couldn't figure out what to change based on several attempts to see if I could stop it from overriding the Pretty URL mod.

I tried changing it (in various ways).
Removing it had no effect.
Commenting it out.

I looked at temporarily changing other parts where the instance "forum" showed.
Title: Re: Standalone help
Post by: tino on February 28, 2025, 05:15:53 PM
We don't tell pretty url's to use /forum/

We might have a link somewhere which points to action=forum when we rewrite the default home page url. That's in the front page hook. Where it's getting modified to /forum/ I don't know as it's not done via us.

I think you can specify the forum url in the admin settings in TPortal.
Title: Re: Standalone help
Post by: [chrisB] on February 28, 2025, 10:11:39 PM
Quote from: tino on February 28, 2025, 05:15:53 PMWe don't tell pretty url's to use /forum/

We might have a link somewhere which points to action=forum when we rewrite the default home page url. That's in the front page hook. Where it's getting modified to /forum/ I don't know as it's not done via us.

I think you can specify the forum url in the admin settings in TPortal.

The Pretty URLs mod is making it /forum/ :)

TinyPortal is just making the action /index.php?action=forum and the Pretty URL mod is taking that code and making it /forum/ - maybe vbgamer might know if TP's code can be overridden. Maybe, in the future, TP could consider allowing users to define what the forum is called.

I don't think there's a setting for it, but I might be wrong.

I get that it's not wise making changes which could break future upgrades, and I respect that I am given so much useful help. I really do admire the work with TinyPortal. All SMF portals are quite hard for me to dive into, but that's me. At some point, I will be adding that my site uses TinyPortal because of how powerful it is. If I could code better, I'd love to share blocks and stuff, but what takes some people 30 minutes to 1 hour would take me multiple weeks.  ;D

One day, perhaps but I do appreciate the help and support.