Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 28,601 through 28,625 (of 32,491 total)
  • Author
    Search Results
  • #58226

    In reply to: bbSync

    fel64
    Member

    sheatsb, out-of-date documentation. I didn’t realise people actually read that. :P You don’t need the files, you don’t need the tag, it’s improved since then.

    AlexHertz, it would have been better etiquette to just ask in your original topic if it can be done with bbsync. Starting two debates is rude because it’s spam, but also counter-productive because, well, you’ve got two small debates.

    _Any_ functionality can be added to bbsync. It doesn’t do what you’re asking for, however. In addition, ‘moving comments to the forum’ would be pointless, because – and this is core bbsync functionality – replies in the forum show up as comments.

    #58224

    In reply to: bbSync

    sheatsb
    Member

    I’m having a couple of issues:

    -Is it just me, or are a few files missing from the package. There are claims in the documents of a

    stylesheet and another file outside of bbsync.php.

    -When I put the <?php bbrepliestext(); ?> tag in my theme, it shows nothing, then I try <?php felbbreplies(); ?> and I get Fatal error: Call to undefined function felbbreplies() in /Applications/MAMP/taos.htdocs/woodfin/wp-content/themes/default/single.php on line 56

    I’ve integrated WordPress and bbPress with the database and plugins. Is there something I’m missing to make this work, because this is a great plugin.

    #61830

    In reply to: language file ?

    chrishajer
    Participant

    These instructions are for WordPress but the procedure is the same:

    https://codex.wordpress.org/Translating_WordPress

    I think you take that pot file I linked to and use a tool like poedit to translate all the phrases that are in that pot file.

    Then, according to the config.php:

    // Change this to localize bbPress.  A corresponding MO file for the
    // chosen language must be installed to bb-includes/languages.
    // For example, install de.mo to bb-includes/languages and set BBLANG to 'de'
    // to enable German language support.
    define('BBLANG', '');

     

    So, according to that, use poedit to generate the mo file (maybe it’s ar.mo for arabic?) and drop the ar.mo file you just created into the bb-includes/languages folder. Now change the BBLANG line to read:

    define('BBLANG', 'ar');

    I THINK.

    I am guessing on the ar as the proper language according to this page I found:

    http://www.iana.org/assignments/language-subtag-registry

    I am totally guessing at all of this, but I think that’s pretty close to what you need to do. When you’re done translating, please post back and share your work. Thanks.

    #61820

    In reply to: Lost in Login Loop

    chrishajer
    Participant

    What did you set mod_rewrite to in your config.php? If you set it to true or slugs, you might want to try setting it to false.

    $bb->mod_rewrite = false;

    That’s right after the admin email you entered.

    Also, there used to be a problem where depending on which login form you used (the one in the header or the one in the body of the page after you fail to login) you would get in a redirect loop that said something to the effect of:

    The page isn't redirecting properly

    Firefox has detected that the server is
    redirecting the request for this address
    in a way that will never complete.

     

    If that doesn’t help, then I think posting the URL to the broken forum would be the best thing so people can see what’s actually going on.

    I don’t think it’s cookies or permissions. I think it’s the mod_rewrite setting and your host does not support rewrite rules in the .htaccess file, or you haven’t created the .htaccess.

    #61819
    pwdrskier4
    Member

    SUCCESS!!!

    It was the changes to bb-settings.php that did it, the 757 patch: https://trac.bbpress.org/ticket/757

    Thanks for all the help chrishajer and livibetter. I could still be staring at my password wondering why it won’t work.

    So now I have reinstalled again (to get rid of any bad changes I made while trying to figure this out) and we are good to go.

    And yes, this was a “all of the sudden” problem, don’t know how, don’t know why. I have some other similar sites running the same code/settings and they still work fine without the patch even though they too have the host: ‘localhost:/tmp/mysql5.sock’

    Also, yes, I am on 0.8.3 and was before the issue – if you were still curious.

    #61818
    livibetter
    Member

    Are you using 0.8.3?

    Try to patch with https://trac.bbpress.org/ticket/757

    or

    modify https://trac.bbpress.org/browser/trunk/bb-includes/db-mysqli.php#L56

    to be

    $this->$dbhname = @mysqli_connect( $server->host, $server->user, $server->pass, null, null, $server->port );

    #61809

    In reply to: Documentation

    jwagener
    Member

    Ok, thanks for the link. I have fixed the error with my blog. Thanks for notifying me. :)

    #61808

    In reply to: Documentation

    livibetter
    Member

    bbPulp

    The best way to work with bbPress is reading the source, currently. Unfortunately, not everyone can code.

    Btw, your Programming page of blog has an error.

    #61589

    In reply to: How Do I Do This?

    chrishajer
    Participant

    I’m not sure which version of front-page.php you’re using (couldn’t make my site look like yours using the last front-page.php code that was posted) but I THINK all you need to do is change the line that looks like this:

    <table id="forumlist">

    to this:

    <table id="forumlist-<?php forum_id(); ?>">

    That just adds a dash and the forum number to the table id. That should validate. But I think that will affect the CSS in a bad way. There will no longer be an id of “forumlist”, they’ll all be “forumlist-something” which the CSS will have trouble with.

    Maybe it would be better to do something like this:

    <table class="forumlist" id="forumlist-<?php forum_id(); ?>">

    Then you would need to change your style.css to make any references to #forumlist look like .forumlist (change from applying the forumlist styling to ids and make it apply to classes.)

    That’s a lot of work, but ids are supposed to be unique on a page, where classes are not. This is actually a better application of a class since all the tables should look the same and use the same styling. You’re not referencing them with javascript or something where the ids matter.

    I just tried this and it worked on mine and validated properly. There were 6 instances of #forumlist that needed to be changed to .forumlist in my style.css

    Hopefully that will work for you.

    #53606

    I’m using this method here: http://desbar.eu/

    check the ABOUT page, for example

    it works for me.

    Keep in mind there are a lot of ways to make a static page.

    1. The most simple is to create some about.php file.

    It should looks like livibetter says:

    <?php bb_get_header(); ?>

    The static content here.

    <?php bb_get_footer(); ?>

    2. put this about.php in the root directory ( e.g. – the URL should be something like youbbPressSite.com/about.php )

    3. Then call this URL from somewhere ( e.g. – put a link in the Header.php )

    that’s it.

    PS: I’ve just been curious about the method above (livibetter version) – that’s why I used it :) looks smoother at first site.

    #61799
    livibetter
    Member

    No ideas. But it has something to do with bb_index.php_pre_db ( https://trac.bbpress.org/browser/trunk/index.php ) or bb_forum.php_pre_db actions. So I just left it unchanged.

    #61797
    livibetter
    Member

    This should work:

    <?php
    if ( !$bb_db_override ) :
    $super_stickies = get_sticky_topics();
    endif;
    ?>
    <?php if ( $super_stickies ) : foreach ( $super_stickies as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php bb_topic_labels(); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big></td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><small><?php topic_time(); ?></small></td>
    </tr>
    <?php endforeach; endif; // $super_stickies ?>

    #61748

    In reply to: 1970 issue

    chrishajer
    Participant

    Now the plugin browser theme just needs to be fixed :)

    #61747

    In reply to: 1970 issue

    livibetter
    Member

    I see.

    There are some useless code in search.php, like $users and $titles. They are not used in 0.8.3. If you can’t switch to an updated template, then you should diff to find out what has been changed.

    #61745

    In reply to: 1970 issue

    livibetter
    Member

    This is quite old (check this diff)

    <?php echo date(__('F j, Y, h:i A'), bb_get_post_time()); ?>

    replace it with

    <?php bb_post_time( __('F j, Y, h:i A') ); ?>

    You are using 0.8.3, right? You should use an updated theme.

    #61744

    In reply to: 1970 issue

    Hey.

    I checked the Database time and it is correct.

    So it must be some theme/bbpress related error.

    Here’s my search.php:

    <?php bb_get_header(); ?>

    <h3 class=”bbcrumb”>“><?php option(‘name’); ?> » <?php _e(‘Search’)?></h3>

    <?php search_form( $q ); ?>

    <?php if ( !empty ( $q ) ) : ?>

    <h2><?php _e(‘Search for’)?> “<?php echo wp_specialchars($q); ?>”</h2>

    <?php endif; ?>

    <?php if ( $users ) : ?>

    <h2><?php _e(‘Users’)?></h2>

    <?php endif; ?>

    <?php if ( $titles ) : ?>

    <h2><?php _e(‘Thread title matches’)?></h2>

      <?php

      foreach ( $titles as $topic ) :

      $count = $topic->topic_posts;

      ?>

    1. <h4>“><?php topic_title(); ?></h4>

      <small><?php printf(__(‘ %1$d replies — Last reply: %2$s’), $count, get_topic_date(__(‘F j, Y’), $topic->topic_id) ) ?> </small>

    2. <?php endforeach; ?>

    <?php endif; ?>

    <?php if ( $recent ) : ?>

    <h2><?php _e(‘Recent Posts’)?></h2>

    <ol class=”results”>

    <?php foreach ( $recent as $bb_post ) : ?>

  • <h4>“><?php topic_title($bb_post->topic_id); ?></h4>

    <p><?php echo show_context($q, $bb_post->post_text); ?></p>

    <p><small><?php _e(‘Posted’) ?> <?php echo date(__(‘F j, Y, h:i A’), bb_get_post_time()); ?></small></p>

  • <?php endforeach; ?>

    <?php endif; ?>

    <?php if ( $relevant ) : ?>

    <h2><?php _e(‘Relevant posts’)?></h2>

    <ol class=”results”>

    <?php foreach ( $relevant as $bb_post ) : ?>

  • <h4>“><?php topic_title($bb_post->topic_id); ?></h4>

    <p><?php echo show_context($q, $bb_post->post_text); ?></p>

    <p><small><?php _e(‘Posted’) ?> <?php echo date(__(‘F j, Y, h:i A’), bb_get_post_time()); ?></small></p>

  • <?php endforeach; ?>

    <?php endif; ?>

    <?php if ( !$topics && !$recent && !$relevant && !users) : ?>

    <p><?php _e(‘No results found.’) ?></p>

    <?php endif; ?>

    <p><?php printf(__(‘You may also try your search at Google‘), bb_get_option(‘uri’), urlencode($q)) ?></p>

    <?php bb_get_footer(); ?>

    </code

#61375

Go to Content > Forums and “Add Forum” there. That will give you another “category” (actually another forum) to post in.

Esta bien, voy a explicarse lo que él dijo en el español :) . Vaya usted al Content>Forums, y clicka ¨Crear Forum¨, y se puede crear un catagoría con el nuevo foro :) . Hay un opción :D . Espero que usted sepa ahora :) .

