vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   New Posting Features - Form Hack (https://vborg.vbsupport.ru/showthread.php?t=126676)

ChrisBaktis 09-21-2006 04:41 AM

Quote:

Originally Posted by R.Caldwell
this code should work just fine in the hack code itself.
PHP Code:

$posttitle "$bbuserinfo[username]"


I tried that but it just left it out in the thread title

My $postitle code is = $bbuserinfo[username] / $normalanswer1

The thread that is created has a title that is this " / $normalanswer1" - the username doesnt show but the $normalanswer info does

R.Caldwell 09-21-2006 04:43 AM

did you add it to the answers template?

The-Ensemble 09-21-2006 05:49 AM

Quote:

Originally Posted by R.Caldwell
You could try adding this to the navbar template in your style
Code:

<if condition="$show['member']">
                        <td class="vbmenu_control"><a href="newthread.php?do=service_form">$vbphrase[Form]</a></td>
                </if>


If this was to me, thank you but it needs to be done in php it doesnt do it in the template:(

ChrisBaktis 09-21-2006 12:46 PM

Quote:

Originally Posted by R.Caldwell
did you add it to the answers template?

Yes and the answer template works fine...I have that same info in there where it works just as it did before - this is just in the Thread title that it isnt showing up.

The-Ensemble 09-21-2006 03:45 PM

Hey,
I figured out how to edit breadcrum you simply remove the navbar part of the php code and your own but you can use the $formname part incase you change the form.

Thanks R.Caldwell I got the idea from what you said.

Deimos 09-21-2006 11:53 PM

Great hack, smal.....large problem, heh

I've made it so there's 15 normal questions/answers, all of which show up on the original form
But, when you post or preview it, only the answer to the first question is posted?
It seems to ignore the other answers?
I must be missing something somewhere right?

ChrisBaktis 09-22-2006 12:23 AM

Quote:

Originally Posted by ChrisBaktis
I tried that but it just left it out in the thread title

My $postitle code is = $bbuserinfo[username] / $normalanswer1

The thread that is created has a title that is this " / $normalanswer1" - the username doesnt show but the $normalanswer info does

Any additonal suggestions on what the problem may be?

The-Ensemble 09-23-2006 11:21 AM

Quote:

Originally Posted by Deimos
Great hack, smal.....large problem, heh

I've made it so there's 15 normal questions/answers, all of which show up on the original form
But, when you post or preview it, only the answer to the first question is posted?
It seems to ignore the other answers?
I must be missing something somewhere right?

did you edit the forumanswers one so it shows all of them?


Ok now here's my question:
Someone filled out the form and pressed enter in a box and it submitted it, rather than create a new line how do I change this?

Martin-TMGRS 09-23-2006 08:25 PM

I've tried editing the form, but when I view it there is all the old boxes left. I dont understand what i'm doing wrong. Can anyone help me out here please...See the attached file...

The-Ensemble 09-23-2006 09:26 PM

did you edit the templates as well as the php code?


All times are GMT. The time now is 09:52 PM.

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.02046 seconds
  • Memory Usage 1,745KB
  • 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)bbcode_code_printable
  • (1)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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