TinyPortal

Development => Support => Topic started by: [chrisB] on January 01, 2023, 12:35:42 AM

Title: Is it possible to change forum URL to community?
Post by: [chrisB] on January 01, 2023, 12:35:42 AM
I've just installed Tiny Portal and I would like to know if it is possible to change forum to community within the URL?

If so, could someone please tell me how.

I am using SMF 2.1.3 and TinyPortal 2.2.2
Title: Re: Is it possible to change forum URL to community?
Post by: tino on January 01, 2023, 12:53:42 AM
Do you mean the action=forum?
Title: Re: Is it possible to change forum URL to community?
Post by: [chrisB] on January 01, 2023, 12:58:56 AM
Yes
Title: Re: Is it possible to change forum URL to community?
Post by: tino on January 01, 2023, 09:04:47 AM
You can either edit the code so it's action=community or use Apache's mod_rewrite and do it that way.

But we don't have a configuration option to do this.
Title: Re: Is it possible to change forum URL to community?
Post by: [chrisB] on January 01, 2023, 05:30:17 PM
Thanks.

Perhaps you could advice me?

I prefer my forums to be /community/, I had SMF inside a folder which was community but I have moved to try to use portals. My first option didn't work out, as I experienced bugs but I have given Tiny Portal ago.

Would it be possible to have Tiny Portal in my root folder, with SMF being inside a community folder?

Otherwise, I think the htaccess would be the solution, although I have no idea how to achieve it.
Title: Re: Is it possible to change forum URL to community?
Post by: tino on January 01, 2023, 06:52:43 PM
Quote from: [chrisB] on January 01, 2023, 05:30:17 PM
Thanks.

Perhaps you could advice me?

I prefer my forums to be /community/, I had SMF inside a folder which was community but I have moved to try to use portals. My first option didn't work out, as I experienced bugs but I have given Tiny Portal ago.

Would it be possible to have Tiny Portal in my root folder, with SMF being inside a community folder?

Otherwise, I think the htaccess would be the solution, although I have no idea how to achieve it.

What you are asking is outside of the standard SMF url format. They don't do /forum/ even.

You can install SMF in a root folder called community. Same as they do on the main SimpleMachinesForum. The rest is then under index.php?action=blah

If you put TinyPortal on there it means the community main page will be either the TinyPortal main page or the forum index if that's what you want shown with whatever blocks you want to be active.
Title: Re: Is it possible to change forum URL to community?
Post by: [chrisB] on January 01, 2023, 07:23:37 PM
Sorry, I should've added from the beginning I am using Pretty URLs which changes the forum URL.

I'll look into the htaccess side as I tried editing the forum=action in the TP subs and nothing changed. I'm not sure where else to look.
Title: Re: Is it possible to change forum URL to community?
Post by: tino on January 01, 2023, 07:29:03 PM
If you are using Pretty URL's I am pretty sure you can do it with that, although you should contact the mod author for that rather than us. They used to support Portal's from memory.

https://custom.simplemachines.org/index.php?mod=636

prettyurls-extras-1.0-RC.zip - Provides rewrite filters for mods including seo4smf, Tinyportal Articles, Tagging System, Download System, ezPortal Pages, SMF Gallery, SMF Articles, SMF Classifieds, and SMF Store

That is from the modification page, they do the .htaccess for you.