PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Nov 24, 2014 8:34 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: A few changes
PostPosted: Mon Jul 25, 2011 7:47 am 
Offline
Site Administrator
User avatar

Joined: Sun May 19, 2002 10:24 pm
Posts: 6875
I spent some time last night and made the following changes:

  • 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

I would like to also have the forum topic URL's changed so that they are the topic title and post id. If anyone wants to tackle that it would be great.

_________________
Image


Top
 Profile  
 
 Post subject: Re: A few changes
PostPosted: Mon Jul 25, 2011 8:40 pm 
Offline
DevNet Master
User avatar

Joined: Thu Mar 15, 2007 6:28 pm
Posts: 2765
Location: Redding, California
Benjamin wrote:
Added Google Custom Search to the header

Lovin' it.

Benjamin wrote:
I would like to also have the forum topic URL's changed so that they are the topic title and post id.

Don't quite understand...


Top
 Profile  
 
 Post subject: Re: A few changes
PostPosted: Mon Jul 25, 2011 10:45 pm 
Offline
Site Administrator
User avatar

Joined: Sun May 19, 2002 10:24 pm
Posts: 6875
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/

_________________
Image


Top
 Profile  
 
 Post subject: Re: A few changes
PostPosted: Tue Jul 26, 2011 10:08 am 
Offline
DevNet Master
User avatar

Joined: Thu Mar 15, 2007 6:28 pm
Posts: 2765
Location: Redding, California
Ahhh, I get it.


Top
 Profile  
 
 Post subject: Re: A few changes
PostPosted: Tue Jul 26, 2011 3:04 pm 
Offline
Briney Mod
User avatar

Joined: Mon Jan 19, 2004 7:11 pm
Posts: 6433
Location: 53.01N x 112.48W
Not digging the ads - any way to get rid of them? Could we say we're a non-profit?

Good work though.

_________________
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.


Top
 Profile  
 
 Post subject: Re: A few changes
PostPosted: Tue Jul 26, 2011 3:11 pm 
Offline
Site Administrator
User avatar

Joined: Sun May 19, 2002 10:24 pm
Posts: 6875
We can pay to have them removed. Actually, I haven't even seen them because I use adblock anyway.

_________________
Image


Top
 Profile  
 
 Post subject: Re: A few changes
PostPosted: Tue Jul 26, 2011 8:36 pm 
Offline
DevNet Master
User avatar

Joined: Thu Mar 15, 2007 6:28 pm
Posts: 2765
Location: Redding, California
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?


Top
 Profile  
 
 Post subject: Re: A few changes
PostPosted: Tue Jul 26, 2011 9:44 pm 
Offline
Jack of Zircons
User avatar

Joined: Thu Nov 09, 2006 9:30 pm
Posts: 4484
Location: California, USA
Benjamin wrote:
A topic url would be changed from the current format:

viewtopic.php?f=20&t=130714

To:

a-few-changes/post/130714/

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!!!" :?

Of course, maybe that's the way to collect 'em all in one place.


Top
 Profile  
 
 Post subject: Re: A few changes
PostPosted: Tue Jul 26, 2011 10:25 pm 
Offline
Site Administrator
User avatar

Joined: Sun May 19, 2002 10:24 pm
Posts: 6875
Well that's why we have to put the post id in the url.

_________________
Image


Top
 Profile  
 
 Post subject: Re: A few changes
PostPosted: Tue Jul 26, 2011 11:07 pm 
Offline
DevNet Master
User avatar

Joined: Thu Mar 15, 2007 6:28 pm
Posts: 2765
Location: Redding, California
Anyway, that should be a simple URL rewrite, right? Tested, this seems to work:

Syntax: [ Download ] [ Hide ]
RewriteEngine on
RewriteRule ^[^/]+/post/(\d+)/?$ /viewtopic.php?t=$1

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.

Top
 Profile  
 
 Post subject: Re: A few changes
PostPosted: Wed Jul 27, 2011 12:01 am 
Offline
Site Administrator
User avatar

Joined: Sun May 19, 2002 10:24 pm
Posts: 6875
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.

_________________
Image


Top
 Profile  
 
 Post subject: Re: A few changes
PostPosted: Wed Jul 27, 2011 11:10 am 
Offline
DevNet Master
User avatar

Joined: Thu Mar 15, 2007 6:28 pm
Posts: 2765
Location: Redding, California
I am too... how did I do that? :-|


Top
 Profile  
 
 Post subject: Re: A few changes
PostPosted: Sun Sep 11, 2011 12:48 pm 
Offline
Forum Contributor
User avatar

Joined: Wed May 31, 2006 9:20 am
Posts: 393
Location: The Holy Land
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:
Syntax: [ Download ] [ Hide ]
http://stackoverflow.com/questions/7380103/can-i-define-an-outlet-in-a-nib-without-specifying-a-controller


So:
Syntax: [ Download ] [ Hide ]
http://forums.devnetwork.net/a-few-changes/post/130714/

Becomes:
Syntax: [ Download ] [ Hide ]
http://forums.devnetwork.net/post/130714/a-few-changes


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).


Top
 Profile  
 
 Post subject: Re: A few changes
PostPosted: Sun Feb 26, 2012 11:34 am 
Offline
Forum Contributor

Joined: Fri Sep 05, 2008 3:34 pm
Posts: 236
Location: Victoria, BC
all the search engines can easily work with phpBB and fine the relevant content

same applies for all of the other popular forum packages

_________________
Hardcore Games Legendary is the Only Way to Play


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group