vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Attachment Onlick Button Code ? (https://vborg.vbsupport.ru/showthread.php?t=312887)

adigetr 07-11-2014 02:06 AM

Attachment Onlick Button Code ?
 
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
Quote:

vB_Attachments.open_window(\'newattachment.php?$se ssion[sessionurl]$attachurl&amp;poststarttime=$poststarttime&amp;po sthash=$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

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?$session[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/showthrea...ighlight=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:
PHP 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?$session[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.


All times are GMT. The time now is 07:23 AM.

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.01046 seconds
  • Memory Usage 1,732KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete