vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How Do I Prefill the Subject for a New Post? (https://vborg.vbsupport.ru/showthread.php?t=75036)

Halo 2 Forum 01-24-2005 09:55 PM

How Do I Prefill the Subject for a New Post?
 
What I want to do is add a parameter to the query string like this:

http://www.xyz.com/newthread.phtml?d...wThreadSubject



and then echo it out in the "Title" input box on the "New Thread" page, but I can't get it to appear.



Any ideas?



Thanks for your time.

sabret00the 01-26-2005 01:48 PM

in the template, find the input box and put
HTML Code:

value="$_GET['subject']"
worst comes to the worst, you'll have to edit the globalize() in the file to allow subject, but you should be ok.

detalhe 04-13-2005 08:18 PM

Quote:

Originally Posted by sabret00the
in the template, find the input box and put
HTML Code:

value="$_GET['subject']"
worst comes to the worst, you'll have to edit the globalize() in the file to allow subject, but you should be ok.

Hi

I'd like to keep the same thread's subject by default unless one decides to change it. I think your reply does it, but where do I make these changes? :nervous:

Halo 2 Forum 07-04-2005 11:15 PM

What would the globalize() edit look like. I'm really not sure what to do and I don't want to royally mess this thing up.

Thanks for the help.

Halo 2 Forum 07-16-2005 04:44 PM

I get an eval error when trying to add value="$_GET['subject']"

Marco van Herwaarden 07-16-2005 08:25 PM

Remove the single quotes.


All times are GMT. The time now is 10:03 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.00987 seconds
  • Memory Usage 1,720KB
  • 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_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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