vb.org Archive

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

Martyh 04-15-2009 11:18 PM

Her's one way there may be others.

While in the admin control panel select

"Forums & Moderators"

then selct "forum management"
then under controls in the middle hit "go" on one of the listed forums.

The forum ID is at the top of the page in that header.

" Help Forum: Main Category (id: 1)"

Welshy2008 04-16-2009 07:55 AM

You can also find the threadid by actually clicking on the thread that you want - you will see the thread address in the address bar at the top of your screen.

The numbers AFTER the '?t=' in that address and BEFORE the '&page=' is the actual forumid.

IE: in the case of this forum, you will see:

Code:

https://vborg.vbsupport.ru/showthread.php?t=201097&page=57
The numbers in Bold are your threadid.

bananalive 04-16-2009 10:59 AM

Quote:

Originally Posted by Welshy2008 (Post 1791887)
I tried the new plugin - But it didn't work...


I tried it with "Vbulletin" as the 'Product' first - but tht didn't work either.

Plugin Location: newreply_form_start
PHP Code:

if (in_array($threadinfo[forumid], array(15)))

header('Location: http://www.your-site.com/forum/misc.php?do=form&fid=1') ; 



bananalive 04-16-2009 11:03 AM

Quote:

Originally Posted by Martyh (Post 1791666)
Thanks,

I'll give it a try. I didn't understand the " And then you could use form hooks or hidden fields to get variable." What do I need to do there? Appreciate all and any help.

How do I get parameter from url of form posted in custom output? (must have parameter)

1. Form Hook: Form Start

PHP Code:

$hiddenfield1 $vbulletin->input->clean_gpc('g''param'TYPE_UINT);
      if (empty(
$hiddenfield1))
          {
              
$errormessage "Error, this form needs a parameter.";
                 eval(
'print_output("' fetch_template('STANDARD_ERROR') . '");');
          } 

2. Form Hook: Before Submit
PHP Code:

     $hiddenfield1 $vbulletin->input->clean_gpc('p''hiddenfield1'TYPE_UINT);
      
$formoutput str_replace('{param}'"$hiddenfield1"$formoutput); 

3. Use {param} in custom output.

Welshy2008 04-16-2009 01:27 PM

Quote:

Originally Posted by bananalive (Post 1792356)
Plugin Location: newreply_form_start
PHP Code:

if (in_array($threadinfo[forumid], array(15)))

header('Location: http://www.your-site.com/forum/misc.php?do=form&fid=1') ; 




Afternoon BA,

That didn't work either. :(

Any ideas as to what else I could do Please?

Have you any further ideas also, on how I can get in to "Edit" my form for the \r\n too please?


It does not automatically redirect me when I select "Edit" from the drop down menu. :eek:



Thanks.

TimberFloorAu 04-17-2009 07:08 AM

Quote:

Originally Posted by bananalive (Post 1789709)
For forms creating new threads you can allow attachments.

But can we not allow an upload within the form itself ?

bananalive 04-17-2009 09:26 AM

Quote:

Originally Posted by TimberFloorAu (Post 1793085)
But can we not allow an upload within the form itself ?

I don't understand. By checking 'Allow attachments' the user gets a manage attachments button at the bottom of the form for uploading attachments.

bananalive 04-17-2009 09:27 AM

Quote:

Originally Posted by Welshy2008 (Post 1792483)
Afternoon BA,

That didn't work either. :(

Any ideas as to what else I could do Please?

Have you any further ideas also, on how I can get in to "Edit" my form for the \r\n too please?


It does not automatically redirect me when I select "Edit" from the drop down menu. :eek:



Thanks.

It should do, I tested it on my own forum, are you changing the forumid in the array?

I'll release v3.4 soon which have that issue fixed.

Welshy2008 04-17-2009 10:55 AM

Quote:

Originally Posted by bananalive (Post 1793157)
It should do, I tested it on my own forum, are you changing the forumid in the array?

I'll release v3.4 soon which have that issue fixed.


Yes BA Mate. :(

Would you be interested in taking a brief look, if I set up an admin account for you? And PM you the details?

I understand if you are too busy or just don't want to.

Thanks.

Welshy2008 04-17-2009 10:55 AM

PS. I am using the V3.4 Now, BA.


All times are GMT. The time now is 10:07 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.01864 seconds
  • Memory Usage 1,755KB
  • 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
  • (4)bbcode_php_printable
  • (7)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