miniBB ®
 
miniBB Community Forum
 | Forums | File Bank | Sign Up | Reply | Search | Statistics | Manual |
Captcha Addon for miniBB Fight the automated spam - protect your miniBB-forums, getting the Captcha add-on!
Custom Tutorials and Modifications miniBB Community Forum / Custom Tutorials and Modifications /
Short link for this topic:

How to implement Social Bookmarking (Digg, Del.icio.us, Facebook) script in every thread?

Author Benluke
Forums Member
#1 | Posted: 5 Dec 2008 05:46
Hi,

I'm wondering where I would impliment the following social bookmarking code - So it would appear in every topic.

I geuss I would like it to appear after the last reply.

Social Bookmarking

<div style="border-top-style:solid; padding-top:3px; border-top-width: 1px; border-top-color: #2A4956; float: left;">

<a rel="nofollow" style="text-decoration:none;" href="http://digg.com/" onclick="window.open('http://digg.com/submit?phase=2&amp;url='+encodeURIComponent(location.href)+'&amp;bodytext=&amp;tag s=&amp;title='+encodeURIComponent(document.title));return false;" title="Bookmark to: Digg"> <img style="padding-bottom:1px;" src="digg.gif" alt="Bookmark to: Digg" name="Digg" border="0" id="Digg"/> </a>

<a rel="nofollow" style="text-decoration:none;" href="http://del.icio.us/" onclick="window.open('http://del.icio.us/post?v=2&amp;url='+encodeURIComponent(location.href)+'&amp;notes=&amp;tags=&amp ;title='+encodeURIComponent(document.title));return false;" title="Bookmark to: Del.icio.us"> <img style="padding-bottom:1px;" src="del.gif" alt="Bookmark to: Del.icio.us" name="Delicious" border="0" id="Delicious"/> </a>

<a rel="nofollow" style="text-decoration:none;" href="http://www.facebook.com/" onclick="window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(location.href)+'&amp;t='+encodeURICompon ent(document.title));return false;" title="Bookmark to: Facebook"> <img style="padding-bottom:1px;" src="facebook.gif" alt="Bookmark to: Facebook" name="Facebook" border="0" id="Facebook"/> </a>

</div>

Many thanks.
Regards,
Ben
Author Paul
CEO
#2 | Posted: 5 Dec 2008 06:02 | Edited by: Paul
I suppose you shall edit main_posts.html template, pasting this code somewhere after {$mainPostArea}.

You may enclose it in forum standard tables as well, like

<table class="tbTransparent">
<tr><td class="tbTransparentCell">[SOCIAL NETWORKING CODE COMES HERE]</td></tr>
</table>

And don't forget to copy those images like facebook.gif under forums root folder, or modify the code to refer to them from another folder.
Author Guest
#3 | Posted: 11 Dec 2008 10:06
How could you get this to show up in the top right hand corner of the first post? That would be ideal!!!
Author Paul
CEO
#4 | Posted: 11 Dec 2008 10:47
Guest:
How could you get this to show up in the top right hand corner of the first post?

This would be more difficult - you need to associate this code with some variable in bb_plugins.php, then make this variable appearing using parseMessage() function...

I doubt such difficult code would be needed, so I think, for you it would be enough to modify the same main_posts.html template somewhere at the top... well I hope you know how to do it in HTML. I just don't have enough patience to provide such primitive codes here ;-)
Custom Tutorials and Modifications miniBB Community Forum / Custom Tutorials and Modifications / How to implement Social Bookmarking (Digg, Del.icio.us, Facebook) script in every thread? Top
Your Reply Click this icon to move up to the quoted message

» Username  » Password 
You are welcome to post anonymously by entering a nickname with no password (if that nickname has not been taken by another member) or by leaving both fields empty. If you have a forums membership account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

 
miniBB Community Forum Powered by Free Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts