Quote:
Originally Posted by dartho
Integrating Abe1's post thanks add-on into the mobile style.
replace the following templates with the code provided (in the lightweight style only!!)
post_thanks_box
Code:
<div class="windowbg" id="post_thanks_box_{vb:raw post.postid}">{vb:raw post_thanks_box}</div>
post_thanks_button
Code:
<a id="btn" href="post_thanks.php?{vb:raw session.sessionurl}do=post_thanks_add&p={vb:raw post.postid}&securitytoken={vb:raw bbuserinfo.securitytoken}" id="post_thanks_button_{vb:raw post.postid}"<vb:if condition="$vboptions[disable_ajax] != 2"> onclick="return post_thanks_give({vb:raw post.postid}, <vb:if condition="$vboptions[post_groan_integrate]">true<vb:else />false</vb:if>);"</vb:if> <vb:if condition="$display_thanks_image == 'none'">style="display:none"</vb:if> rel="nofollow" class="post_thanks_button">{vb:rawphrase post_thanks_thanks}</a>
post_thanks_postbit
Code:
<vb:if condition="$post['post_thanks_amount'] == 1">
{vb:rawphrase post_thanks_user_says, {vb:raw post.username}}
<vb:else />
{vb:rawphrase post_thanks_users_say, {vb:raw post.post_thanks_amount_formatted}, {vb:raw post.username}}
</vb:if>
{vb:raw post.post_thanks_bit}
Edit both the postbit & postbit_legacy templates as follows
Search for:
Code:
<vb:if condition="$post['editlink']"><a id="btn" href="{vb:raw post.editlink}">{vb:rawphrase edit}</a></vb:if>
Add the following immediately above:
Code:
{vb:raw template_hook.postbit_controls}
Then go to end of template and paste in:
Code:
{vb:raw template_hook.postbit_end}
and your done!
|
your the best .. worked like a charm
I have dbtech_bookmark and thread system and like you said this will bring on other mods
now showing a image but not working from what I can tell
this is the code ..in template dbtech_bookmark_post
whats do I change ..and will there be other changes to other templates
thanks again
Code:
<img name="newpostbookmarklink" data-hasbookmarked="{vb:var hasBookmarked}" data-postid="{vb:var post.postid}" data-bookmark="dbtech/bookmark/images/post.png" data-bookmarked="dbtech/bookmark/images/delete.png" src="<vb:if condition="$hasBookmarked">dbtech/bookmark/images/delete.png<vb:else />dbtech/bookmark/images/post.png</vb:if>" alt="{vb:raw phrase}" style="cursor:pointer; vertical-align:middle;" />
<span class="seperator"> </span>