Author |
Message |
Topic: The Logic of Templates (massassi.com) |
BloodRath
Replies: 75
Views: 399463
|
Forum: Article Discussions Posted: Mon Oct 11, 2004 9:53 am Subject: The Logic of Templates (massassi.com) |
just to say that speed isn't always the first arg of choice
i have choose smarty not for speed but because it was very easy to extend. |
Topic: ADVANCED: Recursion with Smarty |
BloodRath
Replies: 155
Views: 825288
|
Forum: Tips and Tricks Posted: Mon Oct 11, 2004 9:41 am Subject: a little problem |
i wanna test this trick but i don't know why i have errors, iv just cut and past code
Smarty error: [in site.tpl line 97]: syntax error: unrecognized tag 'defun' (Smarty_Compiler.class.php, line 556) ... |
Topic: Creating a Table with foreach |
BloodRath
Replies: 3
Views: 6247
|
Forum: General Posted: Fri Oct 08, 2004 8:24 am Subject: Creating a Table with foreach |
excuse me, but imho it's a html problem not a template one, why not use css and div to produce the display ; a float left and float right (by example) alertnatively given will do the job.. |
Topic: blocks in smarty |
BloodRath
Replies: 4
Views: 16705
|
Forum: Tips and Tricks Posted: Mon Apr 26, 2004 9:46 am Subject: Code corrections |
I' ve change some part of code
1 -- Global array in my_smarty object
$this -> _plugins_stack = array();
$this -> _plugins_stack['block_action'] = array();
// blocks
... |
Topic: blocks in smarty |
BloodRath
Replies: 4
Views: 16705
|
Forum: Tips and Tricks Posted: Thu Apr 22, 2004 9:46 am Subject: blocks in smarty |
Hello i ve come back with my old idea of a block handling ability in smarty
here is the problem
i have a cms engine
in some user function i have some which display some article or some picture accr ... |
Topic: Arrays in config files would be great! |
BloodRath
Replies: 11
Views: 27609
|
Forum: Feature Requests Posted: Wed Nov 26, 2003 8:32 pm Subject: Arrays in config files would be great! |
this piece of code just allow u to make ref to a config var but by constructing the index of the ref
thus it allow u to give a icone for a menu depending of the menu postion, and when construct the ... |
Topic: Seperate SQL from PHP code |
BloodRath
Replies: 15
Views: 29068
|
Forum: General Posted: Tue Nov 25, 2003 1:27 pm Subject: Seperate SQL from PHP code |
IMHO
i work as andre explain for db access to my component i use
ideas from xoops and xaraya (CMS) and one php article on mysql and OO
i use two object : one which describe field and their par ... |
Topic: Arrays in config files would be great! |
BloodRath
Replies: 11
Views: 27609
|
Forum: Feature Requests Posted: Mon Nov 24, 2003 2:10 pm Subject: in same kind of reflexion , how about a concat config var |
sorry for rapid and dirty piece of code
/*
* Smarty plugin
* -------------------------------------------------------------
* Type: function
* Name: concat_configvar
* Purpose: co ... |
Topic: Themeing - best practices ? |
BloodRath
Replies: 21
Views: 48380
|
Forum: Tips and Tricks Posted: Wed Nov 19, 2003 11:39 pm Subject: theme |
just a stupid question but don't u think themes are definitely CSS domain ?
A look at css Zen Garden http://www.csszengarden.com/ could convince u
|
Topic: looking for best way to view nested array |
BloodRath
Replies: 1
Views: 4341
|
Forum: General Posted: Wed Nov 19, 2003 11:14 pm Subject: nested array |
i think u had better to construct a nested array items2 within items and display them by two nested foreach
more could'nt u achieve only one query to return all elements (join clause) cause i think q ... |
Topic: concat_configvar |
BloodRath
Replies: 0
Views: 7854
|
Forum: Plugins Posted: Tue Nov 18, 2003 11:12 am Subject: concat_configvar |
i ve dirty realised this plugin
/*
* Smarty plugin
* -------------------------------------------------------------
* Type: function
* Name: concat_configvar
* Purpose: concatena ... |
Topic: Multiple config-file directories |
BloodRath
Replies: 6
Views: 9077
|
Forum: General Posted: Tue Nov 18, 2003 11:04 am Subject: CMs ant Template |
Sorry but i have done same kind of project as yours and to resolve problem of template dir distinct from global template smarty dir i use this trick :
use a global template in which i have a include ... |
Topic: Including Other TPL Files |
BloodRath
Replies: 15
Views: 37469
|
Forum: Smarty Development Posted: Mon Oct 27, 2003 5:21 pm Subject: include problem |
i don't know if it was the same problem but i find that in version 2.6.0-RC1 when you include a template from another dir than the include one and the default include dir it could failed with no error ... |
Topic: block |
BloodRath
Replies: 9
Views: 19067
|
Forum: Tips and Tricks Posted: Mon Jul 21, 2003 10:20 am Subject: block |
thanx for all, i so continue to write one,
blood |
Topic: html editor |
BloodRath
Replies: 11
Views: 25891
|
Forum: Plugins Posted: Sat Jul 19, 2003 8:59 pm Subject: html editor |
just for datepicker component have a look at : http://webfx.eae.net/dhtml/datepicker/datepicker.html
espair that was what u need
i will post a link to a free htmleditbox as soon as i could remind it ... |
|