Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 28,401 through 28,425 (of 32,499 total)
  • Author
    Search Results
  • #62349

    In reply to: bbPress versus PunBB

    kernow
    Member

    bbPress looks great on a mobile phone. Well it does on my Nokia N95 8gb anyway :) Downloads quick too. The future is mobile!

    #2787

    Topic: New Green theme/forum!

    in forum Themes
    newyearwill
    Member

    I’d like to start off by saying what a fantastic piece of software bbpress is – I love the similarities with WordPress: clean HTML & CSS code. In my opinion it’s like a breath of fresh air compared to other forum software because you can easily customise it to fit your site. I just hope the clever designers and developers continue their excellent work with future releases.

    …anyway enough of my rambling, here is my forum (still needs a few finishing touches):

    http://forum.reclaimyourskin.co.uk

    #62368
    Olaf Lederer
    Participant

    Hi,

    do you checked the setting in the config.php file?

    it must be something like:

    // The full URL of your bbPress install
    $bb->uri = 'http://www.domain.com/forums/';

    maybe you can post some URL?

    #62357

    In reply to: PHP Error Messages

    Sam Bauers
    Participant

    Change line 168 of bb-settings.php to

    if ( function_exists( 'glob' ) && is_callable( 'glob' ) )

    .

    Also, change line 6 of bb-admin/plugins.php to (note curly brace at the end)

    if ( function_exists( 'glob' ) && is_callable( 'glob' ) ) {

    .

    I suspect the version of PHP where the problem is occurring is less than 4.3.0

    Either that or the “glob” function is disabled by the system administrator.

    #62250
    fel64
    Member

    You need to include bbPress. To do this, make sure that your bbPress supports being integrated thoroughly with WordPress (not just users, also functions), then open your wordpress config file and at the bottom put require_once('path/to/bb-load.php'); That’ll let you use the bb functions too.

    #62356

    In reply to: PHP Error Messages

    chrishajer
    Participant

    My server does not allow these overrides in the .htaccess to turn off error reporting. Maybe someone else’s server will?

    # suppress php errors
    php_flag display_startup_errors off
    php_flag display_errors off
    php_flag html_errors off

     

    Not sure if that suppresses all errors, or just errors and not warnings, or what. Didn’t work on my server :)

    I got that information here:

    http://perishablepress.com/press/2007/12/17/how-to-enable-php-error-logging-via-htaccess/

    tommy2toes
    Member

    I had some luck using wordpress Theme Functions.

    For example my BBPress pulls the top header image, navigation and footer from wordpress. It does not pull between the <head> </head> tags. But this allows me to control the nav and header in one place as well as footer, so that everything gets updated.

    If you have your bbpress install setup to use wordpress functions it’s pretty easy to do.

    As for CSS, I hate the way other people code css so I always end up ripping it all out and starting from scratch.

    Check out this page:

    https://codex.wordpress.org/Theme_Development

    #62377

    In reply to: How do I post sticky?

    chrishajer
    Participant

    I think you can only make a thread sticky. At the bottom of the thread, when you are logged in, you will see this link:

    [Stick topic (to front)]

    Click either “Stick topic” or “to front” and the thread will be sticky. If you’re not admin (keymaster) I don’t think you see that.

    I don’t think the links are visible while creating a new post or thread. So make your post, then view it and look at the bottom of the page; you’ll see the links you need.

    #62346

    In reply to: bbPress versus PunBB

    Bob Jones
    Member

    I had used punBB for a while and really liked it – except for the really long amount of time that it takes to update the software. They’ve been working on v1.3 for years now. That’s the version I’ve been waiting for.

    punBB seems to be more robust, but the code is a little more sketchy. bbPress is more simplistic but the plugin system makes a pretty good addition. Another thing about punBB that bothered me is that topics aren’t marked as read when you read them – your cookie has to expire before a topic is marked. They have an addon for that, but all the addons rely on editing a lot of files and also is very heavy on the database.

    For right now, I’m sticking with bbPress and seeing how everything will end up.

    #60154
    ruilouis
    Member

    I’d crave for it too ;)

    #62232
    projectego
    Member

    Thanks for the tip on updating bbPress themes, sambauers. I’ll check out the link now. I’m still new to bbPress skinning but hopefully it’ll be pretty straight forward. :)

    Steve

    #55827

    In reply to: Permalinks

    itissue
    Member

    I’m using the private messaging plugin but now I have to add code to my .htaccess page. I’m stumped as to what to write because I don’t understand .htaccess. Could anyone translate this for me?

    http://tapestry.suefeng.com/message?id=1

    http://tapestry.suefeng.com/pm.php?new=1

    The first link’s number changes for different messages. For example, the first message will have /message?id=1 and the second one will have /message?id=2.

    The second link actually works fine…i guess it doesn’t need to be fixed but it’d be great if it could look differently.

    Thanks for your time,

    Sue

    #56981

    Vili. I have Dan’s avatar thing working on my wordpress blog, and I have installed bbpress and have been having the hardest time getting the integration to work. I am not very familiar with php, so if you could tell me what I am doing wrong, I would be grateful.

    I have bbpress installed in a subfolder one level up from my wordpress install in a folder called ‘forums’. I read all the comments here, and have looked at the Function integration part of the “Integration with WordPress” post per your suggestion. I added the code:

    require_once(‘path/to/wp-blog-header.php’);

    to the bbpress config.php file, and it throws an error when I load bbpress. I have tried using ‘wp-blog-header.php’ and ‘/wp-blog-header.php’ and ‘/’ and even ‘ ‘ as the path to the file, and nothing works, it throws an error every time. I even tried a backslash! lol

    #60150
    citizenkeith
    Participant

    “I ported GamerZ’s useronline plugin for wordpress to bbpress awhile back. Been meaning to clean it up and release it one day.”

    Any news on this one? :-)

    #62317
    cart3r
    Member

    Thanks! 1st and 3rd things are resolved.

    I’ve been trying hundreds of different things/syntaxes to get the second item to work, but to no avail yet. I’m sure it must be the way I’m trying to code it (Full disclosure: I’m still trying to learn PHP).

    What I’m going for is as follows:

    Run the foreach, and then using array_shift(), grab the first item in the array, and then display just the post_text() that is contained within that array (assuming this is an array within an array)

    This what my code (stripped down) looks like:

    INITIAL POST:

    <? php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?>

    <?

    php array_shift();

    echo post_text();

    ?>

    <?php endforeach; ?>

    =====================================

    and then later on, when the responses are displayed:

    <? php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?>

    <?php echo post_text(); ?>

    <?php endforeach; ?>

    I was hoping the first initial post wouldn’t be displayed since array_shift() would have taken it out?

    Any help would be greatly appreciated…

    #62316
    fel64
    Member

    – 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 );

    #50392
    fooddude
    Member

    RCanine – that code works perfectly! Fixed the problem in titles and posts. Thanks!

    #2766
    cart3r
    Member

    Hello all,

    I recently dove into the exciting world of BBPress, and in the midst of working out a custom theme (tweaking structure as well), I was wondering if the following things were even possible to do, or are they more suited to be plugin requests?

    – attach forum name to latest topics of main page. ie I want to have a topic display like this:

    “Plugins | Lorem ipsum dolor sit amet”

    (where “Plugins” is the forum name and “Lorem ipsum dolor sit amet” is the topic, obviously.

    – Within each topic, separate the original post from the comments. I guess this is similar to how a blog entry is; with the entry featured at the top, and the comments displayed below and less prominently. It seems like the way BBPress is coded they can only be stacked on top of each other and have a similar design treatment?

    – Tweak post count so that if no has yet replied to a post it is “0” instead of “1”

    Hopefully these are just things that are right under my nose that I haven’t been able to figure out, but let’s see…

    Thanks!

    #2742
    benbeltran
    Member

    I recently changed my forum’s style and added some features:

    *Add youtube videos by using [youtube][/youtube] tags, instead of allowing the code to be written.

    *Allow [flash][/flash] to be added, using the temporadadepatos.net file uploader.

    *Friends system

    *Quite different profile page

    *Color fading Heatmap

    *A universal top bar (for the whole site) integrated to the forums where the login form is. Once logged in, it shows a random phrase each time you refresh.

    *Integration with my website (custom CMS, not based on wordpress). (For login and for showing community blog posts on the forum profiles).

    *Badges System

    The link is: http://temporadadepatos.net/foros/

    And here’s a link to a profile: http://www.temporadadepatos.net/foros/profile/ogu

    Tell me your opinions :D

    #62292
    fel64
    Member

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

    #2765

    Topic: cannot select DB

    in forum Installation
    bedfordbear
    Member

    sorry guys but looked through some of the other answers related to this and it goes way over my head.

    i created a mySQL dB through cpanel it’s called bbpress when i look at the databases then it is now called rogermby_bbpress do i use this full string as the dbname?

    same with the user bbadmin is now rogermby_bbadmin

    the password i entered when i made the db do i just add this (in plain text exactly) along with the other info above to the config.php file?

    when i look in my wp-config.php on one of my wordpress installs it uses the rogermby_wrdp1 as the database name and user!?

    i did all the simple steps but all i get is cannot select DB. i am installing on a subdomain xxx.yyyy.com is that an issue?

    ok forget that something changed and it works :) i have the same problem with wordpress sometimes if i leave a problem in the night and come back in the morning its fixed, you think my network operator or somebody caches something and i cant clear it?

    #62291
    basher
    Member

    Thanks fel64, I got through the setup now. :) I installed BBpress without WP integration because it told me that I’ll be able to do after install, in the admin menu.

    So I did. After install I logged in and went to the Integration with WordPress menu and filled in the required fields. After saving changes I couldn’t go back to the Admin menu, because the option went away.

    In the upper left corner it says: “Welcome, admin! View your profile (Log out)” Before integration there was an Admin option too to access the Admin menu.

    The only thing now I can do is to post into the default forum as a member. Any idea?

    #62290
    fel64
    Member

    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'

    #62289
    basher
    Member

    Hi guys!

    I’m new to WP and BBpress too. So far I couldn’t integrate the forum into my WP install, but I found the secret value:

    I logged in as admin into WordPress, and visited the options menu. In the addressbar modified the options-general.php part of the url to options.php and it showed the secret value. Is that right or I did something wrong? :)

    With WP integration, at the third step of the bb install, I can’t select a Key master from the dropdown list because there’s no user listed. So I can’t finish the setup. At the first step, do I have to set the BB database table prefix to match my WP installs table prefix?

    #62297
    chrishajer
    Participant

    No, not avatars :)

    With WordPress, they include Hello which is an admin only plugin and it serves mostly to show how a plugin is done. It doesn’t affect the public site at all, and it’s not activated either. I would think a similarly benign plugin could be included, just so there is something there.

Viewing 25 results - 28,401 through 28,425 (of 32,499 total)
Skip to toolbar