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
Moderator: Moderators

<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&layout=standard&show_faces=true&width=450&action=like&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>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&layout=standard&show_faces=true&width=450&action=like&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
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
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&layout=standard&show_faces=true&width=450&action=like&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.

yaashul wrote:Is iframe allowed in xhtml?

{U_INDEX}{U_VIEW_FORUM}{U_VIEW_TOPIC}
Users browsing this forum: ichiro [Crawler] and 6 guests