Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 202
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 164
Total: 164

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ghosttr

Pages: [1]
1
Modifications Talk / Registration Mod
« on: March 06, 2008, 10:42:08 pm »
I have been working on a mod that will allow users to register outside of the board itself.

Code: [Select]
<?php

if (substr($_SERVER['HTTP_USER_AGENT'], 015) == "EVE-minibrowser")
{
        if ($_SERVER['HTTP_EVE_TRUSTED'] == 'no')
{
//update your site url here
header('eve.trustMe:http://forums.ark-corp.com/::Please trust me, I\'m nice');
print 
'<html><body>';
print 
'<h1>Trust Required</h1>';
print 
'I need to be trusted to work properly';

}

$vars1 $_SERVER['HTTP_EVE_CHARNAME'];
$vars2 $_SERVER['HTTP_EVE_CORPNAME'];
echo 
'
<form action="'
$scripturl'?action=Register2" method="post" name="creator" id="creator">

Username <input type="text" name="user" size="30" maxlength="25" value=' 
$vars2 $vars1 ' />
Email    <input type="text" name="email" size="30" /><br />
Password <input type="password" name="passwrd1" size="30" />
Confirm Password <input type="password" name="passwrd2" size="30" /><br />

<input type="checkbox" name="regagree" class="check" />I agree to Registration Agreement

<div align="center">
<input type="submit" name="regSubmit" value="Register" /></div>

</form>'
;
}
else
{
include(
'index2.php');
}


?>

I have renamed the regular index.php to index2, and made it so that if someone visits the page with the specified browser it asks them to register. The registration form comes up fine and that data this is supposed to be automatically entered into it enters fine. But it just refuses to register >:(



The only code that i left out was this
Code: [Select]
if ($context['user']['is_guest'])
{
loadLanguage('Login');
maybe i have to fix this somehow?

Pages: [1]

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal