Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,501 through 31,525 (of 32,491 total)
  • Author
    Search Results
  • #53288
    ear1grey
    Member

    I’ve cranked out a trac ticket for this, though it’s not clear if the Akismet code is part of the core or not.

    #53313
    skrimpy
    Member

    this is a great looking theme, you’ve integrated it nicely with the blog :D Are you going to make it a public theme? It’s quite sexy ;p

    If you look at the top of the default theme’s header (/bb-templates/header.php) you will see:

    <link rel="stylesheet" href="<?php bb_stylesheet_uri(); ?>" type="text/css" />

    <?php global $bb_locale; if ( ('rtl' == $bb_locale->text_direction) ) : ?>

    <link rel="stylesheet" href="<?php bb_stylesheet_uri( 'rtl' ); ?>" type="text/css" />

    <?php endif; ?>

    Currently, you have a file called he.mo (is that the right name for Hebrew?) in bbPress’ languages directory.

    You should also put a file called he.php in that directory that has the following content.

    <?php

    $text_direction = 'rtl';

    ?>

    Then, bbPress will know that your language is RTL and should include both the style.css and the style-rtl.css automatically.

    But, you’re right. There are a bunch of CSS bugs it looks like. I’ll see what I can do to fix them.

    talgalili
    Member

    Hi mdawaffe – Thanks for the fast reply.

    If I understand you correctly – what you offer is to paste all the content of style-rtl.css, into the file style.css (in the end of it).

    Well, I just tried it, and seems that the style.css has some “design conflicts” in it (look at the forum header for example)…

    you can see the results at:

    http://www.biostatistics.co.il/forums/

    Hope you (or someone else) could help :),

    Tal.

    #50856

    Yes – that’s a great idea :)

    #50663

    In reply to: Displaying Photos>

    There’s a plugin for images: https://bbpress.org/plugins/topic/5?replies=14

    The <blockquote> tag is allowed by default.

    #53277
    Emre Erkan
    Member

    If it is possible, yes. :)

    #53274

    Grazie tante :)

    #1225
    spencerp
    Member

    I’m still in the process of doing things with it, so, if you find things quirky, please be patient… ;) :)

    Anyway, I tried to get the blog’s theme around the forums themselves. I used the blog’s imagery, blog’s style.css codes right in the original bbPress stylesheet.. and so forth. I also used the WordPress.org/support/ user profile layout basically..

    Well, what you think?

    http://spencerp.net/forums/

    Be gentle!!

    spencerp

    #53256
    spencerp
    Member

    Nevermind, I took out the path to the wp-blog-header.php file now, and adjusted my theme accordingly. :) :) If someone wants to try and figure it out though, feel free.. Might be useful later on sometime.. ;) :)

    spencerp

    #1218
    spencerp
    Member

    I’ve already posted this to the list, and I’ve also checked that disabling the one in the blog, stops this from happening. ;) :) However though, the plugin won’t work and do what’s it supposed too! Anyway.. on with the B.S…

    Fatal error: Cannot redeclare bb_int_set_current_user() (previously declared in /home/mypath/myuser/public_html/wp-content/plugins/bbpress-integration.2.php:14) in /home/mypath/myuser/public_html/forums/my-plugins/bbpress-integration.2.php on line 13

    I got this error after uploading, and activating the newest bbpress-integration.2.php plugin.

    I uploaded the two too:

    my-plugins/ directory

    wp-content/plugins/ directory

    Please note though: I’m using the full path to my wp-blog-header.php file, in the forum’s config.php file.

    I also have the following for near footer of the config.php if it make’s a difference:

    $bb->wp_table_prefix = ‘wp_’; // WordPress table prefix. Example: ‘wp_’;

    $bb->wp_home = ‘false’; // WordPress – Options->General: Blog address (URL) // No trailing slash. Example: ‘http://example.com&#8217;

    $bb->wp_siteurl = ‘false’; // WordPress – Options->General: WordPress address (URL) // No trailing slash. Example: ‘http://example.com&#8217;

    // Use the following line *only* if you will be loading WordPress everytime you load bbPress.

    define(‘WP_BB’, true);

    I’m doing this, to be able to use some of my blog’s wp functions, for wrapping the blog’s theme around my forums..

    Is there a way to work around this, or..? Thanks in advanced! ;)

    spencerp

    #53270
    silkjaer
    Member

    Works great, i got most of it translated to danish :)

    #53269

    Yes please add me for the it_IT translationon SVN so i will put there my translation files.

    About the POT i checked a diff with the one i generated nd they looks the same then it’s all ok :)

    #50150
    A1ex
    Member

    Not at all! :)

    #53267

    Yup!

    In fact, if anyone wants one now, I can set it up for you.

    Also… that’s the first pot file I’ve ever made. Can you please let me know of any issues :)

    #53248

    In reply to: bbPress integration

    silkjaer
    Member

    Thanks :D

    #53216

    Sadly, by the time you get to the registration template, the user has already been added.

    You could write a plugin that, during the bb_init hook, checks to see if $_SERVER matches the registration link and, if so, send a header(“Location: http://blah.blah/my-reg.php&#8221;).

    #53238

    In reply to: tag.php access issue

    I really want to know wy this works in PHP5 but not PHP4.

    This needs to get fixed at the source.

    startribe (or anyone who has seen this problem): Can you de me a favor? Unfix the problem, then add $bb->debug = 1; on the first line of bbPress’ config.php file.

    Go to the tags page, and you should see some ugly text at the top of the screen. Can you paste that text here?

    Thanks!

    #53262

    In reply to: Time Format

    ardentfrost
    Member

    BTW, that displays something like this:

    01/05/07 at 10:21:21

    #53261

    In reply to: Time Format

    ardentfrost
    Member

    Here’s how I do it in my private messages plugin

    strftime("%m/%d/%y at %r",strtotime($timevar)+($bb->gmt_offset * 60 * 60))

    Where $timevar is the time that I passed to the function.

    #50379

    Did you find the source of the problem? Even better, did you find a solution? :)

    #1219

    Topic: Time Format

    in forum Themes

    I’ve been scouring the whole code for bbPress and still couldn’t figure out how to set up the format just how I want it for Date and Time (for the post).

    Can anyone tell me where to go for such edits?

    Much thanks.

    #53303
    Ahni
    Member

    ah! I went to trackdown what I added, and realized I was calling the author ID, which is evidently wrong… but this allowed me to get the profile of the logged in user:

    <a href="<?php global $userdata;

    get_currentuserinfo();

    echo('http://intercontinentalcry.mahost.org/discussions/profile.php?id=' . $userdata->ID . '');

    ?>">Your Profile</a></li>

    Thanks trent! You may have only said five words, but they led me to the solution I was looking for – Ahni

    #53310
    ardentfrost
    Member

    Hmm, I don’t think any bbpress functions are loaded when your WP is loaded is it? If not, then you’ll have to build the link from scratch. Link building in bbpress is one of those things you just gotta figure out from doing it a few times (and staring at core code).

    Since you’re doing it specifically for your forums, it doesn’t necessarily have to be in plugin form (which is preferable for me since I never made WP plugins). So I would do something like this:

    Look at the code used to get the logged in user’s name.

    Get the ID of that user anyway you can (you can search the db for the username or use a wp function that I don’t know about).

    Start the link formation like $link = “http://zenhelix.us.to/forums/profile/&#8221;

    Then you can either add the user ID directly to the end using a regular expression ( add a .$userid to the end of the previous line) or just do $link += $userid;

    Setup the link with the a href and all that junk.

    I wish I could give you more specific code, but like I said, I’ve never done much WP coding.

    #53308
    ardentfrost
    Member

    I didn’t know jack about much of this stuff 2 months ago. I had programmed before, but nothing super special (I did an RSS parser for me and my friends’ main webpage, rayd.org). I just kinda got ambitious with this stuff.

    Everything you need to know to do this stuff is in the core code (I’ve pulled so many stylistic and methodological things from preexisting code) and php.net. The only thing you need beyond that is ambition. Mine pretty much peeked when I did Private Messages. I can’t think of another project that will require that much work (though I’m sure there are, I just can’t think of any for now). :)

Viewing 25 results - 31,501 through 31,525 (of 32,491 total)
Skip to toolbar