Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Hide threads to guests according to title Details »
Hide threads to guests according to title
Mod Version: 1.00, by Arcade Fire (Member) Arcade Fire is offline
Developer Last Online: Aug 2017 I like it Show Printable Version Email this Page

vB Version: 3.8.4 Rating: (2 votes - 5.00 average) Installs: 16
Released: 16 Nov 2009 Last Update: Never Downloads: 0
Not Supported Uses Plugins Template Edits Re-usable Code Translations  

Hello, long time to create a plugin for my users to add a code in the title (+ pv) deprived his subjects could do if they wanted visitors.

You can change +pv (+private) to the other code you want.

Go to AdminCP > Plugins & Products > Add New Plugin:


Product: vBulletin
Hook Location: showthread_postbit_create
Title: Only Reg.
Execution Order: 5
Plugin PHP Code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Plugin is Active: YES

and in your showthread tempalte after $navbar:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and above $footer:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Tested on vB 3.7.x & 3.8.x

Demo: http://www.rotolandia.com/showthread.php?t=70365(spanish site)
and all titles with +pv in this forum http://www.rotolandia.com/forumdisplay.php?f=2

Please Mark Install


Note for vB4.x.x updates:


Only change <if...> for <vb:if...>


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and above $footer:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


And plugin:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Show Thread Enhancements Hide the post title area and the default icon when there is no title sockwater vBulletin 3.7 Add-ons 17 01 Jun 2010 13:14
Miscellaneous Hacks hide old threads from public view / guests AngelBlue Modification Graveyard 3 24 Mar 2008 02:53

Comments
  #2  
Old 16 Nov 2009, 20:10
concepts's Avatar
concepts concepts is offline
 
Join Date: May 2005
Real name: Jamale
Nice Work! Will Give It A Try!
Reply With Quote
  #3  
Old 16 Nov 2009, 21:38
abdobasha2004's Avatar
abdobasha2004 abdobasha2004 is offline
 
Join Date: Aug 2008
thanks
reserved
Reply With Quote
  #4  
Old 24 Nov 2009, 16:07
Arcade Fire's Avatar
Arcade Fire Arcade Fire is offline
 
Join Date: May 2008
Edit: Available for vb4 if someone needs it.

Last edited by Arcade Fire; 06 Jan 2010 at 12:34. Reason: vb4 available.
Reply With Quote
  #5  
Old 16 Jul 2010, 16:10
Mike08's Avatar
Mike08 Mike08 is offline
 
Join Date: Sep 2006
Gracias, siempre me había preguntado como lo hacian en FC :roto2:
Solo una cosa, el <if> debería ir por encima de $footer, si no no sale todo el cuerpo de la pagina.

Only one thing. <if> must be above of $footer for proper page display.

Last edited by Mike08; 16 Jul 2010 at 16:22.
Reply With Quote
  #6  
Old 29 Jul 2010, 06:03
papalph papalph is offline
 
Join Date: Nov 2009
FYI, if you have your archive pages turned on the thread is still fully visible through those pages.
Reply With Quote
  #7  
Old 01 Aug 2010, 11:04
Arcade Fire's Avatar
Arcade Fire Arcade Fire is offline
 
Join Date: May 2008
Originally Posted by papalph View Post
FYI, if you have your archive pages turned on the thread is still fully visible through those pages.
You can put the same code in the template file, check my site for testing (any + pv)

http://www.rotolandia.com/archive/in...f-2-p-246.html
Reply With Quote
  #8  
Old 01 Aug 2010, 11:13
Arcade Fire's Avatar
Arcade Fire Arcade Fire is offline
 
Join Date: May 2008
Originally Posted by Mike08 View Post
Gracias, siempre me había preguntado como lo hacian en FC :roto2:
Solo una cosa, el <if> debería ir por encima de $footer, si no no sale todo el cuerpo de la pagina.

Only one thing. <if> must be above of $footer for proper page display.
My bad, thanks!

Ps: In Forocoches, is likely to use a similar plugin but based on user groups, as some posts are for users with +6 months old ... and others based on the date of the post (registered users subsequent to the creation of the post, can not see it.

Pd: En Fc, es probable que usen un plugin parecido pero basado en grupos de usuario, ya que algunos post son para usuarios con +6 meses de antigüedad... y otros basados en la fecha del post (usuarios registrados posteriormente a la creación del post, no pueden verlo.
Reply With Quote
  #9  
Old 22 Nov 2011, 22:42
rarauz rarauz is offline
 
Join Date: Feb 2009
Hola,

lo he probado y funciona. Tan solo hay que hacer un pequeño cambio en tu código para v.4.*

<vb:if condition="($onlyreg == TRUE) and ($bbuserinfo[posts]<=1)">
<center><h2>Thread for Registered Users Only</h2></center>
<vb:else />

Muchas gracias.

-----

Hi,

I tried your plugin and works fine !!!

Only you must have one little change in the code for Vbulletin v.4.*


<vb:if condition="($onlyreg == TRUE) and ($bbuserinfo[posts]<=1)">
<center><h2>Thread for Registered Users Only</h2></center>
<vb:else />

Thanks a lot.

Last edited by rarauz; 23 Nov 2011 at 08:01.
Reply With Quote
  #10  
Old 23 Nov 2011, 10:29
Arcade Fire's Avatar
Arcade Fire Arcade Fire is offline
 
Join Date: May 2008
My bad, thanks rarauz.
Reply With Quote
  #11  
Old 13 Feb 2012, 11:36
suko22 suko22 is offline
 
Join Date: Jan 2009
Gracias por el código Arcade Fire. Ahora para rizar el rizo, ¿sabes cómo se podría ocultar los banners de adsense en los post +18? Por más que lo intento no se me ocurre la forma...

TR: Thanks for the mod Arcade Fire. Bytheway, you know how to hide adsense in +18 threads? I´ve been trying it whitout any success...
Reply With Quote
  #12  
Old 28 May 2012, 23:37
matrex722's Avatar
matrex722 matrex722 is offline
 
Join Date: Jan 2007
if i used this i think it will effict seachangine like google
how spiders will see my threads ?
Reply With Quote
  #13  
Old 02 Dec 2012, 02:00
al2thero al2thero is offline
 
Join Date: Aug 2008
Thanks a lot
Reply With Quote
  #14  
Old 23 Oct 2013, 17:03
packosoft packosoft is offline
 
Join Date: Nov 2007
I make a little modification.
from

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

to

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

because before, users with 0 posts can't see the posts. I will use it with +reg to force user to register an with +prv to have at least 100 posts

he hecho una pequeña modificacion para que los usuarios con 0 posts puedan ver el hilo.
Yo lo voy a usar para que poniendo +reg haga falta registrarse y con +prv además hagan falta 100 mensajes


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

i.e.: http://www.hardlimit.com/off-topic/t...reg-76600.html


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

i.e.: http://www.hardlimit.com/off-topic/t...prv-76603.html

Last edited by packosoft; 23 Oct 2013 at 17:42.
Reply With Quote
  #15  
Old 12 Mar 2014, 21:50
booble booble is offline
 
Join Date: Apr 2012
I don't understand what is the template...showthread? navbar?

thanks
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 18:42.

Layout Options | Width: Wide Color: