vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   New Posting Features - Zoints Anonymous Posting - Improved privacy for members (https://vborg.vbsupport.ru/showthread.php?t=177694)

Tyran1 04-23-2012 02:01 AM

I need the option to Groups!

yaku 04-27-2012 05:20 PM

Quote:

Originally Posted by mboyce84 (Post 2320305)
I got the same problem. Its an issue with sql script and a deprecated supported keyword used the create the table I believe. Open the XML file and change on line 24 from:

TYPE=MyISAM

and replace with:

ENGINE=MyISAM


Then try the import again. Worked for me in Vbulletin 4.1.12 after the change.

Thanks for the post...couldn't get it to work on my 3.7 site before the change.

Kraxell 06-03-2012 12:28 PM

Does it work on 4.1?

puddlove 07-22-2012 08:06 PM

Anyone know if it works on 3.8? I assume it does - or at least I'm going to try it anyway.

Also, does anyone know if there's a way to moderate posts made under "Anonymous"? If I set the "Anonymous" user to require moderation for new threads/posts, does that work - i.e. does vBulletin "see" the Anonymous account as the poster, or the original, actual poster - therefore bypassing the moderation?

I can't set the forum to be moderated, as I also want non-anon posting to be unmoderated.

EDIT: Oops, just searched and found this post - I'm going to try it. I only want anonymous posts in forum X to be moderated. Non-anon posts can goo straight through. Let me see if that hack still works!

BirdOPrey5 07-23-2012 09:20 AM

Works fine in 3.8.

rickrichards82 08-09-2012 11:05 PM

i've installed this mod on version 4 and its working properly but i can't access the logs.

does anyone know how i can fix things so that i can access the anonymous logs? i checked the database and the users that use this mod are being logged in the database. i think its just not giving me the link in the adminCP to look at the mod and i can't really guess what the link is supposed to be.

flapjack 08-20-2012 04:05 AM

logs and mod work fine in 4.2 using code posted on page 11 best I can tell. Thanks for this!

Any way to make it work through quick reply, though?

pacman99 09-15-2012 12:24 AM

Okay, so I've got it installed (after some changes to the XML file), but turns out it hasn't enabled anonymous posting yet. It keeps giving me the following error when I try to update it in options:

Quote:

Warning: trim() expects parameter 1 to be string, array given in [path]/includes/adminfunctions_options.php on line 1032
Gist of it: I can't enable anonymous posting even after installing the mod :(

BirdOPrey5 09-17-2012 08:59 AM

Why did you need to edit the XML file? What changes did you make?

pacman99 09-20-2012 09:43 PM

^ I think I changed "TYPE" to "ENGINE" as suggested on page 11.

Anyway, that error has gone away, but now my users (non-admin) can't see the anonymous posting option when in the forums that I've selected in my user options.

What to do? :( :confused:

CoffeeLovesYou 12-17-2012 11:10 PM

Quote:

Originally Posted by Bill from Cleve (Post 1847600)
I have an issue. I know it's not from your awesome hack, but was wondering if you could give me an Idea to what is causing it?
When I post and quote using Anonymous, it puts tags around everything [ SIZE="a"]Another test[ /SIZE]

I'm using 3.8.3 Any Ideas?

I am having this issue :(.
It is because we have Default User Text Formatting installed.
When it's converting the old user into anonymous.. something is happening to the text.
It's adding [FONT="a"] and [SIZE="a"] and [COLOR="a"] to the posts, but only the SIZE is visible.
How can this be fixed?

Tyran1 02-05-2013 04:09 PM

Update to vB 5???

crn 04-07-2013 02:24 AM

I've made the change listed on page 11 (changing the text on line 24 to "ENGINE=MYISAM", but I can't seem to get this to work on vb 4.2.

It says it installed correctly, and I can set the options to enable it for different forums, but the anonymous posting never works and there's no option to choose to post anonymously. Any ideas?

EDIT: Nevermind. I needed to add the code to the template. And the updated code, not the code included in the install.txt.

the new code is from here

Code:

<vb:if condition="$show['anonymous']"><div><input type="checkbox" id="cb_anonymous" class="bginput" name="anonymous" value="1" checked/> {vb:rawphrase

zointsanony_anonymous_post}</div></vb:if>


kylek 06-20-2013 08:28 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2054096)
To remove the IP address so mods can't see who it is do the following:

Edit the postbit or postbit legacy template.
Replace the number '51' with the forumid of your anonymous forum.

Find:
Code:

$post[onlinestatus]
Above it add:
Code:

<if condition="$thread['forumid'] != 51"> <!-- START ANON IF -->
Find:
Code:

$post[iplogged]
Below it add
Code:

</if> <!-- END ANON IF -->

So far got everything working with 4.2.1 but this. Anyone know what to look for in the 4.2.1 postbit to get this to work?

BirdOPrey5 06-21-2013 09:58 AM

In VB4 you should look for:

Code:

{vb:raw post.iplogged}
And put a VB4 conditional around it.

VB4 conditionals at just like VB3 conditionals except they look like <vb:if...> </vb:if> rather than <if...> </if>.

Luke Girgis 08-04-2013 09:14 AM

Quote:

Originally Posted by Tyran1 (Post 2402120)
Update to vB 5???

I would like this too, anyone?

Phaedrus 01-22-2014 12:36 AM

I still have this working on 4.2.2... I had to update the place where I put my checkbox as the old code I was using wasn't in the new templates.

tbworld 01-22-2014 12:43 AM

Quote:

Originally Posted by Phaedrus (Post 2475884)
I still have this working on 4.2.2... I had to update the place where I put my checkbox as the old code I was using wasn't in the new templates.

Good to know, thanks for sharing. :)

Elixar 02-13-2014 01:07 AM

Any chance for an update on this?

grafixonline 03-10-2014 08:48 PM

Quote:

Originally Posted by Phaedrus (Post 2475884)
I still have this working on 4.2.2... I had to update the place where I put my checkbox as the old code I was using wasn't in the new templates.

Hey, is there anyway u could give us screenshots on what u needed to mod to make it work with version 4.2. Thanks.

Elixar 03-10-2014 11:03 PM

I'm not seeing an option to make a post anonymous when posting, and I've selected the forums I've wanted.

New Joe 03-11-2014 01:40 AM

Quote:

Originally Posted by Elixar (Post 2486289)
I'm not seeing an option to make a post anonymous when posting, and I've selected the forums I've wanted.

Did you do the Template edits?

Elixar 03-11-2014 02:47 PM

Quote:

Originally Posted by New Joe (Post 2486317)
Did you do the Template edits?

Were there manual edits that you had to do?

Elixar 04-04-2014 04:57 AM

So I looked and I can't find the following in newpost_usernamecode:

Code:

                <phrase 1="member.php?$session[sessionurl]u=$bbuserinfo[userid]" 2="$bbuserinfo[username]">$vbphrase[logged_in_as_x]</phrase>

kylek 04-04-2014 05:47 AM

Dont know if this will help but I got it to work in newpost_username template by placing the code that Dragonbyte Tech mentioned here: https://vborg.vbsupport.ru/showthrea...11#post2161211 at the bottom of the template, it what worked for us.

Save your template first before editing so you can revert it if anything goes wrong.

newpost_username template:

PHP Code:

<vb:if condition="!$show['member']">
    <
div class="blockrow">
        <
label for="username">{vb:rawphrase your_username}:</label>
        <
input type="text" class="primary textbox" id="username" name="username" value="{vb:raw bbuserinfo.username}" tabindex="1" />
    
        <
vb:if condition="$_SERVER['REQUEST_METHOD'] != 'POST'">
            <
class="description"><a href="javascript://" onclick="return highlight_login_box();">{vb:rawphrase click_here_to_log_in}</a></p>
        </
vb:if>
<
vb:else />
<
vb:if condition="$show['anonymous']">
              {
vb:phrase anon_posting_as} {vb:raw bbuserinfo.musername} <br />
              <
label for="cb_anonymous"><input type="checkbox" id="cb_anonymous" class="bginput" name="anonymous" value="1"  <vb:if condition="$vbulletin->GPC['anonymous']">checked="checked"</vb:if>/>{vb:phrase zointsanony_anonymous_post}</label>
</
vb:if>
    </
div>
</
vb:if> 


BirdOPrey5 04-04-2014 08:10 AM

Quote:

Originally Posted by Elixar (Post 2491402)
So I looked and I can't find the following in newpost_usernamecode:

Code:

                <phrase 1="member.php?$session[sessionurl]u=$bbuserinfo[userid]" 2="$bbuserinfo[username]">$vbphrase[logged_in_as_x]</phrase>

Do yu have VB 3.7 or 3.8? This code won't exist in VB 4.x.

Elixar 04-05-2014 04:09 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2491424)
Do yu have VB 3.7 or 3.8? This code won't exist in VB 4.x.

4.2.2

Lon 05-06-2014 06:14 PM

Quote:

Originally Posted by Elixar (Post 2491582)
4.2.2

See the following:

Quote:

Originally Posted by DragonByte Tech (Post 2161211)
I was going to rewrite this from scratch so I could add some usergroup permissions to it but can't find a way to make it work without doing pretty much the same thing. The original code is sound though, just need to make one change to get it to work on vB4

I wanted it to display in the additional options box though so instead of editing the newpost_usernamecode template I edited
newpost_disablesmiliesoption
After
Code:

<li><label for="cb_disablesmilies"><input type="checkbox" name="disablesmilies" value="1" id="cb_disablesmilies" {vb:raw checked.disablesmilies} tabindex="1" /> {vb:rawphrase disable_smilies_in_text}</label></li>
I added
Code:

<vb:if condition="$show['anonymous']"><div><input type="checkbox" id="cb_anonymous" class="bginput" name="anonymous" value="1" /> {vb:rawphrase zointsanony_anonymous_post}</div></vb:if>
That's it, should see a checkbox to post anonymously in the additional options of the editor under the option to disable smilies. The rest of the code worked fine for me on 4.0.8 and 4.1.1

Dylan

This works for 4.2.2 PL1 if you follow the instructions including the change to "ENGINE=MYISAM".

