Facebook Like Button on phpbb forums

Support for the phpBB3 SEO mods released in the phpBB3 SEO Toolikt forum.

Moderator: Moderators

Facebook Like Button on phpbb forums

Postby maxwell » Wed May 05, 2010 5:33 pm

I found a modification that adds a button with Facebook on the forum.
The addresses look like this: viewtopic.php?f={S_FORUM_ID}&t={S_TOPIC_ID}
How do I change it to cooperate with SEO?


http://boardtalk.net/forum/viewtopic.php?f=7&t=58
maxwell
PR0
PR0
 
Posts: 72
Joined: Sun Nov 15, 2009 3:13 pm
Location: NL

Advertisement

Re: Facebook Like Button on phpbb forums

Postby darjana » Sat May 22, 2010 2:30 pm

Hmm. If you enabled php in your phpbb settings.

You can do like this

subsilver

Code: Select all
<tr><td colspan="2" height="25px" width="100%" class="row"><div align="center">
<!-- PHP -->
$protocol = $_SERVER['HTTPS'] == 'on' ? 'https' : 'http';
$curURL = $protocol.'://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$currURL = urlencode($curURL);
echo "<iframe src=\"http://www.facebook.com/plugins/like.php?href=$currURL&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light\" scrolling=\"no\" frameborder=\"0\" allowTransparency=\"true\" style=\"border:none; overflow:hidden; height: 25px;\"></iframe>";
echo "<fb:like href=\"$currURL\" layout=\"standard\" show_faces=\"true\" height=\"25px\" action=\"like\" colorscheme=\"light\" />";
<!-- ENDPHP -->
</div></td>
</tr>


preview : http://www.tamilstylez.net/forum/hindi- ... t3145.html
darjana
 
Posts: 45
Joined: Fri Feb 01, 2008 10:25 am

Re: Facebook Like Button on phpbb forums

Postby reign.santiago2 » Mon Aug 09, 2010 8:09 pm

darjana wrote:Hmm. If you enabled php in your phpbb settings.

You can do like this

subsilver

Code: Select all
<tr><td colspan="2" height="25px" width="100%" class="row"><div align="center">
<!-- PHP -->
$protocol = $_SERVER['HTTPS'] == 'on' ? 'https' : 'http';
$curURL = $protocol.'://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$currURL = urlencode($curURL);
echo "<iframe src=\"http://www.facebook.com/plugins/like.php?href=$currURL&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light\" scrolling=\"no\" frameborder=\"0\" allowTransparency=\"true\" style=\"border:none; overflow:hidden; height: 25px;\"></iframe>";
echo "<fb:like href=\"$currURL\" layout=\"standard\" show_faces=\"true\" height=\"25px\" action=\"like\" colorscheme=\"light\" />";
<!-- ENDPHP -->
</div></td>
</tr>


preview : http://www.tamilstylez.net/forum/hindi- ... t3145.html

This is right if you change your php setting in your phpbb it goes like these. But, why you need to change your setting or maybe enable the php in your phpbb setting.
reign.santiago2
 
Posts: 1
Joined: Mon Aug 09, 2010 8:00 pm

Re: Facebook Like Button on phpbb forums

Postby nasht00 » Wed Aug 11, 2010 12:31 am

I don't know about that specific module you are using, but if you just use Facebook's official code for the Like button, you can simply leave the URL empty, and it will detect it for you.
nasht00
 
Posts: 21
Joined: Thu Oct 01, 2009 10:29 pm

Re: Facebook Like Button on phpbb forums

Postby izzet37 » Tue Aug 17, 2010 9:01 pm

maxwell wrote:I found a modification that adds a button with Facebook on the forum.
The addresses look like this: viewtopic.php?f={S_FORUM_ID}&t={S_TOPIC_ID}
How do I change it to cooperate with SEO?


http://boardtalk.net/forum/viewtopic.php?f=7&t=58



F = () S_FORUM_ID & t = (S_TOPIC_ID) my now problems?
Last edited by SeO on Sun Nov 21, 2010 7:39 pm, edited 3 times in total.
Reason: Links removed (rule 5a : Linking offsite is allowed if links are being offered in a "relevant discussion context")
izzet37
 
Posts: 11
Joined: Tue Aug 17, 2010 8:57 pm

Re: Facebook Like Button on phpbb forums

Postby izzet37 » Tue Aug 17, 2010 9:03 pm

reign.santiago2 wrote:
darjana wrote:Hmm. If you enabled php in your phpbb settings.

You can do like this

subsilver

Code: Select all
<tr><td colspan="2" height="25px" width="100%" class="row"><div align="center">
<!-- PHP -->
$protocol = $_SERVER['HTTPS'] == 'on' ? 'https' : 'http';
$curURL = $protocol.'://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$currURL = urlencode($curURL);
echo "<iframe src=\"http://www.facebook.com/plugins/like.php?href=$currURL&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light\" scrolling=\"no\" frameborder=\"0\" allowTransparency=\"true\" style=\"border:none; overflow:hidden; height: 25px;\"></iframe>";
echo "<fb:like href=\"$currURL\" layout=\"standard\" show_faces=\"true\" height=\"25px\" action=\"like\" colorscheme=\"light\" />";
<!-- ENDPHP -->
</div></td>
</tr>


preview : http://www.tamilstylez.net/forum/hindi- ... t3145.html

This is right if you change your php setting in your phpbb it goes like these. But, why you need to change your setting or maybe enable the php in your phpbb setting.


I know I do not know, but a telling off
izzet37
 
Posts: 11
Joined: Tue Aug 17, 2010 8:57 pm

Re: Facebook Like Button on phpbb forums

Postby yaashul » Thu Aug 19, 2010 1:34 pm

Is iframe allowed in xhtml?
yaashul
PR1
PR1
 
Posts: 158
Joined: Wed Aug 29, 2007 1:21 am

Re: Facebook Like Button on phpbb forums

Postby izzet37 » Fri Aug 20, 2010 9:37 pm

yaashul wrote:Is iframe allowed in xhtml?



Works were necessarily considered.
Last edited by SeO on Sun Nov 21, 2010 7:39 pm, edited 1 time in total.
Reason: Links removed (rule 5a : Linking offsite is allowed if links are being offered in a "relevant discussion context")
izzet37
 
Posts: 11
Joined: Tue Aug 17, 2010 8:57 pm

Re: Facebook Like Button on phpbb forums

Postby microtekblue » Sun Aug 22, 2010 11:46 pm

Not sure what mod your using, but integrating a facebook like button you can do by yourself with minimal knowledge of javascript, html, and the facebook api.

You don't need to specify a url for your like button. If you leave it blank it will take the default current pages url automatically. So you don't need to change any seo url settings at all.

We used a like button with commenting capabilities on the viewtopic pages for our forum at: http://www.ontariohighwaytrafficact.com/topic123.html

You can leave out og:url property out of your facebook api meta properties, which will make your like button use your current page.

http://developers.facebook.com/docs/ref ... ugins/like
microtekblue
 
Posts: 42
Joined: Mon Jul 28, 2008 4:20 pm

Re: Facebook Like Button on phpbb forums

Postby yaashul » Tue Apr 05, 2011 6:55 am

In Iframe I can' leave URL as blank

and if i use FBML IE6 break shows done with error on the page....
yaashul
PR1
PR1
 
Posts: 158
Joined: Wed Aug 29, 2007 1:21 am

Re: Facebook Like Button on phpbb forums

Postby dcz » Wed Apr 06, 2011 10:33 am

You can do this in templates without php, for the href= just use :
Code: Select all
{U_INDEX}

in index_body.html,
Code: Select all
{U_VIEW_FORUM}

in viewforum_body.html
and
Code: Select all
{U_VIEW_TOPIC}

in viewtopic_body.html
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21382
Joined: Fri Apr 28, 2006 9:03 pm

Re: Facebook Like Button on phpbb forums

Postby lizapatel » Mon Feb 13, 2012 1:00 pm

Hey its working on my Blog :) thank you soo much I downloaded a plugin for Facebook user like but after few days i got problems from that plugin. Thank you for a great sharing
lizapatel
 
Posts: 2
Joined: Mon Feb 13, 2012 12:46 pm


Return to phpBB SEO MODS

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest