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-13-2005 01:02 AM

Quote:

Originally Posted by Cheertobi
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

Possible but I have not added that function to the hack yet. I may in future.

Erwin 02-13-2005 01:03 AM

Quote:

Originally Posted by Leeper
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.

That can be done - you just change the redirect options.

ChrisBaktis 02-13-2005 01:55 PM

Erwin,

I use this form to post trades between two members and currently have it setup to post the trade to a a specific form...I would also like to have it so it sends a PM to the other member (the person posting the form has to enter the other members name). Could I use the form answer variable to do this? Also if it is possible, and the person posting the trade enters a wrong member name (misspelled etc) would it still post in the form but not send the pm?

Erwin 02-13-2005 08:48 PM

Quote:

Originally Posted by ChrisBaktis
Erwin,

I use this form to post trades between two members and currently have it setup to post the trade to a a specific form...I would also like to have it so it sends a PM to the other member (the person posting the form has to enter the other members name). Could I use the form answer variable to do this? Also if it is possible, and the person posting the trade enters a wrong member name (misspelled etc) would it still post in the form but not send the pm?

Yes, you can definitely do all that. It's only a matter of changing the variables and adding a line to the code to search for the userid in order to send the pm.

Leeper 02-13-2005 09:19 PM

Quote:

Originally Posted by Erwin
That can be done - you just change the redirect options.

Wow! Normally I can see work that has been done and customize it a bit but I'm just not having much luck with this. Erwin thank you for your hard work and rather than pestering you with another question every hour or so, can you recommend someone to build a fairly elaborate form? Your work is great and I can see a ton of applications for this but in this particular case I'm working with a time constraint and it needs to be done right the first time since it will be handling money transactions.

ChrisBaktis 02-13-2005 11:05 PM

Quote:

Originally Posted by Erwin
Yes, you can definitely do all that. It's only a matter of changing the variables and adding a line to the code to search for the userid in order to send the pm.

I can do the variables but can you help with the line of code to search for the userid?

DarrinM 02-16-2005 04:06 PM

Can anyone advise me or provide help with the following scenario

When viewing someone's profile I wish to be able to click to open up a new form which will then be sent both to the person who's profile is being viewed and also to a third party preset email address.

I understand how to get most of the data prefilled on the form (such as the senders email address) but cannot see how I can pass the username and usernames email address of the person who's profile is being viewed into and to be used by the form

An alternative to doing this would be the ability to select a user from the member list (maybe in drop down) and then return to the form and populate the fields with their name, email address and maybe a custom field from their profile

Hope someone can assist and many thanks in advance

Regards

Darrin

Jolten 02-16-2005 04:10 PM

The variables for the profile owners page are $userinfo[username] etc. rather than $bbuserinfo.. you should be able to use those to fill out form fields.

ge66 02-16-2005 07:01 PM

Seemes to be a very useful hack.

I have a suggestion/question. Is i possible to make a form that I can fill in and submit today and that will be posted as a thred on Sunday say 7 am.

I want to use this to be able to spread news articles that I post at one time over several days.

I also guess it could be nice if you wanted a poll posted 6 am the first day of the month or something.

A chance to post a thread at any given date and time that you set in a form.

Cheertobi 02-19-2005 12:15 PM

Hi,

once again, have not been through all post of this thread. Just want to let you know, that I found two missing TABLE_PREFIXes!

Code:

$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,pagetext,allowsmilie,showsignature,ipaddress,iconid,visible) VALUES (NULL,'$formreplythreadid','".addslashes(htmlspecialchars($bbuserinfo[username]))." $formtitle','".addslashes($bbuserinfo[username])."','$bbuserinfo[userid]','".time()."','" . addslashes($formsend) . "','1','1','0','0','1')");
          $DB_site->query("UPDATE thread SET replycount = replycount + 1, lastpost = " . TIMENOW . ", lastposter = '".addslashes($bbuserinfo[username])."' WHERE threadid = $formreplythreadid");
                          $DB_site->query("
                                UPDATE " . TABLE_PREFIX . "forum
                                SET replycount = replycount +  1,
                                lastpost = " . TIMENOW . ",
                                lastposter = '".addslashes(htmlspecialchars($bbuserinfo[username]))."',
                                lastthread = '" . addslashes($bbuserinfo['username']) . " $formtitle',
                                lastthreadid = $formreplythreadid
                                WHERE forumid = $formreplyforumid

have to be like

Code:

$DB_site->query("INSERT INTO " . TABLE_PREFIX . "post (postid,threadid,title,username,userid,dateline,pagetext,allowsmilie,showsignature,ipaddress,iconid,visible) VALUES (NULL,'$formreplythreadid','".addslashes(htmlspecialchars($bbuserinfo[username]))." $formtitle','".addslashes($bbuserinfo[username])."','$bbuserinfo[userid]','".time()."','" . addslashes($formsend) . "','1','1','0','0','1')");
          $DB_site->query("UPDATE " . TABLE_PREFIX . "thread SET replycount = replycount + 1, lastpost = " . TIMENOW . ", lastposter = '".addslashes($bbuserinfo[username])."' WHERE threadid = $formreplythreadid");
                          $DB_site->query("
                                UPDATE " . TABLE_PREFIX . "forum
                                SET replycount = replycount +  1,
                                lastpost = " . TIMENOW . ",
                                lastposter = '".addslashes(htmlspecialchars($bbuserinfo[username]))."',
                                lastthread = '" . addslashes($bbuserinfo['username']) . " $formtitle',
                                lastthreadid = $formreplythreadid
                                WHERE forumid = $formreplyforumid

Anyway, it is a really great hack, can I parse BBCode for Bold etc. in anyway?!

Tobi


All times are GMT. The time now is 06:11 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.01561 seconds
  • Memory Usage 1,758KB
  • 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
  • (2)bbcode_code_printable
  • (5)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