Log in

View Full Version : Which one plugin?


exJuno
02-23-2008, 06:08 AM
I want hide all text what is in tags [code ] for guests
How i can do that?
Thanks

Boofo
02-23-2008, 06:44 AM
Edit the bbcode_code template and use a condiitonal around $code.

exJuno
02-23-2008, 06:52 AM
Can you give me more info please?

Opserty
02-23-2008, 08:50 AM
The conditional will be something like:


<if condition="$show['member']">
<!-- your contents go here to show to member, i.e. hide from guests -->
</if>

Boofo
02-23-2008, 09:11 AM
Here's an example I like to use:

<if condition="$show['member']">
$code
<else />
You have no business looking for code that you can't see, missy!
</if>

Dismounted
02-23-2008, 10:51 AM
One thing to note is post caching. It will totally ruin what you're trying to achieve. Make sure you disable it.

exJuno
02-24-2008, 12:38 PM
Ok But how to turn this down? I cant find it
Thanks for help to all!

Boofo
02-24-2008, 01:02 PM
It's in the vbulletin settings under Server Settings and Optimization Options.

Hint: Always check the settings first before giving up.

exJuno
02-25-2008, 04:43 PM
lol sorry maybe im blind but i cant find it :P
Under Server Settings and Optimization Options i have Lang Settings and Skins settings ...

Opserty
02-25-2008, 04:54 PM
<a href="http://www.vbulletin.com/docs/html/vboptions_group_server" target="_blank">Server Settings and Optimization Options</a>

It should be there alright, its in the manual!

exJuno
02-25-2008, 04:58 PM
So i have to set Cached Posts Lifespan to 0?

Boofo
02-25-2008, 05:40 PM
Yes.

exJuno
02-26-2008, 12:36 PM
Thanks for help!! But it's not working:/
Here is screen:
http://fotozrzut.pl/zdjecia/c436a32d09.png

My BBCODE_code :

<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">$vbphrase[code]:</div>
<pre class="alt2" dir="ltr" style="
margin: 0px;
padding: $stylevar[cellpadding]px;
border: 1px inset;
width: $stylevar[codeblockwidth];
height: {$blockheight}px;
text-align: left;
overflow: auto">$code</pre>
<if condition="$show['member']">
JEŻELI CHCESZ ZOBACZYĆ LINKI MUSISZ SIE ZAREJESTROWAĆ!
</if>
</div>


Why this info showing under code?

Opserty
02-26-2008, 02:27 PM
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">$vbphrase[code]:</div>
<pre class="alt2" dir="ltr" style="
margin: 0px;
padding: $stylevar[cellpadding]px;
border: 1px inset;
width: $stylevar[codeblockwidth];
height: {$blockheight}px;
text-align: left;
overflow: auto">$code</pre>
<if condition="$show['member']">
JEŻELI CHCESZ ZOBACZYĆ LINKI MUSISZ SIE ZAREJESTROWAĆ!
</if>
</div>

$code is the variable that contains the data. That is what you need to hide...

For example:

<!-- Whatever HTML -->
<if condition="$show['member']">
$code
<else />
You need to register to see code....
</if>
<!-- More HTML if you need to -->

Boofo
02-26-2008, 02:39 PM
Just like I posted in post 5. * sigh *

exJuno
02-26-2008, 03:02 PM
lol.
Not working. Can any1 send me finished code?
I gaved you all my code. Edit this and do what need to hide this.
Please. Thanks.

--------------- Added 1204112222 at 1204112222 ---------------

Anyone please?