4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
August 18, 2018, 08:40:56 AM

Login with username, password and session length
Search:     Advanced search
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Help / Hilfe
| |-+  Bug Fixes & Patches
| | |-+  [1.7] Cant display \\# (i.e \\2 or \\4 or \\9)
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: [1.7] Cant display \\# (i.e \\2 or \\4 or \\9)  (Read 15401 times)
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 577

mmm PHP...


View Profile WWW
« on: June 15, 2003, 04:15:25 AM »

By default 4images replaces all \\xx (where xx is number 0-9)  with \\1
For testing purpose, try add anywhere (in any template or any variable that will be printed in a template) this: \\7 u'll see that it will be replaced by \\1
to fix that, in /includes/template.php remove marked:
Quote  [Expand]
 function clean_template($template) {
    $search_array = array(
      "/".$this->start."[^ \t\r\n".$this->end."]+".$this->end."/",
      "/".$this->start."if[ \t\r\n]+[^ \t\r\n".$this->end."]+".$this->end."/",
      "/".$this->start."endif[ \t\r\n]+[^ \t\r\n".$this->end."]+".$this->end."/",
      "/$([0-9])/",
      "/\([0-9])/"

    );
    $replace_array = array(
      "",
      "",
      "",
      '$\1',
      '\\\1'

    );

NOTE: dont forget delete comas!
« Last Edit: July 16, 2005, 08:10:24 PM by V@no » Logged

Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.038 seconds with 21 queries.
Post your comments here