Search found 7 matches

by hbarel
Fri May 21, 2021 10:53 am
Forum: Bugs
Topic: Static pages break with URL parameters
Replies: 5
Views: 1932

Re: Static pages break with URL parameters

Thanks for the rather accurate pointers! Indeed, there were two places where the URI parameters made it into the lookup, making the static page not found. This can be resolved by stripping those parameters from $nice_url on two occasions, as I did in the enclosed patch. --- diff --git a/plugins/ser...
by hbarel
Thu May 20, 2021 4:54 pm
Forum: Bugs
Topic: Static pages break with URL parameters
Replies: 5
Views: 1932

Re: Static pages break with URL parameters

I would be happy to have a look myself, but can anyone hint on where I need to look? Where is the part that parses /pages/....html names and passes them to render and display?
by hbarel
Thu May 20, 2021 10:19 am
Forum: Bugs
Topic: Static pages break with URL parameters
Replies: 5
Views: 1932

Static pages break with URL parameters

Hello, Not sure if anyone noticed this, but when you call a static page with a URL parameter (such as those used for campaign tracking), the engine treats it as a page that is not found. For example: www.blog.com/pages/my-info.html?pk_medium=mail will throw you to the main-page. It will not dump the...
by hbarel
Sat May 15, 2021 12:02 pm
Forum: General discussions
Topic: Recommended feature: Only unmoderated comments on dashboard
Replies: 1
Views: 1164

Recommended feature: Only unmoderated comments on dashboard

There is one option which I think some users may find valuable and I recommend adding into some future version: the ability to configure the dashboard so that the "Comments" section of the dashboard includes only comments awaiting action (i.e., pending moderation), rather than all comments. The "In ...
by hbarel
Sat May 15, 2021 11:27 am
Forum: Development
Topic: alternative to strpos
Replies: 11
Views: 11897

Re: alternative to strpos

Excellent, thank you! Indeed, I thought serendipity_config_local.inc.php might be a bit too early and causes the bug, but I did not realize there is a "later" config.inc.php with the template... Truthfully, I should have searched better... P.S. You're right, the topic is not really strpos , but I fi...
by hbarel
Fri May 14, 2021 2:37 pm
Forum: Development
Topic: alternative to strpos
Replies: 11
Views: 11897

Re: alternative to strpos

I actually tried my own function for replacing strpos. I need it to strip the entire URL that comes as $tag from the tags plugin, and leave me with a simple text-only tag that I can add to the keyword metadata of the HTML header. So I defined the following: function tag_from_link($tag) { $ttag=''; i...
by hbarel
Sun Apr 25, 2021 7:27 pm
Forum: Installation
Topic: Problems with PHP8 - latest XAMPP Version
Replies: 3
Views: 1408

Re: Problems with PHP8 - latest XAMPP Version

Any idea on if/when S9Y is to be made compatible with PHP 8.0?
I'd like to migrate into it, but there is no point doing so if the project is to be abandoned.
Thanks.