| Author |
Message |
gent
Nuke Soldier


Joined: Jun 18, 2003
Posts: 12
Location: Sweden
|
Posted:
Wed Jun 18, 2003 12:14 am |
  |
Hi Guys!
How do I ge the same User Info block that nuke cops use? I like it!
/ Gent |
|
|
     |
 |
disgruntledtech
Site Admin


Joined: Apr 14, 2003
Posts: 991
Location: Tulsa, OK
|
Posted:
Wed Jun 18, 2003 7:01 am |
  |
AFAIK, its the same as the one included with nuke 6.5
just go to admin/blocks and look for it in the list |
|
|
     |
 |
gab
Nuke Soldier


Joined: Jun 02, 2003
Posts: 13
|
Posted:
Wed Jun 18, 2003 7:15 am |
  |
| disgruntledtech wrote: |
AFAIK, its the same as the one included with nuke 6.5
just go to admin/blocks and look for it in the list |
I am quite shure that my 6.5 user info block does not have the sec. code. But I did a upgrade, so maybe it is still the old 6.0 block. Even if that would be funny... |
|
|
   |
 |
gent
Nuke Soldier


Joined: Jun 18, 2003
Posts: 12
Location: Sweden
|
Posted:
Wed Jun 18, 2003 9:13 am |
  |
Thanks guys! Just one question: what does "AFAIK" mean? |
|
|
     |
 |
disgruntledtech
Site Admin


Joined: Apr 14, 2003
Posts: 991
Location: Tulsa, OK
|
Posted:
Wed Jun 18, 2003 9:18 am |
  |
sorry, AFAIK means "as far as i know" |
|
|
     |
 |
gent
Nuke Soldier


Joined: Jun 18, 2003
Posts: 12
Location: Sweden
|
Posted:
Wed Jun 18, 2003 9:48 am |
  |
Sorry, guys, but I cannot find it in admin/blocks.
Anyone else any idea? |
|
|
     |
 |
mikem
Theme Guru


Joined: Jan 13, 2003
Posts: 1582
Location: Corn fields of Indiana
|
Posted:
Wed Jun 18, 2003 10:01 am |
  |
re-upload the block/User_info.php
Then go to Nuke Amdin page, Click Blocks. Towards the bottom is where you add. It should be available in the drop down list.
mikem |
_________________ Getting Started | My Projects |
|
   |
 |
gent
Nuke Soldier


Joined: Jun 18, 2003
Posts: 12
Location: Sweden
|
Posted:
Wed Jun 18, 2003 10:15 am |
  |
OK, thanks, now I got it. Works prefectly. |
|
|
     |
 |
mikem
Theme Guru


Joined: Jan 13, 2003
Posts: 1582
Location: Corn fields of Indiana
|
Posted:
Wed Jun 18, 2003 10:28 am |
  |
|
   |
 |
gent
Nuke Soldier


Joined: Jun 18, 2003
Posts: 12
Location: Sweden
|
Posted:
Wed Jun 18, 2003 10:34 am |
  |
I'm sorry to bother you again, guys, but the login in that module does not include the security code, so if I try to login there I get an error message - can I include the security code there somehow?
Or can I disable the use of the security code? (or is that very stupid to do?)
You can see my site at www.hundkatt.se
/ Gent |
|
|
     |
 |
mikem
Theme Guru


Joined: Jan 13, 2003
Posts: 1582
Location: Corn fields of Indiana
|
Posted:
Wed Jun 18, 2003 10:46 am |
  |