#61743

In reply to: 1970 issue

livibetter
Member

Could you post the search.php in your template? and check database to ensure the time is correct in database.

#61796

In reply to: Information

chrishajer
Participant

Use the same database and just use the $bb_table_prefix = bb_ table prefix as suggested in the config.php. No need for a whole new database just for a few new tables.

#57152
chrishajer
Participant

AndrewMac, did you try the test in this post:

https://bbpress.org/forums/topic/registration-email-not-being-sent-new-issue?replies=15#post-6931

That will confirm if you can send mail from your server. It’s odd that WordPress works but bbPress does not. Is it possible the $bb->admin_email needs to be a real email address for the mails to be sent by your host? Is that a real email account?

Also, are there any mail logs or error logs? Maybe that would provide a clue.

#57149
Trent Adams
Member

I can’t see how bbPress would be any different than wordpress in terms of the mail usage, so:

Emailed passwords not received

Description: When users try to register with your blog or change their passwords by entering their username and email, WordPress says that their password has been emailed to them, but it’s never received.

Reason and Solution: WordPress uses the standard php mail function, which uses sendmail. No account information is needed. This is not generally a problem if you’re using a hosting service, but if you’re using your own box and don’t have an SMTP server, the mail won’t ever send. If you’re using a *NIX box, you should have either postfix or sendmail on your machine; you’ll just need to set them up (google for how-to’s). If you don’t want to go through setting up a complete mail server on you *NIX box you may find ssmtp (http://packages.debian.org/stable/mail/ssmtp) useful – it provides “A secure, effective and simple way of getting mail off a system to your mail hub”. On a Windows machine, try a sendmail emulator like Glob SendMail (http://glob.com.au/sendmail/).

More help can be found on the forums at: https://wordpress.org/support/topic.php?id=24981

Translation, there are posts in the normal wordpress.org forums as well that even dreamhost for whatever reason doesn’t send the passwords out through sendmail. I would look in the dreamhost support as well, maybe an answer is right there for you to grab ;)

