Topic: Facebook Like & Commets Field?

Hello.

Is it possible to make a comment box under the pictures? And I want every picture a Facebook "Like" button. I use the SV Builder Pro. Does it work? And if not, how can I make it work that the two digestion?

Please reply in good English or German, for translate with Google smile

By Maddoc

Re: Facebook Like & Commets Field?

Is it possible to make a comment box under the pictures?

SimpleViewer does not include guest-book functionality. This would require server-side scripting which SimpleViewer does not currently use or require.

And I want every picture a Facebook "Like" button.

You could perhaps include a Facebook 'Like' image in the caption for each image in your gallery, each of which might link to a specific web page by using HTML formatting in your captions as described here: http://simpleviewer.net/simpleviewer/su … l#custom_1

Steven Speirs
SimpleViewer Support Team.

Re: Facebook Like & Commets Field?

Ok. The Facebook "Like" button is an IFrame. Therein is the link to contain the image. I think that it does not work for every single image. Only all together for the Gallery. Or?

<iframe src="http://www.facebook.com/plugins/like.php?href=linktopicture&amp;layout=button_count&amp;show_faces=false&amp;width=80&amp;action=like&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:170px; height:21px;" ></iframe>

Re: Facebook Like & Commets Field?

You could have a unique link to each picture using the SimpleViewer Pro API (see the Direct Linking section) but you cannot use an <iframe> in a caption.
As you suggest, you could include the <iframe> in the same page as the gallery but the 'Like' button would then be for the gallery as a whole rather than for an individual image.

Steven Speirs
SimpleViewer Support Team.

Re: Facebook Like & Commets Field?

So I use is the nothing. It should already be individually for each image. Too bad. sad
Maybe someone is still a little on this subject. Can not imagine that no one had the idea to want to insert the FB "like" button under the pictures.
Thx.

Re: Facebook Like & Commets Field?

Yes yes yes!! smile And a Commentfield!! smile Thx!

Re: Facebook Like & Commets Field?

That's ok? FB Like But for PHP. Can it work?

<a href="http://www.facebook.com/share.php?u=<?php echo rawurlencode(get_permalink()) ?>&amp;t=<?php echo rawurlencode(strip_tags(get_the_title())) ?>">Empfehlen</a>

Re: Facebook Like & Commets Field?

If you were to rename your 'gallery.xml' file to 'gallery.php' and point SimpleViewer towards it using a galleryURL, you could certainly use PHP tags in the page. As to whether it would work or not, the best course of action would be to try it and see.

A further suggestion (though complex) might be to have your <iframe> on the same page as the gallery (perhaps as a footer).
Using the SimpleViewer Pro API, you could listen for the svImageChange event and when it is fired, you could call a JavaScript function to change the 'src' attribute of your <iframe> which would incorporate a link to the corresponding image in the gallery (see the Direct Linking example) which you could determine through the event data.

Steven Speirs
SimpleViewer Support Team.

Re: Facebook Like & Commets Field?

Steven Speirs wrote:

If you were to rename your 'gallery.xml' file to 'gallery.php' and point SimpleViewer towards it using a galleryURL, you could certainly use PHP tags in the page. As to whether it would work or not, the best course of action would be to try it and see.

No, that does not work. PHP code with no link will be displayed. And with only a link to Facebook, opens no window .. : (

<caption> <[CDATA [<font face="Times" size="20" color="#ffff00"> times Big text </ font> <b> bold text </ b> td <a href = "http://www.facebook.com" target = "_blank"> link text2 </ a> </ u> hp New line of text ]]></ caption>
    <!--START SIMPLEVIEWER EMBED -->
    <script type="text/javascript" src="svcore/js/simpleviewer.js"></script>
    <script type="text/javascript">
        var flashvars = {};
    flashvars.galleryURL = "gallery.php";
    jQuery(document).ready(function () {
        SV.simpleviewer.load('sv-container', '100%', '100%', 'FFFFFF', true, flashvars );
    });
    </script>
    <div id="sv-container"></div>
    <!--END SIMPLEVIEWER EMBED -->

Re: Facebook Like & Commets Field?

The caption your PHP code generates may result in a parsing error when a browser reads it.
It should be:

<caption><![CDATA[<font face="Times" size="20" color="#ffff00"> times Big text </font> <b> bold text </b> td <a href = "http://www.facebook.com" target = "_blank"> link text2 </a> hp New line of text ]]></caption>

Note the '!' and the removal of spaces in closing tags after the leading slashes. There was also a closing </u> tag without a corresponding opening tag.
However, unless your can achieve your goal using a standard hyperlink, this will not work as you cannot use an <iframe> in a caption.

Steven Speirs
SimpleViewer Support Team.

Re: Facebook Like & Commets Field?

Ok. With your code opens the link but not.. sad
So any chance?

Re: Facebook Like & Commets Field?

If your Facebook code relies on an <iframe> then it will not be possible to include such code in a caption.
If you have an alternative solution which relies on a standard hyperlink rather than an <iframe>, then this can be included in a caption as in the example in this FAQ: http://simpleviewer.net/simpleviewer/su … l#custom_1

Steven Speirs
SimpleViewer Support Team.

Re: Facebook Like & Commets Field?

It's not a IFrame, it's a PHP Code.

I proceeded according to these instructions (http://simpleviewer.net/simpleviewer/su … l#custom_1)


As I said, not even the Facebook page opens with this code

<caption><![CDATA[<font face="Times" size="20" color="#ffff00"> times Big text </font> <b> bold text </b> td <a href = "[url]http://www.facebook.com[/url]" target = "_blank"> link text2 </a> hp New line of text ]]></caption>

If that would work, I would test the PHP code...

Re: Facebook Like & Commets Field?

The link in the caption does work.
I copied and pasted the caption you posted in your last email into a sample gallery here (without the [ url ] [ /url ] tags which the forum inserted).
Clicking on 'link text2' opens the Facebook page in a new tab.
Please note that links in captions will be active only when the gallery is uploaded to a web server and will not work locally due to a Flash security restriction.

Steven Speirs
SimpleViewer Support Team.

Re: Facebook Like & Commets Field?

Sorry. Had copied the link here from your post.

This is my link

<caption><![CDATA[<font face="Times" size="20" color="#ffff00"> times Big text </font> <b> bold text </b> td <a href = "http://www.facebook.com" target = "_blank"> link text2 </a> hp New line of text ]]></caption>

Funny. Your site works. Do not mean .. In the same browser ..

Last edited by maddoc (2011-09-16 18:32:14)

Re: Facebook Like & Commets Field?

That caption is identical to the one you posted before (other than the [ url ] [ /url ] tags which the forum inserted) and identical to the caption I used in my test gallery.

Steven Speirs
SimpleViewer Support Team.