Main menu

Forum


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

  • lucasm
  • Topic Author
  • New Member
  • New Member
More
11 years 2 days ago #4015 by 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.

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

  • Lyr!C
  • Lyr!C's Avatar
  • Administrator
  • Administrator
  • Lead Developer
More
11 years 1 day ago #4026 by 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 Attachment:

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

  • lucasm
  • Topic Author
  • New Member
  • New Member
More
11 years 12 hours ago - 11 years 12 hours ago #4040 by 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!
Last edit: 11 years 12 hours ago by lucasm.
The following user(s) said Thank You: Lyr!C

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

  • Lyr!C
  • Lyr!C's Avatar
  • Administrator
  • Administrator
  • Lead Developer
More
11 years 12 hours ago #4041 by 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 Attachment:

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

Time to create page: 0.110 seconds

Follow Us

Create your Joomla templates with Template Creator CK

acymailing logo new