[ABD] Meebo Bar on phpBB

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Skinny Vinny
Registered User
Posts: 230
Joined: Tue Dec 01, 2009 7:10 pm

[ABD] Meebo Bar on phpBB

Post by Skinny Vinny »

Modification Name: Meebo Bar on phpBB
Author: Skinny Vinny

Modification Description:: Adds the meebo bar to phpBB forum
Modification Version:: 0.0.1

Modification Download: (Template mods in topic)



We'll call this alpha.
The meebo bar itself is in beta.

Let's be clear here first: I'm not trying to promote meebo. I'm not really a fan of the meebo bar, but I just caught the news that it's going public a bit ago and i know a lot of people do like it and use it. I'm sure a lot of forum admins will be interested in adding it to their forums.


So, as I said, Meebo has opened up the bar to the general public.
You can see examples of the bar at the http://bar.meebo.com website. Many will recognize it as the static bar seen screen bottom on http://mashable.com

Does not require code mods: simply requires additions to template header and footer files.

Create meebo account if you don't already have one.
Create a meebo bar.
Manage your bar at https://dashboard.meebo.com/

When you create your bar, it should eventually take you to their 'integration wizard'. If it doesn't, you can get there via the dashboard. When asked to "Please choose the option that best describes your site", choose "I host my own blog /site or use a different blog platform". You'll be presented with your javascripts, which should look like this:

For immediately following the <body> tag of overall_header (the XXXXXXXXXX will have your network identifier):

Code: Select all

<script type="text/javascript">
Meebo=function(){(Meebo._=Meebo._||[]).push(arguments)};
(function(q){
	var args = arguments;
	if (!document.body) { return setTimeout(function(){ args.callee.apply(this, args) }, 100); }
	var d=document, b=d.body, m=b.insertBefore(d.createElement('div'), b.firstChild); s=d.createElement('script');
	m.id='meebo'; m.style.display='none'; m.innerHTML='<iframe id="meebo-iframe"></iframe>';
	s.src='http'+(q.https?'s':'')+'://'+(q.stage?'stage-':'')+'cim.meebo.com/cim/cim.php?network='+q.network;
	b.insertBefore(s, b.firstChild);

})({network:'XXXXXXXXXX'});
Meebo('makeEverythingSharable');
</script>
And then for overall_footer, just before the </body> tag:

Code: Select all

<script type="text/javascript">
 	Meebo("domReady");
</script>

I've installed the bar to my dev forums on localhost for testing, and it seems to be working fine (you can add additional domains, including localhost, through the meebo dashboard). Only problems I had was actually creating the meebo account and bar on their site: server errors, etc. Looks like it was temporary as 30 minutes later I tried again and here ya go :)

You manage the buttons and bar settings through the meebo site.
Be sure to review and comply with their terms, etc.

If you use this on your live board, please share your overall experience and community reactions.
Enjoy!
User avatar
Nawid
Registered User
Posts: 329
Joined: Sat Jun 27, 2009 4:32 pm
Contact:

Re: [ALPHA] Meebo Bar on phpBB

Post by Nawid »

I've installed this. It's a nice feature, BUT I don't like that it also grabs my logo. And it's a pity that you can't disable some options. For example, I don't want that this "mod" grabs my logo and posted youtube videos on the forum...

But it's also nice, because you can set your own buttons.
Please take a look at my site

http://www.schoollife.nl/forum/index.php
Image
Check SuperNova Orange style on:
SchoolLife.nl
phpBB.com
Skinny Vinny
Registered User
Posts: 230
Joined: Tue Dec 01, 2009 7:10 pm

Re: [ALPHA] Meebo Bar on phpBB

Post by Skinny Vinny »

From the meebo site:
Preventing an element from being made sharable

To prevent an image or video from becoming sharable, you can include the notsharable attribute either in the element tag or in a container tag. This will tell discoverSharable to ignore this element and any child elements. This is particularly helpful to prevent any ads on your site from being made sharable.

Example of inserting the notsharable attribute into a container with multiple elements inside:

Code: Select all

    <div meebo:notsharable='true' >
        <img src... >
        <embed src...></embed>
    </div>


Example of inserting the notsharable attribute in the element tag itself:

Code: Select all

    <div>
        <img ... meebo:notsharable='true' >
        <embed src...></embed>
    </div>
In this example, the image would not be sharable, but the embed tag would.
You can use the <img> tage example there on the logo, and wrap your youtube embeds with the div example. There are also meebo tags that can wrap what content of the page you want to be shared (but add xmlns:meebo="http://www.meebo.com/" to the html tag to use them).

Haven't tested these at all, just echoing the info back from meebos integration docs.
User avatar
Nawid
Registered User
Posts: 329
Joined: Sat Jun 27, 2009 4:32 pm
Contact:

Re: [ALPHA] Meebo Bar on phpBB

Post by Nawid »

It works, I've added the code to my logo and my youtube bbcode.
Thank you, I think, I was just to lazy ... :)
Image
Check SuperNova Orange style on:
SchoolLife.nl
phpBB.com
User avatar
Nawid
Registered User
Posts: 329
Joined: Sat Jun 27, 2009 4:32 pm
Contact:

Re: [ALPHA] Meebo Bar on phpBB

Post by Nawid »

How can I disable this for ALL images posted on my forum?

