Vishaaldesiking
01-22-2013, 09:36 PM
Hello,
I just made a custom mod inspired from https://vborg.vbsupport.ru/showthread.php?t=177694
but facing few minor problems with this.
$template_hook['newthread_start'] = 'Post Anonymous: <input type="checkbox" name="anonymous" value="1" tabindex="1" title="Post Anonymous">';
The Above code is for a Check box in the thread but
now the main thing:
I need to write a IF clause where i need to see
If the check box is checked then it must show ANONYMOUS (That is it should Hide the USER Details)... ELSE show the username like a regular Post.
if (anonymous == "1")
{
$template_hook['postbit'] = '<center><span class="username guest"><b>Anonymous</b></span><img src="images/anon.gif" /></center>';
}else
{
$template_hook['postbit'] = 'test';
}
This code is added in: postbit_display_start
Is there someone who can help me with complete this mod?
I just made a custom mod inspired from https://vborg.vbsupport.ru/showthread.php?t=177694
but facing few minor problems with this.
$template_hook['newthread_start'] = 'Post Anonymous: <input type="checkbox" name="anonymous" value="1" tabindex="1" title="Post Anonymous">';
The Above code is for a Check box in the thread but
now the main thing:
I need to write a IF clause where i need to see
If the check box is checked then it must show ANONYMOUS (That is it should Hide the USER Details)... ELSE show the username like a regular Post.
if (anonymous == "1")
{
$template_hook['postbit'] = '<center><span class="username guest"><b>Anonymous</b></span><img src="images/anon.gif" /></center>';
}else
{
$template_hook['postbit'] = 'test';
}
This code is added in: postbit_display_start
Is there someone who can help me with complete this mod?