Welcome, Guest. Please login or register.
Did you miss your activation email?
February 13, 2012, 02:58:41 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
149700 Posts in 21103 Topics by 7538 Members
Latest Member: ionline
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Facebook like on news post  (Read 153 times)
Gerben

Offline Offline

Posts: 3


« on: January 08, 2012, 03:33:51 PM »

At the bottom of a single newspost we have a tweet and like button. When you click on it, the url of the specific newspost is send as a tweet or a like. The url of the page is based on its newspost title. The problem is that when you change the title of the newspost, the url of the page also changes. So my question is, can you open a newspost based on its post_id? For example, now you link a news post with title "This is a post" with an url like: /pages/posts/this-is-a-post-234.php, and I would like to link it with an url like: /pages/posts/post.php?post_id=234. Is this already possible with module news, or do I have to make my own post_id based url referrer?

In het Nederlands:
Ik heb een Like button die een nieuwsbericht met de url naar Facebook doorzend. Nu is de url gebaseerd op de title zoals "dit-is-een-bericht-232.php" en ik wil een url gebaseerd op "bericht.php?post_id=232". Is dit al mogelijk in de module news?
Logged
Ruud
Board member
WebsiteBaker Org e.V.

Offline Offline

Posts: 2094



WWW
« Reply #1 on: January 08, 2012, 11:03:10 PM »

No, WB (and also the news module) use SEO friendly urls.

It might be possible to modify the /modules/news/view.php so it will accept a link like that, but it would also be difficult to generate the correct link for the FB/TW buttons.
Logged

Professional WebsiteBaker Developer
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!