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)

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?


All times are GMT. The time now is 05:08 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.01378 seconds
  • Memory Usage 1,780KB
  • 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
  • (4)bbcode_code_printable
  • (4)bbcode_php_printable
  • (6)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