vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   make "manage attachments" button open a link to uploader instead (https://vborg.vbsupport.ru/showthread.php?t=82375)

anonimouse 06-02-2005 12:25 AM

make "manage attachments" button open a link to uploader instead
 
i use a seperate file uploader from the one in vbulletin, just because it is way more practical for my site. i would like to make it so when you click the "Manage Attachments" button on the post page, it will open another browser window to my uploader instead of the default vb attachment window. i would also like to change the text of the button if possible.

i have tried messing around with the "newpost_attachment" template, but my skills with javascript are almost nonexistant, but it seems that this should not be too difficult to do. i have searched the forums here and have not found anything sofar to point me in the right direction. any ideas would be appreciated

amykhar 06-02-2005 12:29 AM

This might be a job for http://www.vbulletintemplates.com/

Amy

anonimouse 06-02-2005 02:33 AM

thanks for the link amy, im sure it will be useful in the future!

as for this i started to figure it out right after i posted this. what i did was edit the newpost_attachment template and basically eliminated everything but the <fieldset> tags. then added some <p>explaination</p> with

Code:

<input class="button" type="button" value="button text here" onclick="window.open('http://www.uploader.url.here')">
following it. that did the trick for me. im sure there is probably a better or cleaner way of doing this, but i was kinda in a hurry and it got the job done


All times are GMT. The time now is 01:30 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.00941 seconds
  • Memory Usage 1,700KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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