The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hi, I would like to put the facebook like button on top of the first posting, so beneath the title or at the end of the first post instead of having it on top of the whole thread. How can I do that?
|
|
#2
|
|||
|
|||
|
nobody?
|
|
#3
|
|||
|
|||
|
ok, last try....can nobody hlep me out with this?
|
|
#4
|
||||
|
||||
|
Hi ROTPAR - looks like a template edit to me. In SHOWTHREAD, find:
Code:
<vb:if condition="$show['fb_likebutton']">
{vb:raw fblikebutton}
</vb:if>
|
|
#5
|
|||
|
|||
|
Hi there, thank you
What do you mean with the condition? What do I have to write? Thanks a lot
|
|
#6
|
||||
|
||||
|
Hmm, this may sort of be like the blind leading the blind, but let me give it a shot
![]() Try this in postbit_legacy and let me know how it works: Code:
<if condition="$post[postcount] % $vboptions[maxposts] == 1">
<vb:if condition="$show['fb_likebutton']">
{vb:raw fblikebutton}
</vb:if>
</vb:if>
Code:
<vb:if condition="$post['title'] OR $show['messageicon']">
<h2 class="title icon">
<vb:if condition="$show['messageicon']"><img src="{vb:raw post.iconpath}" alt="{vb:raw post.icontitle}" /> </vb:if>{vb:raw post.title}
</h2>
</vb:if>
|
|
#7
|
|||
|
|||
|
Quote:
After placing this code in postbit_legacy vbulletin tells me that the code is not ok... can'T translate it. Any ideas?
|
|
#8
|
||||
|
||||
|
Hmm, can you try this instead:
Code:
<vb:if condition="$post['isfirstshown']">
<vb:if condition="$show['fb_likebutton']">
{vb:raw fblikebutton}
</vb:if>
</vb:if>
I just want to make sure it's the conditional breaking, not anything else. So let me know if that works!If it doesn't, we may need to register fblikebutton to postbit_legacy, in which case you're going to want the help of someone who understands hooks
|
|
#9
|
|||
|
|||
|
To get it on the first port, I tried this:
http://www.vbulletin.com/forum/forum...b-like-button? but placing the likebutton code in there, shows just nothing --------------- Added [DATE]1362670983[/DATE] at [TIME]1362670983[/TIME] --------------- the problem seems to be this code: <vb:if condition="$show['fb_likebutton']"> {vb:raw fblikebutton} </vb:if> This code does not work in postbit_legacy....how could I get it to work there? |
|
#10
|
||||
|
||||
|
Unless you write a plugin to register the variable $fblikebutton to the template postbit_legacy, it isn't going to spit anything out.
Cellarius wrote a really good article that you may be interested in - [vB4] Rendering templates and registering variables - a short guide |
| Благодарность от: | ||
| findingpeace | ||
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|