adding security code to the login block for RvH_Userinfo_2

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   adding security code to the login block for RvH_Userinfo_2
lostboyca
CZ Active Member
lostboyca has been a member for over 20 year's 20 Year Member
usa.gif california.gif
Website:
Status: Offline
Joined: Aug 12, 2004
0.02 posts per day
Posts: 114
Points: 5,334
   
How do I add the security code to the login block for RvH_Userinfo_2 block. I am using Phpnuke 7.5 and I love this block it's like an all in one which is good but I would like the security code to show up under the Password box and make another box for typing in the security.

Thanks in advance,

Lostboyca



Back to top Reply with quote
#2   re: adding security code to the login block for RvH_Userinfo
dkwds
CZ Active Member
dkwds has been a member for over 20 year's 20 Year Member
uk.gif
Occupation: Student
Age: 38
Gender: Male
Website:
Status: Offline
Joined: Jul 29, 2004
0.04 posts per day
Posts: 282
Points: 12,713
   
i've never used this block before so i'm not quite sure so before taking my advice BACKUP YOUR FILES

Open the block file and add this code below the password coding:
if (extension_loaded("gd") AND ($gfx_chk == 2 OR $gfx_chk == 4 OR $gfx_chk == 5 OR $gfx_chk == 7)) {
    $content .= ""._SECURITYCODE.": <img src='?gfx=gfx&random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'><br>\n";
    $content .= ""._TYPESECCODE."<br><input type=\"text\" NAME=\"gfx_check\" SIZE=\"7\" MAXLENGTH=\"6\">\n";
    $content .= "<input type=\"hidden\" name=\"random_num\" value=\"$random_num\"><br>\n";
} else {
    $content .= "<input type=\"hidden\" name=\"random_num\" value=\"$random_num\">";
    $content .= "<input type=\"hidden\" name=\"gfx_check\" value=\"$code\">";
}


I'll do it for you if you want me to. attach the related file that goes into the block folder.



_________________
Back to top Reply with quote
#3   re: adding security code to the login block for RvH_Userinfo
echo
CZ Wiz
 Codezwiz Site Donator
Gender: Male
Status: Offline
Joined: Oct 04, 2003
0.15 posts per day
Posts: 1147
Points: 93
   
Look in the block-User_Info2.php and find :
$ST

Then change accordingly.


Back to top Reply with quote
#4   re: adding security code to the login block for RvH_Userinfo
lostboyca
CZ Active Member
lostboyca has been a member for over 20 year's 20 Year Member
usa.gif california.gif
Website:
Status: Offline
Joined: Aug 12, 2004
0.02 posts per day
Posts: 114
Points: 5,334
   
Here's the block



Attached Files
block-User_Info2.zip (5.38 KB, Downloaded: 5236 Time(s))


Back to top Reply with quote
#5   re: adding security code to the login block for RvH_Userinfo
dkwds
CZ Active Member
dkwds has been a member for over 20 year's 20 Year Member
uk.gif
Occupation: Student
Age: 38
Gender: Male
Website:
Status: Offline
Joined: Jul 29, 2004
0.04 posts per day
Posts: 282
Points: 12,713
   
OK i did what echo said. it should now work.
Uploaded the file again.



Attached Files
Done.ZIP (5.41 KB, Downloaded: 5234 Time(s))



_________________
Back to top Reply with quote
#6   re: adding security code to the login block for RvH_Userinfo
echo
CZ Wiz
 Codezwiz Site Donator
Gender: Male
Status: Offline
Joined: Oct 04, 2003
0.15 posts per day
Posts: 1147
Points: 93
   
All you have to do is find this in the block:
$ST         = "0";      # 1 = SECURITY CODE ON           /  0 = SECURITY CODE OFF

and change it to 1

If you search for: $ST in that block you will see all options.


Back to top Reply with quote
#7   re: adding security code to the login block for RvH_Userinfo
dkwds
CZ Active Member
dkwds has been a member for over 20 year's 20 Year Member
uk.gif
Occupation: Student
Age: 38
Gender: Male
Website:
Status: Offline
Joined: Jul 29, 2004
0.04 posts per day
Posts: 282
Points: 12,713
   
Sorry about that. didn't read the 1st few lines. My bad. icon_smile.gif




_________________
Back to top Reply with quote
#8   re: adding security code to the login block for RvH_Userinfo
lostboyca
CZ Active Member
lostboyca has been a member for over 20 year's 20 Year Member
usa.gif california.gif
Website:
Status: Offline
Joined: Aug 12, 2004
0.02 posts per day
Posts: 114
Points: 5,334
   
awesome thanks for the help ur a website savor

lostboyca



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

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 cannot download files in this forum