Thread: [Phplib-users] $75 Million - 75 Million Dollars NOT {blank} million
Brought to you by:
nhruby,
richardarcher
From: Mike G. <mi...@op...> - 2001-10-30 19:54:29
|
Hello, We're presently having difficulty with how template.inc manages $75 and are hoping that perhaps someone else has discovered and fixed this problem. If you look here: http://www.airdiv-cupe.org/union.php/General/77 You should see this displayed as HTML (in the midst of a whole lot of other stuff): test $75 test $7 $ 11 <br>test $b dollar $ b <br>test $75 dollar $ 75 Instead you get: <p>test test $ 11 <br>test $b dollar $ b <br>test dollar $ 75 We think this is a problem with the template.inc file however I've used the version that was packaged with phplib-7.2d on sf, but that didn't resolve the problem. There was another copy of this file being circulated but I've lost track of it. Is it stable, is it being incorporated in the next release? Would it fix this problem? This is btw used within: http://sourceforge.net/projects/back-end/ Which barely uses phplib in the present version, but will hopefully be using much more of it in the future. Thanks. Mike -- Mike Gifford, OpenConcept Consulting, http://www.openconcept.ca Offering everything your organization needs for an effective web site. New PHP/MySQL Photogallery & Great Pictures http://genevilleneuve.com In all things it is better to hope than to despair.Wolfgang von Goethe |
From: nathan r. h. <na...@ds...> - 2001-10-30 21:18:40
|
Go thee to the php-lib-stable CVS: extract the template.inc from thither and rejoyce! -n On Tue, 30 Oct 2001, Mike Gifford wrote: > Hello, > > We're presently having difficulty with how template.inc manages $75 and > are hoping that perhaps someone else has discovered and fixed this problem. > > If you look here: > http://www.airdiv-cupe.org/union.php/General/77 > > You should see this displayed as HTML (in the midst of a whole lot of > other stuff): > > test $75 test $7 $ 11 > > <br>test $b dollar $ b > > <br>test $75 dollar $ 75 > > > Instead you get: > > <p>test test $ 11 > > <br>test $b dollar $ b > > <br>test dollar $ 75 > > > We think this is a problem with the template.inc file however I've used > the version that was packaged with phplib-7.2d on sf, but that didn't > resolve the problem. > > There was another copy of this file being circulated but I've lost track > of it. Is it stable, is it being incorporated in the next release? > Would it fix this problem? > > This is btw used within: > http://sourceforge.net/projects/back-end/ > > Which barely uses phplib in the present version, but will hopefully be > using much more of it in the future. > > Thanks. > > Mike > -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- nathan hruby / digital statement na...@ds... http://www.dstatement.com/ Public GPG key can be found at: http://www.dstatement.com/nathan-gpg-key.txt ED54 9A5E 132D BD01 9103 EEF3 E1B9 4738 EC90 801B -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- |
From: James W. <jwi...@ma...> - 2001-10-30 22:27:00
|
At 4:19 PM -0500 10/30/01, nathan r. hruby wrote: >Go thee to the php-lib-stable CVS: extract the template.inc from thither >and rejoyce! I'm still experiencing the trouble mentioned here with version 1.8 of template.inc from CVS. I have resorted to manually placing $ in my templates for the time being, but unfortunately Dreamweaver seems to like to rewrite it as $ if a designer resaves the file. Some preg_replace love would be much appreciated. Code in question (starting line 164): function set_var($varname, $value = "") { if (!is_array($varname)) { if (!empty($varname)) { if ($this->debug) print "scalar: set *$varname* to *$value*<br>\n"; $value = preg_replace(array('/\$([0-9])/', '/\\\\([0-9])/'), array('$\1', '\\1'), $value); $this->varkeys[$varname] = "/".$this->varname($varname)."/"; $this->varvals[$varname] = $value; } } else { reset($varname); while(list($k, $v) = each($varname)) { if (!empty($k)) { if ($this->debug) print "array: set *$k* to *$v*<br>\n"; $v = preg_replace(array('/\$([0-9])/', '/\\\\([0-9])/'), array('$\1', '\\1'), $v); $this->varkeys[$k] = "/".$this->varname($k)."/"; $this->varvals[$k] = $v; } } } } Looks like it should work to me... |
From: Mike G. <mi...@op...> - 2001-10-31 02:22:05
|
Hi Nathan, As usual, you are right on the money: http://www.airdiv-cupe.org/union.php/General/77 Works fine now! Mike nathan r. hruby wrote: > Go thee to the php-lib-stable CVS: extract the template.inc from thither > and rejoyce! > > -n > > On Tue, 30 Oct 2001, Mike Gifford wrote: > > >>Hello, >> >>We're presently having difficulty with how template.inc manages $75 and >>are hoping that perhaps someone else has discovered and fixed this problem. >> >>If you look here: >> http://www.airdiv-cupe.org/union.php/General/77 >> >>You should see this displayed as HTML (in the midst of a whole lot of >>other stuff): >> >> test $75 test $7 $ 11 >> >> <br>test $b dollar $ b >> >> <br>test $75 dollar $ 75 >> >> >>Instead you get: >> >> <p>test test $ 11 >> >> <br>test $b dollar $ b >> >> <br>test dollar $ 75 >> >> >>We think this is a problem with the template.inc file however I've used >>the version that was packaged with phplib-7.2d on sf, but that didn't >>resolve the problem. >> >>There was another copy of this file being circulated but I've lost track >>of it. Is it stable, is it being incorporated in the next release? >>Would it fix this problem? >> >>This is btw used within: >> http://sourceforge.net/projects/back-end/ >> >>Which barely uses phplib in the present version, but will hopefully be >>using much more of it in the future. >> >>Thanks. >> >>Mike >> >> > -- Mike Gifford, OpenConcept Consulting, http://www.openconcept.ca Offering everything your organization needs for an effective web site. New PHP/MySQL Photogallery & Great Pictures http://genevilleneuve.com In all things it is better to hope than to despair.Wolfgang von Goethe |