Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 02 Aug 2015, 03:28
akz645 akz645 is offline
 
Join Date: Jul 2015
Thumbs up Zoins Anonymous Posting - Help with PHP Edit. [Completed]

Originally Posted by KimK View Post
Hello,

For anyone who wants to add/enable a check box for post anonymously at the Quick Reply box, Here's how:

Tested and working with vBulletin 4.2.2 Patch Level 1.

It just requires one template change and 1 plugin to be created. The plugin is what allows the if statement to work on the showthread page (where the quick reply is).

1. Go to your admincp
2. Navigate to Plugins & Products, and then into Add New Plugin
3. Enter the following:

Product: Zoints Anonymous Posting
Hook Location: showthread_start
Title: Enable Anonymous Posting (Quick Reply)
Execution Order: 5
Plugin PHP Code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

4. Set plugin to Active.
5. Save
6. Go to your Style Manager and edit the following template SHOWTHREAD.

Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Below, Add:



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


7. Save

Now go to a thread in a forum where you have Anonymous posting enabled, and you should see the Quick Reply Anonymous option at Quick Reply box.

Thanks to vespillo and New Joe for the help. I collected the information above from their replies.
Basically. that solution still has the following issues:
- 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?

Last edited by akz645; 02 Aug 2015 at 06:26.
Reply With Quote
  #2  
Old 02 Aug 2015, 04:30
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Next, in your "SHOWTHREAD" template, locate the code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And below this, add:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

--------------- Added 02 Aug 2015 at 04:55 ---------------

Originally Posted by akz645 View Post
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.

Last edited by MarkFL; 02 Aug 2015 at 06:33. Reason: remove unnecessary javascript
Reply With Quote
  #3  
Old 02 Aug 2015, 06:21
akz645 akz645 is offline
 
Join Date: Jul 2015
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*

Last edited by akz645; 02 Aug 2015 at 06:52.
Reply With Quote
  #4  
Old 02 Aug 2015, 06:46
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
If you wish for this to work for certain usergroups only, then change the template conditional to read:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

where X,Y... is the comma-delimited list of usergroups you want to allow.
Reply With Quote
  #5  
Old 02 Aug 2015, 07:04
akz645 akz645 is offline
 
Join Date: Jul 2015
Originally Posted by MarkFL View Post
If you wish for this to work for certain usergroups only, then change the template conditional to read:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

where X,Y... is the comma-delimited list of usergroups you want to allow.
http://www.vbulletin.org/forum/showp...&postcount=196
Cheers. Added to my next post.

Last edited by akz645; 02 Aug 2015 at 07:39.
Reply With Quote
  #6  
Old 02 Aug 2015, 19:00
Elixar's Avatar
Elixar Elixar is offline
 
Join Date: Jan 2014
What would be really awesome is to allow who can see the username of the actual poster in the postbit.
Reply With Quote
  #7  
Old 27 Dec 2015, 19:03
Elixar's Avatar
Elixar Elixar is offline
 
Join Date: Jan 2014
Originally Posted by Elixar View Post
What would be really awesome is to allow who can see the username of the actual poster in the postbit.
Bump.
Reply With Quote
  #8  
Old 31 Dec 2015, 22:27
akz645 akz645 is offline
 
Join Date: Jul 2015
Originally Posted by Elixar View Post
What would be really awesome is to allow who can see the username of the actual poster in the postbit.
You should be posting that request on the actual modification thread.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 10:03.

Layout Options | Width: Wide Color: