The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
What Template do I add this code?
So I have added a new theme to my site and now when a user thanks someone the box under the post that shows all users does not show up. I know what code to use but am not sure where to put it. Can someone please help me? Here is a picture of what I am talking about:
This is the code I must add, but am not sure which template to put it in: Code:
<div style="padding:$stylevar[cellpadding]px 0px 0px 0px"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr valign="top"> <td class="alt2" width="175"> <if condition="$post['post_thanks_amount'] == 1"> <strong><phrase 1="$post[username]">$vbphrase[post_thanks_user_says]</phrase></strong> <else /> <strong><phrase 1="$post[post_thanks_amount_formatted]" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></strong> </if> <if condition="$bbuserinfo['usergroupid'] == 6"> <br /><a href="post_thanks.php?do=post_thanks_remove_all&p=$post[postid]"<if condition="$vboptions[disable_ajax] != 2"> onclick="return post_thanks_remove_all($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>);"</if> rel="nofollow">$vbphrase[post_thanks_remove]</a> </if> <if condition="$post['show_thanks_remove_option']"> <br /><a href="post_thanks.php?do=post_thanks_remove_user&p=$post[postid]"<if condition="$vboptions['disable_ajax'] != 2"> onclick="return post_thanks_remove_user($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>);"</if> rel="nofollow">$vbphrase[post_thanks_remove_user]</a> </if> </td> <td class="alt1"><div>$post[post_thanks_bit]</div></td> </tr> </table> </div> thanks |
#2
|
||||
|
||||
You're looking for the postbit_legacy template.
|
#3
|
|||
|
|||
could you please help me on where to insert this code so it shows up under the post that was thanked?
thanks |
#4
|
||||
|
||||
Look for
Code:
<div> $vbphrase[posts]: $post[posts] </div> |
#5
|
|||
|
|||
Quote:
I dont want it to show up where is displays the amount of posts, username, ect. I want it to show up right under the post. Any help? |
#6
|
||||
|
||||
Put the code at the bottom of postbit_legacy template.
PS. I think you need to add "$post_thanks" not the code you posted above. . |
#7
|
||||
|
||||
You should just read the installation instructions and do the templates edits again for the modification.
|
#8
|
||||
|
||||
That's because the code you pasted has all of that extra stuff with it. You will need to trim down the code the code to whatever it is that you want.
|
#9
|
|||
|
|||
Ok, so I have added the code at the very bottom of the postbit_legacy template and its showing up. Only problem now is that its showing up under every post, even if it was not thanked. Can someone please help me cut the code above to only display the box to posts that were thanked and not every post?
Thank you |
#10
|
||||
|
||||
^^ Do this. Also read the installation guide of the hack.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|