Skip Navigation

[Gelöst] Cred with quantity limitation

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

Problem:
Let a user submit a CRED form just once and not more.
How can I do this?

Solution:
https://toolset.com/forums/topic/limit-submissions-per-session-per-user-per-time-period/#post-424560

This support ticket is created vor 7 Jahren, 7 Monaten. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Pat vor 7 Jahren, 7 Monaten.

Assistiert von: Beda.

Author
Artikel
#505822

Pat

Hello,

I'm working on a Cred used by users to create new posts.
But, we want to limit the total number of posts they can create.
So, the idea is to place a conditional output around the Cred shortcode and look at if the total posts of the current user is less than the limit.
I have first tried to place the [wpv-items-count] shortcode in the conditional, but this is not working.

So, I created a views that list all posts of a specific user ([wpv-view name="nb-dobjets-crees-par-lutilisateur"]) and have placed this shortcode inside the conditional :

[wpv-conditional if="( '[wpv-view name="nb-dobjets-crees-par-lutilisateur"]' gt '3' )"]

But this is not working neither and cases a long delay of treatment for the page display.

Can you help to define the right info to place inside the conditional?
Regards
Pat

#505873

It's not possible with CRED.

I think also here, it's time to add this feature, and will submit this Thread here to the responsible Supporter for CRED Feature Requests after I'll show you how you can do that right now.

Actually, I have provided this solution a few times in this forum, it is quite simple, and elaborated here:
https://toolset.com/forums/topic/limit-submissions-per-session-per-user-per-time-period/#post-424560

Please let me know if you got more questions in this topic.

#507623

Pat

Hi Beda,

Many thanks for youranswer.
That's perfect for me.
Regards
Pat