vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   What Template do I add this code? (https://vborg.vbsupport.ru/showthread.php?t=209166)

adamskiii 03-22-2009 10:56 PM

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:

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:
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&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
Code:

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

Insert your code below it.

adamskiii 03-23-2009 12:27 PM

Quote:

Originally Posted by TigerC10 (Post 1774680)
Look for
Code:

                                <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

Quote:

Originally Posted by adamskiii (Post 1774952)
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

Quote:

Originally Posted by Seven Skins (Post 1775036)
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.


All times are GMT. The time now is 07:08 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01402 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete