vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Open a popup with a link which auto-adds something in postbox (https://vborg.vbsupport.ru/showthread.php?t=104346)

Symen_4ab 01-03-2006 04:45 PM

Open a popup with a link which auto-adds something in postbox
 
Hi there !
Well, I know the title is a little bit confusing, but I didn't know how to say that..
So, here's the long explanation of what I'd want :

On newreply.php (and newthread.php) I have a link which opens a popup, in this popup, I display something I would like to be inserted in the textarea of the post I'm curently writing.

I'd link to display a link which, when clicked, would add the text directly in the textarea.

Exactly the way the smilie popup works, in short..

So, my question is, what would I need to do to achieve this result ?
I'm lost when it comes to javascript, php is more my domain ;)

Thanks in advance !

Update : First thing I did (after hours of research on this) was getting the vb_editor_id of the textarea (Vb_Editor_001 for exemple).
This is now passed as an argument in my popup.

I tried to examine source codes of many pages (smilies, mainly), but I cannot see how smilies are inserted in the post..
I mean, no onclick action, no link at all...
I'm really lost, I tried by using other javascript codes (not vbulletin's), with no results so far...
I can include all vbulletin's javascript files if I need to, but I would really like to know which javascript function is called (and how) to add the text..
Please ?

Streicher 01-31-2006 06:44 PM

I want to do the same. For vB3.0 i have got a solution, but the vb3.5 was completely recoded and i don't find a way. :(


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