2011-08-26, 11:02 PM
This isn't a plugin, just a little modification I want to do. Basically, I have a checkbox next to the Signature, Disable Smilies, Close Thread and Stick Thread checkboxes, which I added in the showthread_quickreply template like so:
[attachment=23922]
If users tick that checkbox in the Quick Reply form (or the newreply.php page) their username in the post should be "Example", which will link to nothing. Much like how guest posts work. I tried adding this in ./inc/functions_post.php around line 94:
But nothing really happens. A few minutes later I realized that didn't make much sense anyway. I'm pretty much stuck now, as I lack the PHP skills to figure this one out. Could anyone give me some pointers? What file(s) should be edited? How exactly?
Thanks!
<label><input type="checkbox" class="checkbox" name="example" value="1" checked="checked" /> <strong>Example</strong></label>
[attachment=23922]
If users tick that checkbox in the Quick Reply form (or the newreply.php page) their username in the post should be "Example", which will link to nothing. Much like how guest posts work. I tried adding this in ./inc/functions_post.php around line 94:
if(isset($_POST['example']))
{
$post['username'] = "Example";
}
But nothing really happens. A few minutes later I realized that didn't make much sense anyway. I'm pretty much stuck now, as I lack the PHP skills to figure this one out. Could anyone give me some pointers? What file(s) should be edited? How exactly?
Thanks!