Configuração Jevents

Moderator: ariadneduvessa

Locked
Zoni
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Feb 04, 2008 7:31 pm

Configuração Jevents

Post by Zoni » Fri Feb 22, 2008 12:43 am

Olá pessoal,

Alguém sabe como posso configurar a "impressão" dos próximos eventos "lastest events" no módulo Jevents?
Estou tentando alterar o campo Custom Format String sem sucesso. Pretendo deixar o título do evento em uma linha e a data e outros detalhes na seguinte e separar um evento de outro com uma barra, mas até agora não consegui descobrir como fazer isso.

Muito grato caso alguém posso ajudar.
Abraços.

ticos
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 117
Joined: Thu Jun 28, 2007 6:31 pm
Contact:

Re: Configuração Jevents

Post by ticos » Sun Mar 23, 2008 9:12 pm

to com um problema parecido..
queria que o modulo "lastest events" apresenta-se o horario dos eventos em estilo 24h (ex: 22:00) porem ele nao fica , ou seja, o que é 22:00 ele apresenta 10:00.
no componente esta configurado em 24 e aparece certo , só no "lastest events"que aparece errado.

tem uma linha de comando no modulo que acho que e sopbre isso, só que "boiei"...:)

${eventDate}[!a: - ${endDate(%I:%M%p)}]<br />${title}

alguem pode me ajudar....

valeu.

User avatar
samp
Joomla! Guru
Joomla! Guru
Posts: 504
Joined: Sat Sep 03, 2005 5:58 am
Location: Sao Paulo, Brazil

Re: Configuração Jevents

Post by samp » Sun Mar 23, 2008 10:40 pm

ticos wrote:to com um problema parecido..

tem uma linha de comando no modulo que acho que e sopbre isso, só que "boiei"...:)

${eventDate}[!a: - ${endDate(%I:%M%p)}]<br />${title}
Muda o %I para %H e tira o %p
Quem não deve.... não teme! ;)

ticos
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 117
Joined: Thu Jun 28, 2007 6:31 pm
Contact:

Re: Configuração Jevents

Post by ticos » Sun Mar 23, 2008 11:54 pm

samp wrote:
ticos wrote:to com um problema parecido..

tem uma linha de comando no modulo que acho que e sopbre isso, só que "boiei"...:)

${eventDate}[!a: - ${endDate(%I:%M%p)}]<br />${title}
Muda o %I para %H e tira o %p
quase deu certo velho....
coloquei do jeito que vc falou..ai a hora final fivou certa, porem a hora de inicio permaneceu errada:
olha como ficou no modulo...

Dom Mar 23 @09:30 - 22:00
[6.CTE] Vs [Team]69!

ai mudei para
${eventDate(%H:%M)}[!a: - ${endDate(%H:%M)}]<br />${title}
ficou assim...

21:30 - 22:00
[6.CTE] Vs [Team]69!

queria que aparece o dia como antes....apesar de um saci :) vi que o problema esta na conf do "eventdate"
ta ai em anexo o css pra alguem dar uma olhada e ver o que mudar...
You do not have the required permissions to view the files attached to this post.

User avatar
samp
Joomla! Guru
Joomla! Guru
Posts: 504
Joined: Sat Sep 03, 2005 5:58 am
Location: Sao Paulo, Brazil

Re: Configuração Jevents

Post by samp » Mon Mar 24, 2008 12:31 am

é só adaptar ao sttftime do PHP conforme a necessidade

veja a lista
http://www.php.net/strftime
Quem não deve.... não teme! ;)

User avatar
moving
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Tue Dec 01, 2009 3:04 pm
Location: São Paulo - Brasil
Contact:

Re: Configuração Jevents

Post by moving » Tue Dec 15, 2009 5:23 pm

Tive o mesmo problema e solucionei.

As configurações do Modulo devem ser realizadas na administração do componente. Administrator> Componentes> JEvents> JEvents Config> na abar "Últimos Eventos".

No próprio Componente existe a explicação de como arrumar mas esta em inglês.
Tela JEventesCinfig.gif
Campos de Eventos Disponíveis
= string Certain event fields can be specified as ${event_field} in the string. If desired, the user can even specify overriding inline styles in the event format using <div> or <span> to delineate. Or the <div>'s or <span>'s can actually reference new css style classes which you can create in the template's css file.

= [cond: string ] allows a customized string as described above but only is displayed if the condition "cond" is true.

Available conditions:

a event is a all-day-event
!a event is not a all-day-event

Event fields available: ${startDate}, ${eventDate}, ${endDate}, ${title}, ${category}, ${contact}, ${content}, ${addressInfo}, ${extraInfo}, ${createdByAlias}, ${createdByUserName}, ${createdByUserEmail}, ${createdByUserEmailLink}, ${eventDetailLink}, ${color}

The ${startDate}, ${eventDate} and ${endDate} are special event fields which can support further customization of the date and time display by allowing a user to specify exactly how to display the date with identical format control codes to the PHP 'date()' or 'strftime() functions. If a '%' sign is detected in the format string, strftime() is assumed to be used (supports locale international dates).

An example of a specified date and time format used: ${startDate('D, M jS, Y, @g:ia')}
This will display the date and time as: 'Fri, Oct 23rd, 2003, @7:30pm'

Note that the default customFormatStr is '${eventDate}[!a: - ${endDate(%I:%M%p)}]<br />${title}' which will display the date of an event, or the particular date of an event instance in the case of a repeating event type. The time is not displayed in case of an all-day-event. Not specifying any date format specifiers within parenthesis of the startDate, eventDate or endDate fields will result in a default format as shown above for language setting "english" and '%a %b %d, %Y @%I:%M%p' for all other languages.

