Results 1 to 3 of 3

Thread: adding facebook ilike service to showentry

  1. #1
    Join Date
    Oct 2004
    Posts
    359

    Default adding facebook ilike service to showentry

    hello
    i add facebook to my showentry

    by this way :
    go to headinclude and change :
    PHP Code:
    <vb:if condition="$show['fb_opengraph']">
        {
    vb:raw facebook_opengraph}
    </
    vb:if> 
    to be
    PHP Code:
    <vb:if condition="$show['fb_opengraph'] AND THIS_SCRIPT != 'dyna_showentry'">
        {
    vb:raw facebook_opengraph}
    </
    vb:if> 
    then go to showentry template:
    and change :
    PHP Code:
    <html dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" xmlns="http://www.w3.org/1999/xhtml"
    to
    PHP Code:
    <html dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml"
    and
    adding
    after
    PHP Code:
    {vb:raw headinclude
    this code with changing your appid
    after
    PHP Code:
    <meta property="fb:app_id" content="[COLOR="Red"]MYAPPID[/COLOR]" />
    <
    meta property="og:site_name" content="{vb:raw vba_options.dyna_title}" /> 
    <
    meta property="og:title" content="{vb:raw vba_options.dyna_title}-{vb:raw entry.title}"/>
    <
    meta property="og:description" content="{vb:raw entry.meta_description}" />
    <
    meta property="og:url" content="{vb:raw vba_options.dyna_homeurl}/{vb:raw entry.url}" />
    <
    meta property="og:type" content="article" />
    <
    meta property="og:image" content="http://www.yoursite.com/images/misc/vbulletin4_logo.png" /> 

    after that look for:
    PHP Code:
      <h1>{vb:rawphrase entry}: <span class="threadtitle"><a href="{vb:raw entry.url}" title="{vb:rawphrase reload_this_page}">{vb:raw entry.title}</a></span></h1
    replace it with :
    PHP Code:
    <h1>{vb:rawphrase entry}: <span class="threadtitle"><a href="{vb:raw entry.url}" title="{vb:rawphrase reload_this_page}">{vb:raw entry.title}</a>
    </
    span><fb:like href="{vb:raw vba_options.dyna_homeurl}/{vb:raw entry.url}" font="tahoma" layout="standard" show-faces="false" width="260" action="like" colorscheme="light"></fb:like>
    </
    h1

    now you have ilike facebook in your entry

    there are strange thing only the links after click ilike , on your facebook personal page will has session id
    i try to remove it but i do not have perfect skills , hope Brian help on this

    example:
    PHP Code:
    http://mobile.alwatanyh.com/nokia-2/nokia-6600-slide-72/?s=kjhfehfek742764b9843984 
    and for this maybe some ilike not countable

    by the way it is mostly work and if any one help in this small issue plz do it
    thanks

  2. #2
    Join Date
    Oct 2004
    Posts
    359

    Default

    i fixed the session appear and facebook like work perfect by removing this fro above:
    <meta property="og:url" content="{vb:raw vba_options.dyna_homeurl}/{vb:raw entry.url}" />

  3. #3

    Default

    Thanks for the tips!

    Did you happen to figure out how to replace og:image with the first attachment URL (if there is an attachment)?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Installation service?
    By rik123 in forum Pre-Installation Questions
    Replies: 6
    Last Post: 09-21-2009, 01:37 PM
  2. SMS service + templates
    By Naoba in forum "How Do I..." Questions
    Replies: 3
    Last Post: 08-03-2009, 08:48 AM
  3. What is up with the Service?
    By ant0nio in forum Site Feedback & Updates
    Replies: 3
    Last Post: 03-28-2006, 04:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •