Events: Country, City -- Need to reverse to City, Country

How do you arrange this line to make it work?

'country_city' => _t($GLOBALS['aPreValues']['Country'][$aData['Country']]['LKey']) . (trim($aData['City']) ? ', '.$aData['City'] : ''),

Need it to print out --         City, Country

 

Currently it prints out like United States, Dallas which doesn't make any sense.

Quote · 30 Mar 2011

Can you give me a hint?  It's not the line above because I switched Country and City and it didn't reverse the order.

Quote · 31 Mar 2011

try to explain it better...

where do you want to change the order...on which event site?

add event?

event view site in the info block?

....

ue30 Mods - http://www.boonex.com/market/posts/ue30
Quote · 31 Mar 2011

When you open an event look at the Information block.  It shows the Flag icon, Country then City.

 

I want to reverse the order to Flag icon, City, Country.

boonex.gif · 7.1K · 78 views
Quote · 31 Mar 2011

BxEventsTemplate.php

in function block info

'country_city' => '<a href="' . BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri() . 'browse/country/' . strtolower($aEvent['Country']) . '">' . _t($GLOBALS['aPreValues']['Country'][$aEvent['Country']]['LKey']) . '</a>' . (trim($aEvent['City']) ? ', '.$aEvent['City'] : ''),

 

to

 

'country_city' => (trim($aEvent['City']) ? $aEvent['City'] : '') . ', '. '<a href="' . BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri() . 'browse/country/' . strtolower($aEvent['Country']) . '">' . _t($GLOBALS['aPreValues']['Country'][$aEvent['Country']]['LKey']) . '</a>',

ue30 Mods - http://www.boonex.com/market/posts/ue30
Quote · 31 Mar 2011

Ok, that does work.  It would help if I edited and uploaded from the same directory.  DOH!

 

Thanks ue30.

Quote · 31 Mar 2011

Could you provide the proper line for doing the same thing in BxEventsPageMain.

 

Quote · 31 Mar 2011

The change that was made to BxEventsTemplate.php has caused this issue in the thumbnails.

 

boonex.gif · 5.2K · 66 views
Quote · 31 Mar 2011

if you change it in the correct function of BxEventsTemplate.php it can never make this issue for unit function.

in BxEventsTemplate.php are two function,

first for unit where your problem is

and second for info, so just make the change there for what you asked!

ue30 Mods - http://www.boonex.com/market/posts/ue30
Quote · 6 Apr 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.