Forum Support

Shape 5
October 18, 2021, 09:39:24 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: A problem with the date + template displaying with one particular article  (Read 310 times)
Nancy Sport
Jr. Member
**
Offline Offline

Posts: 2



« on: October 05, 2009, 05:03:27 PM »

Hello,

First problem:
I'm using the template on a French website, so I've looked for changing date format. At this time I've do well but the first word (the name of the day) is not displayed with a capital letter (and I would like a capital letter...). How can I do in order to obtain this damned capital letter?

Second problem:
Take a look on my homepage. You can see a little problem with the template... This issue is due to a particular article ("Un sacr? nul au Parc", or, in English, "A beautiful draw in the Paris' soccer team stadium") : when I'm unpublish it the template is correctly displayed. I don't understand why this problem occurs, but I don't want to unpublish this article too. Have somebody any idea about why this precise article is so problematic?

Thank you for all!
« Last Edit: October 05, 2009, 05:49:18 PM by Nancy Sport » Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #1 on: October 06, 2009, 07:48:39 AM »

Hello,

1.

It's a little tricky to get it to work right because of special characters in other languages. The date() function in php by default takes on the language of the server. If you edit the template's index.php file and look for:

<?php $today = date("l, F j, Y"); PRINT "$today";?>

replace it with:

<?php

setlocale(LC_ALL, 'fr-fr');

echo strftime("%A, %B %e, %Y");

?>

That changes it to French - France. If you need another variation, the codes are listed here:

http://www.w3schools.com/VBscript/func_setlocale.asp



2.

There is no content in your article, or at least it is not showing. Is this the problem you are referring to?
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Nancy Sport
Jr. Member
**
Offline Offline

Posts: 2



« Reply #2 on: October 06, 2009, 02:27:49 PM »

Hello,

1. Date

Thank you but this solution doesn't solve my problem: the day is not writen with a capital letter (you can see here). And this is precisely what I want to obtain (a capital letter to the first word).

2. Article/Template

In fact yes, the article have a content (text, with a "read more" separator). You can see it by clicking on the title (or in "lire la suite"). The problem is not a story of content, but a story of template: when this article is published the template is completely disorganized (see in particular the top of the page, on Safari or on Opera I can see a little problem with the global structure of it...).

The question is: why the template is disorganized with this particular article? (if I unpublish it the template is well-displayed, but I don't want to unpublish this article)

Note: this article is the only one that have a <span></span> picture, the other one is not displayed like this. I don't know is this is a important information...
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #3 on: October 07, 2009, 08:25:53 AM »

Hello,

1. There is not a way to create a capital letter. This text is stored and pulled directly from your server.

2. There is most likely an unclosed element in your content article. If you can private message me super admin access I can look into this.
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.