vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   FORM to THREAD/ FORUM/ POLL/ PM/ EMAIL - CUSTOMIZABLE FORMS - Mod Apps, Orders, News. (https://vborg.vbsupport.ru/showthread.php?t=66082)

Erwin 02-05-2005 03:23 AM

Quote:

Originally Posted by Jolten
Thank's for replying Erwin.

I added the following to the top of the form.php file

Code:

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'flagcomm'); // change this depending on your filename

$catid=$_POST['catid'];
$cad=$_POST['cad'];
$linkUrl="http://www.domain.com/page.php?id=".$catid."&cad=".$cad."&type=a";


// ################### PRE-CACHE TEMPLATES AND DATA ######################

// get special phrase groups
$phrasegroups = array(

);

But I can't seem to pull the link into the form answers. $linkurl works fine in the answers but the two variables are empty.

I've also added hidden inputs to the form template for both these variables.

No, you have to add the variables to this array:

PHP Code:

globalize($_POST, array(
'normalanswer1' => STR,
'radioanswer1' => STR,
'longanswer1' => STR,
'action' => STR
)); 

Otherwise vB won't let it through for security reasons.

Jolten 02-05-2005 03:31 AM

ahh thanks. I'll play with it some more.

Lee Wilde 02-06-2005 04:25 AM

Hello Erwin and all users of this hack. This hack is proving to be invaluable for us, we are most appreciative.

Just a little extra thing I'm trying to do, which is causing a minor annoyance....

I've slightly hacked forumdisplay.php to display a preview of the thread. It works, as you can see from the screenshot....but how can I get rid of the unnecessary "begin template" text....I can't even figure out where its coming from.

Thank you, any suggestions would be appreciated.

Jolten 02-06-2005 06:09 AM

Turn off the option to show templates in the source code. It's in the vBulletin options area.

life is boost 02-09-2005 10:06 PM

this is a great hack, we use this as aclassifieds form for our site. the only thing i was wondering is if we can get the forum to post the IP of the user like on a normal post. when someone uses the form, it will not save their IP information.

DarrinM 02-11-2005 07:28 PM

Hi All

Been following this thread, great hack Erwin, can think of many ways to use it however I am wondering if the following can be acheived.

When viewing someone's profile I wonder if it would be possible to then open a form and have some of the fields automatically populated - Form originators name (i.e. the person viewing the profile), the username or even custom field(s) taken from the person who's profile is being viewed. I then want to send the form contents via email to a third party static email address (which is obviously covered already)

Thanks in advance

DarrinM

Erwin 02-11-2005 10:01 PM

Quote:

Originally Posted by DarrinM
Hi All

Been following this thread, great hack Erwin, can think of many ways to use it however I am wondering if the following can be acheived.

When viewing someone's profile I wonder if it would be possible to then open a form and have some of the fields automatically populated - Form originators name (i.e. the person viewing the profile), the username or even custom field(s) taken from the person who's profile is being viewed. I then want to send the form contents via email to a third party static email address (which is obviously covered already)

Thanks in advance

DarrinM

Of course you can do all that using $bbuserinfo[field10] or whatever it is and putting it in the form template. :)

kall 02-12-2005 01:13 AM

Quote:

Originally Posted by Erwin
Of course you can do all that using $bbuserinfo[field10] or whatever it is and putting it in the form template. :)

How about...

The user submitting the form can choose which people the output is PMed to?

Cheertobi 02-12-2005 09:36 AM

Hi,

I am sorry, I have not been through all of the thread right now! Just one quick question, is it also possible to post calender events via form.php?!

Regards,

Tobi

Leeper 02-12-2005 01:40 PM

I just want to make sure that I'm on the right train of thought here before I jump in with this major addition. I believe that with this and some custom work I can come up with a much better solution than what we have now.
Currently we have a very cumbersome process for person to join our club. To register as a guest on the forum is very straight forward process as it is the one built by vB. To join the club however is a bit more of a pain. Member uses join form and once completed and they submit, an email is generated to the admin team and the new user is sent to paypal. The problem is that there is nothing explaining that they still need to register on the forums. Once payment is received the member is moved into the member area but again, this is a very separate process that I’d like to integrate.
Can I create a "Join Form" with all of the variables that I need and a payment function that then leads the user into the registration area? The new join form would post the information into an admin forum.

Sorry if I’m posting this in the wrong area and I’m probably over complicating this but I’m a novice trying to find a better way.


All times are GMT. The time now is 12:50 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.01612 seconds
  • Memory Usage 1,747KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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