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)

cookiepants 02-05-2008 05:40 AM

Is there a step by step way to customize the hack? I'm really trying to learn PHP to get this implemented on my site -- I think it would seriously rock for us! But I'm sort of lame at the PHP part.

I copied and pasted it into Notepad so I could try to read the instructions better, but I'm still a bit confused.

Thanks!
Nutmeg

cookiepants 02-05-2008 06:26 AM

once I pasted it into notepad, it was very easy to edit. Thank you!!! :up:

kartik786 02-05-2008 11:01 AM

Is it possible that members can create surveys from such forms which can be filled by other members?

A hack like that would be awesome !!

cookiepants 02-05-2008 05:31 PM

I do have one question. I'd like to add more check boxes than three. How do I do that?

PaleRiders 02-05-2008 07:40 PM

Quote:

Originally Posted by dirtycrow (Post 1075706)
hmmm. . . what am i doing wrong?

i wanted to get rid of all the radio buttons and drop downs.

I am having the exact same issue. I've gone over the hook a million times. I realize you have to edit the 'template'....but I'm not sure what template? I've searched through my Style Templates and I have a newthread....but not a newthread_start (where the hook is).

I'm obviously getting something confused here, so if someone could clear this up for me, it'd be much appreciated.

Edit: Figured it out. There is a formanswers template you need to edit, as well as the form template. Makes perfect sense now. Thanks for the great hack!

leylandfor 02-06-2008 03:53 PM

i have this working over at http://www.leylandforum.co.uk/forum/...orum%20Reviews ive noticed that the name of the form appears as the thread title, is there anyway we can make the user choose the thread title.

Im using this for a review service, where poeple can review a cafe, product, service etc.

any suggestions will be appreciated.

Elenna 02-06-2008 06:20 PM

Quote:

Originally Posted by leylandfor (Post 1437472)
i have this working over at http://www.leylandforum.co.uk/forum/...orum%20Reviews ive noticed that the name of the form appears as the thread title, is there anyway we can make the user choose the thread title.

Im using this for a review service, where poeple can review a cafe, product, service etc.

any suggestions will be appreciated.

As you know, there is a line in there that sets the thread title to the form title.

In the plugin, look for this:

Quote:

//////////////////////////////////////////////////////////////////////////////////////////////
//TITLE OF THREAD/POST/PM/EMAIL (do not use quotation marks in the title or you will get a parse error)
//You may use variables from the form for this.
////////////////////////////////////////////////////////////////////////////////////////////////////
$posttitle = "$formtitle";
Change that last "$formtitle" to the variable you gave the "Product Name".

leylandfor 02-07-2008 06:50 PM

Many thanks, much appreciated

asandhanam 02-09-2008 11:17 PM

I'm doing some additional form validation. Wondering how to display on the same page, i mean display errors on top & the form beneath. Right now the errors are displayed on newthread.php but the form doesn't show up beneath. I also set $_REQUEST['do'] to formname by default..Please help !!!

trevanh 02-12-2008 02:36 PM

I'm getting the following error in all of the forms I've created and I'm not sure where to look to solve the issue...

Warning: Cannot use a scalar value as an array in /includes/functions_newpost.php on line 356

Any help would be greatly appreciated!

Trevan

P.S. Line 356 is the main line of the following function:

else
{
$dataman->setr('forumid', $foruminfo['forumid']);
}


All times are GMT. The time now is 08:57 PM.

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.02323 seconds
  • Memory Usage 1,741KB
  • 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
  • (3)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