artur2729
Forum Replies Created
-
Forum: Plugins
In reply to: [Meet My Team] Pop up misallignedI found one more way to fix allignment problem on other topic https://www.ads-software.com/support/topic/modal-horizontal-alignment?replies=3, but there is also some issues that i didn’t solve yet (hope will work for you) . Add to \public\assets\js\public.min.js instead of
n=e(window).width();
->n=e(".mmt_container").width();
. That should fix horizontal allignment problem. If there is a need you can add to \public\assets\css\public.min.css file this code:.mmt_container .reveal-modal{ margin-top:-10%; /*for example*/ }
It should change your vertical allignment.
PS. don’t forget to remove previous code that i suggested youForum: Plugins
In reply to: [WP Excel CMS] Format only first cell in each line?Sorry, i did mistake. I want to insert those images at the second cell from the beginning instead of number that i want to compare with other number in the first cell.
5 8 ….So it would first of all compare them. Then if 8 is bigger than 5(true) -> insert specific image to that case in second cell where is right now number 8. If for example there would be 19 and 11, instead of 11 would appear different image.
As i understand i need not only read those numbers, but convert them to integer like as you said.
I already tried 2 more methods, but they start reading only from letters.1)<?php if($end==0){$int = filter_var($cell, FILTER_SANITIZE_NUMBER_INT); $int = intval("$int"); print("$int"); $end=1;} ?> <?php if($end==1){$int2 = filter_var($cell, FILTER_SANITIZE_NUMBER_INT); $int2 = intval("$int2"); print("$int2"); $end=2;} ?> <?php if(($end==1) && ($int < $int2)){... ?> 2)<?php if($end==0){$int = (int)$cell[0];} if($end==1){$int2 = (int)$cell[0];} if($end==1 && ($int < $int2)){echo ' <img src="https://www.clker.com/cliparts/b/l/n/Q/E/5/check-mark-13x13.svg" alt="" />'; $end=2; }
It’s just a thought but maybe i am failing at inserting those images.
Forum: Plugins
In reply to: [Meet My Team] Pop up misallignedI don’t know if that will help you as you wish, but i found some sort of a solution. It will fix your pop up window exactly on the screen. Insert this code into your \public\assets\css\public.min.css.
.mmt_container .reveal-modal{
position:fixed !important;
top: 15% !important;
}
Forum: Plugins
In reply to: [WP Excel CMS] Format only first cell in each line?I have 1 more question. What should i do now if i need to compare numbers in first and second cell, so if number in first cell is bigger than in second insert THAT.jpg picture, if they are equal insert THAT_2.jpg and if in second cell is bigger than in first insert THAT_3.jpg? Also in second cell can be not only number, but “-” or “N”. I thought that i needed to simply change if option with:
<?php if($end==0){$getchar = substr($cell,0,1);} ?>
<?php if($end==1){$getchar2 = substr($cell,0,1);} ?>
<?php if(($end==1) && ($getchar < $getchar2)){
echo "'<img src="https://www.clker.com/.../1.jpg" alt="" />'; $end=2; }
else if(($end==1) && ($getchar > $getchar2)){
echo "'<img src="https://www.clker.com/.../2.jpg" alt="" />'; $end=2; }
else if(($end==1) && ($getchar == $getchar2)){
echo "'<img src="https://www.clker.com/.../3.jpg" alt="" />'; $end=2; }
else {
echo $cell;} ?></td>
but is that right?
Forum: Plugins
In reply to: [WP Excel CMS] Format only first cell in each line?Thank you for your reply asle, but you forgot to insert some brackets. Except that everything works like a charm.
Forum: Plugins
In reply to: [WP Excel CMS] Format only first cell in each line?Maybe i am a bit late, but i have practically the same problem. The difference is that i need instead of first cell in each row where are simbols “N” insert a little picture. Good example of what i seek would be https://kinas.info/?boxoffice. Any suggestions?