I may take over and re-code the whole modification from scratch as well as adding a few more options but we'll see. I'll have it create a masked name when the user posts or something different. I'll add hiding IP's as an option too.

KimK 09-20-2014 11:32 AM

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:

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;
        }
    }


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

Find:

PHP Code:


<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


Below, Add:


PHP Code:


<vb:if condition="$show['anonymous']"><div><input type="checkbox" id="cb_anonymous" class="bginput" name="anonymous" value="1" checked="checked" /> {vb:rawphrase zointsanony_anonymous_post}</div></vb:if> 


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.

Elixar 03-01-2015 06:08 PM

I'm having a brain fart on how to get this to work on 4.2.2. :P

Also the only way to know who the poster is can only be done via the Admin CP?

concepts 03-31-2015 05:02 PM

Got it working on 4.2.3! Thanks for the help posted here by everyone!

biftek 04-13-2015 07:40 PM

have tried everything , used to have it working before i applied the patch of (vBulletin 4.2.2 Patch Level 4)

biftek 04-19-2015 11:09 AM

got it working , turns out you need to put in the userid , i had it set at the wrong id default of 0 , which caused the plugin not to work , once i changed it to my userid i had set up when i first install the plugin a few months ago , it worked again

akz645 07-30-2015 07:38 AM

1 Attachment(s)
Quote:

PHP Warning: mysqli_query(): (42000/1064): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'TYPE=MYISAM' at line 9 in ..../includes/class_core.php on line 1394
Quote:

Database error in vBulletin 4.2.3:

Invalid SQL:

CREATE TABLE anonymous_log (
logid INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
userid INT(10) UNSIGNED NOT NULL,
dateline INT(10) UNSIGNED NOT NULL,
postid INT(10) UNSIGNED NOT NULL,
threadid INT(10) UNSIGNED NOT NULL,
forumid SMALLINT(5) UNSIGNED NOT NULL,
PRIMARY KEY (logid)
) TYPE=MYISAM;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'TYPE=MYISAM' at line 9
Error Number : 1064
Request Date : Thursday, July 30th 2015 @ 05:36:17 AM
Error Date : Thursday, July 30th 2015 @ 05:36:17 AM
Script : [REMOVED]
Referrer : [REMOVED]
IP Address : [REMOVED]
Username : [REMOVED]
Classname : vB_Database_MySQLi
MySQL Version : 5.5.40-MariaDB-cll-lve
If you get that error when installing, it's because you need to change the XML file (I used notepad++ to change it).
Quote:

Originally Posted by mboyce84 (Post 2320305)
Open the XML file and change on line 24 from:

TYPE=MyISAM

and replace with:

ENGINE=MyISAM

Alternatively, just download the XML file I uploaded. I did the change for you :)

& then do this:
Quote:

