|
|||||||
![]() |
Forum Index > glFusion > glFusion Add-on, Plugin Support |
|
|
Facebook Comments - If they can do it in Geeklog
|
|||
| | | Printable Version |
|
richardbkk | ||||||||
|
Facebook comments under the stories in glFusion, if they can do it in Geeklog how difficult could it be to do it in glFusion? |
![]() Active Member Group Comfort Level:: +4 ![]() ![]()
Registered: 07/29/08 |
||||||||
|
|||||||||
|
Mark | ||||||||
|
I don't see any comments at the site you referenced. If you want a Facebook link, use the AddThis plugin, it will provide Facebook and several other social networking site integrations. glFusion - Enhanced Content Management |
![]() Admin Group Comfort Level:: +104 ![]() ![]()
Registered: 10/21/05 |
||||||||
|
|||||||||
|
suprsidr | ||||||||
|
rudebastard simply added the proper javascript to his templates for the facebook social plugin |
![]() Regular Member Group Comfort Level:: +3 ![]()
Registered: 12/21/06 |
||||||||
|
|||||||||
|
Chief123 | ||||||||
Quote by: MarkI don't see any comments at the site you referenced. If you want a Facebook link, use the AddThis plugin, it will provide Facebook and several other social networking site integrations.
|
![]() Active Member Group Comfort Level:: +3 ![]()
Registered: 12/29/08 |
||||||||
|
|||||||||
|
ironmax | ||||||||
|
To make it easy, simple and quick for your stories, paste the code below in your featuredstorytext.thtml and storytext.thtml files. All you should need to do is adjust the width to your preferences. PHP Formatted Code <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=APP_ID&xfbml=1"></script><fb:comments href="{article_url}" num_posts="10" width="800"></fb:comments>
PHP Formatted Code <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=APP_ID&xfbml=1"></script><fb:comments href="{site_url}/forum/viewtopic.php?topic={topic_id}#{topic_id}" num_posts="10" width="800"></fb:comments>
Need web services? Contact Us at Spacequad Internet Services |
![]() Active Member Group Comfort Level:: +8 ![]() ![]()
Registered: 09/14/06 |
||||||||
|
|||||||||
|
Rocky | ||||||||
|
MIchael, |
![]() Active Member Group Comfort Level:: +4 ![]()
Registered: 01/08/06 |
||||||||
|
|||||||||
|
ironmax | ||||||||
Quote by: RockyMIchael,
PHP Formatted Code {# begin {templatelocation} #} <div class="story-featured"> <span class="story-icons"> {# displays the Submit to Digg.com icon. For more info visit http://digg.com/tools/integrate #} {!if digg_enabled} <span style="padding-right:3px;"> <script type="text/javascript"> digg_url = '{article_url}'; //permalink to article digg_skin = 'icon'; //icon, compact, normal(if left blank) digg_window = 'new'; //open's Digg.com window in a new window, if left blank will use same window </script> <script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script> </span> {!endif} {# end Digg.com icon code #} {plugin_icon_vars} {email_icon} {print_icon} {feed_icon} {edit_icon} </span> <h1>{story_title_link}</h1> <div class="story-information"> <p>{story_date}</p> <p>{lang_contributed_by} {start_contributedby_anchortag}{contributedby_author}{end_contributedby_anchortag}</p> <p>{lang_views} {story_hits}</p> {!if plugin_meta_vars} <p>{plugin_meta_vars}</p> {!endif} </div> <div class="story-body"> {story_anchortag_and_image}{story_introtext}{story_bodytext} {!if plugin_body_vars} {plugin_body_vars} {!endif} </div> <div class="story-footer"> <p>{page_selector}</p> <p>{readmore_link}</p> {!if rating_bar} <p> {!endif} {plugin_itemdisplay} {!if comments_count} {comments_with_count} {!endif} {post_comment_link} {!if trackbacks_count} {trackbacks_with_count} {!endif} {!if plugin_footer_vars} <div>{plugin_footer_vars}</div> {!endif} {!if rating_bar} </p> {rating_bar} {!endif} </div> </div> <div id="fb-root"></div><script class="cc-onconsent-social" src="http://connect.facebook.net/en_US/all.js#appId=APP_ID&xfbml=1"></script><fb:comments href="{article_url}" num_posts="10" width="800"></fb:comments> <div class="block-divider"> </div> {# end {templatelocation} #}
Need web services? Contact Us at Spacequad Internet Services |
![]() Active Member Group Comfort Level:: +8 ![]() ![]()
Registered: 09/14/06 |
||||||||
|
|||||||||
|
Rocky | ||||||||
|
I'll try again. Two questions: |
![]() Active Member Group Comfort Level:: +4 ![]()
Registered: 01/08/06 |
||||||||
|
|||||||||
|
ironmax | ||||||||
Quote by: RockyI'll try again. Two questions:
PHP Formatted Code </head> <body dir="{direction}" style="background:#000000;"> <div id="fb-root"></div> <div> <a name="top"></a> <a href="#content-start"> {# for screenreaders #} <img class="hidden" src="{layout_url}/images/speck.gif" alt="skip navigation"{xhtml}> </a> </div> {# end {templatelocation} #}
Need web services? Contact Us at Spacequad Internet Services |
![]() Active Member Group Comfort Level:: +8 ![]() ![]()
Registered: 09/14/06 |
||||||||
|
|||||||||
|
Rocky | ||||||||
|
Wow, it works! |
![]() Active Member Group Comfort Level:: +4 ![]()
Registered: 01/08/06 |
||||||||
|
|||||||||
|
ironmax | ||||||||
|
Here's an updated version of the Facebook comments. For those that are W3C conscious and want validated FB code, here it is. PHP Formatted Code <div id="fb-root"></div> <script type="text/javascript">(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <div>
PHP Formatted Code <script language="javascript" type="text/javascript"> //<![CDATA[ document.write('<div class="fb-comments" data-href="{article_url}" num_posts="10" width="800"></div>'); //]]> </script>
PHP Formatted Code .fb-comments, .fb-comments span, .fb-comments iframe {width: 100% !important;}
Need web services? Contact Us at Spacequad Internet Services |
![]() Active Member Group Comfort Level:: +8 ![]() ![]()
Registered: 09/14/06 |
||||||||
|
|||||||||
|
richardbkk | ||||||||
|
I try to integrate the code into article.html and I only get "The comments plugin requires an href parameter." |
![]() Active Member Group Comfort Level:: +4 ![]() ![]()
Registered: 07/29/08 |
||||||||
|
|||||||||
|
ironmax | ||||||||
Quote by: richardbkkI try to integrate the code into article.html and I only get "The comments plugin requires an href parameter."
Need web services? Contact Us at Spacequad Internet Services |
![]() Active Member Group Comfort Level:: +8 ![]() ![]()
Registered: 09/14/06 |
||||||||
|
|||||||||
|
richardbkk | ||||||||
Quote by: ironmax Quote by: richardbkkI try to integrate the code into article.html and I only get "The comments plugin requires an href parameter."
|
![]() Active Member Group Comfort Level:: +4 ![]() ![]()
Registered: 07/29/08 |
||||||||
|
|||||||||
|
ironmax | ||||||||
Quote by: richardbkk Quote by: ironmax Quote by: richardbkkI try to integrate the code into article.html and I only get "The comments plugin requires an href parameter."
PHP Formatted Code <div class="fb-comments" data-href="http://example.com" data-num-posts="2" data-width="470"></div>
Need web services? Contact Us at Spacequad Internet Services |
![]() Active Member Group Comfort Level:: +8 ![]() ![]()
Registered: 09/14/06 |
||||||||
|
|||||||||
|
| All times are CDT. The time is now 09:57 pm. |
|
|