|
|
saud |
| February 15, 2005, 10:11am |
|
|
Posts: 204
Gender:  Male
Posts Per Day: 0.15
Reputation: 87.50%
Reputation Score: +7 / -1
Time Online: 1 days 2 hours 26 minutes
Location: USA
Age: 25
|
Thankyou very vrry much for doing this. Its a great work. I think that P9 will also include this !!! |
| |
|
| Revision History (1 edits) |
| othellobloke - September 19, 2005, 9:27am | | |
|
|
|
|
|
saud |
| February 16, 2005, 4:51am |
|
|
Posts: 204
Gender:  Male
Posts Per Day: 0.15
Reputation: 87.50%
Reputation Score: +7 / -1
Time Online: 1 days 2 hours 26 minutes
Location: USA
Age: 25
|
You have not included one very important thing, that is the required information is not displayed below the reputation area. If you can do this your mod will be a complete one. I have already asked this on other threads. Please include this. Thanks |
| |
|
|
|
|
|
riffplayer |
| February 16, 2005, 8:51am |
|
|
Posts: 263
Gender:  Male
Posts Per Day: 0.15
Reputation: 100.00%
Time Online: 2 days 3 hours 50 minutes
Location: Indiana
Age: 33
|
Sorry, I made the mod for my own use and I didn't need that information below the reputation area. Since I was collecting personal information, I didn't want it viewable by the public so I purposely stayed away from what you are asking. I may try to help you out sometime in the future, but as of now I don't have the time. I just made it for what I needed and then thought I would make it available to others. Feel free to mod the mod if you want to suit your own needs. |
|
|
|
|
|
lwog |
| February 17, 2005, 7:34pm |
|
E-Blah Member  
Posts: 19
Posts Per Day: 0.01
Time Online: 30 days 9 hours 3 minutes
|
Is there any way to add additional login information when a new member registers on my board? We'd like to at least require where they are from, perhaps some other options. Is this possible? Or maybe already there and I'm just overlooking it?
James (LWOG) |
|
|
|
|
|
Justin |
| February 17, 2005, 7:37pm |
|
|
Posts: 15,070
Gender:  Male
Posts Per Day: 6.55
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 14 minutes
Location: Tallassee, AL
Age: 22
|
|
|
|
|
|
riffplayer |
| February 19, 2005, 5:02pm |
|
|
Posts: 263
Gender:  Male
Posts Per Day: 0.15
Reputation: 100.00%
Time Online: 2 days 3 hours 50 minutes
Location: Indiana
Age: 33
|
|
|
| Revision History (1 edits) |
| othellobloke - February 25, 2005, 1:53pm | | changed link to point to this post even though it has been merged now:) | | |
|
|
|
|
|
lwog |
| February 22, 2005, 8:50pm |
|
E-Blah Member  
Posts: 19
Posts Per Day: 0.01
Time Online: 30 days 9 hours 3 minutes
|
Hey Thanks.....that sounds exactly like what I was looking for.
James |
|
|
|
|
|
lwog |
| February 23, 2005, 5:56am |
|
E-Blah Member  
Posts: 19
Posts Per Day: 0.01
Time Online: 30 days 9 hours 3 minutes
|
This mod is exactly what we are looking for! Thank you!
I downloaded it though and had a couple of errors. Can you help? They are:
Modify File: Code/ProfileEdit.plSource Code:
$userset{$URL{'u'}}->[1] = $bah;
After:
$userset{$URL{'u'}}->[49] = $FORM{'fullname'}; $userset{$URL{'u'}}->[50] = $FORM{'streetaddress'}; $userset{$URL{'u'}}->[51] = $FORM{'cityaddress'}; $userset{$URL{'u'}}->[52] = $FORM{'stateaddress'}; $userset{$URL{'u'}}->[53] = $FORM{'zipaddress'}; $userset{$URL{'u'}}->[54] = $FORM{'usrfieldone'}; $userset{$URL{'u'}}->[55] = $FORM{'usrfieldtwo'}; $userset{$URL{'u'}}->[56] = $FORM{'usrfieldthree'}; $userset{$URL{'u'}}->[57] = $FORM{'usrfieldfour'};
--» Modification: OK Source Code:
error($profiletxt[68]) if(length($FORM{'email'}) > 60);
After:
error("You must enter your first and last name.") if(($reqfullname) && (! $FORM{'fullname'})); error("You must enter your entire mailing address.") if(($reqmailaddress) && ((! $FORM{'streetaddress'}) || (! $FORM{'cityaddress'}) || (! $FORM{'stateaddress'}) || (! $FORM{'zipaddress'}))); error("You cannot leave the $usrfieldonelabel field blank.") if(($requsrfieldone) && (! $FORM{'usrfieldone'})); error("You cannot leave the $usrfieldtwolabel field blank.") if(($requsrfieldtwo) && (! $FORM{'usrfieldtwo'})); error("You cannot leave the $usrfieldthreelabel field blank.") if(($requsrfieldthree) && (! $FORM{'usrfieldthree'})); error("You cannot leave the $usrfieldfourlabel field blank.") if(($requsrfieldfour) && (! $FORM{'usrfieldfour'}));
--» Modification: Error :: Not Found in File
Source Code:
<td><input type="text" class="textinput" name="msn" value="$userset{$URL{'u'}}->[10]" maxlength="40"></td> </tr></table></td> </tr> EOT
After:
if ($reqfullname) { $isrequired{"fullname"} = "*";} if ($reqmailaddress) { $isrequired{"mailaddress"} = "*";} if ($requsrfieldone) { $isrequired{"usrfieldone"} = "*";} if ($requsrfieldtwo) { $isrequired{"usrfieldtwo"} = "*";} if ($requsrfieldthree) { $isrequired{"usrfieldthree"} = "*";} if ($requsrfieldfour) { $isrequired{"usrfieldfour"} = "*";}
if (($usefullname) || ($usemailaddress) || ($usrfieldonelabel) || ($usrfieldtwolabel) || ($usrfieldthreelabel) || ($usrfieldfourlabel)){ $displaycenter .= <<"EOT"; <td colspan="2" bgcolor="$color{'catbg'}" class="catbg" align="center"><font size="1" class="smalltext"><b>Private User Information (* indicates required fields)</b><BR>Only you and administrators have access to following information.</font></td> </tr><tr><td bgcolor="$color{'win'}" class="win"><table width="100%"> EOT }
if ($usefullname){ $displaycenter .= <<"EOT"; <TR> <TD WIDTH="40%" ALIGN="RIGHT"><b>First and Last Names:$isrequired{"fullname"}</b></TD> <TD COLSPAN="2" valign="top" width="60%"><INPUT TYPE="TEXT" class="textinput" NAME="fullname" SIZE="25" MAXLENGTH="30" VALUE="$userset{$URL{'u'}}->[49]"></TD> </TR> EOT }
if ($usemailaddress){ $displaycenter .= <<"EOT"; <TR> <TD WIDTH="40%" ALIGN="RIGHT"><b>Street Address:$isrequired{"mailaddress"}</b></TD> <TD COLSPAN="2" valign="top" width="60%"><INPUT TYPE="TEXT" class="textinput" NAME="streetaddress" SIZE="25" MAXLENGTH="30" VALUE="$userset{$URL{'u'}}->[50]"></TD> </TR> <TR> <TD WIDTH="40%" ALIGN="RIGHT"><b>City:$isrequired{"mailaddress"}</b></TD> <TD COLSPAN="2" valign="top" width="60%"><INPUT TYPE="TEXT" class="textinput" NAME="cityaddress" SIZE="25" MAXLENGTH="30" VALUE="$userset{$URL{'u'}}->[51]"></TD> </TR> <TR> <TD WIDTH="40%" ALIGN="RIGHT"><b>State:$isrequired{"mailaddress"}</b></TD> <TD COLSPAN="2" valign="top" width="60%"><INPUT TYPE="TEXT" class="textinput" NAME="stateaddress" SIZE="2" MAXLENGTH="2" VALUE="$userset{$URL{'u'}}->[52]"></TD> </TR> <TR> <TD WIDTH="40%" ALIGN="RIGHT"><b>Zip Code:$isrequired{"mailaddress"}</b></TD> <TD COLSPAN="2" valign="top" width="60%"><INPUT TYPE="TEXT" class="textinput" NAME="zipaddress" SIZE="40" VALUE="$userset{$URL{'u'}}->[53]"></TD> </TR> EOT }
if ($usrfieldonelabel){ $displaycenter .= <<"EOT"; <TR> <TD WIDTH="40%" ALIGN="RIGHT"><b>$usrfieldonelabel:$isrequired{"usrfieldone"}</b></TD> <TD COLSPAN="2" valign="top" width="60%"><INPUT TYPE="TEXT" class="textinput" NAME="usrfieldone" SIZE="40" VALUE="$userset{$URL{'u'}}->[54]"></TD> </TR> EOT }
if ($usrfieldtwolabel){ $displaycenter .= <<"EOT"; <TR> <TD WIDTH="40%" ALIGN="RIGHT"><b>$usrfieldtwolabel:$isrequired{"usrfieldtwo"}</b></TD> <TD COLSPAN="2" valign="top" width="60%"><INPUT TYPE="TEXT" class="textinput" NAME="usrfieldtwo" SIZE="40" VALUE="$userset{$URL{'u'}}->[55]"></TD> </TR> EOT }
if ($usrfieldthreelabel){ $displaycenter .= <<"EOT"; <TR> <TD WIDTH="40%" ALIGN="RIGHT"><b>$usrfieldthreelabel:$isrequired{"usrfieldthree"}</b></TD> <TD COLSPAN="2" valign="top" width="60%"><INPUT TYPE="TEXT" class="textinput" NAME="usrfieldthree" SIZE="40" VALUE="$userset{$URL{'u'}}->[56]"></TD> </TR> EOT }
if ($usrfieldfourlabel){ $displaycenter .= <<"EOT"; <TR> <TD WIDTH="40%" ALIGN="RIGHT"><b>$usrfieldfourlabel:$isrequired{"usrfieldfour"}</b></TD> <TD COLSPAN="2" valign="top" width="60%"><INPUT TYPE="TEXT" class="textinput" NAME="usrfieldfour" SIZE="40" MAXLENGTH="30" VALUE="$userset{$URL{'u'}}->[57]"></TD> </TR> EOT }
if (($usefullname) || ($usemailaddress) || ($usrfieldonelabel) || ($usrfieldtwolabel) || ($usrfieldthreelabel) || ($usrfieldfourlabel)){ $displaycenter .= "</table></td></tr>"; }
--» Modification: Error :: Not Found in File
Modify File: Code/Register.pl Source Code:
<td><input type="password" class="textinput" name="cpw" size="20" maxlength="8"></td> </tr> </table> </td> </tr> EOT
After:
if ($reqfullname) { $isrequired{"fullname"} = "*";} if ($reqmailaddress) { $isrequired{"mailaddress"} = "*";} if ($requsrfieldone) { $isrequired{"usrfieldone"} = "*";} if ($requsrfieldtwo) { $isrequired{"usrfieldtwo"} = "*";} if ($requsrfieldthree) { $isrequired{"usrfieldthree"} = "*";} if ($requsrfieldfour) { $isrequired{"usrfieldfour"} = "*";}
if (($usefullname) || ($usemailaddress) || ($usrfieldonelabel) || ($usrfieldtwolabel) || ($usrfieldthreelabel) || ($usrfieldfourlabel)){ $ebout .= <<"EOT"; <tr><td class="catbg"><span class="smalltext"><b>Other Information (* indicates required fields)</b></span></td></tr> <tr><td class="win2" align="center"><table cellpadding="4" cellspacing="0">
EOT }
if ($usefullname){ $ebout .= <<"EOT"; <tr> <td WIDTH="45%" align="right"><B>First and Last Name:$isrequired{"fullname"}</B></TD> <TD WIDTH="55%"><INPUT TYPE="TEXT" class="textinput" NAME="fullname" value="$FORM{'fullname'}" SIZE="30" MAXLENGTH="30"> </TD></TR><TR> EOT
}
if ($usemailaddress){ $ebout .= <<"EOT"; <TR> <TD WIDTH="45%" align="right"><B>Street Address: $isrequired{"mailaddress"}</B></TD> <TD WIDTH="55%"><INPUT TYPE="TEXT" class="textinput" NAME="streetaddress" value="$FORM{'streetaddress'}" SIZE="30" MAXLENGTH="30"></TD> </TR> <TR> <TD WIDTH="45%" align="right"><B>City:$isrequired{"mailaddress"}</B></TD> <TD WIDTH="55%"><INPUT TYPE="TEXT" class="textinput" NAME="cityaddress" value="$FORM{'cityaddress'}" SIZE="30" MAXLENGTH="30"></TD> </TR> <TR> <TD WIDTH="45%" align="right"><B>State:$isrequired{"mailaddress"}</B></TD> <TD WIDTH="55%"><INPUT TYPE="TEXT" class="textinput" NAME="stateaddress" value="$FORM{'stateaddress'}" SIZE="2" MAXLENGTH="2"></TD> </TR> <TR> <TD WIDTH="45%" align="right"><B>Zip Code:$isrequired{"mailaddress"}</B></TD> <TD WIDTH="55%"><INPUT TYPE="TEXT" class="textinput" NAME="zipaddress" value="$FORM{'zipaddress'}" SIZE="10" MAXLENGTH="10"></TD> </TR> <TR> EOT
}
if ($usrfieldonelabel){ $ebout .= <<"EOT"; <TR> <TD WIDTH="45%" align="right"><B>$usrfieldonelabel:$isrequired{"usrfieldone"}</B></TD> <TD WIDTH="55%"><INPUT TYPE="TEXT" class="textinput" NAME="usrfieldone" value="$FORM{'usrfieldone'}" SIZE="30" MAXLENGTH="30"></TD> </TR> EOT }
if ($usrfieldtwolabel){ $ebout .=<<"EOT"; <TR> <TD WIDTH="45%" align="right"><B>$usrfieldtwolabel:$isrequired{"usrfieldtwo"}</B></TD> <TD WIDTH="55%"><INPUT TYPE="TEXT" class="textinput" NAME="usrfieldtwo" value="$FORM{'usrfieldtwo'}" SIZE="30" MAXLENGTH="30"></TD> </TR> EOT }
if ($usrfieldthreelabel){ $ebout .= <<"EOT"; <TR> <TD WIDTH="45%" align="right"><B>$usrfieldthreelabel:$isrequired{"usrfieldthree"}</B></TD> <TD WIDTH="55%"><INPUT TYPE="TEXT" class="textinput" NAME="usrfieldthree" value="$FORM{'usrfieldthree'}" SIZE="30" MAXLENGTH="30"></TD> </TR> EOT }
if ($usrfieldfourlabel){ $ebout .= <<"EOT"; <TR> <TD WIDTH="45%" align="right"><B>$usrfieldfourlabel:$isrequired{"usrfieldfour"}</B></TD> <TD WIDTH="55%"><INPUT TYPE="TEXT" class="textinput" NAME="usrfieldfour" value="$FORM{'usrfieldfour'}" SIZE="30" MAXLENGTH="30"></TD> </TR> EOT }
if (($usefullname) || ($usemailaddress) || ($usrfieldonelabel) || ($usrfieldtwolabel) || ($usrfieldthreelabel) || ($usrfieldfourlabel)){ $ebout .= "</table></td></tr>"; }
--» Modification: Error :: Not Found in File
Modify File: Code/Admin2.plSource Code:
<td valign=top><select name="vradmin"><option value="0"$VRA{'0'}>$admintxt2[133]</option><option value="1"$VRA{'1'}>$admintxt2[134]</option><option value="2"$VRA{'2'}>$admintxt2[135]</option></select></td> </tr>
After:
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT"> <!-- Hide script from older browsers
function setCheck(myField) { if ((myField == "reqfullname") && (! document.post.usefullname.checked)) { document.post.usefullname.checked = document.post.reqfullname.checked } if ((myField == "usefullname") && (document.post.reqfullname.checked)) { document.post.reqfullname.checked = document.post.usefullname.checked } if ((myField == "reqmailaddress") && (! document.post.usemailaddress.checked)) { document.post.usemailaddress.checked = document.post.reqmailaddress.checked } if ((myField == "usemailaddress") && (document.post.reqmailaddress.checked)) { document.post.reqmailaddress.checked = document.post.usemailaddress.checked } if ((myField == "requsrfieldone") && (document.post.usrfieldonelabel.value == "") && (document.post.requsrfieldone.checked)) { document.post.usrfieldonelabel.value = "please enter a field name"} if ((myField == "requsrfieldone") && (document.post.usrfieldonelabel.value == "please enter a field name") && (! document.post.requsrfieldone.checked)) { document.post.usrfieldonelabel.value = ""} if ((myField == "requsrfieldtwo") && (document.post.usrfieldtwolabel.value == "") && (document.post.requsrfieldtwo.checked)) { document.post.usrfieldtwolabel.value = "please enter a field name"} if ((myField == "requsrfieldtwo") && (document.post.usrfieldtwolabel.value == "please enter a field name") && (! document.post.requsrfieldtwo.checked)) { document.post.usrfieldtwolabel.value = ""} if ((myField == "requsrfieldthree") && (document.post.usrfieldthreelabel.value == "") && (document.post.requsrfieldthree.checked)) { document.post.usrfieldthreelabel.value = "please enter a field name"} if ((myField == "requsrfieldthree") && (document.post.usrfieldthreelabel.value == "please enter a field name") && (! document.post.requsrfieldthree.checked)) { document.post.usrfieldthreelabel.value = ""} if ((myField == "requsrfieldfour") && (document.post.usrfieldfourlabel.value == "") && (document.post.requsrfieldfour.checked)) { document.post.usrfieldfourlabel.value = "please enter a field name"} if ((myField == "requsrfieldfour") && (document.post.usrfieldfourlabel.value == "please enter a field name") && (! document.post.requsrfieldfour.checked)) { document.post.usrfieldfourlabel.value = ""}
}
--> </Script>
<td colspan="2" bgcolor="$color{'win'}" class="win"><font size="1" class="smalltext"><b>Extended Registration Options</b></font></td> <tr><td align=right><b>Ask for First and Last Name?</b></td> <td valign=top><input type="checkbox" name="usefullname" onClick="setCheck('usefullname')" value="1"$usefullname{1}> <input type="checkbox" name="reqfullname" value="1"$reqfullname{1} onClick="setCheck('reqfullname')"> Required?</td></tr> <tr><td align=right><b>Ask for Mailing Address (street, city, state, zip)?</b></td> <td valign=top><input type="checkbox" name="usemailaddress" onClick="setCheck('usemailaddress')" value="1"$usemailaddress{1}> <input type="checkbox" name="reqmailaddress" onClick="setCheck('reqmailaddress')" value="1"$reqmailaddress{1}> Required? </td></tr> <tr><td align=left colspan="2"><font size="1" class="smalltext">Use the following boxes to enter labels for other fields you want to show up on the registration form. For instance - put "Phone Number" if you want a field labeled "Phone Number." Leave blank if you do not want that field to show up.</td></tr> <tr><td align=right><b>User Field 1</b></td> <td valign=top><input type="text" name="usrfieldonelabel" value="$usrfieldonelabel" size="30"> <input type="checkbox" name="requsrfieldone" onClick="setCheck('requsrfieldone')" value="1"$requsrfieldone{1}> Required?</td></tr> <tr><td align=right><b>User Field 2</b></td> <td valign=top><input type="text" name="usrfieldtwolabel" value="$usrfieldtwolabel" size="30"> <input type="checkbox" name="requsrfieldtwo" onClick="setCheck('requsrfieldtwo')" value="1"$requsrfieldtwo{1}> Required?</td></tr> <tr><td align=right><b>User Field 3</b></td> <td valign=top><input type="text" name="usrfieldthreelabel" value="$usrfieldthreelabel" size="30"> <input type="checkbox" name="requsrfieldthree" onClick="setCheck('requsrfieldthree')" value="1"$requsrfieldthree{1}> Required?</td></tr> <tr><td align=right><b>User Field 4</b></td> <td valign=top><input type="text" name="usrfieldfourlabel" value="$usrfieldfourlabel" size="30"> <input type="checkbox" name="requsrfieldfour" onClick="setCheck('requsrfieldfour')" value="1"$requsrfieldfour{1}> Required?</td></tr>
--» Modification: Error :: Not Found in File
|
|
|
|
|
|
riffplayer |
| February 23, 2005, 8:29am |
|
|
Posts: 263
Gender:  Male
Posts Per Day: 0.15
Reputation: 100.00%
Time Online: 2 days 3 hours 50 minutes
Location: Indiana
Age: 33
|
great! Let me know how it works for you! |
|
|
|
|
|
riffplayer |
| February 25, 2005, 8:42am |
|
|
Posts: 263
Gender:  Male
Posts Per Day: 0.15
Reputation: 100.00%
Time Online: 2 days 3 hours 50 minutes
Location: Indiana
Age: 33
|
I'll try to help if I can. First, what version of eblah are you running? That makes a huge difference. Also, have you modded the code at all yourself?
Judging by the errors, I'm guessing you have a version older than P8. If that's the case, I MIGHT have a version of the mod that will work, but I would recommend upgrading to the newest version of eblah (P8.3 - I think, though P9 is supposed to be coming soon). This mod might not work with P9, I haven't seen the code yet so I don't know. I will be updating the mod for P9 eventually (if I can!). |
|
|
|
|
|
maverick |
| February 25, 2005, 12:16pm |
|
|
Posts: 101
Gender:  Male
Posts Per Day: 0.06
Reputation: 100.00%
Reputation Score: +3 / -0
Time Online: 254 days 21 hours 40 minutes
Location: Wales, UK
|
This mod has been exactly what I have been looking for also. I tested it first on an old upgraded version E-Blah 8.3 and it worked perfectly. I put this on my brand new install used all the fields except the address field, but when you register it says The address field cannot be left blank(or something like that) and that box is not showing. If I uncheck all the required fields boxes it works OK. Is this easy to fix? Perhaps reinstall? |
| |
|
|
|
|
|
riffplayer |
| February 25, 2005, 12:27pm |
|
|
Posts: 263
Gender:  Male
Posts Per Day: 0.15
Reputation: 100.00%
Time Online: 2 days 3 hours 50 minutes
Location: Indiana
Age: 33
|
crap, I think its a bug. I'll see what I can do. I'll have to look at it next week. Sorry about this.
I wonder if one of the admins might want to join this thread with the thread about this mod in the "Completed Modifications" section? Just a thought. |
|
|
|
|
|
Craig |
| February 25, 2005, 1:54pm |
|
|
Posts: 3,619
Gender:  Male
Posts Per Day: 2.13
Reputation: 97.73%
Reputation Score: +215 / -5
Time Online: 14 days 15 hours 11 minutes
Location: Germany
Age: 38
|
I think I just did, but I am not sure if I did it right  . Anyway, it is now in the right area on the board  |
| Don't just ask a question. Instead ask a question, give us a screen shot and post a link to your forum. Help us help you make your forum better!If I helped...increase my Reputation by clicking here. |
|
|
|
|
|
riffplayer |
| February 25, 2005, 2:52pm |
|
|
Posts: 263
Gender:  Male
Posts Per Day: 0.15
Reputation: 100.00%
Time Online: 2 days 3 hours 50 minutes
Location: Indiana
Age: 33
|
|
|
|
|
|
maverick |
| February 25, 2005, 3:51pm |
|
|
Posts: 101
Gender:  Male
Posts Per Day: 0.06
Reputation: 100.00%
Reputation Score: +3 / -0
Time Online: 254 days 21 hours 40 minutes
Location: Wales, UK
|
Sorry about this if I can be of any assistance. |
| |
|
|
|
|
|
|