Customizing SMF > Tips and Tricks
[TIP/TRICK] Hiding Custom Profile Fields from guests in topic view
(1/1)
phantomm:
In SMF 2 Custom profile fields are visible in topic view for guests, so if you want to hide them here is one simple edit, but before it make backup of ./Sources/Load.php
Now open: ./Sources/Load.php
--- Code: (Find) --- // Are we also loading the members custom fields into context?
if ($display_custom_fields && !empty($modSettings['displayFields']))
--- End code ---
--- Code: (Replace with) --- // Are we also loading the members custom fields into context?
if ($display_custom_fields && !empty($modSettings['displayFields']) && !$user_info['is_guest'])
--- End code ---
Doctor Deejay:
Nice trick :) Thanks for sharing ;D
K@:
As this is a tip/trick, I've moved it to the... er... Tips and tricks board.
Logical, huh? ;)
phantomm:
Thanks K@ ;)
K@:
No sweat! :)
Navigation
[0] Message Index
Go to full version