Navigation überspringen

[Gelöst] User gallery setting

This support ticket is created vor 5 Jahren. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Dieses Thema enthält 4 Antworten, hat 3 Stimmen.

Zuletzt aktualisiert von Easyweb Consulting vor 5 Jahren.

Assistiert von: Minesh.

Author
Artikel
#1451259

Hello
I would like that this ticket is assigned to Minesh becouse he solve previus related ticket
---------------------
I discovered just now is that in the personal profile of each member are visible the photo of all members.
The url of this page is "versteckter Link" and uid parameter is not present in the url
How can hide the photo of other member in my album fotografico tab and see only mine?
keep in mind that this tab is the same where there is the view for user photos
Can I set some conditional logic for view?
Thank you so much
Roberto

#1452771

Minesh will be with you on Monday.

#1455403

Minesh
Supporter

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

That is strange. As you acknowledged it used to work. Let's me see what's causing the issue.

Can you please send me access details so I can check what's going wrong.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#1455789

Minesh
Supporter

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

1. at his link versteckter Link (user profile) user must see only his own photos (my account section)
==>
Ok.

2. at this link versteckter Link (for example) all users must see the photo fo user Anastasia-001
==>
Ok.

I've added the following code to "Custom Code" section offered by Toolset;
=> versteckter Link

add_filter( 'wpv_filter_user_query', 'func_filter_user_view_834', 100, 3 );
function func_filter_user_view_834( $query_args, $view_settings, $view_id ) {
  global $current_user;
  
    if ($view_id == 834 ) {
      	 
        if(isset($_GET['uid']) and $_GET['uid']!=''){
        }else{
          $query_args['include'] = $current_user->ID;
        }
    }
    return $query_args;
}

Can you please check now and confirm it works as expected now.

#1455919

Perfect Minesh!!!! that's perfect!!
thank you very much for your support fast and realy focused on my issue!
Roberto