The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Download + Thanks in one button
I have to seperate buttons in postbit one to download the attatchment and a second to for 'thanks'. Is it possible to combine the two? So i have one button 'download' that automatically gives thanks aswell.
Code:
<a href="post_thanks.php?$session[sessionurl]do=post_thanks_add&p=$post[postid]&securitytoken=$bbuserinfo[securitytoken]" id="post_thanks_button_$post[postid]"<if condition="$vboptions[disable_ajax] != 2"> onclick="return post_thanks_give($post[postid], <if condition="$vboptions[post_groan_integrate]">true<else />false</if>);"</if> <if condition="$display_thanks_image == 'none'">style="display:none"</if> rel="nofollow"><img src="$stylevar[imgdir_button]/myfile.gif" alt="$vbphrase[post_thanks_thanks]" border="0" /></a> Code:
<a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&d=$attachment[dateline]"><img src="http://www.mydomain.com/forum/images/misc/myfile2.gif" width="100" height="21" border="0"></a> Powlo |
#2
|
||||
|
||||
You will need to hook into the attachment download process and use the functions of the other modification to give a thanks automatically.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|