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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,947
  • Latest: sgm09
Stats
  • Total Posts: 195,765
  • Total Topics: 21,279
  • Online today: 436
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 377
  • Total: 377

Standalone help

Started by [chrisB], February 23, 2025, 04:02:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

[chrisB]

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?

@rjen

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...
Running Latest TP on SMF2.1 at: www.fjr-club.nl

[chrisB]

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.

@rjen

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...
Running Latest TP on SMF2.1 at: www.fjr-club.nl

[chrisB]

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?

tino

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.

[chrisB]

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:

'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.


[chrisB]

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.

@rjen

That is EXACTLY the code that Tino just gave you...
Running Latest TP on SMF2.1 at: www.fjr-club.nl

This website is proudly hosted on Crocweb Cloud Website Hosting.