I want to do this because now the image resize mod isn't working. Do you know which file I need to open to add the div?

Edit: I've uninstalled the mod because of the problem I have, it's a pity :)
Image
Check SuperNova Orange style on:
SchoolLife.nl
phpBB.com
Skinny Vinny
Registered User
Posts: 230
Joined: Tue Dec 01, 2009 7:10 pm

Re: [ALPHA] Meebo Bar on phpBB

Post by Skinny Vinny »

Again, not tested, but based solely on the integartions docs and the reply above,
<div meebo:notsharable='true' > in overall header, and a corresponding closing </div> added in overall_footer would take out sharing of anything in between them.

Or, the meebo tags explained in the docs with the xmlns addition to html tag to wrap the 'share only' content.

Take out sharing on entire page: add meebo:notsharable='true' to the wrap div (found immediately after the body tag in overall_header). If you feel like testing, what happens if you add meebo:notsharable='true' to the body tag in overall_header?

Point is, anything wrapped by those tags wont trigger the meebo share, so apply as needed.
Should note that your media is what social users tend to share the most.
User avatar
Nawid
Registered User
Posts: 329
Joined: Sat Jun 27, 2009 4:32 pm
Contact:

Re: [ALPHA] Meebo Bar on phpBB

Post by Nawid »

<div meebo:notsharable='true' > in overall header, and a corresponding closing </div> added in overall_footer would take out sharing of anything in between them.
Tried, it works
Take out sharing on entire page: add meebo:notsharable='true' to the wrap div (found immediately after the body tag in overall_header). If you feel like testing, what happens if you add meebo:notsharable='true' to the body tag in overall_header?
Tried, also works

But as soon as I want to validate my site, I get 3 errors. please click here
Image
Check SuperNova Orange style on:
SchoolLife.nl
phpBB.com
Skinny Vinny
Registered User
Posts: 230
Joined: Tue Dec 01, 2009 7:10 pm

Re: [ALPHA] Meebo Bar on phpBB

Post by Skinny Vinny »

Ok, validator says strict isn't liking this.
You could try switching to transitional like this;

Find in overall_header:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
And replace with:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
I highly doubt that will cure the first validation error though (if it even clears the second 2). Not positive right now that it can be, and spending too much time on it is pointless as the extra 'unsupported attribute' isn't going to cause problems rendering the page for anyone.

This is similar to facebook connect buttons and countless other third party scripts and markup: they will never pass validation.

The primary purpose of validation is to ensure cross browser compatibility. Contrary to the belief of many, there is no seo impact. With that in mind, I don't feel the error is even worth bothering with.
Last edited by Skinny Vinny on Wed Dec 23, 2009 3:08 am, edited 1 time in total.
User avatar
Nawid
Registered User
Posts: 329
Joined: Sat Jun 27, 2009 4:32 pm
Contact:

Re: [ALPHA] Meebo Bar on phpBB

Post by Nawid »

Skinny Vinny wrote:Ok, validator says strict isn't liking this.
You could try switching to transitional like this;

Find in overall_header:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
And replace with:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Those codes are exactly the same ^^
I don't feel the error is even worth bothering with.
Ok then, Thanks for your time and help :)
Image
Check SuperNova Orange style on:
SchoolLife.nl
phpBB.com
Skinny Vinny
Registered User
Posts: 230
Joined: Tue Dec 01, 2009 7:10 pm

Re: [ALPHA] Meebo Bar on phpBB

Post by Skinny Vinny »

Edited, but it's literaly changing the text 'strict' to 'transitional' lol.
User avatar
Nawid
Registered User
Posts: 329
Joined: Sat Jun 27, 2009 4:32 pm
Contact:

Re: [ALPHA] Meebo Bar on phpBB

Post by Nawid »

Code: Select all

Validation Output: 2 Errors

 Line 141, Column 62: Attribute "meebo:notsharable" is not a valid attribute
…d="phpbb" class="section-index ltr" meebo:notsharable="true">
✉
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

 Line 154, Column 78: document type does not allow element "iframe" here
…m.innerHTML='<iframe id="meebo-iframe"></iframe>';
✉
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
Now I get 2 errors instead of 3 :) Any idea how to use css with this?
Image
Check SuperNova Orange style on:
SchoolLife.nl
phpBB.com
thesecret
Registered User
Posts: 270
Joined: Mon Sep 29, 2008 12:13 pm

Re: [ALPHA] Meebo Bar on phpBB

Post by thesecret »

i need to make the users of my forum chat together as in facebook and wadja.com
is that available?
User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany
Contact:

Re: [ALPHA] Meebo Bar on phpBB

Post by darkonia »

its a nice feature on my site , thx for the tip xD
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.
Peter77sx
Registered User
Posts: 3260
Joined: Wed Nov 09, 2005 2:51 pm

Re: [ALPHA] Meebo Bar on phpBB

Post by Peter77sx »

Leave it to meebo. :) I did not know they had an bar. the connecting and sharring to social sites will be useful i think. thanks brining this up as a MOD.
User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany
Contact:

Re: [ALPHA] Meebo Bar on phpBB

Post by darkonia »

why its only on my main site, by every site i must reload , also str+f5 and then it shows up? :roll:
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.
Locked

Return to “[3.0.x] Abandoned MODs”