vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   AutoCopy Code and PHP to clipboard (https://vborg.vbsupport.ru/showthread.php?t=37117)

TECK 04-07-2002 11:39 AM

Quote:

Originally posted by FireFly
Yeah, you must click inside the text and not just anywhere in the table (because the <pre> ends before the table).
Maybe with some more Javscript you can make the whole table double-clickable? :)

you cant.. unfortunatelly. the code is looking only for a segment of code related to whatever variable you select (in our case [high]<pre[/high]), to paste it. if you select ather area, it will paste everything, including the html code. i would make more clear the message:
[high](double-click the code segment to copy to clipboard)[/high] or something like that...

if you dont click on the actual code, it will not work. talking abot this, how can we remove the space? if you click on the first line (even is it's outside the text), in your example, it works. in the empty space below, it doesnt. VB adds some extra space there... only in CODE and PHP. maybe you can tell us here firefly how to remove this pesky space in both CODE and PHP.. it is not very estethic..

Admin 04-07-2002 11:46 AM

I was thinking of maybe giving every <pre> a unique ID (per page of course), and then instead of "this" in the JS use that ID.

Admin 04-07-2002 11:50 AM

[high]* FireFly beats the system. ;)
[/high]

Ok, I got it to work with my hack (PHP and stuff in boxes) that you can click the table and not just the text.

Instead of replacing <pre I replace this:
Code:

<td colspan="2" style="BORDER: #000000 1px solid; FONT-SIZE:
With the same code only with added JavaScript.

TECK 04-07-2002 11:51 AM

good job firefly, as usual.. ;)
so if i understand corectly.. you fall in love with me?? hehe

nsr81 04-07-2002 05:02 PM

Thanks for this hack nakkid.

Neo 04-07-2002 06:37 PM

Cool nakkid :D

Sindatel 04-10-2002 12:06 PM

I can't seem to get it to work on my 2.2.5
every time i click it copies the entire post!
and gives me 3 CopyBoxes !!!
HELP :)

TECK 04-11-2002 04:24 AM

you have firefly's hack installed?
check his post here, related to this issue. he tells you how to edit properly the html code.

squawell 04-11-2002 06:12 AM

very useful hack~~

thankz ur great work~~

Parker Clack 04-13-2002 04:19 PM

nakkid:

Is there anyway to incorporate this in with the quotereply template so when someone clicks on the quote icon the text that is in the post is copied to the clipboard?

So instead of putting the
Code:


       
Quote:

       
       
               
       
       

                       

                       
                                Originally posted by $originalposter $pagetext
                       
                       

               


that this template puts into a new post it would just copy $pagetext to the clipboard? That way it when they go to reply and the page won't load they haven't lost what they just typed. Or better yet it would be cool if it was a feature that when they typed a message it would just copy the contents to the clipboard and then you could just cut and paste. The information copied to the clipboard would change each time you posted a new message.

Just a thought.

Parker


All times are GMT. The time now is 01:45 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.00998 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete