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


All times are GMT. The time now is 08:01 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.01064 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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