What I am trying to accomplish is to create a template class of my own. Everything is working fine except for the dynamic blocks. What I need you to do is to give me tips and hints on how to make a template class support at least two-level blocks (one main block and one block inside it). Anyone have the time to help?
// Thanks in advance!
I'm a little confused as to what you're wanting. I've worked with templating before, but I just used a method I came up with. I'm not quite sure what "blocks" refer to. Could you give an example of what you want and what you want it to come out to?
i think he means like what vBullitin uses? Like their dynamic blocks, which generates a code like structure for their urls. Its pretty hard. Since its hard trying to get a block inside another one.
Yes, that's what I mean. Like for example how phpBB does like this:
<!-- BEGIN blockname --> some html code here <!-- END blockname -->
That's what I want to do, and also make it possible for the class to compile nested blocks.
I actually think they do it this way
{example}
same with VBulletin
Makes it easy to just do a str_replace
yes, that's the stuff that should be replaced, but with a block I mean for example the code that should be used for example a guestbook entry... anyone?
rikLund, did you get my e-mail? well in it I said I could do it for a fee. Why didnt you repsond?
why dont you just use PHPLibs (excellent) template class, it does exactly what you want.
Great IDEA! I mean thats what PHPBB said they got it from. Its perfect, why dont you use that.
Well, I've used it before, but the thing is that I want to learn how to make my own template class. I've worked with classes before, but my knowledge about making it support nested blocks like phpBB's does, then it's not going well. I would have used phpBB's if it wasn't that I wanted to learn how to do...
riklund have you even checked ur e-mail?
yes, your mail was there... sorry, but I'll have to decline both the job offer and your offer to make a template class.
why?!?! we are great company come and see man! portals...
I'm in the middle of a project and will not desert it! Sorry!
after your done?, what project? maybe I can help!!!
sorry, we're not accepting any more workers...
so can you work with us after your so called project, i doubt itll even work, the code...
well, dunno... sorry!
why!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! i really need a programmer, i prolly cant pay you 10/hour, but maybe 5?
sorry