Forum Replies Created

Viewing 15 replies - 151 through 165 (of 180 total)
  • *scratches head* why do people need an admin option to turn the calendar off when all they have to do is delete <?php include(“b2calendar.php”) ?> from their template?
    I’m all for making things easy for the non-technically-adept, but anyone capable of installing WordPress is surely also capable of deleting an include.

    You’re not trying to put it on the default index.php are you? Coloured scrollbars don’t work in XHTML.

    Forum: Fixing WordPress
    In reply to: Cursor return

    I have the same problem when using quicktags with Firebird… I usually end up just typing in the html or BBcode to avoid it. And I use w.bloggar for extended posts anyway.

    I think the calendar should stay in the default template, if only so that people can see how it’s implemented; if they don’t like it, they can edit it out. I don’t use it to navigate, but I find it useful in gauging the frequency of updates when I visit a blog. And it gives me more css to play with when I’m skinning ??

    Forum: Fixing WordPress
    In reply to: Comment Popups

    from the readme:

    <?php comments_popup_script() ?>
    This will include the javascript that is required to open comments, trackback and pingback in popup windows.
    You should put this tag before the </head> tag in your template.
    Parameters:
    * width (default is 400)
    * height (default is 400)
    * file name, in case you want to use a different template for comments (default is b2commentspopup.php)

    So to get a 300×200 window, you’d use < ?php comments_popup_script(‘300′,’200’) ?>

    Yes, ‘hacks’ sounds slightly scary for no0bs. It has that ‘not quite official so it might give me a virus and crash my computer’ vibe about it. I like ‘mods’. Or how about ‘extensions’?

    Thread Starter notthatugly

    (@notthatugly)

    I deliberately kept the colour scheme simple so that changing it would be a simple matter of find/replace (my first draft was green!) . And it should be pretty easy to restore any original features, such as the colours and the logo, by cutting and pasting from the original .css. It just seemed a logical next step, after experimenting with wp-layout.css, to play around with the backend and see what could be done with that. If you have experience customising wp-layout you shouldn’t have too much trouble with wp-admin.
    I have the Web Developer tool, but haven’t played around with it much yet; I think the IE issue may be down to the width of the table as specified in the html. IE seems to be rendering it as 90% of the page width including the left margin, whereas Mozilla and Opera calculate it as 90% minus the left margin. Annoying.
    Another issue is that because the html specifies a white table background for the ‘Team’ listing, that’s displaying white-on-white for me. But, as it’s a single-user blog and I never use that page, I don’t care ??

    Thread Starter notthatugly

    (@notthatugly)

    Well, if that was a problem for you you’d get rid of ‘text-align:center’, just as if you disliked purple you’d change the colours. I don’t use the admin pages for reading previous entries, so it’s not an issue for me.

    It’s worth remembering that, as you have your own server space, not all your text needs to be entered via WordPress. You can upload separate html pages, or text files that you can call using a standard php include. For example, I have files called domain.inc, cast.inc, bio.inc, etc., which I can either make a separate page for or even incorporate into the sidebar: <?php include (‘domain.inc’); ?> It just seems to be a much simpler and more flexible way of doing it.

    No, it’s at the very top, before the <html> tag. I forgot one other thing; somewhere inbetween <head> and </head> you need < ? php comments_popup_script (); ?>, or the pop-up window for the comments won’t work.
    (This is why some people find it easier to edit index.php or the CSS, rather than trying to insert all this stuff into a pre-made page…)

    As Cena says, probably the quickest thing to do would be to cut and paste the WordPress code into the html you’re currently using for diaryland, replacing the diaryland variables with WordPress ones. (The readme.html in your WP zip file has a list of most of the major tags).
    You also need to remember that a WordPress template uses a bit of extra code that diaryland ones don’t. This code needs to go at the very top of your template:

    < ?php /* Don't remove these lines, they call the b2 function files ! */
    $blog = 1;
    require_once('blog.header.php');
    require_once($abspath.'wp-links/links.php');
    require_once($abspath.'wp-links/links.weblogs.com.php');
    ?>

    You also need to use the start and end codes at the beginning and end of each entry block. So to replicate the effect you’ve got at the moment, you’d replace %%entries%% in your diaryland template with this:

    <?php if ($posts) { foreach ($posts as $post) { start_b2(); ?>
    <?php permalink_anchor('id') ?>
    <?php the_content() ?>
    <br/><br/>
    Amy ranted at "><?php the_time( 'g:i a') ?> on <?php the_time('F j, Y') ?><br/>
    <?php comments_popup_link('No-one ranted back', 'One ranted back!', '% ranted back! '); ?>
    <?php trackback_rdf() ?>
    <?php include($abspath . 'b2comments.php'); ?>
    <?php } } // end foreach, end if any posts
    ?>

    You’d probably want to mess around with that and your sidebars to incorporate other features such as categories, entry titles and the links manager; have fun experimenting!

    Forum: Fixing WordPress
    In reply to: Help me!

    I think it might be possible, if you had separate templates that specified in the header to only display posts from one category, and specified which template you wanted in your links. So, instead of linking to ‘index.php?cat=1’ you’d link to ‘nuggets.php’ or whatever. And ‘nuggets.php’ would have ‘$cat=1’ in the header. In b2, you could set the number of posts to be displayed by inserting
    < ? php $posts = x; ? >
    on the first line of the template, but I haven’t tried that in WP.
    Your main issue would be archives, because I can’t see how you’d be able to direct the links to different templates from there. You’d have to hack the PHP, and I don’t know enough about that to tell you whether it’s possible.

    It goes in the parameters for comments_popup_link:
    < ? php comments_popup_link(‘Comments For This Article (%) ‘); ? >

    Slightly off-topic, but I’m really confused by the number of different tags people seem to be using to call the links; get_links, get_links_list, wp-get_linksbyname, etc. etc. I looked at the page in the docs but that just seemed to be about the admin side, rather than the calls. I’m going to have a root around in the php files to see if they’re documented there.
    (I remember there being something in the dev blog about get_links_list, but I can’t find a link to the archives. I’m slow today.)

    I know people who swear by Opera, but I can’t deal with the ad-panel myself. Now I’m used to Firebird, I find the interface of every other browser unbearably slow and clunky. (Though this could be because my four-year-old laptop is itself on the slow and clunky side)

Viewing 15 replies - 151 through 165 (of 180 total)