![]() |
Only showing a block of text to logged in users
I have tried doing this and I know it is probably wrong but its been a while since I wrote a vbulletin plugin.
I overall just need help. I am trying to create a bbcode that is parsed when the thread is displayed, NOT when edited, like the usual bbcode way is. I need it to parse the text between two blocks, and then check if a user is logged in or not. If the user is logged in, it displays the html formatted text, if not logged in, do not display the text at all but instead a message to login. I have tried finding a plugin for this but had no luck so I am just trying to handle it myself. If anyone can help I would appreciate it, or provide more info if needed. Basically it would take "[block]text here[/block]" and then, as the thread is being displayed to the user, check if they are logged in. The rest I think is pretty self explainitory. I am trying this but of course it is not working. Code:
global $vbulletin; |
All times are GMT. The time now is 12:49 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|