- Messaggi: 11
- Ringraziamenti ricevuti 2
Si prega Accedi o Crea un account a partecipare alla conversazione.
Si prega Accedi o Crea un account a partecipare alla conversazione.
Si prega Accedi o Crea un account a partecipare alla conversazione.
Not today without a core edit...1st - Is there a way to remove the leading 0's from the time format ie.. 6:00 PM instead of the displayed 06:00 PM ?
No. i have developed a owner system to convert date format, using date format standards (iso standards) according to culture.2nd - Can date and time formats be overridden in the language files ? If so which Language Constant's do I look for ?
Si prega Accedi o Crea un account a partecipare alla conversazione.
if ($EVENT_CITY
&& strpos($END_VALUE, $EVENT_CITY) !== false)
{
// Remove new last value, if city is inside
$EVENT_STREET = substr( $EVENT_STREET, 0, strripos( $EVENT_STREET, ',' ) );
}
else
{
$END_VALUE = prev($ADDRESS_EX);
// Remove 2 new last values, if city is inside the previous one before new end value
if ($EVENT_CITY
&& strpos($END_VALUE, $EVENT_CITY) !== false)
{
$EVENT_STREET = substr( $EVENT_STREET, 0, strripos( $EVENT_STREET, ',' ) );
$EVENT_STREET = substr( $EVENT_STREET, 0, strripos( $EVENT_STREET, ',' ) );
}
}
$i = 0;
for ($i; $i < count($ADDRESS_EX); $i++)
{
if ($EVENT_CITY
&& strpos($EVENT_STREET, $EVENT_CITY) !== false)
{
// Remove new last value, if city is inside
$EVENT_STREET = substr( $EVENT_STREET, 0, strripos( $EVENT_STREET, ',' ) );
}
}
Si prega Accedi o Crea un account a partecipare alla conversazione.
Si prega Accedi o Crea un account a partecipare alla conversazione.
Si prega Accedi o Crea un account a partecipare alla conversazione.
if ($item->address)
{
// Create an array to separate all strings between comma in individual parts
$EVENT_STREET = $item->address;
$ADDRESS_EX = explode(',', $EVENT_STREET);
$country_removed = false;
$i = 0;
for ($i; $i < count($ADDRESS_EX); $i++)
{
// Remove the country from the full address
if ($EVENT_COUNTRY && ! $country_removed
&& strpos($EVENT_STREET, $EVENT_COUNTRY) !== false)
{
$country_removed = true;
// Remove country
$EVENT_STREET = substr( $EVENT_STREET, 0, strripos( $EVENT_STREET, ',' ) );
}
elseif ($EVENT_CITY
&& strpos($EVENT_STREET, $EVENT_CITY) !== false)
{
// Remove last value, until city is not found in the string
$EVENT_STREET = substr( $EVENT_STREET, 0, strripos( $EVENT_STREET, ',' ) );
}
}
if ($EVENT_STREET && $EVENT_POSTAL_CODE)
{
$EVENT_POSTAL_CODE = str_replace($EVENT_STREET . ', ', '', $item->address);
$EVENT_POSTAL_CODE = substr( $EVENT_POSTAL_CODE, 0, strripos( $EVENT_POSTAL_CODE, ',' ) );
}
$EVENT_ADDRESS = $EVENT_STREET ? $EVENT_STREET . '<br />' : '';
if ($EVENT_CITY && $EVENT_COUNTRY && $EVENT_POSTAL_CODE)
{
$EVENT_ADDRESS.= $EVENT_POSTAL_CODE . ', ' . $EVENT_COUNTRY . '<br />';
}
elseif ($EVENT_CITY && !$EVENT_COUNTRY && $EVENT_POSTAL_CODE)
{
$EVENT_ADDRESS.= $EVENT_POSTAL_CODE . '<br />';
}
elseif (!$EVENT_CITY && $EVENT_COUNTRY)
{
$EVENT_ADDRESS.= $EVENT_COUNTRY . '<br />';
}
}
else
{
$EVENT_ADDRESS = false;
}
Si prega Accedi o Crea un account a partecipare alla conversazione.