
Originally Posted by
dharma
I am trying to get the default wishlist to default to "private" instead of public, is there a code tweak to do this?
file "./includes/classes/un_wishlist.class.php":
find (line 655):
Code:
function createWishlist($name='', $comment='', $default_status=0, $public_status=1)
change to:
Code:
function createWishlist($name='', $comment='', $default_status=0, $public_status=0)

Originally Posted by
dharma
and a way to block/not display the name of the city that a customer lives in, and name also? when their wishlist is public?
file "./includes/templates/template_default/un_wishlist_find/tpl_un_wishlist_find_form.php":
modify lines 53 through 64 as desired.
eg, to suppress display of user's location, delete:
Code:
<?php $location = un_get_citystate($records->fields['entry_city'], $records->fields['entry_state'], 'Unknown'); ?>
<?php if ( !un_is_empty($location) ) { ?>
<li>Customer location: <?php echo $location; ?></li>
<?php } ?>