The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Zoins Anonymous Posting - Help with PHP Edit. [Completed]
Quote:
- Users who can't open/close a thread, can't view the quick reply checkbox to post anonymously. - The box is checked by default, I want it unchecked. How do I do this? |
#2
|
||||
|
||||
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:
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> 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> 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. |
Благодарность от: | ||
akz645 |
#3
|
|||
|
|||
Ah, thanks for posting that. I thought I edited it out before anybody got a chance to see it (hence avoid wasting their time).
I posted the solution onto the thread itself, as that's more relevant than posting it here. Your solution is actually slightly different and better (edited into the solution post now). I learnt how to position the check box better (no idea what </ul> did) Thanks anyway though *Edited my original post back (more or less), since you took the time to post an answer* |
Благодарность от: | ||
MarkFL |
#4
|
||||
|
||||
If you wish for this to work for certain usergroups only, then change the template conditional to read:
PHP Code:
|
Благодарность от: | ||
akz645 |
#5
|
|||
|
|||
Quote:
Cheers. Added to my next post. |
#6
|
||||
|
||||
What would be really awesome is to allow who can see the username of the actual poster in the postbit.
|
#7
|
||||
|
||||
Bump.
|
#8
|
|||
|
|||
Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|