PDA

View Full Version : Attachment Onlick Button Code ?


adigetr
07-11-2014, 02:06 AM
I added attachment button in editor top the smilies.
But I need to onlick"" codes. I cant find anywhere, can you tell me this code please. in newreply.php

<input id="manage_attachments_button" class="button" tabindex="1" style="font-weight:bold; padding:5px; background:red; color:#fff;" value="ADD ATTACHMENT" title="" onclick"" type="button">

thanks.

Dave
07-11-2014, 08:10 AM
Look at the newpost_attachment template. Pretty much all you need is in there.

adigetr
07-11-2014, 02:01 PM
Thanks @Dave, I find onclick code in newpost_attachment template
vB_Attachments.open_window(\'newattachment.php?$se ssion[sessionurl]$attachurl&amp;poststarttime=$poststarttime&amp;posthash=$ posthash\', 480, 480, \'$postid\')


But when I added this code in editor_smiliebox like picture but its not working why ?

https://vborg.vbsupport.ru/external/2014/07/44.png

<input id="manage_attachments_button" class="button" tabindex="1" style="font-weight:bold; padding:5px; background:red; color:#fff;" value="File Upload" title="Bu Mesaja ait Eklentileri g?rmek yada değiştirmek i?in, buraya tıklayın" onclick="vB_Attachments.open_window(\'newattachment.php?$se ssion[sessionurl]$attachurl&amp;poststarttime=$poststarttime&amp;posthash=$ posthash\', 480, 480, \'$postid\')" type="button">

adigetr
07-12-2014, 05:07 PM
anyone help ?

adigetr
07-19-2014, 11:25 PM
Still ı have this problem ?

blind-eddie
07-20-2014, 12:14 AM
This will do what you are requesting.

https://vborg.vbsupport.ru/showthread.php?t=237732&highlight=quick

adigetr
07-21-2014, 10:56 AM
I'm not talking about that, I need this code.Your link quick reply but i need for new topic

adigetr
07-26-2014, 12:00 AM
its really simple but really anyone didnt know ?

tbworld
07-26-2014, 02:33 AM
You need to show your work. It is impossible for us to guess what you are doing incorrectly with the information you have given us. :) This is why your question is not being answered. :)

adigetr
08-27-2014, 06:59 PM
I added pics.I add in the editor file upload button.I want to open attachment popup page when its click.I added button but its not working didnt open attachment page.

my code:
<input id="manage_attachments_button" class="button" tabindex="1" style="font-weight:bold; padding:5px; background:red; color:#fff;" value="File Upload" title="Bu Mesaja ait Eklentileri g?rmek yada değiştirmek i?in, buraya tıklayın" onclick="vB_Attachments.open_window(\'newattachment.php?$se ssion[sessionurl]$attachurl&amp;poststarttime=$poststarttime&amp;posthash=$ posthash\', 480, 480, \'$postid\')" type="button">

https://vborg.vbsupport.ru/external/2014/08/7.png

https://vborg.vbsupport.ru/external/2014/08/8.png


I want to like this when file upload link click.

https://vborg.vbsupport.ru/external/2014/08/9.png

Thanks.