Not logged in. · Lost password · Register

All posts by claestw (11)

topic: [SOLVED] Centering a DIV (A DIV containing one P with multiple IMGs)  in the forum: General Help and Support Templates and Layout
Avatar
claestw #1
Member since Sep 2007 · 11 posts
Group memberships: Members
Show profile · Link to this post
Actually, I did use the modified version (your version) of the div_shorthand, using Firefox 2, too, and it simply didn't work. But after seeing your alternative CSS I finally got it working. Thank you for again solving my headache! :D

The real problem was my lack of understanding in CSS, I think.

I have no idea why I thought I had to make the P tags display:table, it seems that was what prevented the centering. Then I took out the img float. My whole CSS for the .il DIV is now just one simple line of:

.il p { text-align:center; }

And that did it. Now I realize there's actually no reason to float the individual images inside the #il[]# construction, just let them line up in-line and center the "text". I wonder why I never realized it was this simple.

Oh thank you thank you. Such a good surprise, and on a Friday, too! I can just see it's going to be a great week-end. :D
topic: [SOLVED] Centering a DIV (A DIV containing one P with multiple IMGs)  in the forum: General Help and Support Templates and Layout
Avatar
claestw #2
Member since Sep 2007 · 11 posts
Group memberships: Members
Show profile · Link to this post
Subject: [SOLVED] Centering a DIV
I'm using the Minima template, and generating DIVs with the help of the div_shorthand plugin. Here's what I have now:

<div class="il"><p><img src="pic.jpg" width="240"><img src="pic.jpg" width="240"></p></div>

.il p { display:table; margin:0 auto; }
.il img { float:left; }

But the DIV simply refuses to center. For a live demonstration, please see http://www.claes.idv.tw/playground/playground

The four images there should, as one whole block, be centered on the page, yet it isn't.

In an attempt to find my error, I made up a test html page with the following body:

<body>
<style type="text/css">
.il p { display:table; margin: 0 auto;}
.il img { float:left; margin: 3px;}
</style>

<div class="il"><p><img src="pic.jpg" width="240"><img src="pic.jpg" width="240"></p></div>
</body>

And these two images on the text page centers without a problem.

I'm at a loss why the same code won't work when it's on a DokuWiki page, and I can't see anything obvious that could prevent it from centering. Any tips are appreciated.
This post was edited on 2007-10-19, 08:19 by claestw.
topic: [SOLVED] Full content feed?  in the forum: General Help and Support Features and Functionality
Avatar
claestw #3
Member since Sep 2007 · 11 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 4332
Ah, thanks. I think I'll wait for the next release. Thanks.
topic: [SOLVED] Full content feed?  in the forum: General Help and Support Features and Functionality
Avatar
claestw #4
Member since Sep 2007 · 11 posts
Group memberships: Members
Show profile · Link to this post
Subject: [SOLVED] Full content feed?
I read at http://www.splitbrain.org/blog/2007-07/16-full_content_feed that full content feed is in DokuWiki, but I couldn't find anything in the documentation about it. Then I noticed that blog post was posted 2007-07-16, and the latest DokuWiki version is still 2007-06-26, and full content feed isn't in the changelog.

Does anyone know if it's just not yet formally released, or has something else happened to it?
This post was edited on 2007-10-06, 06:42 by claestw.
topic: [SOLVED] Quoting from a book  in the forum: General Help and Support Syntax and Usage
Avatar
claestw #5
Member since Sep 2007 · 11 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 4211
Ah, thanks for mentioning the modification. I wonder why I didn't look into it...maybe it was the "ain't" problem in the source code comments that stopped me thinking.

Thanks andi and Wolfgang. Now I can drool over my pretty quote boxes.  :-D
topic: [SOLVED] Quoting from a book  in the forum: General Help and Support Syntax and Usage
Avatar
claestw #6
Member since Sep 2007 · 11 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 4086
Hmmm. But that would make the page "incorrect" semantically, wouldn't it?

Is it going to be difficult to add something like this to the system? Some way of allowing me to just mark off an arbitrary section of content to be put into BLOCKQUOTE tags, while still having the enclosed content formatted by the DokuWiki engine to add the P tags and the usual text formatting and so on.

Was it an explicit design decision to leave out quotes and blockquotes? I am really surprised about this.
topic: Manually announced RSS feed?  in the forum: General Help and Support Features and Functionality
Avatar
claestw #7
Member since Sep 2007 · 11 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 4080
Ah, thanks. I was thinking along the lines of

^.*?:sidebar$

So that something like ns1:ns2:how_i_do_my_sidebar is still treated (appropriately) as a normal page and gets to go into the feed.
topic: [SOLVED] Quoting from a book  in the forum: General Help and Support Syntax and Usage
Avatar
claestw #8
Member since Sep 2007 · 11 posts
Group memberships: Members
Show profile · Link to this post
Subject: [SOLVED] Quoting from a book
Is there a syntax for me to represent something quoted from a book? It may be multiple paragraphs. Something like quoting, say, two paragraphs from a news article. Something that will indent the two paragraphs, and perhaps put one box that goes around the both of them. Also still being able to apply things like text-indent properties to the quoted paragraphs.

Using the ">" looks fine for discussions, but becomes awkward when quoting multiple paragraphs, as there are no P tags in these, only BRs.
This post was edited on 2007-10-06, 06:44 by claestw.
topic: Manually announced RSS feed?  in the forum: General Help and Support Features and Functionality
Avatar
claestw #9
Member since Sep 2007 · 11 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 4076
Thanks for the regex---but wouldn't that match everything with "sidebar" in it? The sidebar page will always have the exact name "sidebar", so to filter it out, shouldn't we match for page IDs that matches exactly "sidebar", no more and no less, in whatever namespace it belongs to?

I checked my feed after an update, and it seems that the default install (2007-06-26) already ignores minor updates in the feed. I'm making a habit of always ticking the minor update box now.
topic: Manually announced RSS feed?  in the forum: General Help and Support Features and Functionality
Avatar
claestw #10
Member since Sep 2007 · 11 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 4071
Thank you very much!

I've put in "sidebar" into the hidepages option and hope I'll never have a page with that word in. (Maybe something like ":sidebar$" is the proper way to do it? I'll have to play with it some time.) But the "minor" option seems to be an url option? Can't find it in the configuration pages, so I inserted $conf['minor']=1 into my local.php and hoped. I'll wait and see what happens next time I update. :D
topic: Manually announced RSS feed?  in the forum: General Help and Support Features and Functionality
Avatar
claestw #11
Member since Sep 2007 · 11 posts
Group memberships: Members
Show profile · Link to this post
Subject: Manually announced RSS feed?
Hi all

I'm using DokuWiki for a personal site, updates are infrequent but often with multiple change and save actions to the same page as I work on it. The current RSS feeds will bother subscribers more than it will help. I also use the Sidebar plugin, and don't want changes to my sidebar to appear in the feed.

Is there a way to control exactly what goes into the feed? I was thinking of something along the lines of an interface that would let me put in short messages like "New page this and this was finished" or "I've just done much more on that and that page", and the feed gets updated with all the date and time stuff. Just an announcement kind of thing, similar to what one would see in a "News" section of websites back in the old HTML3 and Netscape days.

Diffs are out as there are spoiler material, too.

Or perhaps would it be best to find some script that will do this independently of DokuWiki and point my template feed to it?
Close Smaller – Larger + Reply to this post:
Special characters:
Special queries
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-09-17, 08:54:11 (UTC +02:00)