The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#10
|
||||
|
||||
![]() Quote:
For unregistered guests I can provide you another solution, try this: First replace your HTML code with that: -- cut -- <form enctype="multipart/form-data" action="newreply.php" name="vbform" method="post"> <input type="hidden" name="s" value=""> <input type="hidden" name="action" value="postreply"> <input type="hidden" name="threadid" value="37446"> <input type="hidden" name="title" value=""> <input type="hidden" name="iconid" value="0"> <input type="hidden" name="parseurl" value="yes"> <input type="hidden" name="email" value=""> <input type="hidden" name="disablesmilies" value=""> <input type="hidden" name="signature" value="yes"> <input type="hidden" name="closethread" value=""> <input type="hidden" name="hiddenreply" value=""> <input type="hidden" name="signature" value="yes"> <input type="hidden" name="rating" value="0"> <table cellpadding="0" cellspacing="0" border="0" bgcolor="#555576" width="100%" align="center"><tr><td> <table cellpadding="4" cellspacing="1" border="0" width="100%"> <tr> <td bgcolor="#8080A6" colspan="2"><font face="verdana, arial, helvetica" size="2" color="#EEEEFF" class="thtcolor"><b>Post Reply</b></font></td> </tr> <tr> <td bgcolor="#DFDFDF" valign="top" nowrap><font face="verdana, arial, helvetica" size="2" ><b>Your Reply:</b></font></td> <td bgcolor="#DFDFDF"> <table cellpadding="0" cellspacing="0" border="0"> <tr valign="top"> <td> <textarea name="message" rows="7" cols="70" wrap="virtual" tabindex="1"></textarea> <br> <font face="verdana,arial,helvetica" size="1" ></font></td> </tr> </table> </td> </tr> <tr> <td bgcolor="#DFDFDF" valign="top" nowrap><font face="verdana, arial, helvetica" size="2" ><b>Your Name (*):</b></font></td> <td bgcolor="#DFDFDF"> <input type="text" name="guestname" maxlength="20" size="20"> <br> <font size="-2" face="Verdana, Arial, Helvetica, sans-serif">*Leave this field blank, if you are a registered user..</font></td> </tr> </table> </td></tr></table> <br> <table cellpadding="2" cellspacing="0" border="0" width="100%" align="center"> <tr> <td align="center"><font face="verdana, arial, helvetica" size="2" > <input type="submit" class="bginput" name="submit" value="Submit Reply" accesskey="s" tabindex="2"> </font></td> </tr> </table> </form> -- cut -- Now edit the file "newreply.php". Find this line: -- cut -- $postusername = htmlspecialchars($username); } } else { $postusername = $bbuserinfo['username']; -- cut -- AFTER THAT LINE, add: -- cut -- if ($guestname) {$postusername=substr(strip_tags($guestname),0,20) ;} else {$postusername="A Kira Fan";} -- cut -- This will add the guest's entry as poster name unless she is a registered user! If she is already registered (and loged in!), her registered name will be the poster name regardless of what she entered in the name field. If she is neither registered nor entered her name, her name would be replaced with "A Kira Fan". ![]() I guess this is exactly what you want.. ![]() Quote:
![]() Quote:
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|