date()
php date() function format specifiers:
a Lowercase Ante meridiem and Post meridiem am or pm
A Uppercase Ante meridiem and Post meridiem AM or PM
B Swatch Internet time 000 through 999
d Day of the month, 2 digits with leading zeros 01 to 31
D A textual representation of a day, three letters Mon through Sun
F A full textual representation of a month, such as January or March January through December
g 12-hour format of an hour without leading zeros 1 through 12
G 24-hour format of an hour without leading zeros 0 through 23
h 12-hour format of an hour with leading zeros 01 through 12
H 24-hour format of an hour with leading zeros 00 through 23
i Minutes with leading zeros 00 to 59
I (capital i) Whether or not the date is in daylights savings time 1 if Daylight Savings Time, 0 otherwise.
j Day of the month without leading zeros 1 to 31
l (lowercase 'L') A full textual representation of the day of the week Sunday through Saturday
L Whether it's a leap year 1 if it is a leap year, 0 otherwise.
m Numeric representation of a month, with leading zeros 01 through 12
M A short textual representation of a month, three letters Jan through Dec
n Numeric representation of a month, without leading zeros 1 through 12
O Difference to Greenwich time (GMT) in hours Example: +0200
r RFC 822 formatted date Example: Thu, 21 Dec 2000 16:01:07 +0200
s Seconds, with leading zeros 00 through 59
S English ordinal suffix for the day of the month, 2 characters st, nd, rd or th. Works well with j
t Number of days in the given month 28 through 31
T Timezone setting of this machine Examples: EST, MDT ...
U Seconds since the Unix Epoch (January 1 1970 00:00:00 GMT)
w Numeric representation of the day of the week 0 (for Sunday) through 6 (for Saturday)
W ISO-8601 week number of year, weeks starting on Monday (added in PHP 4.1.0) Example: 42 (the 42nd week in the year)
Y A full numeric representation of a year, 4 digits Examples: 1999 or 2003
y A two digit representation of a year Examples: 99 or 03
z The day of the year 0 through 366
Z Timezone offset in seconds. The offset for timezones west of UTC is always negative, and for those east of UTC is always positive. -43200 through 43200


strftime()

php strftime() function format specifiers(formats according your system locale setting):
%a abbreviated weekday name according to the current locale
%A full weekday name according to the current locale
%b abbreviated month name according to the current locale
%B full month name according to the current locale
%c preferred date and time representation for the current locale
%C century number (the year divided by 100 and truncated to an integer, range 00 to 99)
%d day of the month as a decimal number (range 01 to 31)
%D same as %m/%d/%y
%e day of the month as a decimal number, a single digit is preceded by a space (range ' 1' to '31')
%g like %G, but without the century.
%G The 4-digit year corresponding to the ISO week number (see %V). This has the same format and value as %Y, except that if the ISO week number belongs to the previous or next year, that year is used instead.
%h same as %b
%H hour as a decimal number using a 24-hour clock (range 00 to 23)
%I hour as a decimal number using a 12-hour clock (range 01 to 12)
%j day of the year as a decimal number (range 001 to 366)
%m month as a decimal number (range 01 to 12)
%M minute as a decimal number
%n newline character
%p either 'am' or 'pm' according to the given time value, or the corresponding strings for the current locale
%r time in a.m. and p.m. notation
%R time in 24 hour notation
%S second as a decimal number
%t tab character
%T current time, equal to %H:%M:%S
%u weekday as a decimal number [1,7], with 1 representing Monday
%U week number of the current year as a decimal number, starting with the first Sunday as the first day of the first week
%V The ISO 8601:1988 week number of the current year as a decimal number, range 01 to 53, where week 1 is the first week that has at least 4 days in the current year, and with Monday as the first day of the week. (Use %G or %g for the year component that corresponds to the week number for the specified timestamp.)
%W week number of the current year as a decimal number, starting with the first Monday as the first day of the first week
%w day of the week as a decimal, Sunday being 0
%x preferred date representation for the current locale without the time
%X preferred time representation for the current locale without the date
%y year as a decimal number without a century (range 00 to 99)
%Y year as a decimal number including the century
%Z time zone or name or abbreviation
%% a literal '%' character
You do not have the required permissions to view the files attached to this post.
WebMoving - Consultoria e Soluções para Internet
http://www.webmoving.com.br

FagnerCA
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Jan 10, 2012 6:15 pm

Re: Configuração Jevents

Post by FagnerCA » Fri Oct 17, 2014 8:23 pm

Olá galera.

Estou com um problema no JEvents também e gostaria de saber se vocês poderiam me ajudar!

Meu módulo Lastest Events não está apresentando os eventos de um dia só!

Ele só apresenta se tiver mais de um dia de evento!

Já mexi em tudo o que eu sabia e nada deu certo!

Alguém saberia me ajudar?

Lucas Fank
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Sep 01, 2017 6:05 pm

Re: Configuração Jevents

Post by Lucas Fank » Fri Sep 01, 2017 6:16 pm

Para resolver isso você não precisa mexer em "Configurações" > "Module Config", basta você trocar na aba "Configurações" > "Componente" na opção "Formato de Hora" para "Continental - German" ;D
hora.png
You do not have the required permissions to view the files attached to this post.


Locked

Return to “Componentes, módulos e mambots”