Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 24,401 through 24,425 (of 32,432 total)
  • Author
    Search Results
  • #75826
    citizenkeith
    Participant

    And just as I was typing this, I got the database upgrade message again when visiting the admin panel. The upgrade message:

    Beginning upgrade…
    Tags copied to taxonomy tables: bb_upgrade_1080
    Display names populated: bb_upgrade_1090
    Index forum_stickies dropped: bb_upgrade_1100
    >>> Done

    Fourth time since last night.

    #15240
    citizenkeith
    Participant

    I’m running 1.0 on Media Temple’s Grid Service.

    As reported earlier, every once in a while, bbPress requires the database to be “upgraded”. All my plugins are messed up (some on, some off) and the theme is switched to Kakumei Blue.

    This happened again last night, but this time I am unable to activate certain plugins. When I try, I get fatal errors.

    When activating bbPM, the error is:

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 4864 bytes) in /domains/mydomain.com/html/forums/bb-includes/backpress/functions.kses.php(104) : runtime-created function on line 1

    With bb Topic Views, the error is:

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 14592 bytes) in /domains/mydomain.com/html/forums/my-plugins/bb-topic-views/bb-topic-views.php on line 194

    For Members Online, the error is:

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 14592 bytes) in /domains/mydomain.com/html/forums/my-plugins/members-online/members-online.php on line 116

    For Topics Per Page, there is a fatal error but no specifics.

    For Unread Posts, the error is:

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 14592 bytes) in /nfs/c04/h04/mnt/68418/domains/citizenkeith.com/html/forums/my-plugins/unread-posts/unread-posts.php on line 127

    Before last night, all these plugins worked fine. Then suddenly, I had another database upgrade and they wouldn’t work. I upgraded to 1.0.1 and that didn’t help.

    I am going to speak to Media Temple tech support today. Hopefully these errors can be explained and perhaps help somebody else in the future.

    #75779
    _ck_
    Participant

    If the new cookie has a different name, you should not be having a problem because bbpress should not even be looking at the old cookie?

    You are getting a header error because you would have to put it at the very, very top of header.php before doctype – if that doesn’t work, you’d have to add it via a mini-plugin, put it into a file called function.php in your template folder

    add_action('bb_send_headers','delete_old_cookie');
    function delete_old_cookie() {
    setcookie('wordpress_logged_in_REPLACEDcabef','',time()-3600);
    }

    #75778
    deadlyhifi
    Participant

    Thanks _ck_. I’m sure it’s easy when you know how.

    The cookie now has a different name.

    my old cookies are:

    $bb->authcookie = ‘wordpress_REPLACEDcabef’;

    $bb->secure_auth_cookie = ‘wordpress_sec_REPLACEDcabef’;

    $bb->logged_in_cookie = ‘wordpress_logged_in_REPLACEDcabef’;

    I was messing with

    setcookie('wordpress_logged_in_REPLACEDcabef','',time()-3600)

    just placing in the head of my page but I get a headers already sent message.

    #64877
    Florian
    Member

    Just in case anyone else (like me) stumbles over this thread on the search for an WYSIWYG editor. The problems discussed above seem to have disappeared. I just added TinyMCE 3.2.5 to my bbPress 1.0.1 installation and it works like a charm without modifications besides the removal of obviously unsupported elements.

    Cool. :)

    #59171
    Ohna
    Member

    I think this isn’t the best practice but you can try this for the moment:

    If you use a custom template, edit with a text editor:

    my-templates/(name_of_your_templates)/front-page.php

    after:

    <?php bb_get_header(); ?>

    add:

    <?php if ( bb_is_user_logged_in() ) : ?>

    before :

    <?php bb_get_footer(); ?>

    add :

    <?php else : ?>
    <?php if ( !in_array( bb_get_location(), array( 'login-page', 'register-page' ) ) ) login_form(); ?>
    <?php endif; // bb_is_user_logged_in() ?>

    do the same for:

    my-templates/(name_of_your_templates)/topic.php

    my-templates/(name_of_your_templates)/forum.php

    my-templates/(name_of_your_templates)/profile.php

    my-templates/(name_of_your_templates)/tags.php

    my-templates/(name_of_your_templates)/tag-single.php

    my-templates/(name_of_your_templates)/view.php

    but your forums posts can allways be read trough the rss feed..

    #75738
    _ck_
    Participant

    This will show avatars

    add_action('topicmeta','voices_named');
    function voices_named() {
    global $bbdb, $topic;
    $results=$bbdb->get_results("SELECT ID,user_login FROM $bbdb->posts LEFT JOIN $bbdb->users ON poster_id=ID WHERE topic_id=$topic->topic_id AND post_status=0 GROUP BY poster_id");
    $count=count($results);
    if ($count>1) {
    foreach ($results as $result) {$ids[$result->ID]=$result->ID;}
    bb_cache_users($ids);
    $list="";
    foreach ($results as $result) {$list.=bb_get_avatar($result->ID, 16).$result->user_login.", ";}
    $list=trim($list,", ");
    echo "<li>$count members active on this topic: $list</li>";
    }
    }

    #75737
    _ck_
    Participant

    I actually had it tested in 1.0, if it’s not working in your theme and it’s a custom theme, make sure you have a do_action('topicmeta') somewhere in there.

    Adding avatars makes it much more complicated, I’ll give a shot at the code in a minute.

    #75736
    Ohna
    Member

    Thank’s _CK_ !!

    But, your code doesn’t seem to work in bbPress 1.0 (I tried to add it in functions.php or directly in topic.php).

    However I have no problem if I add your code in bbPress 9.0 theme.

    I want to add ” <?php echo bb_get_avatar( $poster_id->ID, $size , $default); ?> ” in your code, but I can not ?

    #15232
    deadlyhifi
    Participant

    I upgraded my forum to 1.0 and at the same time converted my WP into WPMU. It was a bit of a mammoth task to be honest. I inadvertently changed the cookie values in this upgrade.

    My problem now is many of my users are getting to the forum with their old cookies intact. Logging in, and, because the old cookie with the wrong value is being read accepting their details but keeping them logged out.

    Is there anything I can do to force deletion of their old cookies when they visit the site. I’ve put instructions up on how to delete their old cookies, but it’s a bit lame and making me look pretty bad :(

    #75644
    ovizii
    Participant

    I guess the 1.0.1 update fixed it so far. still got two remaining issues:

    – the feed still shows every topic/post double

    – my key master still has (Inactive) after his name, refreshing sometimes shows him as (key master) but rarely although the integration works, wordpress realizes the user is a keymaster and logged in I can go to the admin part of wordpress and bbpress without hickups, but when viewing a key master’s psot, it still says: Inactive :-(

    #75371

    In reply to: bbPress 1.0 released

    Dolugen
    Member

    @_ck_

    Does it mean the 0.9 and 1.0 have different code architectures ?

    #59170
    dan90036
    Member

    Thank you Ohna, one question in which file and where should I put this snippet of code?

    Dan

    #74435
    punktoronto
    Member

    Has this been solved? I’ve been trying to figure it out as well. Everything I’ve found is for wordpress-mu and I’m not sure what needs to be changed to use it with regular wordpress.

    I found this http://insecure.no/2009/01/wordpress-and-bbpress-nice-url-rewrite-for-nginx/ it sort of works. pretty permalinks work but any attached files such as the css sheet or jquery.js returns a 404 not found error. Any Ideas?

    # SEO friendly URLs for bbPress

    #

    location /forums/ {

    root /path/to/YOURDIRECTORY/public_html/forums;

    index index.php;

    if (!-e $request_filename) {

    rewrite ^/forums/topic/(.*)$ /forums/topic.php?q=$1 last;

    rewrite ^/forums/forum/(.*)$ /forums/forum.php?q=$1 last;

    rewrite ^/forums/profile/(.*)$ /forums/profile.php?q=$1 last;

    rewrite ^/forums/view/(.*)$ /forums/view.php?q=$1 last;

    rewrite ^/forums/tags/(.*)$ /forums/tags.php?q=$1 last;

    rewrite ^/forums/rss/(.*)$ /forums/rss.php?q=$1 last;

    rewrite ^/forums/bb-admin/ /forums/bb-admin/index.php last;

    rewrite ^/forums/ /forums/index.php last;

    break;

    }

    }

    #15233
    Dreamcolor
    Participant

    bbPress 1.0.1 Simplified Chinese Translation.

    You can download it with the URL below.

    http://wpcn.googlecode.com/files/bbPress.1.0.1.Simp.Chinese.pack.only.v1-wpcng.zip

    There maybe still have some translation bugs. So please let me know and I will fix it.

    #75606

    In reply to: Mobile Uploads?

    ArnyVee
    Member

    ck, so maybe use a service like flickr and have them display in the sidebar or something? That might be an option it seems.

    I’m brand new (as you know) to the bbPress side and don’t have any coding experience. So, I’ll have to hope that someone comes up with a plugin down the line for flickr (although I’ll go check in case there’s one already out there) or a similar service.

    How do I get to the sidebar? Meaning, which file do I edit to add the code for that flickr embed file?

    #75735
    _ck_
    Participant

    If you add this code into a file called functions.php and put it into your theme folder, it will show the active names in the topic (if there is more than one person) It uses one extra query but it will also will work on 0.9

    add_action('topicmeta','voices_named');
    function voices_named() {
    global $bbdb, $topic;
    $names=$bbdb->get_col("SELECT DISTINCT user_login FROM $bbdb->posts LEFT JOIN $bbdb->users ON poster_id=ID WHERE topic_id=$topic->topic_id AND post_status=0");
    $count=count($names);
    if ($count>1) {echo "<li>$count members active on this topic: ".implode(", ",$names)."</li>";}
    }

    #59169
    Ohna
    Member

    Hi, dan90036

    Try this:

    <?php if ( bb_is_user_logged_in() ) : ?>
    HTML content for registred user
    <?php else : ?>
    HTML content for unregistred user
    <?php endif; // bb_is_user_logged_in() ?>

    #75758
    Kar-l
    Member

    Thank you for the reply. _ck_ says this plugin is old… so I’m hesitant… (security, compatibility, name it)

    Besides I believe it’s a good idea to show most content to visitors, just not all the content. The same applies to search engines – I don’t want to mess with serving different content to spiders, what would be sleazy.

    If there is nothing like what I ask about, maybe it’s a good idea for a new plugin? ;)

    #75409
    michael3185
    Member

    “Weigh in”? Geez, putting your own opinion forward doesn’t turn life into a wrestling match.

    I could have explained better. The woman in question doesn’t understand the concept of the Gravatar being in one place and therefore easy to change. As far as she’s aware, sites you give your email to have access to that email, and things virtually attached to it. As an example, I have people who think you can’t use the same name with a different email service provider because once used they think their name is ‘taken’ on the entire Internet. They see ‘Bob Jones’ refused in Hotmail, and are offered ‘Bob Jones482’ and take it, then think ‘Bob Jones482’ can’t be used elsewhere.

    We all have varying opinions on the Gravatar/Core issue and others, but it’s no big deal in the end, is it? After all, if it comes to the point where 0.9 doesn’t do what somebody wants me to do for them, then there are many other options. We’re all very happy with 0.9 right now though, so all’s smiles. :)

    #75723

    That works too, @buddha trance :) There’s no ‘upgrade’ with 1.0.1 so you’re not missing anything.

    #15228
    deadlyhifi
    Participant

    For WordPress:

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); echo '?' . filemtime( get_stylesheet_directory() . '/style.css'); ?>" type="text/css" media="screen, projection" />

    For bbPress:

    <link rel="stylesheet" href="<?php bb_stylesheet_uri(); echo '?' . filemtime( bb_get_active_theme_directory() . '/style.css'); ?>" type="text/css" media="screen, projection" />

    Creates a unique number (based on time) after the filename which is automatically updated if make a change to your stylesheet.

    mlantz
    Member

    Hey all,

    I have noticed since I installed bbpress, the topic-tags are pushed down below the topic-info section when the topic title is long. This is certainly a simple CSS issue, but I am wondering if that is the desired functionality or just a bug.

    Example here: http://www.insideredbox.com/community/topic/sms-offer-text-fit-to-414141-for-a-free-redbox-code

    Thanks,

    Mike

    #75722
    Caesar
    Member

    @_ck_:

    See https://codex.wordpress.org/Version_2.7#WordPress_Upgrader – “All file operations are performed as the user that owns the files, not as the web server’s user. All files are set to 0644 and all directories are set to 0755, and writable by only the user and readable by everyone else, including the web server.”

    Regarding the phoning home “with all your install info” – according to the docs, the only info sent is your version and locale. I haven’t checked this myself.

    Most WordPress users find the “automatic” upgrade very useful, and most bbPress users would too. The sooner it’s available the better, in my opinion, though I don’t know how much work is required to port it from WordPress.

    #15219
    Ohna
    Member

    Hi,

    I’m working on a new theme and I want to display a username list for each voice in ‘topic.php’.

    HTML example:

    <ul>
    <li>username voice 1</li>
    <li>username voice 2</li>
    <li>username voice 3</li>
    ...
    </ul>

    Is it possible to achieve without plugin?

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