Add <br/> To Module Listing

  • Meilech DuBrow
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 9 months ago #17585 by Meilech DuBrow
Add <br/> To Module Listing was created by Meilech DuBrow
For the module list of events, dates and times, I want to add a line break <br/> after each complete entry--i.e., after the date/time.

Where can I do that? In one of the PHP files?

Thank you.

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #17600 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Add <br/> To Module Listing
Hi

Yes. You can edit the code in the file modules/mod_eb_events/tmpl/default.php. It should be easy if you know alitle PHP / HTML code.

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Meilech DuBrow
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 9 months ago #17635 by Meilech DuBrow
Replied by Meilech DuBrow on topic Re: Add <br/> To Module Listing
Well, I thought I knew a little PHP. I tried to add<br/> after line 36:

<tr class="<?php echo $tab; ?>">
<td class="eb_event">
<a href="<?php echo JRoute::_('index.php?option=com_eventbooking&task=view_event&event_id='.$row->id.'&Itemid='.$itemId); ?>" class="eb_event_link"><?php echo $row->title ; ?></a>
<br />
<span class="event_date"><?php echo JHTML::_('date', $row->event_date, $config->event_date_format, $format); ?>
</span>
<br />

That didn't work at all. I also tried adding <br /> at the end of line 34. And in desperation I tried adding '\n'.

None of that worked.

Any suggestions would be greatly appreciated.

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #17648 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Add <br/> To Module Listing
The codes you wrote is correct. I don't know why it doesn't work. Maybe you can submit a support ticket sending me administrator and FTP account of your site so that I can check it for you .

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Meilech DuBrow
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 9 months ago #17652 by Meilech DuBrow
Replied by Meilech DuBrow on topic Re: Add <br/> To Module Listing
Can y ou work through cpanel--File Manager? Don't really have FTP setup other than through Expresso.

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #17653 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Add <br/> To Module Listing
Yes, Cpanel File Manager would be good .

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Meilech DuBrow
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 9 months ago #17655 by Meilech DuBrow
Replied by Meilech DuBrow on topic Re: Add <br/> To Module Listing
Submitted ticket. Looking forward to hearing from you soon.

Thank you.

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #17679 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Add <br/> To Module Listing
Hi all

Just want to update this post that we worked together via support ticket / email and get the issue solved. (need to add two br tag instead of one tag) .

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc