- Added Google Custom Search to the header
- Changed how page titles are rendered for SE readability and ranking
- Removed text from pages used by bots to locate this forum (to post spam)
- Changed the height of Syntax boxes
- A few other minor changes
A few changes
Moderator: General Moderators
A few changes
I spent some time last night and made the following changes:
- Jonah Bron
- DevNet Master
- Posts: 2764
- Joined: Thu Mar 15, 2007 6:28 pm
- Location: Redding, California
Re: A few changes
Lovin' it.Benjamin wrote: Added Google Custom Search to the header
Don't quite understand...Benjamin wrote:I would like to also have the forum topic URL's changed so that they are the topic title and post id.
Re: A few changes
A topic url would be changed from the current format:
http://forums.devnetwork.net/viewtopic.php?f=20&t=130714
To:
http://forums.devnetwork.net/a-few-changes/post/130714/
http://forums.devnetwork.net/viewtopic.php?f=20&t=130714
To:
http://forums.devnetwork.net/a-few-changes/post/130714/
- Jonah Bron
- DevNet Master
- Posts: 2764
- Joined: Thu Mar 15, 2007 6:28 pm
- Location: Redding, California
Re: A few changes
Ahhh, I get it.
Re: A few changes
Not digging the ads - any way to get rid of them? Could we say we're a non-profit?
Good work though.
Good work though.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Re: A few changes
We can pay to have them removed. Actually, I haven't even seen them because I use adblock anyway.
- Jonah Bron
- DevNet Master
- Posts: 2764
- Joined: Thu Mar 15, 2007 6:28 pm
- Location: Redding, California
Re: A few changes
You mean the ads on the search results? Same here, I didn't know they were there until you mentioned it and I disabled Adblock. Don't suppose Devnet gets anything from them?
Re: A few changes
Isn't there a problem with non-unique post titles? It's pretty hard to avoid duplicating an old topic title that was used years ago. You know, like "HELP!!!"Benjamin wrote:A topic url would be changed from the current format:
viewtopic.php?f=20&t=130714
To:
a-few-changes/post/130714/
Of course, maybe that's the way to collect 'em all in one place.
Re: A few changes
Well that's why we have to put the post id in the url.
- Jonah Bron
- DevNet Master
- Posts: 2764
- Joined: Thu Mar 15, 2007 6:28 pm
- Location: Redding, California
Re: A few changes
Anyway, that should be a simple URL rewrite, right? Tested, this seems to work:
[text]RewriteEngine on
RewriteRule ^[^/]+/post/(\d+)/?$ /viewtopic.php?t=$1[/text]
Not sure if it might conflict with other things though. You can speculate all you want, but until you check it out for yourself, you never know
[text]RewriteEngine on
RewriteRule ^[^/]+/post/(\d+)/?$ /viewtopic.php?t=$1[/text]
Not sure if it might conflict with other things though. You can speculate all you want, but until you check it out for yourself, you never know
Last edited by Jonah Bron on Wed Jul 27, 2011 11:10 am, edited 1 time in total.
Re: A few changes
Yeah I'll need to go through the site and change these links where they appear and also add 301 redirects for the old posts.
I'm curious why you are rewriting to posting.php rather than viewtopic.php though.
I'm curious why you are rewriting to posting.php rather than viewtopic.php though.
- Jonah Bron
- DevNet Master
- Posts: 2764
- Joined: Thu Mar 15, 2007 6:28 pm
- Location: Redding, California
Re: A few changes
I am too... how did I do that? 
Re: A few changes
I think that the stackoverflow URL is better then the one Benjamin suggested. It uses the first part as a domain like forum,topic,post etc, the second part as an id and the last part is for SEO.
For example:
[text]http://stackoverflow.com/questions/7380 ... controller[/text]
So:
[text]a-few-changes/post/130714/[/text]
Becomes:
[text]post/130714/a-few-changes[/text]
I think that putting it that way is better since it is very easy for users to find the title (as it is always placed last).
For example:
[text]http://stackoverflow.com/questions/7380 ... controller[/text]
So:
[text]a-few-changes/post/130714/[/text]
Becomes:
[text]post/130714/a-few-changes[/text]
I think that putting it that way is better since it is very easy for users to find the title (as it is always placed last).
Re: A few changes
all the search engines can easily work with phpBB and fine the relevant content
same applies for all of the other popular forum packages
same applies for all of the other popular forum packages
Hardcore Games™ Legendary is the Only Way to Play™
My site is powered by LAMP
My site is powered by LAMP