• 1

Read this first!

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 have an active subscription and wish to receive 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.

Thank you!

TOPIC: Dates/title in wrong places on JomSocial profiles

Dates/title in wrong places on JomSocial profiles 14 years 3 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:
<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>[code] <table cellpadding="2" cellspacing="0" border="0" width="100%">
<tr>
<td width="15">
<img src="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="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>
The administrator has disabled public write access.

Re:Dates/title in wrong places on JomSocial profiles 14 years 2 months ago #9955

  • anas
  • anas's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
I hate this :

This is an automatically generated message
The administrator has disabled public write access.

Re:Dates/title in wrong places on JomSocial profiles 14 years 2 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.
The administrator has disabled public write access.
  • 1

Read this first!

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 have an active subscription and wish to receive 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.

Thank you!