Originally Posted by DragonByte Tech (Post 2161211)
The original code is sound though, just need to make one change to get it to work on vB4

I wanted it to display in the additional options box though so instead of editing the newpost_usernamecode template I edited
newpost_disablesmiliesoption
After
Code:

<li><label for="cb_disablesmilies"><input type="checkbox" name="disablesmilies" value="1" id="cb_disablesmilies" {vb:raw checked.disablesmilies} tabindex="1" /> {vb:rawphrase disable_smilies_in_text}</label></li>
I added
Code:

<vb:if condition="$show['anonymous']"><div><input type="checkbox" id="cb_anonymous" class="bginput" name="anonymous" value="1" /> {vb:rawphrase zointsanony_anonymous_post}</div></vb:if>
That's it, should see a checkbox to post anonymously in the additional options of the editor under the option to disable smilies. The rest of the code worked fine for me on 4.0.8 and 4.1.1

Dylan


akz645 07-30-2015 08:22 AM

1 Attachment(s)
Quote:

Originally Posted by KimK (Post 2515918)
For anyone who wants to add/enable a check box for post anonymously at the Quick Reply box, Here's how:

Okay there is two issues with your second PHP:
1) Users who don't have permission to open/close the thread = the Anon checkbox doesn't appear for them.
2) The checkbox is ticked. I'd rather have it unticked.

Quote:

Originally Posted by KimK (Post 2515918)
For anyone who wants to add/enable a check box for post anonymously at the Quick Reply box, Here's how:

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:

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;
        }
    }


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

Quote:

Originally Posted by MarkFL (Post 2551922)
Find:
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>


Quote:

Originally Posted by KimK (Post 2515918)
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.

Tested and working with vBulletin 4.2.3
Thanks to MarkFL for the additional help. Although I did actually manage to do it myself, it wasn't as clean as his solution.

I uploaded a screenshot of it being added, to help avoid confusion for where the code should be added.
Enjoy :)

akz645 08-02-2015 01:24 AM

Quote:

Originally Posted by Zoints (Post 177694)
As forum owners, we all know that a few members will choose to screw around with this feature. Therefore we created an easy means to identify who created an anonymous thread/post should the need arise. Please be ethical and tell your members you can see who posted anonymously should the need arise. You can check the log by going here:
[Image no longer available]

And the log looks something like this:
[Image no longer available]

www.[YOURSITE]/admincp/anonylog.php?do=view
https://vborg.vbsupport.ru/external/2015/08/65.png
Bugs:
- The date is correct, but the post number is not. That was post #1 not post #10.
- Only threads created using the anon feature will appear, posts will not.

How to remove IP address from appearing under certain forum sections from moderators:
https://vborg.vbsupport.ru/showpost....&postcount=107
&
https://vborg.vbsupport.ru/showpost....&postcount=175

How to make this plugin, usergroup specific for those who can anon post:
https://vborg.vbsupport.ru/showpost....27&postcount=4
So step 6, you would add this instead:
Quote:

Originally Posted by MarkFL (Post 2551922)
HTML Code:

                <vb:if condition="$show['anonymous'] and is_member_of($bbuserinfo, X,Y,...)">
                        <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>


Note: Just for the forums you highlight, ^those are the usergroups (X,Y....etc) that can see the anonymous checkbox.
So no, it won't allow you to have multiple forums, each having their own usergroup permissions.

ndoktoruser 09-24-2015 01:42 PM

Hello guys, I am currently trying to migrate the functionality to vBulletin 5.
Is anyone trying to do the same?

I am stuck trying to save that the post was anonymous, described in this post.

Elixar 01-02-2016 03:43 AM

What would be really awesome is to allow who can see the username of the actual poster in the postbit.

Elixar 01-05-2016 01:35 PM

Bump.

MarkFL 01-05-2016 05:05 PM

1 Attachment(s)
Quote:

Originally Posted by Elixar (Post 2562019)
Bump.

I have attached an add-on to this product that will:
  • Display the "True Author" of anonymously made posts to selected usergroups in the postbit. You select these groups in the product settings.
  • Update the "anonymous_log" table for posts made using the "Quick Reply." This may only be an issue for vB 4.x users.


All times are GMT. The time now is 08:44 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02430 seconds
  • Memory Usage 1,912KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (12)bbcode_code_printable
  • (3)bbcode_html_printable
  • (5)bbcode_php_printable
  • (24)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete