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)

SimonB 02-07-2015 12:26 PM

Hi all

Just installed this mod for a "recipe database" we want to build.

I have created a plugin as per this post:

https://vborg.vbsupport.ru/showpost....postcount=1765

And modified it as per this post:

https://vborg.vbsupport.ru/showpost....postcount=1767

in order to create a new form on the "New Thread" button for the applicable forum

My code is as follows:

PHP Code:

if (in_array($forumid, array(45)))
{  
header('Location: http://www.myforum.com/misc.php?do=form&fid=1') ;  


Where my forum_id is 45 and form_id =1

Execution order is 5, plugin is active.

But nothing happens when I create a new thread in the applicable forum - it just starts a new post as per normal.

So what have I done wrong?

The location URL works fine.

vbulletin version is 4.2.2 PL4

kh99 02-07-2015 01:08 PM

Which hook location are you using for your plugin? The plugin at the first link uses a different hook than the modified one at the second link.

SimonB 02-07-2015 01:42 PM

Quote:

Originally Posted by kh99 (Post 2536534)
Which hook location are you using for your plugin? The plugin at the first link uses a different hook than the modified one at the second link.

I'm using newreply_form_start. Which one should it be? newthread_form_start?

kh99 02-07-2015 01:57 PM

It should be newthread_form_start if you want it to happen when a new thread is started.

SimonB 02-07-2015 07:20 PM

Quote:

Originally Posted by kh99 (Post 2536553)
It should be newthread_form_start if you want it to happen when a new thread is started.

Great, thanks for the assistance. Now to work out some styling issues, specifically how to make sure the answers appear on the same line as the question

blind-eddie 02-08-2015 03:00 AM

If you have not figured out how to get your edit to work yet, the modification in the link below is for 3.8 but will work in 4.2.2.

https://vborg.vbsupport.ru/showthrea...+thread+button

HM666 02-12-2015 07:29 PM

Does any one know if its possible to make it where I can as an admin fill out a form and then PM the results to a member of my choice without having to create a new form for each member I have to do this for? There is an option to PM members and you can list the usernames, but I would only want to PM a certain form result to a certain member from the same form. I would be creating a quote for work and then sending it to a member via PM. Is it possible to set this up?

Skyrider 03-02-2015 07:16 PM

From the few posts above "newreply_form_start" hook plugin (that is mentioned in other posts), will this make it possible that each new reply in threads will make a form of which replies in that specific thread you created the reply in?

We have a special section on our forums which requires custom forms that the user is required to fill in. However, this section only works on new thread forms, and posting it in a specific thread. What I need is when a user is replying in a thread a user has made, it shows up a list of required forms of which will also be posted in the users thread, rather than a specific one.

Fields 03-05-2015 04:57 PM

I get the following error when trying to submit a form:

Code:

Please complete both the subject and message fields.
Do you know how to fix it? :)

EDIT: Fixed it, PHP 5.4 caused the error.

Skyrider 03-14-2015 02:20 PM

Anyone? *See my post above.


All times are GMT. The time now is 05:52 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.02552 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
  • (2)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