• Welcome to WooUSEFUL by PHPVIBE . Please log in.

[ 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

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.
If this helped, consider buying me a coffee.
20 years coding, tweaking, building in PHP. Still creating!
  •  

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

If this helped, consider buying me a coffee.
20 years coding, tweaking, building in PHP. Still creating!
  •  

Similar topics (7)