princed.org (phpBB forum + webpages)

Prince of Persia related subjects that do not have their own boards.
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5749
Joined: April 9th, 2009, 10:58 pm

Re: princed.org (phpBB forum + webpages)

Post by Norbert »

The YouTube embedding stopped working, I think.

[Edit: Never mind, it was Firefox' Tracking Protection that hid the YouTube videos.]
David
The Prince of Persia
The Prince of Persia
Posts: 2852
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: princed.org (phpBB forum + webpages)

Post by David »

David wrote: September 23rd, 2017, 11:35 am And it looks like non-BMP Unicode emoji is supported as well: 👳🤴⏳👸
It looks like Emoji Shortcodes are also supported.
I figured this out accidentally when I wanted to manually insert a smiley.

For example, this:

Code: Select all

:man_with_turban: :crossed_swords: :prince: :hourglass_flowing_sand: :princess: :flag_ir:
becomes this: :man_with_turban: :crossed_swords: :prince: :hourglass_flowing_sand: :princess: :flag_ir:
David
The Prince of Persia
The Prince of Persia
Posts: 2852
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: princed.org (phpBB forum + webpages)

Post by David »

If I paste an URL into the Search then I get an error message.
Example: search.php?keywords=https%3A%2F%2Falber ... mit=Search
Not Acceptable!
An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security.
The following strings trigger the error: "http:/", "https:/", "ftp:/", "ftps:/", "gopher:/".
Most other words before the colon don't trigger the error, so this is specifically for protocol names.

This is not really a problem since I can just search without the protocol part, but I'm curious why does this happen.

Other words that trigger the error are: "<script", "onclick=", "<iframe", "document.write(".
I guess Mod_Security is trying to block XSS.
Falcury
Calif
Calif
Posts: 565
Joined: June 25th, 2009, 10:01 pm

Re: princed.org (phpBB forum + webpages)

Post by Falcury »

Falcury wrote: June 2nd, 2018, 8:31 pm To keep everyone up to date on the switch to HTTPS: Enrique is looking at alternatives to the current shared hosting provider. Most likely a dedicated server or a VPS. No timeline yet, but it's on the agenda.
Enrique and I will migrate the site soon to a new host (probably an Amazon t2.micro instance).
That will allow us to serve the site over HTTPS, and do various other things (for example, set up automated backups).

Enrique mentioned that it may be practical to change the forum's address from forum.princed.org to princed.org/forum. We could set up a redirect so that any old links will still work correctly.
I think I like the idea. This way, the webpages and the forum will be merged together under the same domain, instead of being separate sites. And, it would make it consistent with princed.org/wiki, which we also currently have set up as a subdirectory instead of a subdomain.
What do you think?
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5749
Joined: April 9th, 2009, 10:58 pm

Re: princed.org (phpBB forum + webpages)

Post by Norbert »

Sounds good.
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5749
Joined: April 9th, 2009, 10:58 pm

Re: princed.org (phpBB forum + webpages)

Post by Norbert »

Norbert wrote: June 17th, 2017, 11:19 pmThere are also other outdated pages, such as the Princed Downloads page.
Recently, this tweet got quite a bit of attention.
Means various people downloaded, for example, SDLPoP 1.16 instead of 1.18.1.
Perhaps a bunch of 'latest version here' links would help.
Also, the Twitter link goes to the #FreePrince anchor.
Maybe the FreePrince section could say SDLPoP is a much better alternative these days.
Falcury
Calif
Calif
Posts: 565
Joined: June 25th, 2009, 10:01 pm

Re: princed.org (phpBB forum + webpages)

Post by Falcury »

I disabled the display of the line "Moderator: English Moderator Team", etc. on forum boards. We don't really use moderator groups right now, anyway.
The main page looks strangely empty now. :P
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5749
Joined: April 9th, 2009, 10:58 pm

Re: princed.org (phpBB forum + webpages)

Post by Norbert »

This error showed up after clicking the Submit button of the form that showed up when using the 'Report this post' exclamation button (here).
Attachments
general_error.png
David
The Prince of Persia
The Prince of Persia
Posts: 2852
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: princed.org (phpBB forum + webpages)

Post by David »

Norbert wrote: November 3rd, 2018, 10:31 am This error showed up after clicking the Submit button of the form that showed up when using the 'Report this post' exclamation button (here).
I just moved that Russian spam post to the Trash.
From the error message it seems that the table used by the report function can't handle the Cyrillic letters of that post.
But why?
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5749
Joined: April 9th, 2009, 10:58 pm

Re: princed.org (phpBB forum + webpages)

Post by Norbert »

David wrote: November 3rd, 2018, 10:43 amBut why?
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5749
Joined: April 9th, 2009, 10:58 pm

Re: princed.org (phpBB forum + webpages)

Post by Norbert »

David
The Prince of Persia
The Prince of Persia
Posts: 2852
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: princed.org (phpBB forum + webpages)

Post by David »

Norbert wrote: December 6th, 2018, 12:22 am I've moved several YouTube videos around. Sorry...
If a mod is willing to replace 30 IDs, I'd be grateful.
I'm starting this now.
David
The Prince of Persia
The Prince of Persia
Posts: 2852
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: princed.org (phpBB forum + webpages)

Post by David »

Norbert wrote: December 6th, 2018, 12:22 am I've moved several YouTube videos around. Sorry...
If a mod is willing to replace 30 IDs, I'd be grateful.
Done.

I see you included the old ID at the end of the title of each new video. (With "-" and "_" changed to a space.)

Why did you move the videos?
I see the newer account has the PoP walkthroughs and the tests of the BBC Master port. (And some non-PoP videos, mostly Binding of Isaac.)
While the older account has the other PoP videos.
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5749
Joined: April 9th, 2009, 10:58 pm

Re: princed.org (phpBB forum + webpages)

Post by Norbert »

David wrote: December 8th, 2018, 7:27 pmDone.
Super, thanks!
David wrote: December 8th, 2018, 7:27 pmWhy did you move the videos?
Mostly to make the PoPModding YouTube channel more of a community thing, without all these videos of me playing levels. That, for instance, if people would subscribe or check other videos in the channel out of curiosity, then my playthroughs aren't in the way.
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5749
Joined: April 9th, 2009, 10:58 pm

Re: princed.org (phpBB forum + webpages)

Post by Norbert »

Falcury wrote: August 20th, 2018, 11:35 amEnrique and I will migrate the site soon to a new host (probably an Amazon t2.micro instance).
That will allow us to serve the site over HTTPS, and do various other things (for example, set up automated backups).
I don't think the migration happened yet(?), but SSL (https) is now available!

There are some changes that could be made.
The primary change is to automatically deliver content over SSL.
To enable this, supplement - not replace - the .htaccess file in the top level directory (e.g. www/ or public_html/ or web/) with the following.
Note that this .htaccess file may already exist, and may already contain the first line "RewriteEngine On".

Code: Select all

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*) https://www.%{SERVER_NAME}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTPS} off
RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]
Next up, all the forum's custom BBCode, such as the one used to embed YouTube videos, could be modified to use SSL.
Anything that creates iframes, such as the aforementioned YouTube BBCode, must be loaded via https.
If this step is omitted after the .htaccess modification, content in http iframes will disappear.

Finally, not as important as the above step, some polishing could be done.
To get all pages to display a green SSL lock in the browser address bar, all elements (such as images) must also be loaded via SSL.
Mostly, this will happen automatically, but hard-coded URLs, such as this forum's "http://www.princed.org/images/princed_2.ico" would need the "s".
Probably not necessary to spend much time on this, because from no lock to a lock with a warning is a much more interesting step than getting rid of all warnings.
Post Reply