uujgii / web-to-print-scripts

Automatically exported from code.google.com/p/web-to-print-scripts
0 stars 0 forks source link

Social Like #57

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Try Facebook like script on preview pages.

What about other social scripts like bookmarking, news, twitter?

The trick here is to recognize the right page and capture the right URL.
We are only interested in publicly available preview pages.
We may need to add a few clues to the page to help the script recognise it.
No point liking an order page or something else password-protected.

Original issue reported on code.google.com by zetapri...@gmail.com on 23 Nov 2010 at 9:35

GoogleCodeExporter commented 9 years ago
Use the URL to determine if the page is public or private.
It's not 100%, but is likely to work.

1. the URL ends in .html
2. the URL has TemplateID=...., but the sharing URL will be 
?page=template;TemplateID=...

Original comment by zetapri...@gmail.com on 1 Dec 2010 at 10:43

GoogleCodeExporter commented 9 years ago
Let's do FB and TW first. Leave room for more social services.

Original comment by zetapri...@gmail.com on 2 Dec 2010 at 7:55

GoogleCodeExporter commented 9 years ago
OK, it works in general.
Needs some polishing.

1. find a place for the buttons
2. remember we may need room for a few more social buttons later (soon)
3. make a few mockups or just move them there
4. move all scripts to DEV

Original comment by zetapri...@gmail.com on 14 Dec 2010 at 6:43

GoogleCodeExporter commented 9 years ago

Original comment by tristan....@gmail.com on 14 Dec 2010 at 6:46

GoogleCodeExporter commented 9 years ago

Original comment by zetapri...@gmail.com on 14 Dec 2010 at 6:52

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
i add some mockups

Original comment by tristan....@gmail.com on 14 Dec 2010 at 8:33

Attachments:

GoogleCodeExporter commented 9 years ago
#2 is a bit better, but they need to be in one line.

Original comment by zetapri...@gmail.com on 14 Dec 2010 at 8:53

GoogleCodeExporter commented 9 years ago
http://realestate.zetaprints.com/Badges/Badge-V.htm

Original comment by tristan....@gmail.com on 15 Dec 2010 at 12:25

GoogleCodeExporter commented 9 years ago

Original comment by tristan....@gmail.com on 16 Dec 2010 at 12:29

GoogleCodeExporter commented 9 years ago
Need to see the commit.

Original comment by zetapri...@gmail.com on 16 Dec 2010 at 12:39

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
http://code.google.com/p/web-to-print-scripts/source/browse/trunk/js-system/like
-button/like.js?r=159

Original comment by tristan....@gmail.com on 16 Dec 2010 at 9:29

GoogleCodeExporter commented 9 years ago
http://realestate.zetaprints.com/Badges/BAdge-I.htm demo

http://code.google.com/p/web-to-print-scripts/source/browse/trunk/js-system/like
-button/like.js?r=160 code

Original comment by tristan....@gmail.com on 17 Dec 2010 at 1:00

GoogleCodeExporter commented 9 years ago
Facebook comment box gets hidden behind the content area border 
(fb-box-hidden.png).

Original comment by agur...@gmail.com on 17 Dec 2010 at 12:43

Attachments:

GoogleCodeExporter commented 9 years ago
Tested on this product:
http://realestate.zetaprints.com/?page=template;TemplateID=1656CC83-D7C9-4A82-A8
70-7720D65B9BD6

Original comment by agur...@gmail.com on 17 Dec 2010 at 6:18

GoogleCodeExporter commented 9 years ago

Original comment by zetapri...@gmail.com on 20 Dec 2010 at 7:57

GoogleCodeExporter commented 9 years ago
fixed

Original comment by tristan....@gmail.com on 20 Dec 2010 at 11:14

GoogleCodeExporter commented 9 years ago

Original comment by zetapri...@gmail.com on 1 Mar 2011 at 2:39

GoogleCodeExporter commented 9 years ago
Dynamically adding div id="social" after div class="content" with next content:
1.twitter button
2.facebook button

Opera is not starting this javascript.

https://web-to-print-scripts.googlecode.com/svn/trunk/js-system/like-button/soci
al.js

Original comment by aiky...@gmail.com on 1 Mar 2011 at 7:15

Attachments:

GoogleCodeExporter commented 9 years ago
Where do I test this? Don't see it on realestate.zetaprints.com in FF nor Chrome
where was it deployed?

Original comment by agur...@gmail.com on 1 Mar 2011 at 2:24

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Now script included from a public host.

For example:
http://realestate.zetaprints.com/?page=template;TemplateID=1656CC83-D7C9-4A82-A8
70-7720D65B9BD6

Original comment by aiky...@gmail.com on 1 Mar 2011 at 2:53

GoogleCodeExporter commented 9 years ago
Can we see a diff, please?

Original comment by agur...@gmail.com on 1 Mar 2011 at 5:37

GoogleCodeExporter commented 9 years ago
Please take:
https://web-to-print-scripts.googlecode.com/svn/trunk/js-system/like-button/soci
al.js

It`s a new script from zero.

Original comment by aiky...@gmail.com on 2 Mar 2011 at 4:43

GoogleCodeExporter commented 9 years ago

Original comment by aiky...@gmail.com on 2 Mar 2011 at 4:44

GoogleCodeExporter commented 9 years ago
Sorry, just to clarify.

The code must be committed to SVN before it is released for testing.
We understand a copy is on a dev server, but it still needs to be committed and 
a link to either a diff or the release posted in the comment.

Original comment by zetapri...@gmail.com on 2 Mar 2011 at 4:47

GoogleCodeExporter commented 9 years ago
Please take:
http://code.google.com/p/web-to-print-scripts/source/detail?r=163

Original comment by aiky...@gmail.com on 2 Mar 2011 at 5:04

GoogleCodeExporter commented 9 years ago

Original comment by zetapri...@gmail.com on 2 Mar 2011 at 6:30