Facebook 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4291
Latest: Robertqt
New This Month: 5
New This Week: 1
New Today: 0
Stats
Total Posts: 43728
Total Topics: 7587
Most Online Today: 67
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 71
Total: 71

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - [chrisB]

Pages: [1] 2 3
1
Modifications Talk / Contact Us
« on: March 16, 2025, 10:35:13 am »
I think there's a bug or oversight preventing those who become moderators from viewing the contact page. I have tried to add the permission to the user group 'moderator' but I get a message saying it cannot be added.

This issue is only for users assigned moderator permissions of a forum.

2
Modifications Talk / Re: Pretty URL's Pro support/help
« on: March 03, 2025, 10:18:09 am »
Just an update.

I have managed to suss out how to write the category URLs, and it's working. It does seem quite easy to break the links altogether. I don't know if this is a bug, an SMF thing, or if it is normal behaviour. I am still looking into why TinyPortal and Pretty URLs Pro don't respect the edit to make the forum page /community/.

There's probably more going on.

3
Modifications Talk / Re: Pretty URL's Pro support/help
« on: February 26, 2025, 10:17:53 am »
Renewed and upgraded.

I managed to sort out the extra's mod, that's installed now. I just need to sort the categories and the /forum/ to /community/

TinyPortal Integrate.php

I think this could be conflicting with the /forum/ renaming.

https://github.com/Tinyportal/TinyPortal/blob/master/TinyPortal/Integrate.php

-Edit-

I uninstalled TinyPortal for testing, and the /community/ worked. So, I think my assumptions are on the right path.

4
Modifications Talk / Re: Pretty URL's Pro support/help
« on: February 26, 2025, 08:54:09 am »
Sorry, I am not being clear or helpful.

So is tinyportal good now?

No, I can't get the category sections to become pretty URLs. I tried this:
Quote
# TinyPortal Categories (using numeric IDs)
RewriteRule ^news/?$ ./index.php?pretty;cat=4 [L,QSA]
RewriteRule ^tips/?$ ./index.php?pretty;cat=5 [L,QSA]
RewriteRule ^general/?$ ./index.php?pretty;cat=6 [L,QSA]
RewriteRule ^showcase/?$ ./index.php?pretty;cat=7 [L,QSA]
RewriteRule ^features/?$ ./index.php?pretty;cat=8 [L,QSA]
RewriteRule ^interviews/?$ ./index.php?pretty;cat=9 [L,QSA]

# TinyPortal Categories (using Category Names)
RewriteRule ^([A-Za-z]+)/?$ ./index.php?pretty;cat=${lowercase:$1|${lc:$1}}

But it breaks the pages, and doesn't work. I tried without the categories part, and the same outcome happened.

Just the issue with the /community/?
What i generally for 2.1 is modify the main index.php find

Code: [Select]
'clock' => array('Calendar.php', 'clock'),
Add after
Code: [Select]
'community' => array('BoardIndex.php', 'BoardIndex'),

I have added the code, but so far haven't seen any changes. Do I need to edit the htaccess file?


Should I upgrade to the latest version of Pretty URLs Pro?

5
Modifications Talk / Re: Pretty URL's Pro support/help
« on: February 25, 2025, 02:54:55 pm »
Everything now is in my root folder; TinyPortal doesn't change the URLs to friendly versions. Pretty URLs Pro is the one responsible for this feature, and it's now activated. I restored a backup of the site.

There's something forcing /forum/ to be the URL for my board's index page.
https://poetryartonline.com/forum/

I am not sure why this shows an empty page: https://poetryartonline.com/community/

Maybe it's due to my .htaccess edits.

I also can't change the TinyPortal categories to become FURLs (pretty urls).

For example
https://poetryartonline.com/index.php?cat=Features
Also, has https://poetryartonline.com/index.php?cat=8

Would both need targetting?

