[pmwiki-users] Which Recipes Would Work Best?

2008-03-21 Thread Andrew Standfield
I have an idea for a site, but there's some particular things I want  
to try to implement with it. I want to pick the lists collective  
knowledge to see waht the best way of going about adding these things  
might be.

So here's the laundry list. Point me to recipes and schemes that  
would make this easy, but more importantly... effective.

Authors must be a registered member to write, but registration is an  
open thing (ie, anyone can self-register).

Articles written by members are non-public until approved by a  
moderator.

RSS feed does not update for every change, only when new articles are  
approved.

Content of feed is summaries of the articles. That is, each entry on  
the feed summarizes (or even excerpts) one new article.

I'm totally open to all ideas how to go about this, even looking at  
things from a different perspective. Like, is membership the best way  
to go about it? Should I have a "submit article" link that just  
creates a new page which is held in a moderator queue? My fears there  
would be that heavy spamming would take too much time to moderate and  
quality articles would go unpublished. Also, each of the articles  
should be able to give Author credit, and each author can have their  
own profile page...



Thanks for any help, and any ideas,

Andy

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] w.Bloggar & xmlrpc, ...

2008-03-16 Thread Andrew Standfield

Is this why I get this warning from the W3C validator?:

Character Encoding mismatch!

The character encoding specified in the HTTP header (iso-8859-1) is  
different from the value in the  element (utf-8). I will use  
the value from the HTTP header (iso-8859-1) for this validation.


http://tinyurl.com/2vjk34


Is there something I should change?


Andy



On Mar 16, 2008, at 5:32 PM, Stéphane Heckel wrote:



"Stéphane Heckel" wrote :

b) utf-8 is set on PmWiki's side. You can read utf-8 pages with  
success,

however, no way to create new content with utf-8 characters, ...


found PM's memo regarding this issue : xmlrpc.inc can be updated.  
Line 144,

replace ISO string with UTF 

SH




___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Tool tips not working for me (Also Re: Title Attribute?)

2008-03-14 Thread Andrew Standfield

Randy,

	I'm sure there's a way... I just have no idea how to do it :) When  
it comes to PHP I know *just* enough to get myself in trouble (and to  
find simple errors in other's code), but when it gets down to some of  
the wizardry that patrick has done, I'm lost.


	On the philosophical side, by setting both Summary and Description  
for a page, you may find greater flexibility in the future. For  
instance, the Description could be used a as very short description  
of the page (eg. "Examining Achaeopteryx", but Summary would  
literally summarize the content of the page (eg. "Although  
Achaeopteryx had both teeth and flight feathers, it considered a  
primitive bird.")


Just a thought.

Andy

On Mar 14, 2008, at 12:50 AM, Randy wrote:


Andy,

Thanks - your "tip" worked (in every sense). :)

Do you know if there is a way to modify the internal link tool tip  
code so that it uses the page Summary instead of the description  
directive? I ask because all of my pages have a one line Summary,  
which appears in page lists and seems like it would make a good  
tool tip. Or do you think it's best to keep them separate?


Randy


On Mar 14, 2008, at 1:22 AM, Andrew Standfield wrote:

$FmtPV['$DescriptionT'] = '@$page["description"] ?  $page 
["description"] : PageVar($pn, "\$Title")';
$LinkPageExistsFmt = "href='\$LinkUrl'>\$LinkText";




___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Putting a Colon in a Definition List?

2008-03-14 Thread Andrew Standfield

Good show!

That worked.

:)

Andy

On Mar 14, 2008, at 12:08 AM, Peter & Melodye Bowers wrote:


But I'm still curious as to whether one can define entities or not.
I tried using the HTML entity: &58; (if your email program parses  
that in to an actual colon... I wrote "ampersand 58 semicolon") but  
it merely output the code (i.e. it literally output "&58;")


Try putting a pound (hash) symbol after the & and before the #.   
Thus : (ampersand pound 58 semicolon).


-Peter


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Tool tips not working for me (Also Re: Title Attribute?)

2008-03-13 Thread Andrew Standfield

Oh my gosh!

This recipe fixes my issue from before! :)

It looks like the $LinkPageExistsFmt option you're using (the third  
one one the recipe you link to) wants to set the page description as  
the title attribute for the link (which is what causes tooltips).  
However, the example you give on how you're setting the description  
is incorrect. You want to use it as a directive, like you've done  
with the title. Like this:


