Social Bookmarking Mod for PHPBB3
|
|
by
I show you something fantastic and you find fault.
Published on May 16th, 2009, 7:54 pm Rift: Advice |
Not a big fan of the "bookmark them all" websites and the risks associated with running their script on every page. Also there's not much out there that does just the "big" social sites, so I wrote my own. It will actually work with any blogging software since all you have to do is pass the URL and title via a GET variable... but I thought I'd post it here for PHPBB3 users:
1) Download sharesquare_v3.zip, decompress and upload sharesquare.php to your root directory.
2) Open viewtopic.php in your root directory and find:
- Code: Select all
'FORUM_ID' => $forum_id,
before it add:
- Code: Select all
'U_SHARE_SQUARE' => urlencode("http://{$_SERVER['HTTP_HOST']}/viewtopic.$phpEx?f=$forum_id%26t=$topic_id"),
'SHARE_SQUARE_TITLE' => urlencode($topic_data['topic_title']),
3) open your viewtopic_body.html template (forum\style\{style name}\template\viewtopic_body.html) in your administrator control panel and find:
- Code: Select all
{postrow.MESSAGE}
after it add:
- Code: Select all
<!-- IF postrow.S_FIRST_ROW -->
<div style="align:left;">
<iframe src="sharesquare.php?url={U_SHARE_SQUARE}&title={SHARE_SQUARE_TITLE}" width="100%" height="40" frameborder="0" scrolling="no"><a href="http://greensboring.com/viewtopic.php?f=23&t=10521">Social Bookmarking for PHPBB</a></iframe>
</div>
<!-- ENDIF -->
Of course fudging the U_SHARE_SQUARE variable will allow you to adapt for subdomains, etc. and so on.
Updates:
5/24/2009 - Fixed Yahoo Buzz.
9/2/2009 - Added Rededit & Delicious

