[TIP/TRICK] Hiding Custom Profile Fields from guests in topic view

Started by Adrek, April 14, 2012, 03:06:04 AM

Previous topic - Next topic

Adrek

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) Select
// Are we also loading the members custom fields into context?
if ($display_custom_fields && !empty($modSettings['displayFields']))

Code (Replace with) Select
// Are we also loading the members custom fields into context?
if ($display_custom_fields && !empty($modSettings['displayFields']) && !$user_info['is_guest'])



Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

Robert.


kat

As this is a tip/trick, I've moved it to the... er... Tips and tricks board.

Logical, huh? ;)

Adrek

Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one


Advertisement: