vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Miscellaneous Hacks - Facebook-Comments to CMS-Articles (https://vborg.vbsupport.ru/showthread.php?t=277646)

Kraxell 01-26-2012 11:00 PM

Facebook-Comments to CMS-Articles
 
1 Attachment(s)
Hello my vB-friends!

I have a little modification for your vB-CMS!

With this little template-edit you can show facebook-comments under your CMS-articles.

Sorry for my bad english, i doe my best! (iam german)

What is needed for this modification:

- standard facebook account.
- facebook application, anyone can set one up and it's simple http://www.facebook.com/developers/createapp.php

Now the template-edits:

Search template:
vbcms_content_article_page

and find

HTML Code:

{vb:raw comment_block}
Add below this code:


HTML Code:

<!-- FB Comments -->
        <h2 class="blockhead" style="padding-top:5px;"><span class="optiontitle">Facebook comments</span></h2>
        <div id="thread_tags_list" class="thread_info_block blockbody formcontrols floatcontainer">
          <div class="blockrow floatcontainer">
                <div id='tag_list_cell'>
    <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=YOURAPPID&amp;xfbml=1"></script><fb:comments href="http://www.YOURSITE.com/{vb:raw relpath}" expr:xid="YOUR-APP-ID" simple="1" num_posts="10" width="500" publish_feed="true"></fb:comments><br/>
                </div>
            </div>
        </div>
<img src="clear.gif" height="10" /><br />
        <!-- /FB Comments -->

Be sure you have change YOUR_APP_ID to your app-id!

Now it looks like the screenshot.

If you use it, please push install, rate and nominate

Hope you like it :)


Big thank to Gemma & Noli for help!

Kraxell 01-27-2012 06:57 PM

Update-History:
1.1
Every Articles has his own comment-box.
Make-Up/Design-Changes.

Dr.osamA 01-28-2012 01:03 AM

installed
thank you

rtyagis 01-28-2012 08:51 AM

Quote:

Originally Posted by Dr.osamA (Post 2293277)
installed
thank you

Don't misguide others, you haven't installed this mod.

datoneer 01-30-2012 06:57 AM

Great.Installed

xeon1 01-30-2012 10:26 AM

installed this.
I have a question: How can I change this to use a comment thread for each article on the CMS?
I don't want all the comments in each article page. I'd prefer people to comment on the specific article.
I tried using {vb: raw href} but the plugin goes compatibility mode..

Help?

~Xeon1

Kraxell 01-30-2012 10:49 AM

Try to use this modification:
https://vborg.vbsupport.ru/showthread.php?t=239023

and set the code from the other modification below the code in my manual.

gariksher 01-31-2012 09:02 AM

Thanks!
Installed

Can I use this modification in blogs ? and how ?

Kraxell 01-31-2012 12:12 PM

Of curse. You must edit only the blog-template.

nerowolfe 01-31-2012 01:00 PM

Perfect! Ty


All times are GMT. The time now is 03:50 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01207 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete