MyBB Community Forums

Full Version: Guest can add username from quick reply
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, my forum settings allow guests to change their username and in the new reply page of my forum's mobile version there is no option for smilies, code buttons and the rest so I removed the newreply link from showthread, so what I want is for a text box to be ontop the Quick reply Box where guest can and their usernames
For example

Username: |______________|

{quick reply}
______________________________________________________
|
|
|
|
|
|
|______________________________________________________




Or

{QUICK REPLY........... }


______________________________________________________
|......Username: |______________|
|..............................______________________________________
| message:...........|
| type your............|
| message............|
..............................|
..............................|
..............................|
|________________.|.._____________________________________



Preferably the second, I hope my illustration is understandable, I couldn't get a image that gives the picture of what I need
I think it's requide a plugin.. look here http://community.mybb.com/post-998606.html, that user have the same problems.
here are the steps to do this. 
1:- download template conditional plugin from here Template conditional 
install activate . 
2:- goto admin cp >>>template >>> select your theme template >>> show thread templates >>> showthread_quickreply 
3:- find this in showthread_quickreply template 
<textarea style="width: 100%; padding: 4px; margin: 0;" rows="8" cols="80" name="message" id="message" tabindex="1" align="center"></textarea>{$codebutquick}
now just above this add this conditional. 
<if $mybb->user['uid'] == 0 then>
{$lang->username}: <input type="text" name="username" class="textbox" /><br />
</if>
now save template and you're done.
I will try it