Skip to Content Skip to Menu

[#6178] CB Gallery V2 Custom Limit

  • smFruen
  • smFruen
  • OFFLINE
  • Posts: 116
  • Thanks: 5
  • Karma: 3
8 years 2 months ago - 8 years 2 months ago #285378 by smFruen
[#6178] CB Gallery V2 Custom Limit was created by smFruen
Hey the new CB Gallery V2, is very nice

but i have one thing

when I set a Custom Limit of (photo) for my registred user, they can not upload
when I set a no Limit of (photo) for my registred user then they can.
but not if i set at Custom Limit.

then they can not upload anything. but I, as a super user can

what am I doing wrong

?
Attachments:
Last edit: 8 years 2 months ago by krileon. Reason: Added [#6178] tag to subject

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
8 years 2 months ago #285428 by krileon
Replied by krileon on topic CB Gallery V2 Custom Limit
Looks like a bug. I've the IF condition flipped. Fixing for next build (out later today or early tomorrow). Below will quickfix it.

IN: components/com_comprofiler/plugin/libraries/CB/Plugin/Gallery/CBGallery.php
ON: Line 341
FROM:
Code:
if ( $createLimit && ( $createLimit >= $gallery->items( true ) ) ) {
TO:
Code:
if ( $createLimit && ( $gallery->items( true ) >= $createLimit ) ) {

Same issue affects album limits too.

forge.joomlapolis.com/issues/6178


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • smFruen
  • smFruen
  • OFFLINE
  • Posts: 116
  • Thanks: 5
  • Karma: 3
8 years 2 months ago #285452 by smFruen
Replied by smFruen on topic CB Gallery V2 Custom Limit
it works now, but when a user meet the limit

the user get this ( Invalid file. Please upload only zip, rar, doc, pdf, txt, xls, mp4, ogv, ogg, webm, m4v, mp3, oga, weba, wav, m4a! )

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
8 years 2 months ago - 8 years 2 months ago #285473 by krileon
Replied by krileon on topic CB Gallery V2 Custom Limit
That's because the upload/link functionality is multi-media. It simply ignores that media type. Will review adding better error output when attempting to upload or link a limited media type.

forge.joomlapolis.com/issues/6184


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 8 years 2 months ago by krileon.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum