[ Video Sharing CMS v4 ] Daily upload limit per user /How to limit daily uploads in PHPVibe

Started by ASDF,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Marius P.

Sorry,
I've accidentally inverted it (to much work in parallel).

Here you go:

if(($uservids->nr > 4) && !is_moderator()){



should be


if(($uservids->nr < 6) || is_moderator()){



This for 5 limit (else add limit + 1 instead of 6).
Moderators and Admins will not be restricted to this limit.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

ASDFTopic starter

 :) :) :)....but bro, can't we restrict moderator only, and not the admin. :p :( :(.
  •  

ASDFTopic starter

Hey Mario....for mods and admins, it's showing the same thing, you have reached the daily upload limits, and for member only, it is showing a warning kind of message, and gives a error.
The image uploading form is not displayable in bot the situations.
  •  

ASDFTopic starter

And now i can die in peace.....long live Mario. :) :) ^-^ :P.
The code is working....Thank you and sorry bro. :p.
But bro, do let me know if i can limit my moderators too.


Hail Mario... ;D :D :P.
Your sincerely (Brain eater)
Zombie/ASDF.
  •  

Marius P.

Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Similar topics (7)