tr909
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to list the current page’s children?It looks like template-functions-post.php (wordpress 1.5) might have a little bug (or two) because first if a page has no childs i get a WARNING instead of just no list at all. Another bug (i think) is: line 351 it says:
// Output of the pages starting with
child_of as the root ID.
well it only lists the children of that particular ID not that page itself. i made a workaround by first getting the parent id (if present)
$pp=($post->post_parent==0?$page_id:$post->post_parent);
(in english: if post_parent == 0 then this is a parent itself) after that:
$x = get_pages();
echo $x[$pp]->post_title;
foreach($x as $item)
if($item->post_parent=$currentparent)
echo $item->post_title;
Although wordpress is on the way, the Pages and CMS stuff has to mature a bit. I (and others i guess) need a little bit more control over this (preferably thru the admin panels). thnx worpress team for a great product so far
Forum: Fixing WordPress
In reply to: How to list the current page’s children?It looks like template-functions-post.php (wordpress 1.5) might have a little bug (or two) because first if a page has no childs i get a WARNING instead of just no list at all. Another bug (i think) is: line 351 it says:
// Output of the pages starting with child_of as the root ID.
well it only lists the children of that particular ID not that page itself.
i made a workaround by first getting the parent id (if present)
$currentparent = ($post->post_parent==0? $page_id : $post->post_parent);
(in english: if post_parent == 0 then this is a parent itself) after that:
`$x = get_pages();
echo $x[$currentparent]->post_title;
foreach($x as $item) if($item->post_parent=$currentparent) echo $item->post_title;’Although wordpress is on the way, the Pages and CMS stuff has to mature a bit.
I (and others i guess) need a little bit more control over this (preferably thru the
admin panels).Forum: Themes and Templates
In reply to: Removing the <P> from posts…arghh!With WordPress 1.5 i saw that the_content(); function calls
get_the_content(); and after that calls apply_filters();Instead of editting (hacking) includes you can use:
echo get_the_content() for raw post data in your
index.php (or pages/categories etc.)
(please correct me if i’m wrong in this)Forum: Fixing WordPress
In reply to: Mac Support for adding entriesThere are some (rather clunky) java applets (slow, unfriendly, not opensource and cost money) so no, no WYSIWYG, RTF, RTE, rich text editor in safari on the mac. Rumor is that ‘Tiger’ (the next upgrade $ for MacOS X) will support html-editting right in Safari (new webkit/webcore functionality) (There is some discussion if and or it will end up in the final version when ‘Tiger’ is released because of webstandards etc.) So we wait for Tiger and see where it will put us Mac users.
So the short anwser is: No, no wysiwyg editting with safari
…BUT firefox shows the wordpress editor and puts the tags in correctly.
also there is wysiwyg support in firefox (not used in wordpress yet?)
https://www.mozilla.org/editor/midasdemo/Good luck, and see you in ‘Tiger’
Forum: Fixing WordPress
In reply to: Spam problems? (solution1)coveniance and simplicity for the end user? i don’t know but i guess this rotating form-field-name isn’t easily implemented with a plugin. Also i think that some plugins more or less add to execution time while their functionality is very basic to the wp system.
Forum: Your WordPress
In reply to: apple.com using wordplaywell that’s a whole different discussion (with the patent office and so) just see th MS IsNot patent appliance ?? But as said take your inspiration, just don’t make an Apple page.
Forum: Themes and Templates
In reply to: Where are themes?We need a 1.3 style sample (for the wp-themes dir) please post a demo for us to work on.
Forum: Your WordPress
In reply to: apple.com using wordplayI’m not sure, but they don’t have any copyright notice in the template (wp-layout.css). Maybe if you use enough of your own makings (heading and others) i guess they won’t bark at you. I agree it is a nice basis, and derivative works are allowed, aren’t they?
Forum: Plugins
In reply to: Faked Folders error (htaccess? modrewrite?)the /wp-admin/options-permalink.php is a nice helping tool to make your mod_rewrite rules, make sure you have
RewriteEngine on
andRewriteBase /wp
before defining rules.Forum: Plugins
In reply to: Which text editor on OS XTextMate: The Missing Editor for OS X($49 a fraction of BBedit). Although SubEthaEdit is a good one too, and free for none commercial use.
SubEthaEdit even let’s you type together in your scripts (over the internet), This together with iChat conference (talk to each other over the internet) it’s even a greater way to look at the same issue together.