fel64 (@fel64)

Forum Replies Created

Viewing 25 replies - 51 through 75 (of 1,001 total)
  • In reply to: –>Tiny url Plugin

    Right now the number of ideas outnumbers the number of people without ideas that want to implement other people’s ideas. This is something that I suspect will be true until the end of time. You’ve got two options (apart from waiting for an implementing-monkey to have this idea too): do it yourself or pay someone to do it.

    Well yeah, when you’re in /wp-admin/ you’re one folder deeper than when you’re in the forum root. Use absolute not relative paths and you’ll be fine.

    – You’d want to use forum_name( $topic->forum_id ).

    – I think so. If you look at the code you’ll see an array of posts, and by using array_shift() you can detach the first one and have some special template code just for that. Be sure to check it’s the first post of the topic, though, not just the first post of the page. Maybe a better thing to do would be to add a class to each post giving it a topic-specific number, so you can style topic-post-1 or whatever individually.

    – Where in your template I assume it says topic_posts(), replace that with echo( get_topic_posts() - 1 );

    Yeah, lost your capabilities. Look in the wp_usermeta table and delete the entry with meta_key capabilities if I remember rightly.

    Cool, going via options.php sounds good.

    When you integrate, you musn’t give them the same prefix or some tables will collide. You need to set these three in your config.php though, if you haven’t already. Obviously change them to your appropriate values, these are just mine.

    $bb->wp_table_prefix = 'wp_';  // WordPress table prefix.  Example: 'wp_';
    $bb->wp_home = 'http://localhost/wordpress'; // WordPress - Options->General: Blog address (URL) // No trailing slash. Example: 'http://example.com'
    $bb->wp_siteurl = 'http://localhost/wordpress'; // WordPress - Options->General: WordPress address (URL) // No trailing slash. Example: 'http://example.com'

    No, from the PHP docu glob only returns false when it encounters an error. No files found makes it return an empty array. (I don’t have any underscored files and it works for me, too.)

    But I agree with you, those folders should be in there by default. What plugins could be included that could be interesting to everyone? Avatars?

    I think the secret is the salt used by WP in its password hashing. For bb and wp to hash passwords the same way, they both need to know the salt. I think that you can set the secret in wp’s config file. All this info is in wp’s trac tickets in greater detail and accuracy.

    Can you create the my-plugins directory in your root folder? I assume it isn’t there, that’s the only reason I can see for glob() to return false rather than an array.

    That’s not the only way you can do this.

    You can either use the wordpress header replacement technique, by which you use the wordpress header and any number of theme files, meaning that you can have your forums exactly where your wordpress content is, surrounded by your wordpress header and sidebars and footer, using the wordpress theme file, with a supplemental file to style bbPress differently. This is great because not only the stylesheet is shared but so are a bunch of the HTML-generating files, and your bbPress stylesheet is seperate so it doesn’t get in the way of anything.

    You can also just copy your theme by duplicating the look in bbPress. I’d say it was a lot easier to change the CSS than it was to go through all the HTML-generating files and changing those to use the WordPress CSS, and then still adding more CSS.

    Having just done both for two different clients, I’d personally recommend the first option; it’s going to be slower on the server, but faster to do (ie. cheaper to have done) also a lot more maintainable and thorough.

    leeppp, I offer this sort of thing professionally. If you want me (or even someone else) to do it, just post your email and I’ll get in touch.

    In reply to: Moving bbPress

    For some reason bbPress seems to think your theme is in root. I’d ask you to set the theme again, but, you know, what with not being able to log in …

    so first of all, please add define('COOKIE_DOMAIN', '.llamaslayers.com'); to your config.php. Hopefully that’ll let you log in.

    In reply to: Moving bbPress

    Can you link to the subdomain and copy your config.php to http://bb.pastebin.com/ so I can have a look please?

    In reply to: Moving bbPress

    You need to update your config.php file.

    I sure don’t, but Louisedade always said his Upload Avatar plugin was originally a file upload script he hacked to use avatars. It might be a good place to start.

    Biggest problem you’ll have IMO is where to store post metadata. Usually I hate a plugin to add a table, but in this case it’s probably totally appropriate (and hey, if it works well maybe more plugins’ll use it and/or it’ll be taken into the core?).

    If you post your email I’ll get in touch about converting the theme, but have you explored your options of using your wordpress headers? I haven’t done it, but there’s quite a bit of discussion on these forums about it and it should achieve the same effect.

    bb_head appears to be a filter.

    So you need to modify the if( … ) statement to look for those properties. What are you having a problem with?

    What forum categories?

    You want a plugin like this:

    <?php
    /*
    Plugin Name: noindex stuff
    */

    add_action('bb_head', 'my_add_noindex_tag');
    function my_add_noindex_tag() {
    if( is_forum_category() )
    echo '<meta name="robots" content="noindex" />';
    }
    ?>

    That’s off the top of my head, so it may not work without some modification, but that’s what I think the structure needs to be. You’ll need a different conditional tag than is_forum_category(), probably is_forum() if you just wanted to not index forum pages.

    It’s a bug.

    I’ma guess you have Allow Images? At least for me, without AI backticks work fine, with AI they don’t – I guess one of the code handling functions is broken by AI.

    At 2 months, he’s long gone. Are you having the exact same problem? What’s the URL of the pages that display 404s, and what’s your pretty permalinks setting?

    (edit) right, you posted another topic. https://bbpress.org/forums/topic/profile-link-error?replies=2

    You might find that it makes your designing easier if you use

    p + p {
    margin-top: 1em; }

    That’ll add a 1em margin to the top of every p immediately following another p. I find that helpful because then it’s easier to style the blockquotes and such without having to account for the p around it.

    Be careful with modifying code files unless you’re familiar with SVN, you’re going to have troubles upgrading. :/

    In reply to: Website links…

    I read that as “_ck_ fel64 and I have another problem,” sorry. I don’t know how to do this, if my previous suggestion doesn’t work.

    You need to change the theme file post.php.

    In reply to: RSS to Posts?

    If they use the same user tables, sure.

    pretty permalink

    /topic/12

    slug-based pretty permalink

    /topic/comic-sans-the-devils-font

Viewing 25 replies - 51 through 75 (of 1,001 total)