Search found 52 matches
- Sat Apr 30, 2005 11:13 pm
- Forum: [3.0/Olympus] New features discussion
- Topic: phpBB 2.2, top features
- Replies: 89
- Views: 58458
Re: phpBB 2.2, top features
Template Engine Auth and User system FINALLY work correctly Being able to run the damn thing on E_ALL A very fancy version of BBCodes What else... Prolly the dbal, it got much cleaner The ease of porting over phpBB 3 features to phpBB 2 For the first time, a phpBB script is not getting poorly writte...
- Thu Feb 10, 2005 11:50 pm
- Forum: [3.0/Olympus] Discussion
- Topic: using Smarty ?
- Replies: 13
- Views: 10298
Re: using Smarty ?
It would not be too hard to change to Smarty, you would not get too many benifits from it though. phpBB's template engine is not based on Smarty, it uses a small amount of code for tokenizing things inside of conditionals inside of a template. Nathan Coding did not all of a sudden just say, "OMG!! T...
- Sat Feb 05, 2005 5:29 am
- Forum: [3.0/Olympus] Discussion
- Topic: Yet another question on template::alter_block_array
- Replies: 19
- Views: 10123
Re: Yet another question on template::alter_block_array
Just to save confusion, I will state the difference between my regex and the one in phpBB3. The second blue exp would only grab the last instance, thus its data was useless. It did, however, permit the first exp to grab the whole enchilada. My new regex kept going and going until the final piece was...
- Sat Feb 05, 2005 5:06 am
- Forum: [3.0/Olympus] Discussion
- Topic: Yet another question on template::alter_block_array
- Replies: 19
- Views: 10123
Re: Yet another question on template::alter_block_array
preg_match_all('#\{(([a-z0-9\-_]+?\.)+?)(\$)?([A-Z0-9\-_]+?)\}#', $text_blocks, $varrefs);
I can see your confusion pit, there are four groups there Pit, not three. So, you were a tad arrogant
I can see your confusion pit, there are four groups there Pit, not three. So, you were a tad arrogant

- Sat Feb 05, 2005 4:59 am
- Forum: [3.0/Olympus] Discussion
- Topic: Yet another question on template::alter_block_array
- Replies: 19
- Views: 10123
Re: Yet another question on template::alter_block_array
Tested and works! Woo!
- Sat Feb 05, 2005 4:46 am
- Forum: [3.0/Olympus] Discussion
- Topic: Yet another question on template::alter_block_array
- Replies: 19
- Views: 10123
Re: Yet another question on template::alter_block_array
'/\{([a-z0-9\-_\.]+?\.+)(\$)?([a-z0-9\-_]+?)\}/si' function compile_var_tags(&$text_blocks) { // change template varrefs into PHP varrefs $varrefs = array(); // This one will handle varrefs WITH namespaces preg_match_all('#\{(([a-z0-9\-_]+?\.)+?)(\$)?([A-Z0-9\-_]+?)\}#', $text_blocks, $varrefs); fo...
- Sat Feb 05, 2005 4:28 am
- Forum: [3.0/Olympus] Discussion
- Topic: Yet another question on template::alter_block_array
- Replies: 19
- Views: 10123
Re: Yet another question on template::alter_block_array
Pit, you are right on a basic level, it won't work on nested blocks without some tinkering. '/\{([a-z0-9\-_\.]+?)(\$)?([a-z0-9\-_]+?)\}/si' Works but only if the var is nested, it was simply a matter of moving the "." searcher inside, I meant to post that up instead. Regardless, that works fine exce...
- Sat Feb 05, 2005 4:00 am
- Forum: [3.0/Olympus] Discussion
- Topic: Yet another question on template::alter_block_array
- Replies: 19
- Views: 10123
Re: Yet another question on template::alter_block_array
Hooray! Answers! Sadly, they are all by people who obviosuly don't understand the code I posted or the template engine itself. *sigh* Pit: My code still has a "." inside if you look carefully, it just does not have its own backreference capture. Thus it removes an array from the set. Uchiha Nick: Ha...
- Thu Feb 03, 2005 3:12 am
- Forum: [3.0/Olympus] Discussion
- Topic: Yet another question on template::alter_block_array
- Replies: 19
- Views: 10123
Re: Yet another question on template::alter_block_array
Ever since Nate put in the new template engine, I have had an... issue with a fundamental regex inside of template::compile (for almost four years..)... and now, it still remains (although somewhat modded to search for a dollar sign...) in template::compile_var_tags... preg_match_all('#\{(([a-z0-9\-...
- Sat Jan 29, 2005 7:17 pm
- Forum: [3.0/Olympus] Discussion
- Topic: Acyd's Antics, an inconsistency in the code
- Replies: 23
- Views: 14167
Re: Acyd's Antics, an inconsistency in the code
First off, "Antics" were chosen out for a playfull tone, I am sorry if you do not have a heart. Second, I miss read something, this is not something I can not do and I really did not badger him on what he should do. I just asked him a question. May I please have evidence of doing more then that? Thi...