[ewiki] markup: headline,table,img | mpi: embed vs insert | auth&search | /edit:mv,rm?
- From: massenmensch <kontakt@xxxxxxxxxxxxxxx>
- To: ewiki@xxxxxxxxxxxxx
- Date: Fri, 27 Feb 2004 20:02:31 +0100
Hey Mario, Andy and others!
##headline markup (!,!!,!!!)
I thought to remember a discussion on the headline-markup - going along the
line whether !, !!, !!! following the logic of *, **, *** and <h1>, <h2>,
<h3> or following the logic of indicating importance/size, w/ more ! being
more important. But I didn't find it, neither on the ewiki.sf.net, README nor
mailinglist.
I prefer the first alternative - and naturally the opposite is implemented
(search for "#-- headlines" in ewiki.php). What do you think of
define("EWIKI_MARKUP_HEADLINES_THEHTMLWAY", 1);
and
#-- headlines
...
if (!EWIKI_MARKUP_HEADLINES_THEHTMLWAY) { $excl = 5 - $excl;}
...
##RE: table markup: whitespace thingy
I find Mario's suggestion to take a tables first line as reference and being
more tolerant for the other rows.
Nonetheless I'd favour a markup which is tolerant towards whitespaces after
the last '|' __even__ in the first row. So what do you think about a
str-operation that doesn't prune the rest of a line after '|' regardless but
just removes whitespaces?
##RE: table markup: rowspan stuff
Since I aim for non-programmers using my wiki, I am sure they would go on
strike before using plugins/markup/htmltable. And they don't know what ASCII
is, so I better not try to advertise ascii-art to them (grin).
Thus, I'm in favor of Mario's suggestion:
> $ewiki_plugins["format_final"][] = "evil_table_rowspan":
>
> function evil_table_rowspan(&$html) {
> $html = preg_replace(
> '#(<td></td>\s*)+<td#e'
> '"<td rowspan=\"" . (1+(int)(strlen("$1")/9)) . "\">"'
> "$html"
> );
> }
Where do we put the
if ($ewiki_plugins["format_final"]) { evil_table_rowspan(&$html); }
or just evil_table_rowspan(&$html);?
##mpi_embed instead of mpi_insert to get rid of footer
@Mario: It seems that I can only imbed pages such as PowerSearch but not
simple WikiPages? Should I be able to embed any pages?
##RE:image markup &x=20&y=30
@Mario: When I do
$id=strtok($id,'?');
in ewiki_script_binary() - you meant me to modify $id, right - the picture is
shown, okay, but it's not rendered to the given size. Thought the markup
could handle that? - Or didn't I understand your reply?
##RE:auth & search
@Andy: Im am using the following:
* EWIKI_PROTECTED_MODE=1
* EWIKI_PROTECTED_MODE_HIDING=1
* auth_perm_unix (like it!)
* auth_method_form (though that should be irrelevant)
* my userdb_passwdfile.php (modification of userdb_systempasswd.php; reading
pwds from separate file; should be irrelevant, too)
> EWIKI_PROTECTED_MODE_HIDING will hide all unauthenticated page names in
> supporting plugins.
Can you specify on what plugins are supporting?
##has someone modified /edit for rename & deletion before?
What I'd like to do next is to copy rename-page and delete-page from /control
to /edit, showing up only when the user is logged in (_perm_unix) w/
sufficient rights. Has anyone done sth allong those line before?
##the rest
@Mario: How high is working on title!=pagename on your to-do-list?
That's it for now, folks, solong
Timm
- Follow-Ups:
- [ewiki] ewiki.php changes
- From: Andy Fundinger
- [ewiki] Re: markup: headline,table,img | mpi: embed vs insert
- From: Mario Salzer
- [ewiki] img resize | /edit:mv,rm? | title overriding
- From: Mario Salzer
Other related posts:
- » [ewiki] markup: headline,table,img | mpi: embed vs insert | auth&search | /edit:mv,rm?
- » [ewiki] Re: markup: headline,table,img | mpi: embed vs insert | auth&search | /edit:mv,rm?
- [ewiki] ewiki.php changes
- From: Andy Fundinger
- [ewiki] Re: markup: headline,table,img | mpi: embed vs insert
- From: Mario Salzer
- [ewiki] img resize | /edit:mv,rm? | title overriding
- From: Mario Salzer