![]() |
|
Thread Tools |
#1
|
||||
|
||||
Hide [code] content from guests
Hey, I was using this template modification to hide [code] content from guests:
https://www.vbulletin.org/forum/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:
The problem seems to be a trouble with the group parts. When I enter the group for guests, it shows the content to everybody (of course). If I enter the groups for registered users, admins and mods, it is hidden from everybody. ![]() Would appreciate any help! Greetings! --------------- Added 10 Mar 2020 at 19:42 --------------- It only works if I add usergroup "1" to the code (guests). Then its shown to all. Otherwise its hidden for all. Strange... No members have liked this post.
|
#2
|
||||
|
||||
I dont know if it is an error or a feature. Add debugvardump (! in test environment)
Test in 5.5.3: 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. No members have liked this post.
|
#3
|
|||
|
|||
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 No members have liked this post.
|
#4
|
||||
|
||||
Versuche mal /Try
Da ich auch auf vB.com mitgelesen habe und Risiko nicht einschätzen kann - $currentUser enthält die gleichen Infos wie $user (nur protected), könnte man ja am Ende vom Template die Variable $currentUser wieder unsetten. Das müsste aber jemand Profunderer entscheiden. No members have liked this post.
|
#5
|
|||
|
|||
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!
No members have liked this post.
|
![]() |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Show Thread Enhancements MARCO1 Hide Thread Content - With excluding forum to hide content | MARCO1 | vBulletin 4.x Add-ons | 81 | 06 Jun 2018 21:15 |
Show Thread Enhancements MARCO1 Hide Thread Content - With excluding forum to hide content | MARCO1 | vBulletin 3.8 Add-ons | 14 | 03 Aug 2014 14:38 |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 11:32.