vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   How do I insert text entered in profile fields into a post? (https://vborg.vbsupport.ru/showthread.php?t=93028)

Gutspiller 07-27-2005 08:51 PM

How do I insert text entered in profile fields into a post?
 
My users need headers and footers to their post. So I have 2 profile fields acting as the entry for the header and the footer. What code do I use to grab the text entered into those profile fields so that it appears before and after "$post[message]" in the postbit template?

bigcurt 07-27-2005 09:53 PM

I love template questions :)

Code:

<if condition="$post['fieldX']">

Put that wherever you would like it


~Curt

Gutspiller 07-31-2005 01:58 AM

Maybe you can answer this question too. How do I get it so my header is up against the very top and my footer is against the very bottom?

Gutspiller 08-01-2005 05:03 PM

I get this error:

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /path/includes/adminfunctions_template.php(3096) : eval()'d code on line 63

Am I suppose to include anything more than that after changing the X to the field #?

bigcurt 08-01-2005 08:00 PM

I am sorry I did not give you all the code, It was probably too early in the morning for me to be thinking, I am soo sorry..here is the code you will need.


Code:

<if condition="$post['fieldX']">
        $post[fieldX]
</if>

Make sure you replace BOTH "X" Values.


~Curt


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