Trent

#61730
livibetter
Member

@Trent and everyone, this plugin intercept login process, if the logging user hasn’t activated the account, then it will be redirect to bb-activate.php. After successful activation, the user will be redirect to bb-login.php.

And when new user is registering, this plugin doesn’t interfere the normal registering process but add an additional usermeta and send the activation code right after bbPress send the password mail.

So, there is no way this plugin will break the password being sent.

Edit: Currently, user gets TWO mails after registration, one is for password, another is for activation code. I am not planning to merge them into one, because that would have to touch many things and I don’t like that.

Edit: I knew there are some topics about mail problem, but I can’t find them now.

#61793

In reply to: Search function

Trent Adams
Member

Should work with:

<?php search_form( $q ); ?>

Trent

#61729
livibetter
Member

Did you mean password or activation code? Your forum is quite new, so I guess that your server can’t send any mail for your forum. And this isn’t a plugin’s problem.

Please deactivate this plugin, and register new account, then see if you can get the password mail. If you can’t, then you have to fix mail problem.

#61728
Trent Adams
Member

If the plugin is disabled does this work because for the first part of the registration, the plugin really doesn’t do anything (at least I don’t think). The user gets their password by email, they head to the login page, put in username and password, get another screen (bb-activate.php) which then asks for the “activation” code emailed to them in a second email. So I am wondering if users are getting the password emails with the plugin disabled first I guess!

Trent

Viewing 25 results - 28,601 through 28,625 (of 32,491 total)
Skip to toolbar