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)

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 02:21 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
  • Page Generation 0.01745 seconds
  • Memory Usage 1,779KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_html_printable
  • (1)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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