you are absolutely right. It does not shwo the Sec. Code. I just looked at the block code and it's not there. All the info to grab the Sec. Code are there, bu tit's not being displayed in the Form.
Here's what to do.
Go here
http://www.nukemods.com
Get the Site_Visitors block for Nuke6.5 from the downloads. Read the readme included on how to install it. I guarantee it will work as intended.
OR open the User_info.php block file ina text editor. Find this part.
| Code: |
$content .= "<img src=\"images/blocks/group-4.gif\" height=\"14\" width=\"17\"> "._BWEL.", <b>$anonymous</b>\n<hr>";
$content .= ""._NICKNAME." <input type=\"text\" name=\"username\" size=\"10\" maxlength=\"25\"><br>";
$content .= ""._PASSWORD." <input type=\"password\" name=\"user_password\" size=\"10\" maxlength=\"20\"><br>";
$content .= "<input type=\"hidden\" name=\"random_num\" value=\"$random_num\">";
$content .= "<input type=\"hidden\" name=\"gfx_check\" value=\"$code\">";
$content .= "<input type=\"hidden\" name=\"op\" value=\"login\">";
$content .= "<input type=\"submit\" value=\""._LOGIN."\">\n (<a href=\"modules.php?name=Your_Account&op=new_user\">"._BREG."</a>)<hr>"; |
replace it with this
| Code: |
$content .="<form action=\"modules.php?name=Your_Account\" method=\"post\">\n";
$content .="<b>"._SV_USERLOGIN."</b><br><br>\n";
$content .="<table border=\"0\"><tr><td>\n";
$content .=""._NICKNAME.":</td></tr>\n";
$content .="<tr><td><input type=\"text\" name=\"username\" size=\"15\" maxlength=\"25\"></td></tr>\n";
$content .="<tr><td>"._PASSWORD.":</td></tr>\n";
$content .="<tr><td><input type=\"password\" name=\"user_password\" size=\"15\" maxlength=\"20\"></td></tr>\n";
if (extension_loaded("gd")) {
$content .="<tr><td colspan='2'>"._SV_SECURITYCODE.": <img src='modules.php?name=Your_Account&op=gfx&random_num=$random_num' border='1' alt='"._SV_SECURITYCODE."' title='"._SV_SECURITYCODE."'></td></tr>\n";
$content .="<tr><td colspan='2'>"._SV_TYPESECCODE.": <input type=\"text\" NAME=\"gfx_check\" SIZE=\"15\" MAXLENGTH=\"10\"></td></tr>\n";
$content .="<input type=\"hidden\" name=\"random_num\" value=\"$random_num\">\n";
}
$content .="</table><input type=\"hidden\" name=\"redirect\" value=$redirect>\n";
$content .="<input type=\"hidden\" name=\"mode\" value=$mode>\n";
$content .="<input type=\"hidden\" name=\"f\" value=$f>\n";
$content .="<input type=\"hidden\" name=\"t\" value=$t>\n";
$content .="<input type=\"hidden\" name=\"op\" value=\"login\">\n";
$content .="<input type=\"submit\" value=\""._LOGIN."\"></form><br>\n\n"; |
add these lang. definitions to your language/MAIN LANGUAGE file
| Code: |
define("_SV_SECURITYCODE","Security Code");
define("_SV_TYPESECCODE","Type Security Code Here");
define("_SV_USERLOGIN", " Login Here: "); |
If you can't figure it out. Here's the block
http://www.fauxpas.org/mystuff/block-User_Info.zip
You will STILL need to add those language definitiosn to your language file.
mikem |
_________________ Getting Started | My Projects |
|
   |
 |
gent
Nuke Soldier


Joined: Jun 18, 2003
Posts: 12
Location: Sweden
|
Posted:
Wed Jun 18, 2003 11:09 am |
  |
Thanks! Just one more question (before anybody kills me)..
How to put the "logout" link there when I'm logged in?
Also, on this site the "online now" list is visible even if I'm not logged in, can I fix that too? |
|
|
     |
 |
Stylee
Sergeant


Joined: Jun 22, 2003
Posts: 140
Location: USA
|
Posted:
Sun Jun 22, 2003 1:35 pm |
  |
| mikem wrote: |
you are absolutely right. It does not shwo the Sec. Code. I just looked at the block code and it's not there. All the info to grab the Sec. Code are there, bu tit's not being displayed in the Form.
Here's what to do.
Go here
http://www.nukemods.com
Get the Site_Visitors block for Nuke6.5 from the downloads. Read the readme included on how to install it. I guarantee it will work as intended.
OR open the User_info.php block file ina text editor. Find this part.
| Code: |
$content .= "<img src=\"images/blocks/group-4.gif\" height=\"14\" width=\"17\"> "._BWEL.", <b>$anonymous</b>\n<hr>";
$content .= ""._NICKNAME." <input type=\"text\" name=\"username\" size=\"10\" maxlength=\"25\"><br>";
$content .= ""._PASSWORD." <input type=\"password\" name=\"user_password\" size=\"10\" maxlength=\"20\"><br>";
$content .= "<input type=\"hidden\" name=\"random_num\" value=\"$random_num\">";
$content .= "<input type=\"hidden\" name=\"gfx_check\" value=\"$code\">";
$content .= "<input type=\"hidden\" name=\"op\" value=\"login\">";
$content .= "<input type=\"submit\" value=\""._LOGIN."\">\n (<a href=\"modules.php?name=Your_Account&op=new_user\">"._BREG."</a>)<hr>"; |
replace it with this
| Code: |
$content .="<form action=\"modules.php?name=Your_Account\" method=\"post\">\n";
$content .="<b>"._SV_USERLOGIN."</b><br><br>\n";
$content .="<table border=\"0\"><tr><td>\n";
$content .=""._NICKNAME.":</td></tr>\n";
$content .="<tr><td><input type=\"text\" name=\"username\" size=\"15\" maxlength=\"25\"></td></tr>\n";
$content .="<tr><td>"._PASSWORD.":</td></tr>\n";
$content .="<tr><td><input type=\"password\" name=\"user_password\" size=\"15\" maxlength=\"20\"></td></tr>\n";
if (extension_loaded("gd")) {
$content .="<tr><td colspan='2'>"._SV_SECURITYCODE.": <img src='modules.php?name=Your_Account&op=gfx&random_num=$random_num' border='1' alt='"._SV_SECURITYCODE."' title='"._SV_SECURITYCODE."'></td></tr>\n";
$content .="<tr><td colspan='2'>"._SV_TYPESECCODE.": <input type=\"text\" NAME=\"gfx_check\" SIZE=\"15\" MAXLENGTH=\"10\"></td></tr>\n";
$content .="<input type=\"hidden\" name=\"random_num\" value=\"$random_num\">\n";
}
$content .="</table><input type=\"hidden\" name=\"redirect\" value=$redirect>\n";
$content .="<input type=\"hidden\" name=\"mode\" value=$mode>\n";
$content .="<input type=\"hidden\" name=\"f\" value=$f>\n";
$content .="<input type=\"hidden\" name=\"t\" value=$t>\n";
$content .="<input type=\"hidden\" name=\"op\" value=\"login\">\n";
$content .="<input type=\"submit\" value=\""._LOGIN."\"></form><br>\n\n"; |
add these lang. definitions to your language/MAIN LANGUAGE file
| Code: |
define("_SV_SECURITYCODE","Security Code");
define("_SV_TYPESECCODE","Type Security Code Here");
define("_SV_USERLOGIN", " Login Here: "); |
If you can't figure it out. Here's the block
http://www.fauxpas.org/mystuff/block-User_Info.zip
You will STILL need to add those language definitiosn to your language file.
mikem |
DUDE! You are SO Awesome! TY TY TY |
|
|
     |
 |
Stylee
Sergeant


Joined: Jun 22, 2003
Posts: 140
Location: USA
|
Posted:
Sun Jun 22, 2003 1:58 pm |
  |
I have a quick question on this. It is showing users online, that are not online. Now, if the person were to log out, then it wouldnt show them as being online. I have even refreshed the screen a few times.
I found this, but it was never answered all the way. |
|
|
     |
 |
gent
Nuke Soldier


Joined: Jun 18, 2003
Posts: 12
Location: Sweden
|
Posted:
Tue Jun 24, 2003 11:41 pm |
  |
Dooes anybody know how to do this:
How to put the "logout" link there when I'm logged in?
My site is at www.hundkatt.se |
|
|
     |
 |
|
|