vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Account Request Form on a non-vB page (https://vborg.vbsupport.ru/showthread.php?t=53050)

Gary King 05-16-2003 10:00 PM

Account Request Form on a non-vB page
 
Requested here: https://vborg.vbsupport.ru/showthrea...038#post395038

There is some PHP included in this, not all HTML, because HTML itself cannot send the email out.

You can modify this all you like to fit your website; this is a basic form to do what it does.

The code is attached; simply modify the variables at the top of the file.

mauce 05-17-2003 08:00 PM

Thanks for you help.
I modified the parameters on top of the file, but I get a parse error on line 36 (which doesn't exist)

Any ideas?

Davey 05-17-2003 11:24 PM

That's because one of the close brackets was missing.
Find:
PHP Code:

if ($view=='php') {
    if (
$submit) {
        
$mail=mail($to,$subject,$message);
        if (
$mail==TRUE) {
            print 
"<b>Your request has been sent!</b>";
        } else {
            print 
"<b>Your request could not be sent!</b>";
        }
    } 

After it, add:
PHP Code:



Dave.

Gary King 05-17-2003 11:53 PM

I was in a hurry when I initially created the file.

I have uploaded a new one, slightly modified.

Floris 05-18-2003 02:19 AM

Hey, I was just browsing the hack database to see if this has been made before, I can use this :) Thank you .. /me installs on client site.


All times are GMT. The time now is 08:45 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.01061 seconds
  • Memory Usage 1,717KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete