PM, Eemil, and Dominique,

Thank you so much for all of your help! Things are working just like  
I want now. And that's one of the (many) reasons I love PmWiki:  
Pretty much anything you want to do, you can; and tweaking it usually  
is not a difficult task. Plus, with such a great community, even if  
you don't have the coding chops to get some behavior you're looking  
for, someone out there will be able to help you.

All three of you have been a remarkable help. I'm saving all of the  
code snippets for future reference. It's so nice to look at my HTML  
source and see nice, semantic code.

I've sent $10 to PM. Not much, and far less than the program is  
worth, but it's as much as I can afford right now. There will  
probably be more in the future. I hope this small donation helps the  
best wiki engine out there to keep going.

Patrick (and all those cookbook authors, too), keep up the good work.  
Your program is an outstanding piece of work.



On Mar 12, 2008, at 4:00 AM, Dominique Faure wrote:

> On Wed, Mar 12, 2008 at 3:51 AM, Andrew Standfield  
> <[EMAIL PROTECTED]> wrote:
>> This pretty much works.
>> The image and div vs. p solutions worked perfectly. I even figured  
>> out how to hyperlink the images. If anyone is wondering its:
>> %img class=MyClass% [[ | placehoder.jpg"alt  
>> and title text"]]%%
> Eemeli Aro solution is working but require to alter core scripts.
> Here's a way to prevent this. At the end of your config.php, add:
> if (IsEnabled($EnableStdConfig,1)) {
>   include_once("$FarmD/scripts/stdconfig.php");
>   $MarkupTable['^img']['rep']
>     = preg_replace('/<(\/)?div>/', '<$1p>',
>                    $MarkupTable['^img']['rep']);
> }
>> For now, I'm okay with using (:div: class="MyClass":) rather than  
>> blockquotes, but I'd still *really* like to figure out how to code  
>> that. I try to be semantic as possible.
> Here's a way to have a dedicated (:bq:)...(:bqend:) markup. It's
> widely inspirated from the actual (:div:) markup and should provide
> the same nesting features:
> function HTMLBlock($block, $name, $attr) {
>   global $MarkupFrame;
>   $attr = PQA($attr);
>   $name = strtolower($name);
>   $key = preg_replace('/end$/', '', $name);
>   $out = '<:block>'.MarkupClose($key);
>   if (substr($name, -3) == 'end') return $out;
>   $cf = & $MarkupFrame[0]['closeall'];
>   $out .= "<$block $attr>";
>   $cf[$key] = "</$block>";
>   return $out;
> }
> Markup('blockquot', '<block',
>   '/^\\(:(bq(?:end)?)(\\s.*?)?:\\)/ie',
>   "HTMLBlock('blockquote','$1',PSS('$2'))");
>> At any rate, I'll email you off list to see where to send your  
>> Money :)
> If you also wish to reward this contribution, please send it to PM :)
> -- 
> Dominique

pmwiki-users mailing list

Reply via email to