Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,551 through 27,575 (of 32,516 total)
  • Author
    Search Results
  • Unfortunately, Detective’s solution doesn’t work with the latest versions. I’m experiencing the same issues (integrated scenario):

    User registers on bbpress and logs in there

    User can acces the WP Site Admin section, but it says: Welcome, . (a space instead of the user name)

    User comments are registered as ‘Anonymous’

    I noticed the only way to fix this is to go to WP user management panel, editing and saving the user.

    So the user has to be actively (and manually : ) updated to have his name listed under his comments.

    I haven’t found any way to avoid this, but if anyone can I’d be much abliged!

    #3492
    #65236

    In reply to: A bit of advice needed

    alexleonard
    Member

    Again, thanks for the advice. Looking forward to playing with the new version :)

    #65379

    I just found it under the original skin. I switched to “blue,” but it’s strange how front-page.php stays. Thanks anyway, though. Let me know if there’s more about front-page.php other than the code inside it, like the option to move it to my template folder.

    #65372
    bobbyh
    Member

    thousande, you have to create a new theme (under /my-templates/) and then edit the header.php file in your new theme so that it doesn’t have the stuff inside this loop starting with <?php if ( is_topic() && bb_is_user_logged_in() ) : ?>

    Actually, I think that bbPress doesn’t even currently support AJAX posting, so all those files are unneeded.

    Good luck!

    #65381
    chrishajer
    Participant

    To be able to call your WordPress header and footer, you will need access to the WordPress functions get_header() and get_footer(). To have access to WordPress functions, you need to include WordPress:

    https://bbpress.org/documentation/integration-with-wordpress/#func

    You can skip the stuff about user integration and cookies if all you want to do it include your WordPress header and footer.

    #3480
    erewok
    Member

    Hello,

    I’m new to WordPress and BBpress but I like the simplicity involved in using them. Currently, I have a wordpress site and a bbpress site that share a database. The wordpress site uses the Event Calendar plugin+widget to display its calendar and in the readme for Event Calendar I found the following:

    Add the
    following code to your sidebar.php:

    Event Calendar:
    <li>
    <?php ec3_get_calendar(); ?>
    </li>

    Upcoming Events:
    <li>Events
    <?php ec3_get_events(5); ?>
    </li>

    If you are using an older template, then you should check that your HTML
    header contains the following tag: <?php wp_head(); ?>

    I’d like to add the Event Calendar to my BBpress sidebar; however, this solution doesn’t appear to work. Any ideas what I’m doing wrong?

    #56644

    In reply to: Plugin: BB-Ads

    bubblebla
    Member

    the ads shows up something like this —>

    GIF87a�����������f��f��0�����p������pp������� �����������fff��f��3������� @���@f����0��P������f3�����p���@�0�� ����p�����P�p��P�� �̙�p@�������ffp�33f��pp���f3p������f��00����33�@@

    #65361

    In reply to: bbPress Database Error

    chrishajer
    Participant

    Interestingly, I copied and pasted your SQL query from above, and used it on my installation unchanged, and it did not error out, it just return the expected results.

    SELECT t.*, MIN(p.post_id) as post_id, p.post_text, 0 AS search_score FROM bb_topics AS t JOIN bb_posts as p ON ( t.topic_id = p.topic_id ) WHERE t.topic_status = '0' AND p.post_status = '0' AND ( (t.topic_title LIKE '%ja%') OR p.post_text LIKE '%ja%' ) GROUP BY t.topic_id ORDER BY t.topic_time DESC LIMIT 20

    See the results here.

    This is an old bbPress installation as well, 1.0-alpha from over a year ago.

    #65354

    In reply to: User Photo for bbPress

    Detective
    Member

    I’m sorry, did you try with Genealogías theme or another? Currently i’m hooking on a custom action (my bad, i know :p).

    In your profile-edit.php template put the following code:

    <?php
    userphoto_display_selector_fieldset($user->ID);
    ?>

    benbeltran
    Member

    I hope it helps somehow. In my opinion, this is the best forum software if you’re a developer that wants custom forums and doesn’t mind getting dirty with code. At least that’s why I love it (I know, people will disagree with me).

    I’ve never felt so in control of my forums before :). Everything is just … clean, from the default UI to the insides.

    #65353

    In reply to: User Photo for bbPress

    Thanks a lot Detective.

    But I can’t get the plugin to work. I have followed your instructions by uploading the user-photo foler into “my-plugins” directory and I made sure the paths are correct.

    The plugin activated without any errors but i’m not sure how I upload a photo. There is no form to upload photos in user profiles, do I need to add some code manually to the template files?

    Sorry to be a pain & thanks for your time :)

    Will

    #65346
    chrishajer
    Participant

    [edited out a stupid idea]

    WAIT: update 26 minutes later. If you’re not logged in, trying to access /bbpress/bb-admin/ is SUPPOSED to redirect you to the home page of the forum. When you log in there as keymaster or administrator, you then have a link to View your profile (Admin | Log out) – and in my installation, clicking Admin takes you to /bbpress/bb-admin/. You can also access the /bbpress/bb-admin/ URL directly, but only after logging in as keymaster. If that’s what’s happening, then that is correct.

    Is it possible you can’t log in on the home page of the forum as administrator or keymaster? Did that account lose privileges or something? Maybe you have a different problem. But direct access to /bbpress/bb-admin is prevented by design until you are logged in.

    #65350
    Detective
    Member

    For 3, from the Genealogías theme:

    function gs_topic_forum_link() {
    global $topic;
    if ($topic) {
    echo '<a href="' . get_forum_link($topic->forum_id) . '">' . get_forum_name($topic->forum_id) . '</a>';

    }
    }

    For the private forums, i do the following (considering only one private forum, having id 22):

    add_filter('get_posts_where', 'ryuuko_staff_where_posts');

    function ryuuko_staff_where_posts($where) {
    if (!bb_is_user_logged_in() || !bb_current_user_can('moderate')) {
    $where .= " AND p.forum_id <> '22' ";
    }
    return $where;
    }

    add_filter('get_topics_where', 'ryuuko_staff_where_topics');
    function ryuuko_staff_where_topics($where) {
    if (!bb_is_user_logged_in() || !bb_current_user_can('moderate')) {
    $where .= " AND t.forum_id <> '22' ";
    }
    return $where;
    }

    add_filter('get_forums', 'ryuuko_staff_forums');
    function ryuuko_staff_forums($forums) {
    if (!bb_is_user_logged_in() || !bb_current_user_can('moderate')) {
    $forum_key = -1;
    foreach ($forums as $key => $forum)
    if (intval($forum->forum_id) == 22) {
    $forum_key = $key;
    break;
    }
    unset($forums[$key]);
    }
    return $forums;
    }

    add_action('bb_forum.php_pre_db', 'ryuuko_forum_redirect');
    function ryuuko_forum_redirect($forum_id) {
    if (!bb_is_user_logged_in() || !bb_current_user_can('moderate')) {
    if ($forum_id == 22)
    bb_die("You can't see this!");
    }
    }

    #3472
    davidbaldwin
    Member

    I used this code from the documentation:

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

    to intigrate bbpress with wordpress, so I could use my current wordpress themes.

    the only problem I have now, is that when I try to access /bbpress/bb-admin I am automatically forwarded to /bbpress and I have no access of the admin screen.

    any ideas?

    thanks!

    david

    #60805

    In reply to: Simple registration

    cordoval
    Member

    I have found the trac website with the ticket for your records:

    https://trac.bbpress.org/ticket/779

    Now I am thinking that we can achieve this easily:

    0. create custom field for password (at first do not validate with an extra field)

    1. get the registration function to create the account with the given username

    2. get the password be follow through the function and pass it to a second call

    3. the second call will really call the change-password function and will get the passed user defined password to the change-password.

    4. the end.

    Sounds simple but let’s see where our code is.

    #65050
    Detective
    Member

    I’m using a functions.php file. It’s being loaded it in the header:

    <?php require_once(bb_get_template('functions.php')); ?>

    #3469
    Detective
    Member

    URL: http://alumnos.dcc.uchile.cl/~egraells/proyectos/plugins-para-bbpress/

    Test Installation: http://www.ryuuko.cl/bbpress

    Includes readme.txt with examples. It supports english and spanish (es_ES).

    Hope you like it :)

    Suggestions, bug reports, comments and feedback in general are welcomed :)

    #65204
    Detective
    Member

    I made a few changes in the layout. I’ll release the theme tomorrow :)

    Remember it needs some knowledge, because without customization (through plugins) it’s kind of ugly …

    #65328
    bobbyh
    Member

    We don’t know what your theme is, so we don’t have enough info to answer this question. Please post a link to your site, and we’ll be able to help you out. :-)

    #65234

    In reply to: A bit of advice needed

    alexleonard
    Member

    Ah brilliant,

    Thanks so much for the clarification. I was getting the feeling that quite a few things had changed all right. The main development site has had quite a lot of work done so far, but on bbpress all I had really done was set it to use the header and footer from the WP theme.

    It’ll be easy to dump it and start again.

    Actually on that point. In installing the old version I stored the bb_press database tables in this site’s WordPress database, eg:

    | bb_forums              |
    | bb_posts |
    | bb_tagged |
    | bb_tags |
    | bb_topicmeta |
    | bb_topics |
    | wp_comments |
    | wp_ig_caticons |
    | wp_links |
    | wp_options |
    | wp_postmeta |
    | wp_posts |
    | wp_term_relationships |
    | wp_term_taxonomy |
    | wp_terms |
    | wp_usermeta |
    | wp_users |

    Should I delete each of the tables prefixed “bb_” before continuing?

    Cheers,

    Alex

    #65324
    rogermbyrne
    Member

    hi chrishajer

    after your suggestion i tried to think of a diff way so i installed phpbb via fantastico on a different domain iimported the odl database and then looked through phpmyadmin to see if i could find the posts, success! exported as .csv file and now i have all the data and email addresses ;)

    thanks for your help!

    #3466
    rogermbyrne
    Member

    Hi Guys and Gals

    I have a very small phpbb database but not up and running as many problems i have installed bbpress everything is working fine! (except I forgot about moderation and akismet and within 27 mins of going online it had four spam comments ;) )

    Is there a way I can just see the posts from that phpbb database and then i will copy and paste into my new bbpress installation?

    or is their an easier way? I have xampp runnin locally but tried to move the phpbb files and import the db using phpmyadmin but i get errors.

    Like i said its a v small database and I just need the post text!

    Thanks in advance

    Roger

    #60804

    In reply to: Simple registration

    cordoval
    Member

    This sounds a past issue, yet I would like to add fuel to this thread. Please make me aware if there is already a plug in for this feature. I saw a note of _ck_ requesting this enhancement but I doubt it has gone through over these months yet.

    To txrediakov: I want to enable the user to choose their password, not because of email anymore but because I believe we cannot just deny our users this capability. It is expected in any reasonable website that the user can type her own password.

    To chrishajer: Good information. Now thinking logically: If one can display the password in a window returned after registration I think it could be possible to perform one additional step in the php code to take a password fetched from a custom field in the registration page, then take the bbpress generated password and replace it with the new value.

    However, there is a slight problem. The user can only change her password after she is logged in. Granting the new user access to the account to post right away after registration may pose some kind of security thread to the system and to the accounts of all users. So how could we go about doing this without compromising the security of the system?

    Please you are welcome to contact me as I need to work and solve this issue.

    Encouragements,

    #65304

    In reply to: Lost Key Master

    timskii
    Member

    As the code stands at the moment, it is a little too easy to lock yourself out. There may be a cleaner solution, but the following worked for me:

    Try to login to BBPress with the WP admin. If that fails to give admin access to BBPress, the user mappings were either not set, were set at the wrong stage during integration, or were set such that nothing mapped to the Keymaster.

    Backup the database (just in case a bad situation accidentally becomes terminal while you’re trying to fix it).

    Using SQL access to the database (eg PhpMyAdmin), open up bb_topicmeta and delete the last few lines with meta_key starting wp_. That should reset everything, allowing you to get back into BBPress on the old Keymaster account and start again.

    I found the order in which the integration settings were applied was critical. Your mileage may vary, but for me that was:

    1. Edit User role map (ensure Admin is linked to Keymaster), and save.
    2. Add “wp_” under User database table prefix and save.
    3. Hit the User role map button again.
    4. Finally complete the cookie setting and save.

Viewing 25 results - 27,551 through 27,575 (of 32,516 total)
Skip to toolbar