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)

uberjon 05-17-2008 10:56 PM

read this works on 3.7 and appears to with stock .xml file. however when i attempt to use my customized one. i get a white page? cant diagnose the error with a white page with no output source code.

anyone have any ideas?

edit:

*blush* i figured it out! template naming mismatch :p

ccplim 05-18-2008 04:52 AM

I am trying to set up some conditional check for my fields but where should I put them in? In the plugin itself or the main template? I have been playing around with the codes for days but just can't seem to get the conditional syntex right :down::o

What is going to happen is that I will have 3 fields in my form, namely $radiochoice1a, $radiochoice1b, and normalanswer1.

If a member select $radiochoice1a as his answer, normalanswer1 will be disabled and no information can be entered in that field.

Else, if the member select $radiochoice1b as his answer, normalanswer1 will be enable.

Thanks!

ccplim 05-18-2008 08:09 AM

How can I remove the VB text input area? I tried to remove '$messagearea' but the three buttons (Submit, Preview, Reset) below also disappeared :confused:

Deepdog009 05-18-2008 06:11 PM

Quote:

Originally Posted by ccplim (Post 1523153)
I am trying to set up some conditional check for my fields but where should I put them in? In the plugin itself or the main template? I have been playing around with the codes for days but just can't seem to get the conditional syntex right :down::o

What is going to happen is that I will have 3 fields in my form, namely $radiochoice1a, $radiochoice1b, and normalanswer1.

If a member select $radiochoice1a as his answer, normalanswer1 will be disabled and no information can be entered in that field.

Else, if the member select $radiochoice1b as his answer, normalanswer1 will be enable.

Thanks!

ccplim,,,
I haven't had much time to help recently because of my job,,, but yeah you can use the standard if conditional to work out your issue...

What I recommend is downloading a few easy mods and take a look at the XML code... Look for mods that use the if statment allot...

Im still half way out of the PHP twilight zone and on top of that my job wont allow my ball and chain to come off very often...;):eek:

Take a look at this site...>>> PHP HELPER

If you still need help after checking over there,,, Give me until tuesday and I will assist U...


*************************************************


ccplim,,,
VB Text edit...>>> delete both lines listed below...

HTML Code:

<td class="alt2" valign="middle" colspan="3">
<b>$vbtextquestion</b><br />    <<<......{{{delete this}}}
$vbtextexplain      <<<......{{{delete this}}}
<div align="center">

<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
$messagearea
</td>
</tr>
</table>
</div>
</td>
</tr>
<if condition="$attachmentoption">
<tr>
<td class="alt1" colspan="3" align="center">
<div style="width:$stylevar[formwidth]" align="$stylevar[left]">$attachmentoption</div>
</td>
</tr>
</if>
<tr>
<td valign="top" colspan="3">
<p align="center">
<input type="submit" value="Submit" name="submit" style="font-family: Verdana; font-size: 10pt" class="button" />
<input type="submit" value="Preview" name="submit" style="font-family: Verdana; font-size: 10pt" class="button" />
<input type="reset" value="Reset" name="reset" style="font-family: Verdana; font-size: 10pt" class="button" />
</p></td></tr>
</table>

</form>


That should do the trick...



*************************************************


ccplim,,,
Using the disable feature seems to work better with ajax,,, the only problem is that I haven't worked with ajax modifications yet... Too many things going on now,,, so maybe next month If Im not burnt out with mod updates,,, I will attempt adding some ajax...


*************************************************


uberjon,,, Beauts!

ccplim 05-19-2008 02:48 AM

Quote:

Originally Posted by Deepdog009 (Post 1523867)
ccplim,,,
I haven't had much time to help recently because of my job,,, but yeah you can use the standard if conditional to work out your issue...

What I recommend is downloading a few easy mods and take a look at the XML code... Look for mods that use the if statment allot...

Im still half way out of the PHP twilight zone and on top of that my job wont allow my ball and chain to come off very often...;):eek:

Take a look at this site...>>> PHP HELPER

If you still need help after checking over there,,, Give me until tuesday and I will assist U...

Thanks for the link pal :) I'll take a look at it and see how things can progress from there :up:

rwoscott 05-20-2008 02:24 AM

I've managed to customise my form, (finally) and can PM it to myself, but I can't seem to get the submit to a forum work. I've set the Forum id to a couple of forums to ensure it works, but alas it does not.

Anyone have an idea as to why it may not work?
Will supply the link if needed.

grimmer 05-20-2008 01:07 PM

Quote:

Originally Posted by Deety (Post 1427173)
I would like to have the form post new threads in multiple forums selected by checkboxes.

This code seems to work well for selecting one $formforumid, but the first two "else" statements would prevent multiple selections, and taking them out did no good.

I'm guessing the issue may be that $formforumid can't be assigned multiple values (i.e., $formforumid = "1,2,3" or some such), but hopefully it can and I'm just missing the language that will do it. Easy answers are nice. :p

If anyone has a suggestion to get multiple forums working, I'll make the edit to the original form and post it as an example so it's easy for the next person. Thanks for any ideas... :)

PHP Code:

if ($checkboxchoice1_1 1)
{
$formforumid "1";
}
else
if (
$checkboxchoice1_2 1)
{
$formforumid "2";
}
else
if (
$checkboxchoice1_3 1)
{
$formforumid "3";
}
else
$formforumid "4"


Bump for a question that about a dozen people here including myself have.

Smiry Kin's 05-20-2008 11:31 PM

does this work in 3.7.?

as looking for something like this again :)

ccplim 05-22-2008 02:15 PM

Oh my goodness..... my form shown up alright in Internet Explorer (see attached "Internet explorer.jpg) but not in Firefox (see attached "Firefox.jpg). :eek:

What could have gone wrong? :confused: :(

Alteran Ancient 05-22-2008 07:50 PM

Quote:

Originally Posted by ccplim (Post 1528007)
Oh my goodness..... my form shown up alright in Internet Explorer (see attached "Internet explorer.jpg) but not in Firefox (see attached "Firefox.jpg). :eek:

What could have gone wrong? :confused: :(

It's a good thing I refuse to use Firefox. It's an over-rated, worshipless piece of pap that I only ever touch for the plugins people make for it, such as Download managers. I come for their work, not the work of Mozilla.

At least IE8 will come out with Standard mode available.


All times are GMT. The time now is 05:11 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.02466 seconds
  • Memory Usage 1,767KB
  • 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_html_printable
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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