|
#21
|
||||
|
||||
|
Quote:
I don't think the functionality is affected but it's more clean. BTW, I suggest to fetch <?php ?> codes from the template file and evaluating them seperately and the using ereg_replace. in this way we can have PHP codes running inside the current template system. but I don't know how! My other suggestion is reading the tags with argument before processing the page. then extracting the arguments and passing them to the related addon. the addon uses thes argument and do some dynamic things and the produces the replacement of the tag. at the bottom of index.php (as it is not) the tags will be replaced with new values but the behavior is more dynamic and controlled by arguments that users put on their template. I hate PHP coding inisde template. In the long run it will just mess up things...
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7 |
|
#22
|
|||
|
|||
|
Quote:
|
|
#23
|
||||
|
||||
|
I'm against. but meanwhile, I'm speculating.
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7 |
|
#24
|
||||
|
||||
|
Quote:
Quote:
Quote:
|
|
#25
|
||||
|
||||
|
no php in templates
about 10% of us will have a clue what the heck it is...many pixelpost users do not know html and have enough trouble with that. I do think the template engine could be approved upon greatly though, we must brainstorm every detail about it possible and how it can be made better.
__________________
i should say more clever stuff |
|
#26
|
||||
|
||||
|
let me clarify my points:
- addons are not double processing. they are simple php codes that run to produce some new html stuff. the payload of ereg_replace on the server site is ABSOLUTLY NEGLIGIBLE. - I can challenge you to mention a functionality in writing a template for WP that you cannot do it with not greater complexity. - PHP inside HTML is evil. Making them apart is a programming goal and that's way Smarty is there. As Blinking's just stated, PP's templates are HTML and even with this many people don't underestand how to modify it. I know many people that don't go near WP 'cause its complicated template. (1.2 templates where nightmare and 1.5 got better) - I think you could have tags with arguments. Keeping the compatibility with simple tags but accepting new tags with arguments just like HTML itself.
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7 |
|
#27
|
||||
|
||||
|
I agree with everything you said except...
Quote:
1. the entire template is pulled into a string variable 2. php is processed, arguments if then elsed etc 3. a replace is done on the entire string 4. the string is echoed/printed out. compare this to php tags (included functions): 1. php is processed, arguments if then elsed etc 2. result is output Granted this is an oversimplification of things and I AM NO EXPERT WHO KNOWS MORE THAN ANYBODY ELSE. It is/was in my opinion a legitimate point to raise. Like I said before/elsewhere - I am only new to PP and fully appreciate the work you developers are doing. If it means hacking a few things to get my required level of functionality then so be it. |
|
#28
|
||||
|
||||
|
I didn't want to be rude and you didn't get my point in that way.
the PP does not accept arguements right now. again, processing needed for echo and replace are negligible. I appreciate brainstorming here! welcome to PP.
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7 |
|
#29
|
||||
|
||||
|
Quote:
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7 |
|
#30
|
||||
|
||||
|
yup, echoed - what i meant.
|
| Post Reply |
| Thread Tools | |
|
|