Skip to Content Skip to Menu

[SOLVED] CB gallery v2 thumbnail proportions

  • smFruen
  • smFruen
  • OFFLINE
  • Posts: 116
  • Thanks: 5
  • Karma: 3
8 years 2 months ago #285769 by smFruen
Replied by smFruen on topic CB gallery v2 thumbnail proportions
can you please tell me what line ind the item_container.php
i have to change

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

  • krileon
  • krileon
  • OFFLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
8 years 2 months ago #285792 by krileon
Replied by krileon on topic CB gallery v2 thumbnail proportions
The thumbnail is output on line 119. The 3rd parameter of ->thumbnail tells it to output a background image. Simply change the usage of ->thumbnail to ->thumbnail( $gallery, $width ) leaving the 3rd parameter as default false. Then it'll no longer use background image usage you're seeing for thumbnails.


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 - 8 years 2 months ago #285828 by smFruen
Replied by smFruen on topic CB gallery v2 thumbnail proportions
this is

line 119


$embed = cbTooltip( null, '', null, array( '90%', '90%' ), null, $row->thumbnail( $gallery, $width, ( ( $row->width( true ) >= $width ) || ( $row->height( true ) >= $width ) || ( $row->mimeType() == 'video/x-youtube' ) ) ), 'javascript: void(0);', 'class="galleryItemEmbed" data-cbtooltip-modal="true" data-cbtooltip-open-solo="document" data-cbtooltip-classes="galleryModal" data-cbgallery-url="' . $displayPath . '" data-cbgallery-request="' . htmlspecialchars( json_encode( $data ) ) . '"' );


if i try then the line number gets reed

please if you can change the the above

can you please tell me how the line should look

line 119

??
Last edit: 8 years 2 months ago by smFruen.

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

  • krileon
  • krileon
  • OFFLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
8 years 2 months ago #285841 by krileon
Replied by krileon on topic CB gallery v2 thumbnail proportions
You only need to change the function usage of ->thumbnail.

Before:
Code:
$row->thumbnail( $gallery, $width, ( ( $row->width( true ) >= $width ) || ( $row->height( true ) >= $width ) || ( $row->mimeType() == 'video/x-youtube' ) ) )
After:
Code:
$row->thumbnail( $gallery, $width )


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 #285849 by smFruen
Replied by smFruen on topic CB gallery v2 thumbnail proportions
nice it works,
can i do the same on the activity wall

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

  • krileon
  • krileon
  • OFFLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
8 years 2 months ago #285852 by krileon
Replied by krileon on topic CB gallery v2 thumbnail proportions
Yes, you can apply the same to the activity template file and the folder_container template file.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum