What you want to do is create a new plugin as follows:
Product: Zoints Anonymous Posting
Hook Location: showthread_complete
Title: Enable Anonymous Posting on Quick Reply
Execution Order: 5
Plugin PHP Code:
PHP Code:
$show['anonymous'] = false;
if ($vbulletin->options['zointsanony_enabled'] AND $vbulletin->options['zointsanony_userid'])
{
$anonyforums = explode(',',$vbulletin->options['zointsanony_forums']);
foreach ($anonyforums AS $fid)
{
if ($fid == $forumid)
{
$show['anonymous'] = true;
}
}
}
Next, in your "SHOWTHREAD" template, locate the code:
HTML Code:
<vb:if condition="$show['openclose']">
<div class="openclose">
<ul class="checkradio">
<li><label for="cb_openclose">
<input type="checkbox" name="openclose" id="cb_openclose" value="1" tabindex="1" />
<vb:if condition="$show['closethread']">{vb:rawphrase close_this_thread}<vb:else />{vb:rawphrase reopen_this_thread}</vb:if>
</label></li>
</ul>
</div>
</vb:if>
And below this, add:
HTML Code:
<vb:if condition="$show['anonymous']">
<div class="openclose">
<ul class="checkradio">
<li>
<input type="checkbox" id="cb_anonymous" class="bginput" name="anonymous" value="1" /> {vb:rawphrase zointsanony_anonymous_post}
</li>
</ul>
</div>
</vb:if>
--------------- Added [DATE]1438487758[/DATE] at [TIME]1438487758[/TIME] ---------------
Quote:
Originally Posted by akz645
Nevermind I fixed the issue myself
@Mods
Delete this thread please.
|
Please, in the future if you post a question and then find a solution, rather than gutting your original post (devaluing the thread) and asking for the thread to be deleted, go ahead and post your solution for the benefit of the community.