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: 365
  • Total: 365

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

[chrisB]

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.

tino

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.

[chrisB]

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.

This website is proudly hosted on Crocweb Cloud Website Hosting.