![]() |
Hide [code] content from guests
Hey, I was using this template modification to hide [code] content from guests:
https://vborg.vbsupport.ru/showthread.php?p=2602245 unfortunately it is suddenly not working anymore with 5.6.0 (didnt do any changes, just the update). Can anybody help me to modify the code in a way, so that it is working again? I was using this code before: Code:
<vb:if condition="$vboptions['codemaxlines']"> Would appreciate any help! Greetings! --------------- Added [DATE]1583869352[/DATE] at [TIME]1583869352[/TIME] --------------- It only works if I add usergroup "1" to the code (guests). Then its shown to all. Otherwise its hidden for all. Strange... |
I dont know if it is an error or a feature. Add debugvardump (! in test environment)
Code:
<vb:if condition="$vboptions['codemaxlines']"> You get the vardump of the current logged in user (and also null info of not logged in) - and only then your bbcode_code makes sense Test in fresh 5.6.0 with first post by admin and answer by registered user In all situations (admin logged in, reg user logged in, no one logged in) I see in first post "admin-user-object" and in second post "reg-user-object". So error in 5.6.0 or you have to use another object. |
Many thanks for your help so far.
I am also discussing this on vbulletin.com because I couldn't solve it on my own so far. https://forum.vbulletin.com/forum/vb...nt-from-guests |
Versuche mal /Try
Code:
<vb:if condition="$vboptions['codemaxlines']"> |
Hey, danke für das Update, aber da tut sich leider auch nichts. Führt zum gleichen Ergebnis dass entweder allen Usern der Code verwährt wird, oder eben allen angezeigt wird. Schade, aber trotzdem danke!
|
All times are GMT. The time now is 02:14 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:
|