Minor complaints

This is an archive of a topic from NESdev BBS, taken in mid-October 2019 before a server upgrade.
View original topic
Minor complaints
by on (#88340)
Is it possible to change the titles of these forum pages from this:
Code:
nesdev.com :: View topic - NES programming marathon

To something like this:
Code:
NES programming marathon :: nesdev.com

This would make tabbed browsing easier.

Also another minor thing, logging in from http://nesdev.com/bbs doesn't actually log in to nesdev.com/bbs, but to nesdev.com/bbs. That is, if I browse to nesdev.com/bbs after logging, I'm not logged in. Easiest fix would probaby be to change http://nesdev.com/bbs to a redirection to nesdev.com...

by on (#88345)
I'll see what I can do about the first issue; it may require custom modifications to the phpBB code, which when upgrading between versions (not just talking about the 2.x -> 3.x upgrade in another thread), could be lost or cause problems for the patcher.

As for the 2nd issue, that's because cookies set a domain name within them. In this case, phpBB code gets the request for http://nesdev.com/bbs/, but returns you a cookie that is tied to nesdev.com. Verification (note the two Set-Cookie HTTP response headers, "domain" fields):

Code:
$ curl -i -I http://nesdev.com/bbs/
HTTP/1.1 200 OK
Date: Tue, 03 Jan 2012 21:01:23 GMT
Server: Apache
X-Powered-By: PHP/5.3.8
Set-Cookie: phpbb2mysql_data=a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A0%3A%22%22%3Bs%3A6%3A%22userid%22%3Bi%3A-1%3B%7D; expires=Wed, 02-Jan-2013 21:01:23 GMT; path=/; domain=nesdev.com
Set-Cookie: phpbb2mysql_sid=4994f0f53dbb538cc2aaf63e428f388a; path=/; domain=nesdev.com
Cache-Control: private, pre-check=0, post-check=0, max-age=0
Expires: 0
Pragma: no-cache
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8


This is one of the many problems with having "multiple domains pointing to the same thing".

As such, I've changed our Apache configuration to redirect any http://nesdev.com or http://www.nesdev.com URLs to their appropriate http://nesdev.com URL. http://wiki.nesdev.com will not be affected. Example:

Code:
$ curl -i -I http://nesdev.com/bbs/
HTTP/1.1 301 Moved Permanently
Date: Tue, 03 Jan 2012 21:13:59 GMT
Server: Apache
Location: http://nesdev.com/bbs/
Vary: Accept-Encoding
Content-Type: text/html; charset=iso-8859-1

$ curl -i -I http://nesdev.com/blah/
HTTP/1.1 301 Moved Permanently
Date: Tue, 03 Jan 2012 21:14:05 GMT
Server: Apache
Location: http://nesdev.com/blah/
Vary: Accept-Encoding
Content-Type: text/html; charset=iso-8859-1

by on (#88506)
:( Now this site is blocked from work. nesdev.com/bbs always worked, but whenever parodius is added in it gets flagged as "gaming". I guess I'll just have to be more productive!

by on (#88507)
I'll add a tiny tiny one too, not too big although I just think it looks bad: use transparent PNG's as buttons and get rid of the pixelated border on the button images. :D

by on (#88564)
WhatULive4 wrote:
:( Now this site is blocked from work. nesdev.com/bbs always worked, but whenever parodius is added in it gets flagged as "gaming". I guess I'll just have to be more productive!

Woah, same thing happened this week on my work :O