![]() |
Hide threads to guests according to title
1 Attachment(s)
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: Code:
if(stristr($thread[title], '+pv') == TRUE) and in your showthread tempalte after $navbar: Code:
<if condition="($onlyreg == TRUE) and ($bbuserinfo[posts]<=1)"> Code:
</if> 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...> Code:
<vb:if condition="($onlyreg == TRUE) and ($bbuserinfo[posts]<=1)"> Code:
</vb:if> And plugin: Code:
if(stristr($thread[title], '+pv') == TRUE) |
Nice Work! Will Give It A Try!
|
thanks
reserved |
Edit: Available for vb4 if someone needs it.
|
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. |
FYI, if you have your archive pages turned on the thread is still fully visible through those pages.
|
Quote:
http://www.rotolandia.com/archive/in...f-2-p-246.html |
Quote:
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. |
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. |
My bad, thanks rarauz.
|
All times are GMT. The time now is 01:23 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|