MyBB Community Forums

Full Version: Twitter/Facebook/etc. on the side.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Thanks.
I still am hoping to get a copy of my idea for free from Yaldaram though. Smile
I don't know how it would work,but I understand your condition brother,I know how world works,I would try to configure some templates and if am successful I would release it to you. Smile
(2011-03-18, 09:54 PM)newn Wrote: [ -> ]Thanks.
I still am hoping to get a copy of my idea for free from Yaldaram though. Smile

5$ are nothing as compared to the work I performed for developing a plugin Undecided You would get more then 30 plugins just for 5 $.
I wrote a small javascript function that adds a floating sidebar to the page.

Download the floatsidebar.js file and upload it to the jscript/ folder of MyBB. In the AdminCP go to Templates & Styles > Templates > (your templateset) > Ungrouped templates > headerinclude. Add the following at the bottom:
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/floatsidebar.js?ver=1600"></script>
<script type="text/javascript">
document.observe("dom:loaded", function() {
	floatsidebar([
		{
			'title': 'Follow us on Twitter',
			'image': 'http://www.nextstopmagazine.com/images/twitter_logo_vertical.png',
			'url': 'http://www.twitter.com/',
			'width': 38,
			'height': 100
		},
		{
			'title': 'Follow us on Facebook',
			'image': 'http://www.nextstopmagazine.com/images/facebook_logo_vertical.png',
			'url': 'http://facebook.com/',
			'width': 38,
			'height': 100
		}
	],
	'right');
});
</script>

You can change the title, image and url. You can also change what side the sidebar should display by changing 'right' at the end to 'left'.

I tested this on Chrome, Firefox, Opera, Safari and IE8.

PS: images or domain are not mine. Just found them on Google. You will have to find images yourself, upload them to your server and change the url in the template.
(2011-03-22, 02:28 PM)Aries-Belgium Wrote: [ -> ]I wrote a small javascript function that adds a floating sidebar to the page.

Download the floatsidebar.js file and upload it to the jscript/ folder of MyBB. In the AdminCP go to Templates & Styles > Templates > (your templateset) > Ungrouped templates > headerinclude. Add the following at the bottom:
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/floatsidebar.js?ver=1600"></script>
<script type="text/javascript">
document.observe("dom:loaded", function() {
	floatsidebar([
		{
			'title': 'Follow us on Twitter',
			'image': 'http://www.nextstopmagazine.com/images/twitter_logo_vertical.png',
			'url': 'http://www.twitter.com/',
			'width': 38,
			'height': 100
		},
		{
			'title': 'Follow us on Facebook',
			'image': 'http://www.nextstopmagazine.com/images/facebook_logo_vertical.png',
			'url': 'http://facebook.com/',
			'width': 38,
			'height': 100
		}
	],
	'right');
});
</script>

You can change the title, image and url. You can also change what side the sidebar should display by changing 'right' at the end to 'left'.

I tested this on Chrome, Firefox, Opera, Safari and IE8.

PS: images or domain are not mine. Just found them on Google. You will have to find images yourself, upload them to your server and change the url in the template.
awesome dude<3

Thank you for not being greedy and understanding people from poor countries, Aries-Belgium.
Great plugin! Smile
(2011-03-26, 11:26 AM)newn Wrote: [ -> ]Thank you for not being greedy and understanding people from poor countries, Aries-Belgium.

You're welcome Smile
That is class, thanks Aries Smile can you please tell me how to add the target blank thingy so will open in a different page and not on the current one.
Pages: 1 2