![]() |
Allow Your Users to Post Anonymously Without Logging Out
When I released my Post As Anonymous Mod Hack (now obsolete), many users wanted the ability to allow ANY user to post anonymously. This hack fulfils that request.
It is a VERY long and difficult hack to install. Therefore, I have written the instruction file radically different than any I have ever written before. This one is written in discrete steps. Rather than having you blindly edit files and hope everything works when it's done, I have you do the hack in steps and TEST each step. IF YOU DO NOT KNOW HOW TO CODE, I SUGGEST YOU POST A SERVICE REQUEST AND ASK SOMEBODY TO INSTALL THIS FOR YOU. Features: A. Control anonymous posting at the board, forum, usergroup, and user level. This means that you can use the anonymous posting in any combination that you can use features such as allowing users to reply to posts. B. Users can post anonymously, but still subscribe to the thread. C. You can set the anonymous username per usergroup. For example, Admins can post as Anonymous Admin, while regular users post as Anonymous Registered Member. D. Mods and Admins can see who truly posted. E. Users can see their name on their own anonymous post. F. The "edited by" message does not show on anonymous posts. G. Lastposter works properly. H. Search will not pull up a user's anonymous posts under their name. But, you can search for all anonymous posts. I. Anonymous posts are marked so that you don't forget the post is anonymous and "out" yourself. J. Anonymous posts can be safely quoted. I will not support this hack for any version of vbulletin other than 3.0.7. |
1. When I post anonymously, the user name section in the postbit is blank.
Make sure you set an Anonymous Name in the user group settings page of the admincp. Each user group can be set to use a different display name. |
Excellent work :) I may have a use for this once I get another site going, since I merged with a friend to cut costs for a while. What are the chances being able to put the "Post Anonymously" checkbox on the actual newthread and newreply pages instead of as an option in the profile?
|
I may install this as well, I have been watching for the confession hack but there is no est on when it will be released, and this seems like it could do the same thing.
|
An extremely good and extensive instruction text. If only they were all like this :)
|
wow another one, thank you very much amy :)
|
Quote:
|
Quote:
|
Quote:
|
I have one question. I am using the warning hack. If a registered user posts anonymously, can that user still be warned?
|
I am not sure what the warning hack is or how it works.
|
ok, let me rephrase that. Does the system still know who the real usename and userid is?
|
I am stucked at step 4. The default permission in a forum allowed for an allowed usergroup shows no. Here are my last bitfields line.
'canbet' => 4194304, // --- vBookie 'canpostanon' => 8388608, and 'warnall' => 131072, 'allowanon' => 262144 I also tried without the comma at the end of 8388608 |
Quote:
|
Thanks. I have been installing since there was a global on/off switch... but I am stucked ...
|
Quote:
|
is there more than one instance to change it?
'candoanon' => 8388608 is not doing it. never mind... I had unselected the usergroup when I encountered the problem |
I finished writing this thing in the wee hours of the morning. Hopefully, there won't be any more brain farts in the install instructions.
|
I am stucked at step 5. I am logged in as admin with anon permissions, trying to post in an allowed forum, did the new template part (step o) , added $postanonoption in newthread template, yet when testing, I cannot see the option.
|
Actually, the whole block in newthread about disablesmilies, vbookie, post poll disappeared?????
|
I got them back, except for your option
|
It's actually step 6. You have two steps 6. It's the first one.
|
Make sure you changed your fieldx to use the user field that you created. If not, that won't work. Also, make sure the forum you are posting in is set to allow anonymous posting, that the board as a whole is set to allow it and the other permisisons. If any of those are set off (which could have happened during testing) the checkbox won't show.
|
p.s. I am very happy that you are testing incrementally as advised. That makes helping you much, much easier. Thank you.
Amy |
Quote:
if (($forumperms & CANDOANON) AND ($bbuserinfo[field14]=='yes') AND $vboptions['candoanon'] AND $foruminfo['allowanon']) { eval('$postanonoption = "' . fetch_template('newpost_postanon') . '";'); } else { $postanonoption = ""; } |
OK. The code looks fine. Check the permissions for the board, forum, and usergroup and user and make sure you didn't set the forum to use custom permissions for your usergroup in that forum. Yes, I know this part is a pain to set up ininitally, just like all the other vbulletin permissions, but it really does give you a lot of flexibility later.
|
I appreciate your help. Thank you very much.
In specific forum, allow anonymous posting is on the usergroup admin has permission to post as anonymous and it is also set as default in that forum permissions |
Dumb question. Is the new template available in the style you are testing in?
|
If it is, just for giggles, take this code
Code:
if (($forumperms & CANDOANON) AND ($bbuserinfo[fieldx]=='yes') AND $vboptions['candoanon'] AND $foruminfo['allowanon']) Code:
eval('$postanonoption = "' . fetch_template('newpost_postanon') . '";'); |
Yes it is available. Problem is somehow permissions related, because when I do $postanonoption="whatever"; instead of $postanonoption="";
whatever is displayed below the smilies |
Did your test. That confirm it is the permissions by displaying the template in showthread
|
Quote:
In vbulletin options, it's off by default. That has to be turned on. Probably something I should change in the setup of those options. Amy |
at the board level the global option is set to yes.
at the user level also 500 was taken, so I made the settings 480 but I don't think that would cause problem, in instructions it says I could. |
OK. Lionel and I went to PM and figured out that problem. I had a variable name mistyped in step 3. I have fixed the install instructions.
|
yup, works great so far... now up to step 7 :-)
|
Looks like all bugs were squashed. Thanks for the help.
This hack is great. I got a bunch of "shy" members. That should help. I also like the fact that admin can see the real poster, with a mention that post was made anonymously, and the fact that you still can warn the real user if you are using the warning hack. |
What about some pics of postbit?
|
I have a question about a possible request for this...
Is there a chance you could set an entire forum to be "anonymous" only? there's a spot to click if it's allowed but what about being forced? Fantastic hack though! |
Quote:
|
OK. If you've already installed, there is a query you need to run to update your existing users to set their permissions to 'yes'.
Make sure to change fieldx to use the custom field number you chose. Use the table prefix as necessary. UPDATE userfield set fieldx='yes'; |
All times are GMT. The time now is 06:13 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|