The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Hide [code] from guests
Hello,
I want to know how to hide content in [code] from guests and put in my text a.i. " please register to see this code" Is there some MOD or something for this? Thank You D |
#2
|
|||
|
|||
I'm looking for something similar but I don't want to hide links, I want to hide text in a story.
Here is the mod to hide links. https://vborg.vbsupport.ru/showthrea...ighlight=links |
#3
|
|||
|
|||
Yes, I don't wan't to hide links also. Only what is inside [code] box.
|
#4
|
|||
|
|||
Oh, like entire code chunks for programming? Yeh, I guess you and I are looking for something similar then.
I've done searchs for "Block Code", "Block Text" and they all return the same results. It appears there was a 3.0 mod which doesn't work on 3.7 or above, and there was a 3.7 mod to block php/html etc code but it's been binned. They appear to function by phrasers and bbcode. Anybody know if there is anything new? |
#5
|
|||
|
|||
Funny thing is that I am running phpBB forum and I could menage that there.
|
#6
|
|||
|
|||
This appears to be the hack for 3.7 - all of the other versions are located in the similar threads section in the middle fo the page.
https://vborg.vbsupport.ru/showthread.php?t=179034 |
#7
|
|||
|
|||
But this is not what we are looking for.
I don't want to use it manual. I want every [code] to be hiden from guest with message" please register if you want to see message " |
#8
|
||||
|
||||
you mean like the one at vBulletin.org? I think that you have to go into your template (wherever the code one is) and add a conditional..
that should look something like this: Code:
<if condition="$show['member']"> $code <else /> <if condition="$show['guest']"> You are not allowed to view this content until you register. </if></if> |
#9
|
|||
|
|||
Thank you , but where should I add it?
|
#10
|
||||
|
||||
Find the template and modify it as he said.
To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. Sometimes the template is the one mentioned at the very top of the page source. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|