| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
abaird
Joined: 02 Dec 2008 Posts: 3
|
Posted: Tue Dec 02, 2008 6:55 pm Post subject: How to construct nice URL's for PHP BB SEO? |
|
|
I have a website that I've integrated with a phpbbseo premod. It works great, and I love the URL's.
One of the features of this website is it offers a "preview" of forum topics on the front page. Previously, this was very easy to do because I could just pull the thread id out of the phpbb mysql database and manually construct an (ugly) URL using viewtopic.php?t=[topic_id]. This works with the phpbbseo premod fine, but I don't get to take advantage of the awesome URL's that phpbbseo gives me.
Google does a great job of indexing my front page, and I'm afraid it's not following those links as well as it should.
I'd like to format the links on my front page with nice URL's that phpbbseo but I can't figure out how to do it. I went through a few source files to try to find something but I'm not sure what, if any of the phpbb seo functions I should be using. They all looks pretty internal to the class itself, so I'm a little reluctant to use any of them.
Does anyone know of a way I could do this? |
|
|
| Back to top |
|
 |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 4551
|
|
| Back to top |
|
 |
abaird
Joined: 02 Dec 2008 Posts: 3
|
Posted: Wed Dec 03, 2008 6:57 pm Post subject: Re: How to construct nice URL's for PHP BB SEO? |
|
|
Yes, it does share phpBB script.
The external page includes phpbb's common.php functions by default (but I could expand this easily).
Anyone visiting the page has a phpbb session, even if it's anonymous.
Right now I just do a query on the phpbb_posts and phpbb_topics table for the topic id/post id and subject. I display that on the front page and hard code in the URL to viewtopic.php with the correct post id and topic id. |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15414
|
|
| Back to top |
|
 |
abaird
Joined: 02 Dec 2008 Posts: 3
|
Posted: Sat Dec 06, 2008 11:09 am Post subject: Re: How to construct nice URL's for PHP BB SEO? |
|
|
Wow, super easy, and PERFECT! Thank you so much!!
Already implemented and working great  |
|
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |