lobsterman
Forum Replies Created
-
I really don’t think it legally has to be GPL compatible, it’s 100% your own code, just calling functions it WP, there’s no legal reason for it to have to be GPL, never mind the random codex contributor.
Forum: Fixing WordPress
In reply to: URL problemI’m pretty sure WP permalinks can only end with ‘/’
Forum: Themes and Templates
In reply to: get pages with span tag in the linksI already found the function, this is the code:
function wp_list_pages($args = '') {
parse_str($args, $r);
if ( !isset($r['depth']) )
$r['depth'] = 0;
if ( !isset($r['show_date']) )
$r['show_date'] = '';
if ( !isset($r['child_of']) )
$r['child_of'] = 0;
if ( !isset($r['title_li']) )
$r['title_li'] = __('Pages');
if ( !isset($r['echo']) )
$r['echo'] = 1;$output = '';
// Query pages.
$pages = & get_pages($args);
if ( $pages ) {if ( $r['title_li'] )
$output .= '<li class="pagenav">' . $r['title_li'] . '
<ul>';// Now loop over all pages that were selected
$page_tree = Array();
foreach ( $pages as $page ) {
// set the title for the current page
$page_tree[$page->ID]['title'] = $page->post_title;
$page_tree[$page->ID]['name'] = $page->post_name;// set the selected date for the current page
// depending on the query arguments this is either
// the createtion date or the modification date
// as a unix timestamp. It will also always be in the
// ts field.
if ( !empty($r['show_date']) ) {
if ( 'modified' == $r['show_date'] )
$page_tree[$page->ID]['ts'] = $page->post_modified;
else
$page_tree[$page->ID]['ts'] = $page->post_date;
}// The tricky bit!!
// Using the parent ID of the current page as the
// array index we set the curent page as a child of that page.
// We can now start looping over the $page_tree array
// with any ID which will output the page links from that ID downwards.
if ( $page->post_parent != $page->ID)
$page_tree[$page->post_parent]['children'][] = $page->ID;
}
// Output of the pages starting with child_of as the root ID.
// child_of defaults to 0 if not supplied in the query.
$output .= _page_level_out($r['child_of'],$page_tree, $r, 0, false);
if ( $r['title_li'] )
$output .= '</ul>
';
}$output = apply_filters('wp_list_pages', $output);
if ( $r['echo'] )
echo $output;
else
return $output;
}I just can’t figure out what i need to edit to make it put spans within the anchor tags.
anyone?Forum: Themes and Templates
In reply to: Can I build this in wordpress?Yes, though you’ll need a ton of plugins and custom code…
Forum: Themes and Templates
In reply to: get pages with span tag in the linksanyone?
Forum: Themes and Templates
In reply to: wrapping text, i’m sure this is simple and i’m being stupid…you need to set the image to float (with css) either to the right or left, ex:
<img style="float:right;" src="" alt="" />
or in your stylesheet, something like this:
.post img {float:left;}
Forum: Themes and Templates
In reply to: Template tagchanging the premissions should do it, but I think it’s best to to add functions into the wp installation like that, you will end up losing them when you upgrade.
your alternatives are:1. writing a plugin
2. putting your custom functions in a file named functions.php inside your active theme’s directory
Forum: Fixing WordPress
In reply to: Page categoriestake a look in the page.php and comment out the code that prints out the category.
sorry I can’t give a more detailed answer, it all depends on the theme you useForum: Themes and Templates
In reply to: get pages with span tag in the linksHi, that would’ve worked, but I need the tag to be INSIDE the anchor tag, cause it’s properties need to change on hover, and as far as I know, IE only supports :hover in a tags
can someone help me understand how the wp_list_pages() function works, so I can build a custom one?Forum: Your WordPress
In reply to: Comment about my themeNice,
just 2 things:
1. on a 5 mbps DSl it took about a minute! for your site to load!!!
2. although that navigation menu is nice, (and using andreas01 for my blog, i have the same thing…) it doesn’t really fit in. maybe align it better with the sidebar…Forum: Everything else WordPress
In reply to: Selling Installations And Customizations of WordPressThat should be OK, WordPress is licensed under the GNU GPL, so selling and/or charging for support/installation is allowed, but if they edited the actual WordPress files, they’d have to release it to the public…
but what they probably sold is a custom WP theme, no a customization of WP itself, which they made, and own the license for, and can release it under any license they want, or keep it private if they want.
personally, I create private WP themes for clients.
there’s nothing wrong with it, it’s like charging for a PHP script even though the php language is free, the language/structure is free, my code is not.Forum: Themes and Templates
In reply to: Some various theme related questionsMost themes separate the page elements for simplicity, and also in the case of the sidebar, cause sometimes some pages don’t use the sidebar. you can do whatever works best for you.
Forum: Fixing WordPress
In reply to: Allow reading comments to registered usersyou can edit the comments.php of your theme adding this conditional:
put this before the part where the comments are displayed:<?php
global $user_ID, $user_identity;
get_currentuserinfo();
if ($user_ID) {
?>put this after :
<?php
}
?>The main difference between blogger and wordpress is, With blogger, you can integrate a blog into your existing site and create a theme that will make it look like the rest of you site. with WordPress, you cn move your whole site to the same system, the whole thing can work with wordpress.
Forum: Themes and Templates
In reply to: Creating a Page for archive of a categoryhey, i found a way, just mannually feeding the loop with query_posts()