Like this: (I haven't tried because the last time I did, it broke all the URL's and I had to use a backup of the htaccess).
Code: [Select]
# TinyPortal Categories (using numeric IDs)
RewriteRule ^news/?$ ./index.php?pretty;cat=4 [L,QSA]
RewriteRule ^tips/?$ ./index.php?pretty;cat=5 [L,QSA]
RewriteRule ^general/?$ ./index.php?pretty;cat=6 [L,QSA]
RewriteRule ^showcase/?$ ./index.php?pretty;cat=7 [L,QSA]
RewriteRule ^features/?$ ./index.php?pretty;cat=8 [L,QSA]
RewriteRule ^interviews/?$ ./index.php?pretty;cat=9 [L,QSA]

# TinyPortal Categories (using Category Names)
RewriteRule ^([A-Za-z]+)/?$ ./index.php?pretty;cat=${lowercase:$1|${lc:$1}}

-Edit-
I have managed to sort the pages out. They now rewrite to the following:
https://poetryartonline.com/articles/
https://poetryartonline.com/contact/

Here's my .htaccess file:

Code: [Select]
# PRETTYURLS MOD BEGINS
# Pretty URLs SEO Pro mod
# https://www.smfhacks.com/prettyurls-seo-pro.php
# .htaccess file generated automatically on: February 25, 2025, 23:26

RewriteEngine on
RewriteBase /

# Rules for: TinyPortal Pages (articles, contact)
RewriteRule ^articles/?$ ./index.php?pretty;page=articles [L,QSA]
RewriteRule ^contact/?$ ./index.php?pretty;page=contact [L,QSA]

# Rules for: profiles
RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]

# Rules for: actions
RewriteRule ^(agreement|acceptagreement|activate|admin|announce|attachapprove|buddy|calendar)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(clock|coppa|credits|deletemsg|dlattach|editpoll|editpoll2|findmember)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(groups|help|helpadmin|jsmodify|jsoption|likes|lock|lockvoting)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(login|login2|logintfa|logout|markasread|mergetopics|mlist|moderate)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(modifycat|movetopic|movetopic2|notifyannouncements|notifyboard|notifytopic|pm|post)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(post2|printpage|profile|quotefast|quickmod|quickmod2|recent|reminder)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(removepoll|removetopic2|reporttm|requestmembers|restoretopic|search|search2|sendactivation)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(signup|signup2|sitemaps|prettyurls|smstats|suggest|splittopics|stats)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(sticky|theme|trackip|about:unknown|unread|unreadreplies|uploadAttach|verificationcode)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(viewprofile|vote|viewquery|viewsmfile|who|\.xml|xmlhttp|forum)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(tpadmin|forum|tportal|tpshout|awesome|sitemap_xsl|team)/?$ ./index.php?pretty;action=$1 [L,QSA]

# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

# Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

# PRETTYURLS MOD ENDS

Re: The forum, I was unsure if TinyPortal was forcing the /forum/ due to separating the boardurl and extending it to /index.php?action=forum

6
Modifications Talk / Pretty URL's Pro support/help
« on: February 25, 2025, 11:06:18 am »

I have SMF 2.1.3 and TinyPortal 3.0.1.

I originally had SMF in the root folder, but I have moved it into a 'community' folder as I would prefer to use TinyPortal's standalone feature so that my URLs are as follows.


Edit-

I restored a backup, as I think it makes more sense to keep SMF in the root. I just need to figure out how to improve the URl's

poetryartonline.com <- Tiny Portal
poetryartonline.com/forum/ <- SMF forum

With TinyPortal and Pretty URLs Pro enabled.

I can't alter the .htaccess file to suit my preferences.

I don't currently have the Pretty URLs Pro enabled, but when it is, my forums URL becomes:
https://poetryartonline.com/community/forum/

I can't figure out how to remove the /forum/

Board and Catergory URL's do not have /forum/ but they do have "//"

Which is something else I can't remove.

I did manage to remove 'pages' from Tiny Portal's URLs, but I wasn't able to do it without encountering issues.

However, now my setup is inside a folder. The URLs become: https://poetryartonline.com/community/index.php?cat=5

With TinyPortal I wouldn't want /community/ to show, but for the category name.

poetryartonline.com/articles/
poetryartonline.com/news/

etc

It's worth noting I am on Pretty URLs Pro 2.0.5.

Is this possible?

7
Modifications Talk / Re: Pretty URL's Pro rewriting URLs
« on: February 01, 2023, 05:18:47 pm »
It still logs out breaking the pretty urls;

index.php?action=forum instead of /forum/

This is my htaccess file.
Code: [Select]
# PRETTYURLS MOD BEGINS
# Pretty URLs SEO Pro mod
# https://www.smfhacks.com/prettyurls-seo-pro.php
# .htaccess file generated automatically on: February 1, 2023, 22:58

RewriteEngine on
RewriteBase /

# Rules for: tp-articles
RewriteRule ^page/([^/]+)/?$ ./index.php?pretty;page=$1 [L,QSA]

# Rules for: profiles
RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]

# Rules for: actions
RewriteRule ^(agreement|acceptagreement|activate|admin|announce|attachapprove|buddy|calendar)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(clock|coppa|credits|deletemsg|dlattach|editpoll|editpoll2|findmember)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(groups|help|helpadmin|jsmodify|jsoption|likes|lock|lockvoting)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(login|login2|logintfa|logout|markasread|mergetopics|mlist|moderate)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(modifycat|movetopic|movetopic2|notifyannouncements|notifyboard|notifytopic|pm|post)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(post2|printpage|profile|quotefast|quickmod|quickmod2|recent|reminder)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(removepoll|removetopic2|reporttm|requestmembers|restoretopic|search|search2|sendactivation)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(signup|signup2|sitemaps|prettyurls|smstats|suggest|splittopics|stats)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(sticky|theme|trackip|about:unknown|unread|unreadreplies|uploadAttach|verificationcode)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(viewprofile|vote|viewquery|viewsmfile|who|\.xml|xmlhttp|forum)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(tpadmin|forum|tportal|tpshout|awesome|team)/?$ ./index.php?pretty;action=$1 [L,QSA]

# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

# Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

# PRETTYURLS MOD ENDS

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php80” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php80 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php8_module>
   php_flag display_errors Off
   php_flag zlib.output_compression Off
   php_value max_execution_time 90
   php_value max_input_time 60
   php_value max_input_vars 1000
   php_value memory_limit 512M
   php_value post_max_size 256M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php73"
   php_value upload_max_filesize 60M
</IfModule>
# END cPanel-generated php ini directives, do not edit

-Edit- It's happening on my fresh installed test site, but only once Tiny Portal was installed.

8
Modifications Talk / Re: Pretty URL's Pro rewriting URLs
« on: February 01, 2023, 05:03:22 pm »
🤦🏻‍♂️ I've broken the logout/login part somehow.

https://poetryartonline.com/index.php?action=forum

I've added my URL to the pretty urls root, used the maintenance tool to update the URLs and cleared my cache (browser and site).

God knows what I've done.

-Edit-

It's the logout part that breaks.

If I sign in via /forum/ it redirects fine.

9
Modifications Talk / Re: Pretty URL's Pro rewriting URLs
« on: February 01, 2023, 03:56:16 pm »
Removing the pages part would be harder require extra database queries as
/a-z/a-z/  is already part of pretty urls for the forum side of category/topic
Rodger, when things free up for you - I'll talk to you about it if that's okay.

Can you remind me what goes in these please?


When you tidied up the issues I had before due to the other reactions mod and the installer not working correctly, you added to the skip actions list - I lost it when I installed the last version.

I'll remind myself to make a note :)

My test site redirects to friendly URLs

Whereas my live site '/index.php?action=forum'

That's due to Pretty URLs root not being set right? I've tried sorting this but nothing I have tried corrects it.

