Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,526 through 27,550 (of 32,495 total)
  • Author
    Search Results
  • #63271
    Göran
    Member

    Thanks for answering but I do not understand how to use it. Should I save a php-file with this code and name it Laxusernames.php? Where shall I place it and how does it start?

    Please advice me!

    #62611

    In reply to: TalkPress

    geld_lenen
    Member

    BBpres is extremely hackable for Iframe attacks and code injection. My BB was hacked 3 times, always used last version.

    Looking for another now….

    #3495
    teayudoes
    Member

    Hi and thanks for bbpress and the plugins.

    I integrated wordpress and bbpress in my site with some plugins.

    In the log of my host I find this error:

    [Thu Jun 12 13:57:36 2008] [error] PHP Warning: parse_url(/2008/06/urlofpostofwordpress//appserv/main.php?appserv_root=http://www.cdpm3.com/id.txt???) [<a href='function.parse-url'>function.parse-url</a>]: Unable to parse url in /home/teayudoe/public_html/foros/bb-includes/functions.php on line 1794

    I have the same errors with anothers urls/scripts

    http://www.iglesialcs.cl/newweb/cache/id2.txt

    And the last week I saw other similar errors

    I investigated the urls and I think are script to attack servers

    I’m not worried about the safety of my site, I believe that these script can not do anything, what I am wrong?

    It is possible to fix the error by putting @ forward parse_url functions.php on line 1794 (http://derekgendron.com/blog/?p=33)

    I have to worry?

    Thanks

    Pd. Sorry for my english. The English is not my mother tongue

    #65349
    davidbaldwin
    Member

    I added

    <?php get_header(); ?>
    <?php bb_get_header(); ?>

    to the beginning, and

    <?php bb_get_footer(); ?>
    <?php get_footer(); ?>

    to the end.

    obviously, this calls both the wordpress and bbpress headers.

    that makes everything work, except for the wordpress search engine.

    any ideas?

    thanks!

    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

Viewing 25 results - 27,526 through 27,550 (of 32,495 total)
Skip to toolbar