Author |
Message |
Topic: displaying values added to a mysql table |
sage
Replies: 5
Views: 7654
|
Forum: General Posted: Tue Jan 25, 2005 12:32 pm Subject: Re: displaying values added to a mysql table |
<?php
$smarty->assign ('titre','$titre');
$smarty->assign ('Nom_Auteur','$Nom_Auteur');
?>
One problem that I see is that you are assigning the literal strings to smarty by usi ... |
Topic: problem with html_doctype plugin |
sage
Replies: 13
Views: 29135
|
Forum: Plugins Posted: Fri Oct 01, 2004 9:52 am Subject: problem with html_doctype plugin |
It may be worth just examining what the function is returning, on its own:
instead of the end of the function use somthing like:
die("-".$header."-");
// return $header;
}
?>
P ... |
Topic: problem with html_doctype plugin |
sage
Replies: 13
Views: 29135
|
Forum: Plugins Posted: Thu Sep 30, 2004 9:17 pm Subject: problem with html_doctype plugin |
hmm... Thats an XML error I have not seen before
Im using the doctype plugin with XHTML 1.1, and your code looks ok as far as I can see, when compairing against my code.
can you paste th ... |
Topic: problem with html_doctype plugin |
sage
Replies: 13
Views: 29135
|
Forum: Plugins Posted: Thu Sep 30, 2004 8:16 pm Subject: problem with html_doctype plugin |
The only way the browser (Firefox 1.0 PR) won't error out is to use "sendheaders=false", which sends the content type as text/html.
setting sendheaders=false, will mean that the doctype header ... |
Topic: the div adressed from php is correct, not from js |
sage
Replies: 2
Views: 5193
|
Forum: General Posted: Thu Sep 30, 2004 7:51 pm Subject: the div adressed from php is correct, not from js |
In addition to the advice that Boots gave;
Rather then using innerText, try and manipulate the text node directly (also innerText i believe does not work on Mozilla browsers).
eg.
document. ... |
Topic: format a telephone number |
sage
Replies: 3
Views: 7982
|
Forum: General Posted: Tue Sep 28, 2004 9:45 am Subject: format a telephone number |
One quick method may be to do a regex on it.
if the variable is in $telephone, do something like:
{$telephone|regex_replace : "/([0-9]{3})([0-9& ... |
Topic: Displaying local time without multiple caches |
sage
Replies: 3
Views: 15154
|
Forum: Tips and Tricks Posted: Wed Sep 15, 2004 11:14 am Subject: Displaying local time without multiple caches |
My site will require JavaScript to work correctly anyway.
If you want to change the date using the client side browser (which is a good method), instead of using a direct document.write m ... |
Topic: Iconised Directory Lising function - updated |
sage
Replies: 0
Views: 8500
|
Forum: Plugins Posted: Thu Sep 09, 2004 10:32 pm Subject: Iconised Directory Lising function - updated |
This is a plugin to display icons for a given directories contents,
User defined icons are displayed based on the files extention, with the file name writen in text also. Optionaly hyperlink to the f ... |
Topic: smarty array lookup in template |
sage
Replies: 2
Views: 26416
|
Forum: Smarty Development Posted: Tue Aug 10, 2004 12:51 pm Subject: smarty array lookup in template |
You want the . notation:
$array['name'] -> {$array.name}
Its on the sticky:
http://www.phpinsider.com/smarty-forum/viewtopic.php?t=134 |
Topic: xhtml_support - application/xhtml+xml |
sage
Replies: 13
Views: 28583
|
Forum: Plugins Posted: Thu Jun 10, 2004 4:33 pm Subject: xhtml_support - application/xhtml+xml |
page source is
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html ... |
Topic: xhtml_support - application/xhtml+xml |
sage
Replies: 13
Views: 28583
|
Forum: Plugins Posted: Thu Jun 10, 2004 11:39 am Subject: xhtml_support - application/xhtml+xml |
Still get the same error and the html source code on the browser after applying your suggestions and code.
Firefox says application/xhtml+xml but only show the page with sendheaders=false
Thats v ... |
Topic: xhtml_support - application/xhtml+xml |
sage
Replies: 13
Views: 28583
|
Forum: Plugins Posted: Thu Jun 10, 2004 10:29 am Subject: xhtml_support - application/xhtml+xml |
What is the Doctype that is outputted on your HTML pages (it sounds as if the doctype is wrong)?
The only thing I can see is that the type (Strict) should be with a capital "S", as this is passed d ... |
Topic: xhtml_support - application/xhtml+xml |
sage
Replies: 13
Views: 28583
|
Forum: Plugins Posted: Thu Jun 10, 2004 10:15 am Subject: xhtml_support - application/xhtml+xml |
I use a slightly cut down version of the DOCtype plugin, which is based on version 1.3, with my opera detect in it...
I never tested out André's new HTTP_ACCEPT header checks (as I thought only the ... |
Topic: xhtml_support - application/xhtml+xml |
sage
Replies: 13
Views: 28583
|
Forum: Plugins Posted: Wed Jun 09, 2004 5:16 pm Subject: xhtml_support - application/xhtml+xml |
Thats pretty cool,
Unfortunatly I still need the HTML entries that the DOCTYPE plugin provides as Opera does not handle javascript properly with XHTML (well at least with 7.23), and I had to make ... |
Topic: xhtml_support - application/xhtml+xml |
sage
Replies: 13
Views: 28583
|
Forum: Plugins Posted: Wed Jun 09, 2004 4:40 pm Subject: xhtml_support - application/xhtml+xml |
You could also try André Rabold's DOCTYPE header plugin
(I modified it for doing XHTML 1.1 as well)
http://smarty.incutio.com/?page=DOCTYPEHeaderPlugin |
|