(:description This is my page description:)

I used the third option:

$FmtPV['$DescriptionT'] = '@$page["description"] ?  $page 
["description"] : PageVar($pn, "\$Title")';
$LinkPageExistsFmt = "href='\$LinkUrl'>\$LinkText";


Which will put the page title if no description exists.

I didn't think it was working for me at first, either. After you  
implement it, make sure that you are hovering over an internal link  
to a page that exists and is *not* the current page.


BTW, the link to PITS that Hagan gave me earlier (http:// 
www.pmwiki.org/wiki/PITS/00657) has a note on the top of how to put a  
title attribute in to an *external* link.


It says to add this to your config.php:

$UrlLinkFmt = "title='\$LinkAlt'>\$LinkText";


To set the title attribute for the external links, use [[http:// 
www.whatever.com/"Tooltip text can go here" | Link Text]]


I have them both in config.php, and they seem to be working fine.  
Take a look at:


http://www.scruffyco.com/divide/Main/HomePage

Mouse over the two (external) links in the main body, as well as  
"Overview" and "Links" in the navigation. Over view has the  
(:description:) set, but "Links" does not.




Andy

On Mar 13, 2008, at 8:53 PM, Randy wrote:


Can anyone tell me why I don't see a tool tip when I follow the recipe
described at http://www.pmwiki.org/wiki/Cookbook/ 
LinkPageExistsFmtTooltip

  and then hover my cursor over a link?

I'm using the latest version of PmWiki, and have a number of recipes
installed.

The working example referred to in the recipe works for me, so I doubt
the problem is with my browser.

My Sandbox contains:

(:title The Sandbox:)
Description: test tool tips

[[Main.Sandbox]]

My config.php contains only one reference to LinkPageExistsFmt:

$LinkPageExistsFmt = "\$LinkText";

Thanks in advance for any comments,

Randy

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Title Attribute?

2008-03-13 Thread Andrew Standfield
Upon further reflection, I've also realized that I have no idea how  
to put a class or id attribute on to a hyperlink. The best I can  
manage is a span around the hyperlink. I honestly can't find any of  
this in the documentation.


On Mar 13, 2008, at 6:29 PM, Andrew Standfield wrote:

> Is there any way to apply the "title" attribute to elements
> (particularly hyperlinks)?
>
> I tried various forms of %block title="blah"%, %p title="blah"%,
> etc.; but couldn't get anything to work.
>
> I'm *really*  hoping there's an easy way to do this especially for
> hyperlinks...
>
>
> Thanks,
>
> Andy
>
> ___
> pmwiki-users mailing list
> pmwiki-users@pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] Title Attribute?

2008-03-13 Thread Andrew Standfield
Is there any way to apply the "title" attribute to elements  
(particularly hyperlinks)?

I tried various forms of %block title="blah"%, %p title="blah"%,  
etc.; but couldn't get anything to work.

I'm *really*  hoping there's an easy way to do this especially for  
hyperlinks...


Thanks,

Andy

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Putting a Colon in a Definition List?

2008-03-13 Thread Andrew Standfield

Ah ha!

I kinda-sorta fixed it.

I just used [=:=] to prevent the formatting of the colon I wanted to  
actually show. So:


Lions[=:=]:The king of the jungle cats

Produces the expected:

Lions:
The King of the jungle cats



That works fine and dandy. The HTML output is perfect, too.

But I'm still curious as to whether one can define entities or not.

Thanks,

Andy


On Mar 13, 2008, at 10:46 AM, Andrew Standfield wrote:


Oh my...

I have text that uses a colon which I want to put in a definition  
list (specifically in the Definition Term). The problem is, that  
the colon terminates the dt tag. The result (which is kind of  
interesting) is that the character immediately following the colon  
then appears as the first character of the dd.


So, if i were to markup the following:

:Lions::King of the jungle cats:

The result would look something like this:

Lions
:King of the jungle cats

As opposed to the expected:

Lions:
King of the jungle cats

This markup:

:"Lions:":King of the jungle cats:

Would produce:

"Lions
":King of the jungle cats


I tried using the HTML entity: &58; (if your email program parses  
that in to an actual colon... I wrote "ampersand 58 semicolon") but  
it merely output the code (i.e. it literally output "&58;")


I'm at a loss of what to do. Is there anyplace where I can define  
entities? The SpecialCharactersList (http://www.pmwiki.com/wiki/ 
PmWiki/SpecialCharactersList) does not list the colon and says that  
these entities are defined in RSS.php; a file I can not find  
(looked in /scripts/).


Thanks,

Andy


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] Putting a Colon in a Definition List?

2008-03-13 Thread Andrew Standfield

Oh my...

I have text that uses a colon which I want to put in a definition  
list (specifically in the Definition Term). The problem is, that the  
colon terminates the dt tag. The result (which is kind of  
interesting) is that the character immediately following the colon  
then appears as the first character of the dd.


So, if i were to markup the following:

:Lions::King of the jungle cats:

The result would look something like this:

Lions
:King of the jungle cats

As opposed to the expected:

Lions:
King of the jungle cats

This markup:

:"Lions:":King of the jungle cats:

Would produce:

"Lions
":King of the jungle cats


I tried using the HTML entity: &58; (if your email program parses  
that in to an actual colon... I wrote "ampersand 58 semicolon") but  
it merely output the code (i.e. it literally output "&58;")


I'm at a loss of what to do. Is there anyplace where I can define  
entities? The SpecialCharactersList (http://www.pmwiki.com/wiki/ 
PmWiki/SpecialCharactersList) does not list the colon and says that  
these entities are defined in RSS.php; a file I can not find (looked  
in /scripts/).


Thanks,

Andy___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Help With Custom Markup (I'll PayPal you...)

2008-03-12 Thread Andrew Standfield
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.

Thanks,

Andy





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% [[http://www.yahoo.com/ | 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] = "";
>   return $out;
> }
> Markup('blockquot', '   '/^\\(:(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
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Help With Custom Markup (I'll PayPal you...)

2008-03-11 Thread Andrew Standfield

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% [[http://www.yahoo.com/ | placehoder.jpg"alt and  
title text"]]%%


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.


At any rate, I'll email you off list to see where to send your Money :)

Thanks!

Andy



On Mar 11, 2008, at 4:14 PM, Eemeli Aro wrote:


Apologies if any of the following is in error, I don't have the time
to verify the code just now.

On Tue, Mar 11, 2008 at 11:14 PM, Andrew Standfield  
<[EMAIL PROTECTED]> wrote:
 1) How can I make it so that when I place an image, the block of  
text it

 is in is a [p] rather than a [div]?


I'm guessing that this happens only when the image is before any other
text on the line? If so, it's probably due to the '^img' markup rule.
I've found replacing default markup from a config file to be a bit
tricky given the way that the Markup function doesn't check if a rule
has been previously set. So, it's probably easiest for you to directly
edit the file scripts/stdmarkup.php & change the s to s on
line 324.

 2) How can I apply a class (and/or an id) to an image in the form  
of:
[p][img src="http://ref.to.image.jpg"; alt="Example"  
class="myClass" /] Blah blah blah.[/p]


Add the following line to your config file:

$WikiStyle['img'] = array( 'apply' => 'img' );

This will let you surround the image with the markup %img
...%YourImage.jpg%% and have any valid WikiStyles apply to the image.
Example: %img class=logo id=pm%Attach:pmwiki.png%%


 3) Is there any way to use relative paths for images (this one isn't
 all that important, but it would be nice)?


Use the "Path:" intermap format, ie. write
Path:/path/to/your/image.jpg or even
Path:../relative/path/to/image.jpg


 Ideally, I'd like to mark it up like this (in actually using the
 wiki, that is):

(:bq class="MyClass":)

Blah blah blah blah.

Yadda yadda.

(:bqend:)


If you're ok with having the same effect with a different tag, try the
following:


indent MyClass id=bingle<<


Blah blah blah blah.

Yadda yadda.


<<


That'll produce a div that's a member of two classes 'indent' and
'MyClass', and has the id 'bingle'. By default, PmWiki includes the
following CSS rule:

.indent { margin-left:40px; }

which makes it practically into a blockquote.

eemeli


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Help With Custom Markup (I'll PayPal you...)

2008-03-11 Thread Andrew Standfield
Addendum:

Actually, my blockquote markup is *not* working the way I wanted, so  
scratch that. It will only put the tags around one block of text.  
What I need it to do is to be able to go around multiple blocks.  
Something like:

[blockquote class="MyStyle"]

[p]blah blah blah[/p]

[p]blah blah blah[/p]

[/blockquote]


Thanks,

Andy



On Mar 11, 2008, at 2:14 PM, Andrew Standfield wrote:

> First person to answer these questions *correctly* can get $5.00  
> via PayPal. I'll also donate $5.00 to PmWiki. I know it's not much,  
> and obviously, it's worth *way* more, but I am seriously broke.  
> Tell me what to code and where to put that code.
>
> (Note: I've used square brackets rather than angle brackets in the  
> hopes that my formatting won't get messed up in this email. In my  
> actual code, all the square brackets are angles brackets)
>
> First, three questions on formatting images:
>
> 1) How can I make it so that when I place an image, the block of  
> text it
> is in is a [p] rather than a [div]?
>
> 2) How can I apply a class (and/or an id) to an image in the form of:
>
>   [p][img src="http://ref.to.image.jpg"; alt="Example"  
> class="myClass" /] Blah blah blah.[/p]
>
>
> 3) Is there any way to use relative paths for images (this one  
> isn't all that important, but it would be nice)?
>
> Second part:
>
> I've managed to make a custom markup that generated blockquote  
> tags. It goes like this:
>
>   Markup("blockquote", "block", "/\\(:bq:\\)(.*?)\\(:bqend:\\)/",  
> "[blockquote]$1[/blockquote]");
>
>
> It works to generate the blockquote tag just fine, but I also need  
> to be able to pass a style to it. So, the output would looks  
> something like:
>
>   [blockquote class="MyStyle"]...[/blockquote]
>
>
> Being able to pass an id="blah" would be handy, too.
>
> Ideally, I'd like to mark it up like this (in actually using the  
> wiki, that is):
>
>   (:bq class="MyClass":)
>
>   Blah blah blah blah.
>
>   Yadda yadda.
>
>   (:bqend:)
>
>
>
> HALP!
>
> Thanks,
>
> Andy


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] Help With Custom Markup (I'll PayPal you...)

2008-03-11 Thread Andrew Standfield
First person to answer these questions *correctly* can get $5.00 via  
PayPal. I'll also donate $5.00 to PmWiki. I know it's not much, and  
obviously, it's worth *way* more, but I am seriously broke. Tell me  
what to code and where to put that code.

(Note: I've used square brackets rather than angle brackets in the  
hopes that my formatting won't get messed up in this email. In my  
actual code, all the square brackets are angles brackets)

First, three questions on formatting images:

1) How can I make it so that when I place an image, the block of text it
is in is a [p] rather than a [div]?

2) How can I apply a class (and/or an id) to an image in the form of:

