vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Hide Posts To Unregistered Users - Posting Option (https://vborg.vbsupport.ru/showthread.php?t=117347)

Jafo232 05-31-2006 10:00 PM

Hide Posts To Unregistered Users - Posting Option
 
-----------------
- Brought To You By:
-
- MediaFlavor.com
-
- Custom VB Mods, Extensions, and Plugins

-----------------

This hack allows your users to specify if they want their thread only viewable to registered users. You can set this priviledge on a usergroup basis.

The only limitation is the same as the "Tachy Goes Conventry" issue where the post title will be shown as the last post in the forum home, but will not be displayed in forum view. If a user happens to click on the link on the forum front page (as latest post (forumhome)) it will give them a no permissions message instructing them to login or register. This is a limitation of VB, nothing much I can do about it. When the VB team fixes the TGC feature, then I can probably do the same with this extension.

Installation:

Upload xml file to includes/xml folder.

Install product file.

Edit two templates.

CLICK INSTALL!

This modification is FREE of charge, but if you wish to reward me for my work, and encourage future modifications by me, please donate below:

https://vborg.vbsupport.ru/external/2010/02/12.gif

melefire 06-01-2006 07:44 PM

looks nice, good job

Atakan KOC 06-02-2006 05:26 AM

Nice. Thanks

projectego 06-02-2006 09:35 AM

Good idea, thanks very much! ;)

dacho 06-02-2006 10:36 AM

I can't find in the Template :
Quote:

newthread :
<if condition="$permissions[phide_permissions]">
<div><input type="checkbox" name="hide_post" value="1" id="cb_signature" tabindex="1" />$vbphrase[phide_hide_post]</label></div>
</if>
what can i to ?

Jafo232 06-02-2006 11:54 AM

Quote:

Originally Posted by dacho
I can't find in the Template :


what can i to ?

Sorry, that is an error in the readme file, search for:

Code:

        <if condition="$bbuserinfo['signature'] != ''"><div><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" $checked[signature] />$vbphrase[show_your_signature]</label></div></if>

utw-Mephisto 06-02-2006 04:09 PM

nice one .. gonna test now

utw-Mephisto 06-02-2006 04:25 PM

Problem when uninstalling / overwriting :

Code:

Database error in vBulletin 3.5.4:

Invalid SQL:

                INSERT INTO product
                        (productid, title, description, version, active)
                VALUES
                        ('Hide Post To Unregistered Users',
                        'Hide Post To Unregistered Users',
                        'Users have option to hide posts to non-registered users',
                        '1.0',
                        1);

MySQL Error  : Duplicate entry 'Hide Post To Unregistered' for key 1
Error Number : 1062
Date        : Friday, June 2nd 2006 @ 07:24:37 PM
Script      : http://xxx
Referrer    : http://xxx/plugin.php?do=productadd
IP Address  : xxxxx
Username    : utw-Mephisto
Classname    : vb_database

Since I tested it to remove .. which worked, but now I cannot reinstall anymore .. so it does not drop the tables when uninstalling ..

Jafo232 06-02-2006 06:03 PM

It should not drop any tables, it only drops columns from tables. Works for me when I uninstall, but you should not overwrite, just uninstall, the install.

utw-Mephisto 06-02-2006 06:04 PM

I uninstalled and when trying to re-install - same error

Jafo232 06-02-2006 07:15 PM

Perhaps your MySQL user does not have drop permissions?

utw-Mephisto 06-02-2006 07:19 PM

I am working with that user on MySQL since vb 2.x and since vb introduced plugins I have never had a problem with uninstalling products ...

So no, there is not a permission error .. the error doesn't even say it does not have the permission .. it says there is a duplicate hence it does not remove the tables (or whatever) when uninstalling and there was no error when uninstalling anyway

Jafo232 06-02-2006 08:34 PM

Dunno what to tell you.. Doesn't happen to me and I have tried it on three different servers myself.

You will have to manually remove these COLUMNS from these tables:

usergroup -> phide_permissions

thread -> phide

user -> phide_optionsfield

rob30UK 07-15-2006 01:45 PM

Thanks for this mod.... however, it isnt exactly what I'm looking for.

It is *almost* though.

I need to be able to say which groups can use this feature (ok, we got that), but I do not want a global switch which applies to all user threads....

I want it selectable on a *per thread* basis (Not posts, coz some convos would end up not making sense)

Hope you can help.

gingery 07-23-2006 01:49 AM

From the readme:
Quote:

Edit usergroups you want to have this priviledge in the admincp
Exactly how/where do I do this?

Jafo232 07-24-2006 03:26 PM

Quote:

Originally Posted by gingery
From the readme:

Exactly how/where do I do this?


AdminCP -> Usergroups: Select a usergroup. Check the box to give the permission.

gingery 07-24-2006 03:39 PM

Hmm...I must have screwed something up because that is not an option in my usergroup manager.

*off to retrace my steps*

gingery 07-24-2006 03:59 PM

I figured it out. Thank you!

txsbmw 09-17-2006 05:10 PM

**Nevermind, I figured it out**

But I do have a question. Is there anyway to have this as a univeral option instead of a per thread basis? In otherwords an option in the UserCp where they can choose to hide all their posts from guests?

Jafo232 09-20-2006 10:10 PM

Not as it stands, no.

Semjaza 12-02-2006 05:14 PM

If I wanted to add this to replies, how would I go about that?

For example, maybe I want a thread to be viewable, but a certain post within the thread to not be. Would that be easy to accomplish?


All times are GMT. The time now is 02:25 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.01211 seconds
  • Memory Usage 1,759KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (21)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete