This is a complete article by illustrating a box-like facebook other than the one you use the default for your blog (if you're a fan page). With our tips, your blog is configured, it will suffice simply to place an attachment to one of your articles, the URL of the fan-page without having to search the codes on facebook.
Who love me follow me: D.
Step 1: Create a section includable
In another post I'll explain the benefits of creating sections
includable. For now, let's focus on writing code. • Go to the HTML editor of your blog.
• Expand Widget Templates.
• And find this line:
\u0026lt;b:widget id='Blog1' locked='true' title='Messages of blog' type='Blog'>
Just after you insert this code
\u0026lt;b:includable id='fblb' var='post'>
\u0026lt;b:if cond='data:blog.pageType == "item"'> ;
\u0026lt;b:loop values='data:post.enclosures' var='enclosure'>
\u0026lt;! - Show Profiles + flow ->
\u0026lt;b: if cond = 'data: enclosure.mimeType == " " link/fb1 '>
\u0026lt;iframe allowtransparency =' true 'expr: src =' " http://www.facebook.com/plugins/likebox. php? href = " + Data: " enclosure.url +%% 3Fref 3Dsgm & width = 300 & light color scheme = & show_faces = true & stream = true & amp header = false & ; " height = 395 'frameborder = '0' scrolling = 'no' style = 'border: none; overflow: hidden; width: 300px ; height: 395px;' />
\u0026lt;/ b: if> ;
\u0026lt;b:if cond='data:enclosure.mimeType == "link/fb2"'>
\u0026lt;\u0026lt;- - sans et sans flux profile!> iframe allowtransparency = 'true' expr: src = 'http://www.facebook.com/plugins/likebox.php?href=" "; + data: + enclosure.url " 3Fref%% 3Dsgm & width = 300 & light colorscheme = & show_faces = false = false & & stream header = false & " height = 62 'frameborder = '0' scrolling = 'no' style = 'border: none; overflow: hidden; width: 300px ; height: 62px;' />
\u0026lt;/ b: if>
\u0026lt;! - Displays only profiles -> ;
\u0026lt;b: if cond = 'data: enclosure.mimeType == " " link/fb3'>
\u0026lt;iframe allowtransparency = 'true' expr: src = '" http://www.facebook.com / plugins / likebox.php href = "+ data: " enclosure.url +%% 3Fref 3Dsgm & width = 300 & light color scheme = & show_faces = true & amp; stream = false & header = false & " height = 62 'frameborder = '0' scrolling = 'no' style = 'border: none; overflow: hidden; width: 300px ; height: 62px; '/>
\u0026lt;/ b: if>
\u0026lt;- Affiche uniquement Flux ->
\u0026lt;b:if cond='data:enclosure.mimeType == "link/fb4"'>
\u0026lt;iframe allowtransparency = 'true' expr: src = '" http://www.facebook.com/plugins/likebox.php?href=", + data: + enclosure.url " 3Fref%% & 3Dsgm amp; width = 300 & light color scheme = & show_faces = false & stream = true & header = false & " height = 395 'frameborder = '0' scrolling = ' no 'style =' border: none; overflow: hidden; width: 300px ; height: 395px; '/>
\u0026lt;/ b: if>
\u0026lt;/ b: loop>
\u0026lt;/ b: if>
\u0026lt;/ b: includable> ;
Little explanation:
like the box is set to appear in 4 different ways.
1) With the profiles and with the flow of the page.
2) without profiles and without the flow of the page.
3) With and without the flow profiles of the page.
4) without profiles and with the flow of the page.
For all configurations, the blue header (header = false) has been disabled.
As for the width (in bold), it was set at 300px. A change to suit your needs.
Before proceeding, you can save your template.
Step 2: Call of the includable section
Now it only remains to position the entire section by placing a reminder of the section just below the code that represents the article.
Locate these lines:
\u0026lt;div class='post-body entry-content'>
\u0026lt;data:post.body/>
\u0026lt;div style='clear: both;'/> \u0026lt;! - Clear for photos floats ->
\u0026lt;/ div>
You'll add this little line just before the tag
\u0026lt; / div> : \u0026lt;b:includable data='post' name='fblb'/>
To finish with the source code, you save your template.
If you've followed all the steps, your blog is now configured to show like-box that any fan facebook page. It
just have to publish a book with the links.
Step 3: Add one or more box-like in an article.
Before writing an article, please check your management table if the option Show Link fields is checked YES on . (Settings ► Formatting)
If it does not, click YES and save the new settings (orange button at the bottom of the page).
Now you can write an article.
Just above the editor, click See links to attachments .
You will see a table for inserting links (Attachments).
In the left box, you copy the url of a fan page on facebook.
In the right box (mime type), you copy one of these four possibilities:
1) link/fb1
2) link/fb2
3) link/fb3
4) link/fb4
This is the configuration of the box like that you choose according to your desire.
Reminder:
1) With the profiles and with the flow of the page.
2) without profiles and without the flow of the page.
3) With and without the flow profiles of the page.
4) without profiles and with the flow of the page.
Once you're done, save your item, to see the result.
You can also view a demonstration of this trick on some forms of heading Legends of French song . In
example, page Hugues Aufray that displays 3-like box (blog connection, Hugues Aufray Official Hugues Aufray Wiki Page).
0 comments:
Post a Comment