Unfortunately, the username and password you have entered do not match!

Registration

Unfortunately, this username is already taken!

Unfortunately, this e-mail address is already used!

Please retype the verification code.

All fields are required

Dates/title in wrong places on JomSocial profiles

Welcome, Guest
Username Password: Remember me

Dates/title in wrong places on JomSocial profiles
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Dates/title in wrong places on JomSocial profiles

Dates/title in wrong places on JomSocial profiles 1 year, 11 months ago #9941

On users' JomSocial profile pages the dates and event titles are appearing in the wrong places. In the image below, the first event's dates are actually appearing next to the 2nd event and vice versa. On the actual event pages the dates show correctly, it's just on their profile pages where they are ordered wrong.



Here's the code from the page:
<div class="app-box-content">
<div id="community-rsevents-wrap">
<table cellpadding="2" cellspacing="0" border="0" width="100%">
<tr>
<td width="15">
<img src="http://www.soscities.org/plugins/community/plg_rsevents/favicon.png" alt="" />
</td>
<td valign="top">
<a href="/getinvolved/find-an-event/event/1-flash-mob-anniversary.html">
Flash Mob Anniversary </a>
at <a href="/getinvolved/find-an-event/show-location/1-secret-location-in-boston-tba/1.html">Secret Location in Boston! TBA</a>
</td>
 
<td width="150" align="right">
03/06/2010 - 03/06/2010 </td>
</tr>
<tr>
<td width="15">
<img src="http://www.soscities.org/plugins/community/plg_rsevents/favicon.png" alt="" />
</td>
<td valign="top">
<a href="/getinvolved/find-an-event/event/7-spectacle.html">
Spectacle </a>
at <a href="/getinvolved/find-an-event/show-location/1-secret-location-in-boston-tba/7.html">Secret Location in Boston! TBA</a>
</td>
 
<td width="150" align="right">
06/03/2010 - 06/03/2010 </td>
</tr>
</table>
 
 
</div>


Here is how it displays using the HTML:
[code] <table cellpadding="2" cellspacing="0" border="0" width="100%">
<tr>
<td width="15">
<img src="www.soscities.org/plugins/community/plg_...ts/favicon.png" alt="" />
</td>
<td valign="top">
<a href="/getinvolved/find-an-event/event/1-flash-mob-anniversary.html">
Flash Mob Anniversary </a>
at <a href="/getinvolved/find-an-event/show-location/1-secret-location-in-boston-tba/1.html">Secret Location in Boston! TBA</a>
</td>

<td width="150" align="right">
03/06/2010 - 03/06/2010 </td>
</tr>
<tr>
<td width="15">
<img src="www.soscities.org/plugins/community/plg_...ts/favicon.png" alt="" />
</td>
<td valign="top">
<a href="/getinvolved/find-an-event/event/7-spectacle.html">
Spectacle </a>
at <a href="/getinvolved/find-an-event/show-location/1-secret-location-in-boston-tba/7.html">Secret Location in Boston! TBA</a>
</td>

<td width="150" align="right">
06/03/2010 - 06/03/2010 </td>
</tr>
</table>

Re:Dates/title in wrong places on JomSocial profiles 1 year, 11 months ago #9955

  • anas
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
I hate this :

This is an automatically generated message

Re:Dates/title in wrong places on JomSocial profiles 1 year, 11 months ago #9976

OK! This wasn't REALLY broken. Just not formatted as expected.
By pure coincidence I had two events; one on 3/6 and one on 6/3. As it turns out the plugin is set to display D/M/Y not M/D/Y as expected in the USA. Changing the date format in other parts of the plugin do not affect the way it displays on the JomSocial app. To change it in the JomSocial app, go to \plugins\community and open the file plg_rsevents.php .

Somewhere around line 124 is the following code:

$start= new JDate($event->EventStartDate);
echo $start->toFormat( '%d/%m/%Y' );
echo ' - ';
$end= new JDate($event->EventEndDate);
echo $end->toFormat( '%d/%m/%Y' );

You can see it is set to display the dates as d/m/y. Change it to read:

$start= new JDate($event->EventStartDate);
echo $start->toFormat( '%m/%d/%Y' );
echo ' - ';
$end= new JDate($event->EventEndDate);
echo $end->toFormat( '%m/%d/%Y' );

You have to do the same thing a few lines down around line 154.

Re:Dates/title in wrong places on JomSocial profiles 6 hours, 1 minute ago #0

Hello,
This is an automatically generated message.
We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you wish to receive our support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here: http://www.rsjoomla.com/support-policy.html.

Thank You!
PLEASE NOTE: This topic is NOT locked and you can add replies to it. Other users are free to reply as well. This message has been generated by a bot and has no effect on the topic whatsoever.
  • Page:
  • 1
Moderators: alex, alexp, octavian, bogdanc, andreic
Time to create page: 1.18 seconds
Feedback