Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

preview images small

Asked Modified Viewed 1,162 times
C
Catzenjaeger
C
  • Senior Member, joined since
  • Contributed 408 posts on the community forums.
  • Started 137 threads in the forums
  • Started this discussions
asked
Senior Member

hello,

since some last version 9 updates all my preview images very smal and i dont know why.


// Display avaible Images
    if ($formEdit && $imageCounter) {
        echo "<div class='row'>\n";
      
         // Get all Images
         $avaibleImages = figures_getImagePath("figures", "thumb", $data['figure_id'], "all");
         
         // Check if there avaible Images
         if (is_array($avaibleImages) && count($avaibleImages)) {
            foreach ($avaibleImages AS $avaibleImage) {
               echo "<div class='col-xs-12 col-sm-2'>\n";
                  echo form_checkbox("image_toppic", "Set as Cover<br /><img src='".$avaibleImage['image']."' alt='".$avaibleImage['id']."' style='max-width: 150px;' />", ($avaibleImage['toppic'] ? $avaibleImage['id'] : 0), ["type" => "radio", "input_id" => "image_titlepic_".$avaibleImage['id'], "value" => $avaibleImage['id'], "reverse_label" => true]);
                  echo form_checkbox("delete_image[]", "Delete Image", "", [
                     "value" => $avaibleImage['id'],
                     "input_id" => "delete-image-".$avaibleImage['id'],
                     "reverse_label" => true
                  ]);
               echo "</div>\n";
            }
         }
        echo "</div>\n";
    }
Catzenjaeger attached the following file:
sadfwaad.jpg [No information available / 106 Downloads]
0 replies

1 post

C
Catzenjaeger
C
  • Senior Member, joined since
  • Contributed 408 posts on the community forums.
  • Started 137 threads in the forums
  • Started this discussions
answered
Senior Member

here the source code

<div class="row">
<div class="col-xs-12 col-sm-2">
<div id="image_titlepic_2743-field" class=" form-group clearfix ">
<label class="control-label " data-checked="0" for="image_titlepic_2743">

<input id="image_titlepic_2743" style="margin: 0;vertical-align: middle" name="image_toppic" value="2743" type="radio">
Set as Cover<br><img src="../../infusions/figurelib/images/figures/thumbs/diamond_select_alien_covenant_vinyl_bust_bank_01_t1.jpg" alt="2743" style="max-width: 150px;"> </label>
</div>
<div id="delete-image-2743-field" class=" form-group clearfix ">
<label class="control-label " data-checked="0" for="delete-image-2743">

<input id="delete-image-2743" style="margin: 0;vertical-align: middle" name="delete_image[]" value="2743" type="checkbox">
Delete Image </label>
</div>
</div>
<div class="col-xs-12 col-sm-2">
<div id="image_titlepic_2744-field" class=" form-group clearfix ">
<label class="control-label " data-checked="0" for="image_titlepic_2744">

<input id="image_titlepic_2744" style="margin: 0;vertical-align: middle" name="image_toppic" value="2744" type="radio">
Set as Cover<br><img src="../../infusions/figurelib/images/figures/thumbs/diamond_select_alien_covenant_vinyl_bust_bank_02_t1.jpg" alt="2744" style="max-width: 150px;"> </label>
</div>
<div id="delete-image-2744-field" class=" form-group clearfix ">
<label class="control-label " data-checked="0" for="delete-image-2744">

<input id="delete-image-2744" style="margin: 0;vertical-align: middle" name="delete_image[]" value="2744" type="checkbox">
Delete Image </label>
</div>
</div>
<div class="col-xs-12 col-sm-2">
<div id="image_titlepic_2745-field" class=" form-group clearfix ">
<label class="control-label " data-checked="0" for="image_titlepic_2745">

<input id="image_titlepic_2745" style="margin: 0;vertical-align: middle" name="image_toppic" value="2745" type="radio">
Set as Cover<br><img src="../../infusions/figurelib/images/figures/thumbs/diamond_select_alien_covenant_vinyl_bust_bank_03_t1.jpg" alt="2745" style="max-width: 150px;"> </label>
</div>
<div id="delete-image-2745-field" class=" form-group clearfix ">
<label class="control-label " data-checked="0" for="delete-image-2745">

<input id="delete-image-2745" style="margin: 0;vertical-align: middle" name="delete_image[]" value="2745" type="checkbox">
Delete Image </label>
</div>
</div>
</div>
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 1 post
  • Votes 0 votes
  • Topic users 1 member

1 participant

C
C
  • Senior Member, joined since
  • Contributed 408 posts on the community forums.
  • Started 137 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet