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)

bananalive 06-30-2009 01:23 PM

Quote:

Originally Posted by steve71 (Post 1839256)
  1. I had version 3.7 so I uploaded the new one you posted anyway and over-wrote the current.
  2. I created a custom question and in the PHP box I put:
    $answer = '<input type="text" id="thumbnailurl" name="thumbnailurl" value="'.htmlspecialchars($newpost[thumbnailurl]).'" />';
  3. Form Hook Before Submit I put:
    $vbulletin->input->clean_gpc('p', 'thumbnailurl', TYPE_STR);
    $newpost['thumbnailurl'] =& $vbulletin->GPC['thumbnailurl'];

  4. In the new question box I created I tried pasting an image url both with and without [img] tags but no thumbnail.

Find in plugin Easy Forms Part 1:
PHP Code:

$postdm->set('userid'$postuserid); 

Add below:
PHP Code:

$postdm->set('thumbnailurl'$newpost['thumbnailurl']); 


steve71 06-30-2009 09:59 PM

Quote:

Originally Posted by bananalive (Post 1840165)
Find in plugin Easy Forms Part 1:
PHP Code:

$postdm->set('userid'$postuserid); 

Add below:
PHP Code:

$postdm->set('thumbnailurl'$newpost['thumbnailurl']); 



I tried that and then submitted an image URL with and without [url] tags in the box created in step.2


Quote:

Originally Posted by steve71 (Post 1839256)
  1. I had version 3.7 so I uploaded the new one you posted anyway and over-wrote the current.
  2. I created a custom question and in the PHP box I put:
    $answer = '<input type="text" id="thumbnailurl" name="thumbnailurl" value="'.htmlspecialchars($newpost[thumbnailurl]).'" />';
  3. Form Hook Before Submit I put:
    $vbulletin->input->clean_gpc('p', 'thumbnailurl', TYPE_STR);
    $newpost['thumbnailurl'] =& $vbulletin->GPC['thumbnailurl'];
  4. In the new question box I created I tried pasting an image url both with and without [img] tags but no thumbnail.


Should I undo steps 1-3 and only edit the plugin Easy Forms Part 1?

dinamik 07-02-2009 09:39 AM

hello bananalive, first of all this is a great addon,
but i wonder if this will be a good ideea
you make a question like Dropdown Select or a checkbox select
and based on that you can change the category in which the form is posted in
for example
you have multiple forms that do the same thing basically with difference only in place where it gets posted.
what do you think about that?:P

vithorius 07-02-2009 09:44 AM

Man... This is a GREAT hack, but I guess that the title must be changed...! :( :confused:

Where it says "without php or html knowledge" should say "with a lot of HTML knowledge and a bit of PHP" :rolleyes: :eek: :up:

tldagent 07-02-2009 12:31 PM

Hello and thank you for this great modification.

I sort of have a problem. If I go to the form and edit the form and then enter a description and check the boxes to save or PM form details and hit save, none of it save and I'm redirected to my forum home page. I'm using VB 3.8.3 with VBSEO.

Tried many times to save, reinstalled mod, always same result.

Qwest 07-02-2009 02:44 PM

Would it be possible to use this to create a custom user registration form?

I want to make a landing page so that when a user clicks on an ad and comes to my site they see my custom easy registration form.

tldagent 07-02-2009 10:32 PM

Quote:

Originally Posted by tldagent (Post 1841389)
Hello and thank you for this great modification.

I sort of have a problem. If I go to the form and edit the form and then enter a description and check the boxes to save or PM form details and hit save, none of it save and I'm redirected to my forum home page. I'm using VB 3.8.3 with VBSEO.

Tried many times to save, reinstalled mod, always same result.

Has anyone experienced this? The form isn't working for me and I've searched here for answers and came up empty. Anyone?

MoveOver.cc 07-03-2009 09:43 AM

Hi,

Sorry if this has been asked before.

I would like to see a specific form as a module for cmps.

Is this possible and if so, how.

Thx

bananalive 07-03-2009 10:54 AM

Quote:

Originally Posted by steve71 (Post 1840411)
I tried that and then submitted an image URL with and without [url] tags in the box created in step.2





Should I undo steps 1-3 and only edit the plugin Easy Forms Part 1?

No keep that stuff.

And you might need to redo

Find in plugin Easy forms Part 1
PHP Code:

/*($hook = vBulletinHook::fetch_hook('newthread_post_complete')) ? eval($hook) : false;*/ 

Replace with
PHP Code:

($hook vBulletinHook::fetch_hook('newthread_post_complete')) ? eval($hook) : false


bananalive 07-03-2009 10:55 AM

Quote:

Originally Posted by dinamik (Post 1841299)
hello bananalive, first of all this is a great addon,
but i wonder if this will be a good ideea
you make a question like Dropdown Select or a checkbox select
and based on that you can change the category in which the form is posted in
for example
you have multiple forms that do the same thing basically with difference only in place where it gets posted.
what do you think about that?:P

You can copy forms which allows you to copy a form. I think this is a much easier way to have multiple forms with similar functions


All times are GMT. The time now is 01:25 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.02049 seconds
  • Memory Usage 1,756KB
  • 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
  • (6)bbcode_php_printable
  • (6)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