vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Populate <textarea> on non-vB page from link in postbit? (https://vborg.vbsupport.ru/showthread.php?t=74765)

safiel 01-20-2005 11:42 PM

Populate <textarea> on non-vB page from link in postbit?
 
In a posted thread, in every postbit, we want to have a link "forward this message as a postcard" - they click on the link, it takes them postcard.php, and should autopopulate the <textarea> for the postcard message with the message only in that single post.

Using vB functions, can someone tell me the easiest way to pass the post's text to another page?

Tekton 01-20-2005 11:57 PM

send the postid of the message(post) that you want copied and then run a little query getting the pagetext from the db matching the postid?

'course, make sure they have permission to view the message too...

safiel 01-21-2005 01:05 AM

Do you think that would be best, or could you even just transfer the pagetext avoiding a query? If I can skip a query that would be great.

The main hinerance is that and I don't know what the query would look like. Probably just a mysql_query from the post table, the pagetext, where postid = postid, right?

deathemperor 01-21-2005 02:49 AM

it's impossible to do so, unless you use copy and paste. Becausing reloading a page would also need to reload the data, and that page contains non-static data so everytime you open it you get to run queries. I believe it's a very simple query and wouldn't take alot of time so don't be worried about it.


All times are GMT. The time now is 07:49 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.01188 seconds
  • Memory Usage 1,707KB
  • 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
  • (4)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