vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   New Posting Features - Easy Forms v4.x - Create a form or multiple forms without php or html knowledge (https://vborg.vbsupport.ru/showthread.php?t=234385)

Welshy2008 06-09-2010 02:12 PM

Quote:

Originally Posted by Welshy2008 (Post 2044731)
The search facilty, still doesn't work and does not return post results that I know are listed.

Any Ideas Please BA?

The following is what I have in my vB4.0.3


PHP Code:

<tr>
<
vb:if condition="$threadinfo['threadid'] == 'XXXX'">
<
td align="$stylevar[left]valign="top" width="50%">
<
fieldset class="fieldset" style="margin:0px">
<
legend><b><font size="3">Search</font> <font size="2"></b></legend>
<
table cellpadding="0" cellspacing="$stylevar[formspacer]border="0">
<
tr>
<
td colspan="2">
<
tr>
<
form action="search.php?do=process&searchthreadid=XXXX" method="post">
<
table cellpadding="4" cellspacing="1" border="0">
<
tr>
<
td class=""><b><font size="2">Please enter a search word:</font></b><a name="goto_threadsearch"></a></td>
</
tr>
<
tr>
<
td align="left">
<
input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<
input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<
input type="hidden" name="do" value="process" />
<
input type="hidden" name="searchthreadid" value="$threadinfo['threadid']}'" />
<
font size="3"><b>Find:</b></font> <input type="text" class="bginput" name="query" size="25" />&nbsp<input type="image" src="http://www.myforumaddress.com/images/sample.gif" alt="Search ."><br/>
</
td>
</
tr>
</
table>
</
form>
</
select></label>
</
tr>
</
fieldset></vb:if>
<
br /> 

I have also tried the following too:

PHP Code:

<input type="hidden" name="searchthreadid" value="$threadinfo['threadid']}'XXXX" /> 

PHP Code:

<input type="hidden" name="searchthreadid" value="$threadinfo['threadid']}'XXXX'" /> 

PHP Code:

<input type="hidden" name="searchthreadid" value="$threadinfo['threadid']} == 'XXXX" /> 


Where XXXX is the threadID.


Please BA? :)

bananalive 06-09-2010 04:45 PM

Quote:

Originally Posted by Welshy2008 (Post 2044731)
The search facilty, still doesn't work and does not return post results that I know are listed.

Any Ideas Please BA?

The following is what I have in my vB4.0.3


PHP Code:

<tr>
<
vb:if condition="$threadinfo['threadid'] == 'XXXX'">
<
td align="$stylevar[left]valign="top" width="50%">
<
fieldset class="fieldset" style="margin:0px">
<
legend><b><font size="3">Search</font> <font size="2"></b></legend>
<
table cellpadding="0" cellspacing="$stylevar[formspacer]border="0">
<
tr>
<
td colspan="2">
<
tr>
<
form action="search.php?do=process&searchthreadid=XXXX" method="post">
<
table cellpadding="4" cellspacing="1" border="0">
<
tr>
<
td class=""><b><font size="2">Please enter a search word:</font></b><a name="goto_threadsearch"></a></td>
</
tr>
<
tr>
<
td align="left">
<
input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<
input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<
input type="hidden" name="do" value="process" />
<
input type="hidden" name="searchthreadid" value="$threadinfo['threadid']}'" />
<
font size="3"><b>Find:</b></font> <input type="text" class="bginput" name="query" size="25" />&nbsp<input type="image" src="http://www.myforumaddress.com/images/sample.gif" alt="Search ."><br/>
</
td>
</
tr>
</
table>
</
form>
</
select></label>
</
tr>
</
fieldset></vb:if>
<
br /> 

I have also tried the following too:

PHP Code:

<input type="hidden" name="searchthreadid" value="$threadinfo['threadid']}'XXXX" /> 

PHP Code:

<input type="hidden" name="searchthreadid" value="$threadinfo['threadid']}'XXXX'" /> 

PHP Code:

<input type="hidden" name="searchthreadid" value="$threadinfo['threadid']} == 'XXXX" /> 


Where XXXX is the threadID.

You should be using {vb:raw threadinfo.threadid}
HTML Code:

<input type="hidden" name="searchthreadid" value="{vb:raw threadinfo.threadid}" />

khet 06-09-2010 05:55 PM

Hello
Good mod.
I use Eazy Forms for registration application of festival.
I use form actions "save to database" and "Email".
Form results list shows a big quantity of applications.
How to make a pagination of form results list?

Welshy2008 06-09-2010 06:27 PM

Quote:

Originally Posted by bananalive (Post 2051097)
You should be using {vb:raw threadinfo.threadid}
HTML Code:

<input type="hidden" name="searchthreadid" value="{vb:raw threadinfo.threadid}" />

Thanks for your reply BA. I appreciate that.

Unfortunately, It still does not work. Would it be possible for you to check my codes, If I PM you an ID with admin permisions, Please?


Many Thanks,
Welshy2008.

bananalive 06-09-2010 09:03 PM

Quote:

Originally Posted by khet (Post 2051129)
Hello
Good mod.
I use Eazy Forms for registration application of festival.
I use form actions "save to database" and "Email".
Form results list shows a big quantity of applications.
How to make a pagination of form results list?

I'll add it in next version for you.

bananalive 06-09-2010 09:04 PM

Quote:

Originally Posted by Welshy2008 (Post 2051151)
Thanks for your reply BA. I appreciate that.

Unfortunately, It still does not work. Would it be possible for you to check my codes, If I PM you an ID with admin permisions, Please?


