JEvents 3.1 (Free Access)

Modul Color Days  Topic is solved

Forum for JEvents 3.1 for Joomla 3.x and 2.5.
Forum rules
When requesting support please follow these steps:

1. Update all JEvents add on's first, via the Joomla! Updater
2. Copy and Paste the JEvents Support Information from the JEvents Control Panel.
3. If you get a 500 error OR white page, enable Maximum Error Reporting in Joomla! Global Config and visit the page again, this should give you a more detailed error and help us provide a prompt response.

Postby druckgott » Fri Apr 12, 2013 3:26 pm

Hallo, I have installed the Module Latest Events.

My Condition is:
${title}
${startDate(d.m.Y)} | [!a:${startDate(H:i)}] [!e:-] [m:${endDate(d.m.Y)} |] [!a:${endDate(H:i)}]
<b>(${countdown(in %d Tagen)})</b>

What I want to have is a coloring of the countdown so if the Countdown is only 1 Day the Color of the Countdown (<b>(${countdown(in %d Tagen)})</b>) should be for example red. Is this posible?

thx
druckgott
druckgott
 
Posts: 22
Joined: Wed Sep 09, 2009 6:38 pm

Postby Tonyp » Fri Apr 12, 2013 8:33 pm

Hello druckgott,

I believe the only way to achieve this would be with a template override.

Geraint will be able to confirm.

Regards
Tony
---------------------------------------
Feel free to PM me if you would like Custom Installs or Joomla! related work for a competitive quote.

User avatar
Tonyp
Team Staff
 
Posts: 23834
Joined: Tue Oct 12, 2010 9:12 pm
Location: Isle of Man

Postby druckgott » Fri Apr 12, 2013 8:51 pm

Ok is there a Information how to do this?
druckgott
 
Posts: 22
Joined: Wed Sep 09, 2009 6:38 pm

Postby Geraint » Sun Apr 14, 2013 8:31 am

Use

<span class="${countdown(%d)}">${countdown(in %d Tagen)}</span>
and set the style for class1 to have red text
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
User avatar
Geraint
 
Posts: 42850
Joined: Fri Feb 15, 2008 6:14 pm

Postby druckgott » Sun Apr 14, 2013 5:31 pm

ok thx I will use this.
druckgott
 
Posts: 22
Joined: Wed Sep 09, 2009 6:38 pm

Postby druckgott » Mon Apr 15, 2013 8:09 am

Ok I have tewsted it, but I want to have that if its today its green, 1 Day bevor yellow and 2 days bevor red.

This is not posible like this or, because I can not do any if

and the rest should be normal with no color
druckgott
 
Posts: 22
Joined: Wed Sep 09, 2009 6:38 pm

Postby Geraint » Mon Apr 15, 2013 10:43 am

I realised there was a typo in my code
Code: Select all
<span class="countdown${countdown(%d)}">${countdown(in %d Tagen)}</span>

Then
Code: Select all
.countdown1 {color:red;}

etc.
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
User avatar
Geraint
 
Posts: 42850
Joined: Fri Feb 15, 2008 6:14 pm

Postby druckgott » Mon Apr 15, 2013 5:50 pm

ok thx, but how can I get all countowns which are highter then 3 in one color?
druckgott
 
Posts: 22
Joined: Wed Sep 09, 2009 6:38 pm

Postby carcam » Mon Apr 15, 2013 9:31 pm

I think the only way to accomplish this is with a little dirty trick in CSS.

Use this code for the custom string:

Code: Select all
<span class="countdown${countdown(%d)} highercolor">${countdown(in %d Tagen)}</span>
[code]

Then use this for the CSS:
[code]
.highercolor{color:white;}
.countdown1 {color:red!important;}


I have not tested this but it should work even without the important statement.
¿Sabías que tenemos soporte en español para los miembros del Club de JEvents? ¡ÚNETE AHORA!
User avatar
carcam
Team Staff
 
Posts: 7114
Joined: Wed Aug 06, 2008 7:50 pm
Location: Almería

Postby druckgott » Tue Apr 16, 2013 6:54 am

thx works perfekt
druckgott
 
Posts: 22
Joined: Wed Sep 09, 2009 6:38 pm


Return to JEvents 3.1 (Free Access)

cron
  • Who is online
  • View new posts
  • View unanswered posts
  • In total there are 0 users online :: 0 registered and 0 hidden (based on users active over the past 5 minutes)
  • Most users ever online was 94 on Tue Sep 01, 2009 12:33 am
  • Users browsing this forum: No registered users