Niko
  • Administrator

      Reputation : 319
      Registered on : 2012-02-22
      Posts : 2366
      School of codes courses: coming soon
    Facebook like

    Description


    With this tutorial you can have a facebook button near the message to like it yes

    Set up


    First go on ACP - Display - Templates - General - viewtopic_body.

    Find this part:
    {postrow.displayed.MESSAGE}

    And add this code before it (look at the screen)
    Code:
    <!--- Subject: "Facebook like" - Copyright 2012 by www.fmcodes.com. All Rights Reserved. Use and/or modification of this script is allowed, provided this entire copyright notice remains in the original or modified code. Distribution is not allowed without written consent from FMCodes---!>
    <div style="float:right;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.name.domain.com{TOPIC_URL}&layout=box_count&show_faces=true&width=75&action=like&colorscheme=light&height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:75px; height:65px;" allowTransparency="true"></iframe></div>

    Change this part www.name.domain.com with your link

    Demonstration


    Facebook like Twt1

    Technical problems


    The tutorial was tested on this forum and with the browser Google Chrome; If you notice that the tutorial doesn't work for a browser or for a version of forum (PhpBB2, PhpBB3, PunBB, Invision) contact an administrator and we will fill this field with your reporting.

    Thanks, the staff
    For every problem or question please, contact us in the section Support for the tutorials, The staff will answer you as soon as it is possible...

    Friendly,
    The team of the Forum of Codes.



    Niko wants you in the team Guest

    Community manager and Administrator at Forumattivo.com

    johncov1
    • **


        Reputation : 3
        Registered on : 2012-05-17
        Posts : 16
      Thanks for the code
      is this possible for twitter as well
      nice 1

      johncov1
      • **


          Reputation : 3
          Registered on : 2012-05-17
          Posts : 16
        Bump lol
        Is it possible for twitter aswell
        Thanks

        Niko
        • Administrator

            Reputation : 319
            Registered on : 2012-02-22
            Posts : 2366
            School of codes courses: coming soon
          Please, open a topic for support here:
          https://www.fmcodes.com/f12-coding-help

          Thanks :birra:



          Niko wants you in the team Guest

          Community manager and Administrator at Forumattivo.com

          AdminOnyx
          • I'm a new member :)


              Reputation : 1
              Registered on : 2012-06-21
              Posts : 2
            Hi there, I just added this code today, and it worked beautifully in Chrome. I sent out alerts that we had new FB options, and then I started to get messages from my IE users saying they no longer could see parts of my forum

            I closed Chrome, and went in thru IE myself, and sure enough, you could not see any posts, striped clean. So I removed the code and tried adain with IE, and everything was back to normal again. So, I guess it isnt working in Internet Explorer!

            DeeQ
            • I'm a new member :)


                Reputation : 1
                Registered on : 2012-06-22
                Posts : 4
              A lot of codes didn"t work on IE.What version you are using?


              Edit:In every post you can like the forum.But how can i do for like that post,not the forum?

              AdminOnyx
              • I'm a new member :)


                  Reputation : 1
                  Registered on : 2012-06-21
                  Posts : 2
                HI
                I have IE 8, all updated etc. using XP...

                I rarely use it anymore, cause i hate it, but only use it, and FF to check my websites etc. inother browsers. I regularly use Chrome now.

                I dont know what version IE my member was using, only that she was.

                PandahFish
                • ****


                    Reputation : 2
                    Registered on : 2012-05-19
                    Posts : 52
                  Works great Niko!

                  Sabin ;x
                  • **


                      Reputation : 1
                      Registered on : 2012-04-02
                      Posts : 18
                    nu merge deloc