Many Thanks,
Welshy2008.

Yea go for it.

Welshy2008 06-09-2010 09:25 PM

Quote:

Originally Posted by bananalive (Post 2051209)
Yea go for it.


Thank You - You have a PM. :)

riskofficer 06-09-2010 10:10 PM

Quote:

Originally Posted by bananalive (Post 2050955)
ok, try this version

Now it works! Thank you 1's more!

khet 06-10-2010 06:08 AM

Thank you.
I hope you will make update soon :)

Cedric_FP 06-10-2010 06:42 AM

I want to use the following code below which creates a new thread to also create 2 or 3 replies in the same thread with the same form output.

What code would I need to add? I've tried adding the code which adds a new post when choosing that option in the edit forms page, but that doesn't work (yet returns no errors).

Thanks

Quote:

Originally Posted by Cedric_FP (Post 2049779)
Using the following code:

Code:

$forumid2 = 31;
if ($complete)
    {
        if (!$vbulletin->userinfo['userid'])
        {
            $vbulletin->input->clean_array_gpc('p', array(
                'humanverify' => TYPE_ARRAY,
            ));
            $newpost['humanverify'] = $vbulletin->GPC['humanverify'];
        }
        require_once(DIR . '/includes/functions_editor.php');
        require_once(DIR . '/includes/functions_bigthree.php');
        require_once('./includes/class_dm.php');
        require_once('./includes/class_dm_threadpost.php');
        require_once('./includes/functions_databuild.php');
        if (!$closed)
        {
            $open = 1;
        }
        else
        {
            $open = 0;
        }
        $threaddm = new vB_DataManager_Thread_FirstPost($vbulletin, ERRTYPE_STANDARD);
        /*$foruminfo = fetch_foruminfo($forumid);*/
        $threaddm->set_info('forum',$foruminfo);
        $threaddm->set_info('user', $vbulletin->userinfo);
        $threaddm->set('forumid', $forumid2);
        $threaddm->set('userid', $vbulletin->userinfo['userid']);
        $threaddm->set('title', $threadtitle);
        $threaddm->set('pagetext', $formoutput);
        $allow_smilie = '1';
        $visible = '1';
        $threaddm->set('open', $open);
        if ($form[prefixid])
        {
            $threaddm->set('prefixid', $form[prefixid]);
        }
        if ($form[iconid])
        {
            $threaddm->set('iconid', $iconid);
        }
        $threaddm->set('allowsmilie', $allow_smilie);
        $threaddm->set('visible', $visible);
        $threaddm->pre_save();
        $threadid = $threaddm->save();
        unset($threaddm);
        build_thread_counters($threadid);
        build_forum_counters($forumid); 
        if (!empty($threaddm->errors))
        {
            $errorss .= $threaddm->errors;
            $errormessage = "Form failed to submit. The following error(s) occured: <br /> ".$errorss;
            eval(standard_error($errormessage));
        }
        $threadinfo = fetch_threadinfo($threadid);
        $newpost['postid'] = $threadinfo['firstpostid'];
        mark_thread_read($threadinfo, $foruminfo, $vbulletin->userinfo['userid'], TIMENOW);
        /*($hook = vBulletinHook::fetch_hook('newthread_post_complete')) ? eval($hook) : false;*/
        if ($form[poll] == 1)
        {
            $question = $form[pollquestion];
            $threadinfo = verify_id('thread', $threadid, 0, 1);
            $polloptions = count($polloption);
            $vbulletin->GPC['options'] = $polloption;
            $counter = 0;
            $optioncount = 0;
            $badoption = '';
            while ($counter++ < $polloptions)
            {
                if ($vbulletin->options['maxpolllength'] AND vbstrlen($vbulletin->GPC['options']["$counter"]) > $vbulletin->options['maxpolllength'])
                {
                    $badoption .= iif($badoption, ', ') . $counter;
                }
                if (!empty($vbulletin->GPC['options']["$counter"]))
                {
                    $optioncount++;
                }
            }
            $poll = datamanager_init('Poll', $vbulletin, ERRTYPE_STANDARD);
            $counter = 0;
            while ($counter++ < $polloptions)
            {
                if ($vbulletin->GPC['options']["$counter"] != '')
                {
                    $poll->set_option($vbulletin->GPC['options']["$counter"]);
                }
            }
            $poll->set('question', $question);
            $poll->set('dateline', TIMENOW);
            $poll->set('active', '1');
            $poll->set('public', $form['publicpoll']);
            $poll->set('multiple', $form['multiplepoll']);
            $pollid = $poll->save();
            $threadman = datamanager_init('Thread', $vbulletin, ERRTYPE_STANDARD, 'threadpost');
            $threadman->set_existing($threadinfo);
            $threadman->set('pollid', $pollid);
            $threadman->save();
        }
        if ($form[submitmessage])
        {
            $errormessage = $form[submitmessage];
        }
        else
        {
            $errormessage = "Form was submitted successfully. Click <a href=\"showthread.php?" . $vbulletin->session->vars['sessionurl'] . "p=" . $newpost[postid] . "#post" . $newpost[postid] . "\">here</a> to view the thread.";
        }
    }

How would I also create replies to the thread created? The replies don't have to contain form data, they are just standard replies such as "Reserved".

Thanks.



All times are GMT. The time now is 09:01 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.02886 seconds
  • Memory Usage 1,856KB
  • 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
  • (2)bbcode_html_printable
  • (8)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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