RegisterMod

Download plugins, language packs and stuff.

RegisterMod

Postby FI-DD » Thu Oct 13, 2005 11:28 am

Features:
  • Admin options


    • Registration level
    • Flood protection
    • Ban users
  • Templates
  • Language files
Attachments
registerMod.zip
RegisterMod
(5.76 KiB) Downloaded 1073 times
Last edited by FI-DD on Fri Jun 22, 2007 3:21 pm, edited 1 time in total.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby luxuria » Sat May 13, 2006 4:58 pm

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/plugin ... ration.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:



Code: Select all
add_action('head', 'regInit');






Thanks for your help!

Marco
luxuria
 
Posts: 1
Joined: Sat May 13, 2006 4:49 pm

Postby FI-DD » Sat May 13, 2006 6:52 pm

This plugin has a build-in help.



Or you can check this topic: http://english.cutenews.ru/forum/viewto ... ?p=453#453
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby Ramon » Mon Sep 25, 2006 8:23 pm

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?
Image
Ramon
 
Posts: 599
Joined: Wed Oct 12, 2005 8:51 pm
Location: Hoogeveen, NL

Postby FI-DD » Mon Sep 25, 2006 10:28 pm

I don't understand. Is this related to the register mod?
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby Ramon » Tue Sep 26, 2006 1:15 pm

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?
Image
Ramon
 
Posts: 599
Joined: Wed Oct 12, 2005 8:51 pm
Location: Hoogeveen, NL

Postby FI-DD » Tue Sep 26, 2006 6:02 pm

Well, you could lead your commenters to your admin panel so they can login.



Or you create a login box (not tested):

Code: Select all
<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>
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby Ramon » Wed Sep 27, 2006 8:24 pm

Thanks FI-DD.. I'll trie that out, just one more question..



Is it possible to have something like this..



Code: Select all
if(login == "true") { echo 'welcome '.$username.''

}



else{ echo 'hello guest, please login or <a href="?do=register">register</a>'

}
Image
Ramon
 
Posts: 599
Joined: Wed Oct 12, 2005 8:51 pm
Location: Hoogeveen, NL

Postby FI-DD » Wed Sep 27, 2006 10:58 pm

Is it possible to have something like this..


I never tested it but it should be possible:

http://english.cutenews.ru/forum/if-log ... .html#3190



P.S.: I will work out a little login box tomorrow.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby Saszoo » Fri Feb 02, 2007 6:50 pm

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?
User avatar
Saszoo
 
Posts: 414
Joined: Wed Jun 07, 2006 10:34 pm
Location: Norway

Postby Saszoo » Mon Feb 05, 2007 8:44 pm

So i tried adding:

Code: Select all
'url'      => $_POST['register']['url'],
Around line 140, just below
Code: Select all
'mail'      => $_POST['register']['email'],
and adding a respective input in form.tpl with something like
Code: Select all
<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...
User avatar
Saszoo
 
Posts: 414
Joined: Wed Jun 07, 2006 10:34 pm
Location: Norway

Postby FI-DD » Mon Feb 05, 2007 9:15 pm

"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.)
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby Saszoo » Mon Feb 05, 2007 9:28 pm

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.

Code: Select all
<tr>

<td align="right"><?=$echo['url']; ?>:

<td><?=($fo_arr[10] ? '<a href="'.$fo_arr[10].'">'.$fo_arr[10].'</a>' : ''); ?>
User avatar
Saszoo
 
Posts: 414
Joined: Wed Jun 07, 2006 10:34 pm
Location: Norway

Postby FI-DD » Tue Feb 06, 2007 12:54 am

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:

Code: Select all
<tr>

    <td align="right"><span style="font-family:Georgia; font-size:12px">Homepage:&nbsp;</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

)

)

);
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby Saszoo » Tue Feb 06, 2007 4:38 pm

Aight, thanks :)
User avatar
Saszoo
 
Posts: 414
Joined: Wed Jun 07, 2006 10:34 pm
Location: Norway

Next

Return to Additional Downloads



Who is online

Users browsing this forum: No registered users and 0 guests

cron