: A problem with the date + template displaying with one particular article : Nancy Sport 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 (http://www.nancysport.fr). 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! : Re: A problem with the date + template displaying with one particular article : mikek 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? : Re: A problem with the date + template displaying with one particular article : Nancy Sport 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 (http://www.nancysport.fr)). 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... : Re: A problem with the date + template displaying with one particular article : mikek 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. |