Welcome, Guest
Username: Password: Remember me

TOPIC: Layout problems: time format and no breaks

Layout problems: time format and no breaks 6 years 6 months ago #6005

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hello Seppi
Can you send me joomla admin via contact form? So we can help you
Or please help find and open file: modules/mod_jo_facebook_wall/tmpl/default.php and go to line 130 and change
<span class="fb-wall-date"><img alt="" title="link" src="<?php echo $info_post?>" class="fb-wall-icon"><?php echo $info_post?></span>
To
<span class="fb-wall-date"><img alt="" title="link" src="<?php echo $info_post?>" class="fb-wall-icon"><?php echo date('d M Y - H:i:s', strtotime($info_post))?></span>
Best regards
Bach Pham
The administrator has disabled public write access.

Layout problems: time format and no breaks 6 years 6 months ago #6011

  • Seppi
  • Seppi's Avatar
  • OFFLINE
  • Junior Member
  • Posts: 23
  • Karma: 0
Hey Bach Pham

Thanks for the code example. It didn't seem to be correct but I managed to achieve it with a small correction:
<span class="fb-wall-date"><img alt="" title="link" src="<?php echo $info_post['icon']?>" class="fb-wall-icon"><?php echo strftime('%d. %b %Y %H:%M', strtotime($info_post["created_time"]))?></span>

So it's fixed for now. Is it possible to make an override for this module (make it "update-proof)? I tried to create one by copying the "default.php" to:

{site root}/templates/{template name}/html/mod_jo_facebookwall/

But it didn't seem to take any effect.

Many thanks for your fast and appreciated support.

Regards
Seppi
The administrator has disabled public write access.

Layout problems: time format and no breaks 6 years 6 months ago #6012

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Great. Thank you for using our products and have a nice day
Best regards
Bach Pham
The administrator has disabled public write access.

Layout problems: time format and no breaks 6 years 6 months ago #6028

  • Seppi
  • Seppi's Avatar
  • OFFLINE
  • Junior Member
  • Posts: 23
  • Karma: 0
Hey Bach Pham

Allow me to repose the question I asked in my last post: Is it possible to make an override for this module? So we won't use the changes within the next update?

Also, the text is still not formatted. How can we achieve this?

Thanks a lot.
Regards
Seppi
The administrator has disabled public write access.

Layout problems: time format and no breaks 6 years 6 months ago #6037

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hello Seppi
You can override for this module in /templates/{template name}/html/mod_jo_facebookwall/default.php. if you have add this file and your site not change i think have problem in your template.
Or please help me clear cache and cookies your site and check it again
Best regards
Bach Pham
The administrator has disabled public write access.
The following user(s) said Thank You: Seppi

Layout problems: time format and no breaks 6 years 5 months ago #6050

  • Seppi
  • Seppi's Avatar
  • OFFLINE
  • Junior Member
  • Posts: 23
  • Karma: 0
Hi Bach Pham

Thank you for your reply. Strange, but the override doesn't seem to work, even after cleaning all caches etc. We'll check with our template developer as it may indeed be a template issue.

But can you please help us out with our other question? The site is live by now and this is still a thing ... no text format or line breaks etc. are applied. Every line break made in the original Facebook post is being ignored by Facebook Wall module.

You got a hint for us?

Thanks
Seppi
The administrator has disabled public write access.
Time to create page: 0.059 seconds