vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Forms Hack (https://vborg.vbsupport.ru/showthread.php?t=93970)

Abe1 12-29-2005 12:23 PM

Quote:

Originally Posted by 1996 328ti
I'm posting this again.
I'd like to have the form sent to the user as a PM.

//USERNAME TO PM TO
//$formpmname = "Abe";
$formpmname = $vbulletin->userinfo['username'];

Will work unless the person has their PMs OFF. Then I get
Fatal error: Unable to proceed with save while $errors array is not empty in class vb_datamanager_pm in /includes/class_dm.php on line 758

Is there a conditional statement I can use if the person is accepting PMs and not above quota, use $formpm = "1"; and if not $formpm = "0";

PHP Code:

if ($vbulletin->userinfo['receivepm'])
{
$formpm "1";
}
else
{
$formpm "0";



Datacenter1.com 12-29-2005 12:55 PM

Regards

I would like to sent the email to a user group, Does somebody have some code or idea about how to do that?

Thanks

jdebler 12-29-2005 04:27 PM

Abe:

AWESOME hack...thanks for your outstanding support so far. We will be using this and a small PayPal token of appreciation will be on the way once we get it all working the way we need to.

Is is okay to use javascript in the form? I need to limit the number of charaters in a text area to a specific number. I have the javascript code to use (unless you know of a better way), but I need to know if there are any specific things I should know when implementing it.

Thanks again!

bluesteel 12-29-2005 04:31 PM

Great hack Abe1. Having some fun with it,but now I'm stuck :(
I don't know if this is possible, but in the answers, can a conditional be set somewhere that show an image depending on what the $radioanswer1 answer is?

ie if radioanswer 1 = Yes, show image 1
else
show image 2

if you know what I mean lol

steven s 12-30-2005 12:50 AM

Quote:

Originally Posted by Abe1
PHP Code:

if ($vbulletin->userinfo['receivepm'])
{
$formpm "1";
}
else
{
$formpm "0";



Works great! I used that to make a custom thank you based on whether they have their PM on or off also.

Abe1 12-30-2005 03:02 AM

Quote:

Originally Posted by jdebler
Abe:

AWESOME hack...thanks for your outstanding support so far. We will be using this and a small PayPal token of appreciation will be on the way once we get it all working the way we need to.

Is is okay to use javascript in the form? I need to limit the number of charaters in a text area to a specific number. I have the javascript code to use (unless you know of a better way), but I need to know if there are any specific things I should know when implementing it.

Thanks again!

Should be no problem.

Abe1 12-30-2005 03:03 AM

Quote:

Originally Posted by bluesteel
Great hack Abe1. Having some fun with it,but now I'm stuck :(
I don't know if this is possible, but in the answers, can a conditional be set somewhere that show an image depending on what the $radioanswer1 answer is?

ie if radioanswer 1 = Yes, show image 1
else
show image 2

if you know what I mean lol

Yes, it's possable.

forum-il 12-30-2005 03:37 AM

how do i do that the form will be sent to my e-mail addres?

Bacon Butty 12-30-2005 10:30 AM

Can anyone tell me how on earth I can edit the questions on the default form?

"edit the main hook"... ok, i got that bit... shame i dont know were the "hook" is??

Abe1 12-30-2005 12:01 PM

Quote:

Originally Posted by Bacon Butty
Can anyone tell me how on earth I can edit the questions on the default form?

"edit the main hook"... ok, i got that bit... shame i dont know were the "hook" is??

HOOK, AKA PLUGIN


All times are GMT. The time now is 12:46 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.01462 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
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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