[p][img src="http://ref.to.image.jpg"; alt="Example"  
class="myClass" /] Blah blah blah.[/p]


3) Is there any way to use relative paths for images (this one isn't  
all that important, but it would be nice)?

Second part:

I've managed to make a custom markup that generated blockquote tags.  
It goes like this:

Markup("blockquote", "block", "/\\(:bq:\\)(.*?)\\(:bqend:\\)/",  
"[blockquote]$1[/blockquote]");


It works to generate the blockquote tag just fine, but I also need to  
be able to pass a style to it. So, the output would looks something  
like:

[blockquote class="MyStyle"]...[/blockquote]


Being able to pass an id="blah" would be handy, too.

Ideally, I'd like to mark it up like this (in actually using the  
wiki, that is):

(:bq class="MyClass":)

Blah blah blah blah.

Yadda yadda.

(:bqend:)



HALP!

Thanks,

Andy

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] Image Formatting

2008-03-11 Thread Andrew Standfield
Three questions on formatting images:

How can I make it so that when I place an image, the block of text it  
is in is a  rather than a ?

And how can apply a class to an image in the form of:

http://ref.to.image.jpg"; alt="Example" class="myClass" / 
 >Blah blah blah.

Finally, is there any way to use relative paths for images (this one  
isn't all that important, but it would be nice)?

Thanks,

Andy 

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] How to Get Rid of PmWiki's Hardcoded Styles and Markup?

2008-03-10 Thread Andrew Standfield
I'm certain that I used to know how to do this, but it's been a  
couple years since I've used PmWiki.

I want to *completely* suppress all styling information PmWiki puts  
out. Everything. I don't want the style information in the header,  
and I don't want any of PmWiki's CSS classes in my HTML tags.

I'd also like to know how to get rid of the superfluous divs it seems  
to be fond of littering about. These seem to have something to do  
with some theory of how white space should be handled, but it only  
destroys my styling.

Help! Please!


Thanks,

Andy

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users