| View previous topic :: View next topic |
| Author |
Message |
MsLilithe
 Joined: 07 Feb 2009 Posts: 8
|
Posted: Sat Jul 16, 2011 3:54 am Post subject: Facebook 'Like' button |
|
|
Hello! I attempted to cut and paste the code for a Facebook like button - but it did not work. Can it be done? Thank you! _________________ MsLilithe |
|
| Back to top |
|
 |
|
SiteAdmin
 Joined: 30 Oct 2006 Posts: 1330
|
Posted: Sat Jul 16, 2011 6:08 am Post subject: |
|
|
Can you copy and paste the code so I can look at it? I don't use facebook much. Use the [code] button when submitting a reply here to wrap the code so is shows properly. _________________ SiteAdmin |
|
| Back to top |
|
 |
|
MsLilithe
 Joined: 07 Feb 2009 Posts: 8
|
Posted: Sat Jul 16, 2011 5:50 pm Post subject: Like button code |
|
|
Here it is - hope this helps. Thanks!- Lilithe
<div></div><script></script><fb></fb> _________________ MsLilithe |
|
| Back to top |
|
 |
|
SiteAdmin
 Joined: 30 Oct 2006 Posts: 1330
|
Posted: Sat Jul 16, 2011 6:56 pm Post subject: |
|
|
You need to use the "code" button when posting it. When you are replying to this, it's included in a line of buttons right under the "Subject" text box.
Click it once, paste your code, then click it again. _________________ SiteAdmin |
|
| Back to top |
|
 |
|
MsLilithe
 Joined: 07 Feb 2009 Posts: 8
|
Posted: Sat Jul 16, 2011 7:19 pm Post subject: Trying it again |
|
|
| Code: | | <div></div><script></script><fb></fb> |
Hope that works better - Lilithe _________________ MsLilithe |
|
| Back to top |
|
 |
|
SiteAdmin
 Joined: 30 Oct 2006 Posts: 1330
|
Posted: Sat Jul 16, 2011 8:23 pm Post subject: |
|
|
No, it's didn't take.
Send it to me in an email please. admin@mydungeonspace.com _________________ SiteAdmin |
|
| Back to top |
|
 |
|
SiteAdmin
 Joined: 30 Oct 2006 Posts: 1330
|
Posted: Sun Jul 17, 2011 2:35 pm Post subject: |
|
|
Ok... got the code.
The reason you cannot post it is because it contains javascript tags. If I allowed members to post javascript tags, iframe tags, certain embed and object tags, etc., the site would be open to cross site scripting attacks.
For example, my allowing someone to post javascript could enable a malicious script to read a visiting member's site cookie, retrieve their login information, then send that information to themselves via email. They would then be able to recreate the cookie in their own browser and come to the site as the other member.
http://www.julianevansblog.com/2011/03/the-facebook-like-button-javascript-threat-is-real.html
This sort of explains it too
The only way for me to add something like this would be to add fields to the blog submit/edit form, adding a url field and maybe some options (button color, show faces, etc.). That way, a user could submit a url and the fb like button is programmatically built.
However, the above would simply allow them to "like" whatever url a user put in the form, without having to go to facebook itself. A popup opens so they can log in to fb if necessary, but they are never taken to the page itself. They never see what they are "liking".
To me, the point of adding a facebook 'like' button to a blog would be so others could say, "I 'like' this blog" and have that recorded to their facebook profile. Others on facebook would see that, click it, and be taken to content posted here on MDS. Of course, they would have to be members here to few content (unless the MDS user is Inner Sanctum and has their profile 'open' to non-members).
I could add a checkbox on the blog form so a user can have a fb like button created automatically (using the blog's MDS url), or provide a url text box.
However....
For me to do this, I would need more feedback on whether other members consider it a valuable addition to the site. As well, whether they would want a text url field, a checkbox to automatically create a button, or possibly both.
If a textbox, should probably also show the URL they are agreeing to "like." _________________ SiteAdmin |
|
| Back to top |
|
 |
|
MsLilithe
 Joined: 07 Feb 2009 Posts: 8
|
Posted: Sun Jul 17, 2011 5:47 pm Post subject: |
|
|
Once again thank you for your persistence - and the explanation! I need to spend more time on this site - you are a rockin' admin!! LOL! _________________ MsLilithe |
|
| Back to top |
|
 |
|
SiteAdmin
 Joined: 30 Oct 2006 Posts: 1330
|
Posted: Sun Jul 17, 2011 7:51 pm Post subject: |
|
|
The best admin around
At least in my opinion. Others may disagree.. lol _________________ SiteAdmin |
|
| Back to top |
|
 |
|
Wolffie
 Joined: 10 Dec 2006 Posts: 919
|
Posted: Mon Jul 18, 2011 8:21 am Post subject: |
|
|
the best rocking admin.
I've seen FB like button on quite a few sites. You click on it and, if you're logged in to FB it will post a link and a few lines on your facebook wall. It would be a site upgrade although i am not sure how many MDS members would want to repost content for MDS on FB.
Personally I would not mind it but I am perfectly happy without it, _________________ Wolffie |
|
| Back to top |
|
 |
|
|