Related Topics


[Video CMS v4]Daily upload limit per user /How to limit daily uploads in PHPVibe  (Read 2547 times) Print

1 2 3  All B


@Mario  September 26, 2014, 01:44:16 PM

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

Here you go:

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


should be


Code
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.

Logged
Hello!
If you wish to learn how to start coding on the PHPVibe Video CMS head to the blog.

Please use the search before opening a new topic!


ASDF  September 26, 2014, 01:48:20 PM

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

Logged


ASDF  September 26, 2014, 02:00:14 PM

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.

Logged


ASDF  September 26, 2014, 10:34:11 PM

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.

Logged


@Mario  September 27, 2014, 02:52:08 PM

If you change is_moderator() with is_admin() you limit them to :)

Logged
Hello!
If you wish to learn how to start coding on the PHPVibe Video CMS head to the blog.

Please use the search before opening a new topic!