PDA

View Full Version : What Template do I add this code?


adamskiii
03-22-2009, 10:56 PM
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:

https://vborg.vbsupport.ru/external/2009/03/10.gif

This is the code I must add, but am not sure which template to put it in:
<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&amp;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&amp;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>

Any help?

thanks:)

TigerC10
03-22-2009, 11:02 PM
You're looking for the postbit_legacy template.

adamskiii
03-22-2009, 11:05 PM
could you please help me on where to insert this code so it shows up under the post that was thanked?

thanks

TigerC10
03-22-2009, 11:45 PM
Look for

<div>
$vbphrase[posts]: $post[posts]
</div>


Insert your code below it.

adamskiii
03-23-2009, 12:27 PM
Look for

<div>
$vbphrase[posts]: $post[posts]
</div>


Insert your code below it.

I have added the code there but this is where it goes:

https://vborg.vbsupport.ru/external/2009/03/55.jpg

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?

Seven Skins
03-23-2009, 02:16 PM
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.

.

Lynne
03-23-2009, 02:18 PM
You should just read the installation instructions and do the templates edits again for the modification.

TigerC10
03-23-2009, 04:09 PM
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?

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.

adamskiii
03-23-2009, 08:14 PM
Ok, so I have added the code at the very bottom of the postbit_legacy template and its showing up:D. 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 :)

Seven Skins
03-24-2009, 11:02 AM
PS. I think you need to add "$post_thanks" not the code you posted above.
.

^^ Do this. Also read the installation guide of the hack.

adamskiii
03-24-2009, 10:24 PM
^^ Do this. Also read the installation guide of the hack.

I have tried that and nothing happened and there is no instructions for editing any templates for this hack, just upload the files and import the product