| Author |
Message |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
RegisterMod |
|
Features:- Admin options
- Registration level
- Flood protection
- Ban users
- Templates
- Language files
| Description: |
|
 Download |
| Filename: |
registerMod.zip |
| Filesize: |
5.76 KB |
| Downloaded: |
791 Time(s) |
Last edited by FI-DD on Fri Jun 22, 2007 3:21 pm; edited 1 time in total |
|
| Thu Oct 13, 2005 11:28 am |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
luxuria
Joined: 13 May 2006 Posts: 1
|
|
|
|
Have installed the script, but how do I have to use it exactly? Where do I have to link to?
If I open the URL http://www.mysite.com/scriptpath/plugins/registration.php I get this:
Fatal error: Call to undefined function: add_action() in /jeff-martin.net/news/plugins/registration.php on line 188
In line 188 you can find this:
 |  | add_action('head', 'regInit'); |
Thanks for your help!
Marco
|
|
| Sat May 13, 2006 4:58 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
| Sat May 13, 2006 6:52 pm |
|
 |
Ramon
Joined: 12 Oct 2005 Posts: 462 Location: Hoogeveen, NL |
|
|
|
FI-DD, is it possible to make a login box somewhere on the site so people don't have to fill in there password everytime they post?
_________________
 |
|
| Mon Sep 25, 2006 8:23 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
I don't understand. Is this related to the register mod?
|
|
| Mon Sep 25, 2006 10:28 pm |
|
 |
Ramon
Joined: 12 Oct 2005 Posts: 462 Location: Hoogeveen, NL |
|
|
|
Well in a way. Normally everyone can comment, without the need of registering, now only people who are registred can make comments. But they have to fill in there password everytime they make a comment. Can this somehow be undone? Maybe logging them in automaticly with the use of cookies?
_________________
 |
|
| Tue Sep 26, 2006 1:15 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
Well, you could lead your commenters to your admin panel so they can login.
Or you create a login box (not tested):
 |  | <form method="post" action="http://domain.com/cnr/head.php" target="_blank">
Username: <input type="text" name="username"><br />
Password: <input type="text" name="password"><br />
<input type="submit" value="Login">
</form> |
|
|
| Tue Sep 26, 2006 6:02 pm |
|
 |
Ramon
Joined: 12 Oct 2005 Posts: 462 Location: Hoogeveen, NL |
|
|
|
Thanks FI-DD.. I'll trie that out, just one more question..
Is it possible to have something like this..
 |  | if(login == "true") { echo 'welcome '.$username.''
}
else{ echo 'hello guest, please login or <a href="?do=register">register</a>'
} |
_________________
 |
|
| Wed Sep 27, 2006 8:24 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
| Wed Sep 27, 2006 10:58 pm |
|
 |
Saszoo

Joined: 07 Jun 2006 Posts: 409 Location: Norway |
|
|
|
Is it possible to add an optional input to this form where the people who want to registrer may type in their homepage so it is filled in on registration, and not afterwards in the adminpanel?
_________________ My cute.ru site |
|
| Fri Feb 02, 2007 6:50 pm |
|
 |
Saszoo

Joined: 07 Jun 2006 Posts: 409 Location: Norway |
|
|
|
So i tried adding:
 |  | 'url' => $_POST['register']['url'], | Around line 140, just below  |  | 'mail' => $_POST['register']['email'], | and adding a respective input in form.tpl with something like  |  | <input type="text" id="url" name="register[url]" /> | But it worked out very bad to be honest, cause the registration stopped working. I'm not sure how else it can be done...
_________________ My cute.ru site |
|
| Mon Feb 05, 2007 8:44 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
"url" is not a valid name of a column in the users table. Try again using "homepage" instead of "url".
(Check the users table in phpmyadmin to find out the names of the columns.)
|
|
| Mon Feb 05, 2007 9:15 pm |
|
 |
Saszoo

Joined: 07 Jun 2006 Posts: 409 Location: Norway |
|
|
|
I haven't installed phpmyadmin on this host...
With 'homepage', I was able to registrer again, but the information wasn't filled in in the manga users section.
The reason I chose 'url' to start with was because of line 36 unmodified show_users.php.
 |  | <tr>
<td align="right"><?=$echo['url']; ?>:
<td><?=($fo_arr[10] ? '<a href="'.$fo_arr[10].'">'.$fo_arr[10].'</a>' : ''); ?> |
_________________ My cute.ru site |
|
| Mon Feb 05, 2007 9:28 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
 |  | I haven't installed phpmyadmin on this host... |
You can find the database layout in install/db.php, too.
$echo['url'] only prints the value for url in inc/lang/en/addons/showusers.ini. The value of the homepage is in $fo_arr[10] in the code you mentioned.
I tested it myself and it is working fine.
I have this in form.tpl:
 |  | <tr>
<td align="right"><span style="font-family:Georgia; font-size:12px">Homepage: </span></td>
<td><input type="text" name="register[homepage]" style="font-family:Georgia; font-size:11px; border:1px dotted black; width:100%" /></td>
</tr> |
and this in registration.php:
 |  | $sql -> insert(
array(
'table' => 'users',
'values' => array(
'date' => time(), # Áåç ïîïðàâêè ïî ÷àñîâîìó ïîÿñó
'level' => $this -> settings -> settings['regLevel'],
'username' => mysql_escape_string($_POST['register']['login']),
'password' => md5x($_POST['register']['passw1']),
'name' => mysql_escape_string($_POST['register']['nick']),
'mail' => $_POST['register']['email'],
'homepage' => $_POST['register']['homepage'],
'hide_mail' => 1
)
)
); |
|
|
| Tue Feb 06, 2007 12:54 am |
|
 |
Saszoo

Joined: 07 Jun 2006 Posts: 409 Location: Norway |
|
|
| Tue Feb 06, 2007 4:38 pm |
|
 |
|