Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
RegisterMod
Goto page 1, 2, 3  Next
 
Reply to topic    Forum Index » Additional Downloads View previous topic
View next topic
RegisterMod
Author Message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post RegisterMod Reply with quote
Features:
  • Admin options



    • Registration level

    • Flood protection

    • Ban users



  • Templates

  • Language files





registerMod.zip
 Description:
RegisterMod

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 View user's profile Send private message
Guest








Please login to hide the ads.

luxuria



Joined: 13 May 2006
Posts: 1

Post Reply with quote
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:



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






Thanks for your help!

Marco
Sat May 13, 2006 4:58 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
This plugin has a build-in help.



Or you can check this topic: http://english.cutenews.ru/forum/viewtopic.php?p=453#453
Sat May 13, 2006 6:52 pm View user's profile Send private message
Ramon



Joined: 12 Oct 2005
Posts: 462
Location: Hoogeveen, NL

Post Reply with quote
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 View user's profile Send private message Visit poster's website
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
I don't understand. Is this related to the register mod?
Mon Sep 25, 2006 10:28 pm View user's profile Send private message
Ramon



Joined: 12 Oct 2005
Posts: 462
Location: Hoogeveen, NL

Post Reply with quote
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 View user's profile Send private message Visit poster's website
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
Well, you could lead your commenters to your admin panel so they can login.



Or you create a login box (not tested):

Code:
<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 View user's profile Send private message
Ramon



Joined: 12 Oct 2005
Posts: 462
Location: Hoogeveen, NL

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



Is it possible to have something like this..



Code:
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 View user's profile Send private message Visit poster's website
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
Quote:
Is it possible to have something like this..


I never tested it but it should be possible:

http://english.cutenews.ru/forum/if-logged-and-login-box-t593.html#3190



P.S.: I will work out a little login box tomorrow.
Wed Sep 27, 2006 10:58 pm View user's profile Send private message
Saszoo



Joined: 07 Jun 2006
Posts: 409
Location: Norway

Post Reply with quote
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 View user's profile Send private message Visit poster's website
Saszoo



Joined: 07 Jun 2006
Posts: 409
Location: Norway

Post Reply with quote
So i tried adding:

Code:
'url'      => $_POST['register']['url'],
Around line 140, just below
Code:
'mail'      => $_POST['register']['email'],
and adding a respective input in form.tpl with something like
Code:
<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 View user's profile Send private message Visit poster's website
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
"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 View user's profile Send private message
Saszoo



Joined: 07 Jun 2006
Posts: 409
Location: Norway

Post Reply with quote
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:
<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 View user's profile Send private message Visit poster's website
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
Quote:
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:
<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:

Quote:
$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 View user's profile Send private message
Saszoo



Joined: 07 Jun 2006
Posts: 409
Location: Norway

Post Reply with quote
Aight, thanks Smile

_________________
My cute.ru site
Tue Feb 06, 2007 4:38 pm View user's profile Send private message Visit poster's website
Display posts from previous:    
Reply to topic    Forum Index » Additional Downloads All times are GMT + 1 Hour
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.