10
Modifications Talk / Re: Pretty URL's Pro rewriting URLs
« on: January 28, 2023, 04:50:20 am »
I recently tagged you in a post on SMF regarding an issue with my site.

I have posted on another site asking for help, as returning members would tell me they can't access it due to only text showing.

Could editing the 'QueryString.php' file to remove the /index.php cause a conflict with the Pretty URLs Pro mod? This is a reply I got from my support post - https://www.smfhelper.com/index.php?msg=10224

I have tried to replicate this issue in two live environments, but I never made the edit previously mentioned as I didn't think at the time this could be the root of issue. Thing is, I have uninstalled every mod and the same behaviour happens, so it's all weird.


It's caused by an edit I did.

It depends on the level of cusotmization changing to /pages/133 is easier than page/title/

https://www.smfhacks.com/index.php/topic,9675.0.html the prettyurls extras is a good start for a coding example has a couple other mods in there.

/page/title/ is already included.

https://poetryartonline.com/page/articles/

When you next get chance, could you look into removing /page/ from the URLs please.

11
Support / [Request] Future consideration
« on: January 18, 2023, 08:42:53 am »
Currently, the 'Like x 1 View List' opens a new page (or at least it does for me), it would be nice if it popped up using Ajax or something similar. 😊

12
Support / Re: I don't think its installed correctly
« on: January 06, 2023, 08:05:12 am »
Is it wise to proceed to uninstall when one area fails?


I'm trying to upgrade to the latest version.

It seems fine actually. Latest version is installed.

13
Pretty Urls / Re: Pretty Urls extras
« on: January 05, 2023, 09:08:03 pm »
Is there any chance of the extras being upgraded to 2.1.3?

Emulating it works fine on my test site but I'd rather make the request and wait. 👍🏻

14
Modifications Talk / Re: Pretty URL's Pro rewriting URLs
« on: January 01, 2023, 11:10:35 am »
I'll speak with TinyPortal.

I apologise if you have been annoyed or considered my posts to be spam. I'm not exactly sure why my home IP as been banned but I won't post on here after this.

15
Modifications Talk / Re: Errors with SMF2WPBridge
« on: December 31, 2022, 01:36:15 pm »
Haven't had any time.

Session.php is on wordpress side would require research to see how that file was used before and what to do in the future
https://www.google.com/search?client=firefox-b-1-d&q=File+session.php+is+%3Cstrong%3Edeprecated%3C%2Fstrong%3E+since+version+4.7.0+with+no+alternative+available.
https://en-gb.wordpress.org/plugins/wp-native-php-sessions/
This seemed to fix the issue.

I could login with WordPress and on SMF I would be signed in. I could logout of any area and re-sign in without problems.

However, when I changed the PHP version from 7.2 to 7.4 it stopped logging in via WordPress.

Unless I struck lucky, or something.

I can't get WordPress to sign SMF in now though.

Pages: [1] 2 3

+- Recent Topics

Mod for compare gallery.text with board.text by Michel68
Today at 04:16:39 am

ST Shop integration by Senkusha
March 18, 2025, 07:33:13 pm

Contact Us by SMFHacks
March 16, 2025, 07:49:23 pm

HTTP 500 error during install by SMFHacks
March 13, 2025, 10:44:31 am

Site upgrade to 2.1 by SMFHacks
March 12, 2025, 09:29:43 pm

[Mod]WebP and AVIF File Support for SMF 2.1 by SMFHacks
March 10, 2025, 04:32:57 pm

Pretty URL's Pro support/help by [chrisB]
March 03, 2025, 10:18:09 am

More RSS feeds by melon
February 28, 2025, 08:23:21 am

SMF Shop / ST Shop Credits? by SMFHacks
February 22, 2025, 06:13:10 pm

Down_sendpm Error by Senkusha
February 22, 2025, 07:49:24 am

Powered by EzPortal