Skip Navigation

[Resolved] Add user's camps to "My Account" page?

This support ticket is created 4 years, 4 months ago. 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.

Our next available supporter will start replying to tickets in about 1.76 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 26 replies, has 2 voices.

Last updated by Christian Cox 4 years, 3 months ago.

Assisted by: Christian Cox.

Author
Posts
#1719855

Yes thank you, sorry for the delay. I'm working on this now and I'll update you shortly.

#1719861

Okay please take a look now. I reorganized the conditional structure a little bit. Now "MY CAMPS" is enclosed in its own conditional, outside of the View. For some reason the View was not appearing correctly inside the conditional, so instead I created a conditional inside the loop and placed the loop contents inside that conditional. This seems to solve the problem with the View not appearing correctly. Please note that I also modified the "No items found" text a bit. I added some conditional logic to prevent this text from appearing for non-author Users:

[wpv-conditional if="(  '[wpv-current-user info="role"]' eq 'administrator'  )" debug="true"][wpml-string context="wpv-views"]No items found[/wpml-string][/wpv-conditional]

You can find this in the Min Konto page editor. Use the Block Navigation menu to select "View Loop" you can see the code added in the Loop Template configurations panel. No changes are required here, unless you want to customize the text. Be sure to keep the conditional in place, otherwise the "No items found" text will display for all non-author Users.

Let me know if you see any problems now.

#1721095
Skærmbillede 2020-07-28 kl. 21.52.28.png

Hi Christian,

Actually the camps was there before, I thought you already edited it - but now they are gone though. See the screenshots - it's just a blank page and pagination on the bottom. Can you help?

#1721829
Screen Shot 2020-07-29 at 10.31.09 AM.png

Which User account are you testing with? I'm testing with the author account you provided, and I can see My Camps - Screenshot attached.

My understanding was My Camps should only appear for "author" role Users, so I set up the conditional to hide My Camps for all other Users. If you are testing with a different author account, please provide the login information for me to test.

#1722027
Skærmbillede 2020-07-29 kl. 19.26.01.png

Hi Christian,

Oh sorry I was testing with the Admin user, you can just try the admin you already have 🙂

I noticed that when you are not logged in and you go to the "login page", then you also see the "no items found" on the bottom - can you hide that so you don't see it until you login?

See screenshot

#1722175

Sure, I can hide that. So to clarify, now the My Camps section and View will only be displayed if the user has the role "author" or the role "administrator" only. I think that should be working now.

#1724945

Hi Christian,

Thank you so much for all your help!

#1724947

My issue is resolved now. Thank you!

#1724963

Hi again Christian,
Sorry for opening the ticket again but I wanted to add a new one. But the link you guys have that is called "I still need a new ticket" isn't working for me.

I am creating a search view function and I need a calendar where customers can pick the start date and end date. But when I add the calendar it looks very weird in the frontend. See screenshot. Can you help?

Also, do you by any chance have a video guide on how to style the search form? Right now it is not looking very good and I want more search boxes on the same line, and to add headings to the search boxes where I can pick the font type etc.

Thanks.

New threads created by Christian Cox and linked to this one are listed below:

https://toolset.com/forums/topic/start-and-end-date-in-custom-search-filters/

#1724965

Hi again christian,

And also I would like to move the search results further down on the page too. Can I do that?

#1724967
Skærmbillede 2020-08-02 kl. 13.45.52.png

Sorry - here is the screenshot

#1725109

I have split this new question into a separate ticket, and added the screenshot with your comments. Let's follow up in the new ticket. Thank for helping us keep the forum organized!