Customizing SMF > Modifications and Packages

Advance Facebook Like button with OpenGraph (For Each Post)

<< < (22/30) > >>

ADAMSIFTM:
please i need your help what mod do i hv to install to show me fb like bottom on my site im using smf 2.0.2 please help tanx

Ricky.:
You can do this with this mod itself , you will have to do some manual changes.  Install this mod and after installation , move some code to bottom :

--- Code: (Find in index.template.php) ---<fb:like send="false" layout="button_count" width="100" show_faces="false" font=""></fb:like></span>
--- End code ---

And remove it, now will show this button in bottom :

--- Code: (Find in index.template.php) ---<div id="footer_section"><div class="frame">
<ul class="reset">
<li class="copyright">', theme_copyright(), '</li>

--- End code ---


--- Code: (After add) ---' , !empty($modSettings['e_fb_enable']) ? '<li class="copyright"><fb:like send="false" layout="button_count" width="100" show_faces="false" font=""></fb:like>' : '' , '
--- End code ---

Remember, this code is not tested but it should give you some idea, it is based upon default curve theme, if you have any other custom theme, you may have to make changes accordingly.

Dan_y2k:
Well, I couldn't really understand, and I have a question.

Does this mod allows you to like a specific post inside topics?
On other mods, when I like a specific post, what it shows after I refresh the page is that I like ALL the posts in the topic (and the topic itself).

Frankly, I prefer a simple mod, but to be able to like specific posts in each topic. I figured out that the problem is with the canonical url that SMF 2 outputs.

I'm considering on using your mod, but like I said, I prefer to keep everything simple.
If I knew how to use PHP to change the canonical url of a page in SMF 2 (let's say "$context['current_action'] = 'topic_page'" or something similar), only on specific actions (in my case the topic pages) I would have change it myself...

Arantor:
The problem isn't entirely down to the canonical URL, it's the fact that Facebook doesn't work on units of 'part of a page', it works for the whole page.

Dan_y2k:

--- Quote from: Arantor on July 09, 2012, 12:06:57 PM ---The problem isn't entirely down to the canonical URL, it's the fact that Facebook doesn't work on units of 'part of a page', it works for the whole page.

--- End quote ---

Well, if it did - I guess the "liking" and "sending" possibilites on a page, were endless. :) But probably would also take more loading time.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version