Main menu

Forum


[SOLVED] How do I remove image from the mouseover preview of the event?

  • lucasm
  • Autore della discussione
  • New Member
  • New Member
Di più
10 Anni 10 Mesi fa #4015 da lucasm
Hello!

ICagenda has been working wonderfully for my specific need of an administrative calendar for our intranet. Due to user feedback, I'd like to remove the image display in the event preview when you mouseover a event in the calendar, as we are not going to use it and it keeps displaying a box with 'no image' written inside of it. Could you guys help me with that?

Thank you for taking your time addressing this matter.

Si prega Accedi o Crea un account a partecipare alla conversazione.

  • Lyr!C
  • Avatar di Lyr!C
  • Administrator
  • Administrator
  • Lead Developer
Di più
10 Anni 10 Mesi fa #4026 da Lyr!C
I've moved your topic in Theme pack forum.

So, watch the tutorial video, on how to create a theme pack.

And edit the file YOUR_THEME_NAME_day.php

Remove this lines :

if ($e['image']) {
					echo '<a href="'.$e['url'].'"><div class="linkTo"><span style="background: '.$e['cat_color'].';" class="img"><img src="'.$e['image'].'"/></span>';
				}
				else {
					echo '<a href="'.$e['url'].'"><div class="linkTo"><span style="background: '.$e['cat_color'].';" class="img"><div class="noimg '.$bgcolor.'">'.$e['no_image'].'</div></span>';
				}

And it should do the job ;-)

Latest version : iCagenda 3.9.3
We recommend every user to keep iCagenda updated.
Don't forget to have your Joomla!™ up-to-date!

Do you like iCagenda?
I would appreciate if you could take 5 minutes to post a review on JED (Joomla Extensions Directory) .

File allegato:

Si prega Accedi o Crea un account a partecipare alla conversazione.

  • lucasm
  • Autore della discussione
  • New Member
  • New Member
Di più
10 Anni 10 Mesi fa - 10 Anni 10 Mesi fa #4040 da lucasm
Hello!

Thank you for the quick response. Although removing this block of code kinda broke the calendar format, I've managed to make it work by simply removing the <span> from the no-image.

So the block of code:
if ($e['image']) {
					echo '<a href="'.$e['url'].'"><div class="linkTo"><span style="background: '.$e['cat_color'].';" class="img"><img src="'.$e['image'].'"/></span>';
				}
				else {
					echo '<a href="'.$e['url'].'"><div class="linkTo"><span style="background: '.$e['cat_color'].';" class="img"><div class="noimg '.$bgcolor.'">'.$e['no_image'].'</div></span>';
				}

was changed to:
if ($e['image']) {
                                        echo '<a href="'.$e['url'].'"><div class="linkTo"><span style="background: '.$e['cat_color'].';" class="img"><img src="'.$e['image'].'"/></span>';
                                }
                                else {
                                        echo '<a href="'.$e['url'].'"><div class="linkTo"><div class="noimg '.$bgcolor.'"></div>';
}

Thank you again, and keep up the good work!
Ultima Modifica 10 Anni 10 Mesi fa da lucasm.
Ringraziano per il messaggio: Lyr!C

Si prega Accedi o Crea un account a partecipare alla conversazione.

  • Lyr!C
  • Avatar di Lyr!C
  • Administrator
  • Administrator
  • Lead Developer
Di più
10 Anni 10 Mesi fa #4041 da Lyr!C
Thanks for your test, and solution, i didn't have time to test it before ;-)

I will think of an option (and other) when i will create a new module for calendar (maybe this summer) ;-)

Latest version : iCagenda 3.9.3
We recommend every user to keep iCagenda updated.
Don't forget to have your Joomla!™ up-to-date!

Do you like iCagenda?
I would appreciate if you could take 5 minutes to post a review on JED (Joomla Extensions Directory) .

File allegato:

Si prega Accedi o Crea un account a partecipare alla conversazione.

Tempo creazione pagina: 0.195 secondi

Follow Us

Create your Joomla templates with Template Creator CK

acymailing logo new