Facebook Comment for Albums Facebook Comment for Albums
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Facebook Comment for Albums

Started by profili, June 20, 2011, 04:37:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

profili

I would like to add Facebook comments for each album.
Actually I want to add that under albums pages numbers. I need only to know which is the code block for that album page numbers strip, to add the facebook code just there, or under it.

Αndré

Either you put it at the end of the function theme_display_thumbnails in your themes's theme.php file, or you use the theme_thumbnails_wrapper_end plugin hook.

profili

I get some php errors if i try to add anything there. I know it is to much to ask something php related here, but some help would be very welcome. Thank you.

Αndré

What exactly do you try to add? What's the error message? Don't forget to use something like echo or print when adding HTML code.

profili

<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:comments href="example.com" num_posts="2" width="500"></fb:comments>

This above is the code for the Facebook comments.

Αndré

I don't want to know Facebook's code block, but what exactly you added to your theme.php file.

Quote from: Αndré on June 23, 2011, 12:41:44 PM
Don't forget to use something like echo or print when adding HTML code.

Quote from: Αndré on June 23, 2011, 12:41:44 PM
What's the error message?


profili

Quote from: Αndré on June 24, 2011, 09:25:52 AM
I don't want to know Facebook's code block, but what exactly you added to your theme.php file.



I added that code.

Quote<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:comments href="example.com" num_posts="2" width="500"></fb:comments>

echo or print are klingon for me :)

Αndré

Quote from: profili on June 26, 2011, 06:51:06 PM
echo or print are klingon for me :)
http://www.php.net/manual/en/function.echo.php
http://www.php.net/manual/en/function.print.php

Try to add
echo '<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:comments href="example.com" num_posts="2" width="500"></fb:comments>';
to your file.