Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,076 through 27,100 (of 32,467 total)
  • Author
    Search Results
  • #66853
    chrishajer
    Participant

    Why is this listed as a stylesheet in the source? It gives a 404 then includes the whole WordPress page as a stylesheet:

    <link rel="stylesheet" href="http://www.audioscribbler.co.uk/oldboards/my-templates/bbpress-forum/style2.css?v=8" type="text/css" />

     

    I don’t know if that has anything to do with it, but it’s not right.

    Also, does the problem you’re describing happen with the stock template as well?

    #66843
    _ck_
    Participant

    You can fix this if you have phpmyadmin.

    Do you have it?

    go into your bb_usermeta (or wp_usermeta)

    and find that last administrator you made, it will look like:

    bb_capabilities a:1:{s:13:"administrator";b:1;}

    and just change the meta_value to

    a:1:{s:9:"keymaster";b:1;},

    user_id meta_key meta_value

    #66289
    _ck_
    Participant

    The search box is not hard coded in the core, it’s only in the template – it won’t be forced on other templates.

    Just look in header.php

    <?php login_form(); ?>
    <div class="search">
    <?php search_form(); ?>
    </div>

    The three “search” lines can be removed or just comment out this:

    <?php // search_form(); ?>

    #66823
    _ck_
    Participant

    The way I deal with fixing topicmeta is like this, though there may be other ways:

    old:

    if ( $topics = (array) $bbdb->get_col("SELECT topic_id FROM $bbdb->topicmeta WHERE meta_key = 'rating'") ) :

    new:

    if (bb_get_option('bb_db_version')>1600) {$item="object_id as topic_id"; $table="$bbdb->meta WHERE object_type='bb_topic' AND";}
    else {$item="topic_id"; $table="$bbdb->topicmeta WHERE";}
    if ( $topics = (array) $bbdb->get_col("SELECT $item FROM $table meta_key = 'rating'") ) :

    #66789

    In reply to: stylesheet_directory

    chrishajer
    Participant

    Well, that function gives the URI of the stylesheet, which will be a file, not a directory (sorry). Try this instead:

    <link rel="stylesheet" href="<?php bb_active_theme_uri(); ?>css/enplus.css" type="text/css" />

    You had some other errors in there too, in addition to the wrong function I gave you.

    There’s lots of neat stuff in bb-includes/template-functions.php – take a look.

    #66788

    In reply to: stylesheet_directory

    csseur3
    Member

    yes, yes. But i have a other css in my bb-templates/tpl1/css/enplus.css

    how to add this? i want that it works even if i rename my theme, or if i share it.

    <link rel="stylesheet" href="<?php bb_stylesheet_uri( 'css/enplus.css' ); ?>" type="text/css" />

    doesn’t work.

    #66787

    In reply to: stylesheet_directory

    chrishajer
    Participant

    From header.php

    <link rel="stylesheet" href="<?php bb_stylesheet_uri(); ?>" type="text/css" />
    <?php if ( 'rtl' == bb_get_option( 'text_direction' ) ) : ?>
    <link rel="stylesheet" href="<?php bb_stylesheet_uri( 'rtl' ); ?>" type="text/css" />

     

    bb_stylesheet_uri();

    #66739

    In reply to: Sitemap generator

    csseur3
    Member

    you can choose the location of the sitemap.xml file, and the name too :) (see at the top of the mod)

    create the .xml file and chmod 777, make a new post and see the .xml file, the sitemap is completed :)

    #66798

    In reply to: 1.0 translations

    csseur3
    Member

    for information, i use poedit :)

    Bye

    #3795
    darky2
    Member

    As the title says, I’m searching for this feature. Could anybody tell me how to start? For example: If I type ==Page 1== in the text it creates a “Page 1” inside the topic.

    Please :)

    #66822
    843008
    Inactive

    and how to fix it? is there any patch, please? :)

    Well, I was having issues with my WordPress admin, so, like a clever person I created a new admin name and deleted the old. Well. Turns out that in doing so I’ve deleted my keymaster in BBPress.

    I’ve seen some posts that suggest editing the tables. I’ve tried adding the code

    $bb->new_keymaster = ‘AdminTwo’;

    to my bb-config.php and then running install.php. But, nothing happens. So, if I must edit my database, can someone please let me know in more deatail how? (Ie: Which tables, which values, etc.)

    Thank You so Much!

    #3791
    #66040
    csseur3
    Member

    hi,

    for the wp-config.php file in wordpress, it is:

    define(‘COOKIE_DOMAIN’, ‘.website.org’);

    or

    define(‘COOKIE_DOMAIN’, ‘website.org’);

    ?

    thanks ;)

    Fred

    chrishajer
    Participant

    You take all that code that howtogeek pasted and put it into a file called “replacebbmail.php” or something. To make php code into a bbPress plugin, it needs to have a header. The header needs to look something like this (change the values to something meaningful to you):

    <?php
    /*
    Plugin Name: Swift Mailer
    Plugin URI: http://www.example.com/ (doesn't really matter)
    Description: Replace bb_mail with Swift Mailer
    Author: You
    Author URI: http://www.example.com/
    Version: 0.1
    */

     

    Then, paste the code that howtogeek showed at the end of that file. In the end, it will look something like this.

    <?php
    /*
    Plugin Name: Swift Mailer
    Plugin URI: http://www.example.com/ (doesn't really matter)
    Description: Replace bb_mail with Swift Mailer
    Author: You
    Author URI: http://www.example.com/
    Version: 0.1
    */

    if ( !function_exists('bb_mail') ) {
    function bb_mail($to, $subject, $content, $headers=''){

    require_once('PATH_TO/Swift/lib/Swift.php');
    require_once('PATH_TO/Swift/lib/Swift/Connection/Sendmail.php');

    $swift =& new Swift(new Swift_Connection_Sendmail("/usr/sbin/sendmail -bs"));
    $from = new Swift_Address("noreply@mysite.com","My bbPress Forums");

    $message =& new Swift_Message($subject, $content);
    if ($swift->send($message, $to, $from)) {return true;}
    else{ echo "Message failed to send to ".$to." from ".$from;}
    $swift->disconnect();
    }
    }
    ?>

     

    The name of the file does not matter really. Save that new file in bb-plugins. Now activate your new plugin in the admin section of your bbPress site.

    You will need to configure it before activating it to make sure it works (setting up the path to swift mailer and setting the auth stuff if you need to.)

    chrissydunno
    Member

    thanks guys .. but how do you ‘make howtogeek’s code into a plugin’

    where does his code go? registration-settings.php? how?

    i can install swiftmailer of course, just not sure what else needs to change in current bbpress configurations

    #3790
    #66821
    _ck_
    Participant

    bb-ratings has this problem:

    https://plugins-svn.bbpress.org/bb-ratings/tags/0.8.5/bb-ratings.php

    as you can see on/around line 205

    #66323
    csseur3
    Member

    And I think you are missing the people who will say “oh, we need a plugin for just that! I can’t imagine the others! “

    I have already twenty plugins activated, some of which, as memberlist, which does not change of code (or very little) and they can be integrated safely by default.

    In place of a plugin, a checkbox in the options natives would be better, no?

    As WordPress 2.7 perhaps we should integrate the most simple and the most popular plugins by default, no?

    I thought about it to ensure the development of bbPress and enable it to compete with others. And if there is more interested users = more visitors for the sites of the plugins creators on their “donate” link lol: p

    Please, think at the question^ ^ or create a “plugin integration poll” :p

    Bug fixes are good. New features, too. :)

    _ck_
    Participant

    It really is that simple – just make HowToGeek’s code into a plugin and install swiftmailer:

    https://bbpress.org/forums/topic/trick-to-fix-some-email-problems-with-08x-plugins-on-09x#post-15776

    That reminds me to fix some of my plugins so they use bb_mail() instead of mail() directly.

    #64024

    Thanks chrishajer – that’s just what I need it. I had tried the other hidden field, expecting that to work…

    :D

    #64023
    chrishajer
    Participant

    Instead of this WordPress function:

    <?php wp_register(); ?> 

    You would have a link to bb-login.php. Then bb-login handles the whole thing. In the login form, you would add that hidden form field to redirect then after login, as explained here.

    https://bbpress.org/forums/topic/heres-a-trick-to-redirect-user-back-to-topic-after-login#post-14268

    #64022
    mattbaehr
    Member

    How do I change the reg links? In my theme, here is the reg code:

    <li id="meta" class="widget">

    <h2><?php _e('Members') ?></h2>

    <ul>

    <?php wp_register(); ?>

    <li><?php wp_loginout(); ?></li>

    <?php wp_meta(); ?>

    </ul>

    </li>

    What would I do to get it to redirect to the bbpress registration page?

    #66792

    In reply to: Theme directory

    thion
    Member

    http://bbshowcase.org/ ;)

    Besides – there’s no point to make a theme directory if there are no themes. Not many people are doing layouts for bbPress and if they’re doing, then it’s really hard work – I know something about it as I’m making “Halloween Evening” theme for bbPress right now…

    #3779

    Topic: Theme directory

    in forum Themes
    csseur3
    Member

    Hello,

    like the theme directory of wordpress.org, it is possible to have a theme directory in bbpress.org ? :)

    Bye,

    Fred

Viewing 25 results - 27,076 through 27,100 (of 32,467 total)
Skip to toolbar