Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 21,676 through 21,700 (of 32,516 total)
  • Author
    Search Results
  • Positics
    Member

    I have a similar challenge to the earlier topic “Linking back to main website”. It is for a site I have configured for someone, who has asked for the same ability for their logo to have a link associated to it, that will take the user back to the home page of site that pointed them to the blog / forum.

    I have installed bbpress 1.02

    You suggested the following;

    in header.php where the body tag starts.

    ===========================

    <body id=”<?php bb_location(); ?>”>

    <div id=”wrapper”>

    How do I locate this logo in the top right hand corner of the header where the default bb_emblem was located?

    “<a’x’ href=”http://www.reflexology-uk.net/site”><img src=”images/iior.jpg” alt=”ITEC” /><‘x’/a>”

    ===Note===== ‘x’ === added in string above to break code so it will print =====

    At presentI have a logo situated in the CSS file as a background, which you suggest is not the right way to go about achieving this.

    Any pointers will be useful. Thanks.

    #86096
    mr_pelle
    Participant

    dogeil, try these plugins:

    I had a similar need and I modified the former, ending up with a new (yet-to-be-released) plugin which redirect every non-logged-in user to a custom page. =D

    #78850

    I just happened to stumble upon this problem using both codeigniter and bbpress, and the solution was to plain remove all variables settings by references, and let the plain old “=” do the job (thanks @ Cyril Janssens).

    For some reason it doesn’t work if you let those references.

    Edit: You also need to specify global $bbdb, global $whateverVar in your controller, or you’ll get the same errors.

    Cheers!

    #86633

    In reply to: Thesis integration?

    A “Thesis page” is just like any other html/php/css WP page except that it uses Thesis Hooks, which is the framework Chris Pearson created to sit on top of WP and is far more efficient than the underlying WP code. It looks like this…

    <?php

    // Using hooks is absolutely the smartest, most bulletproof way to implement things like plugins,
    // custom design elements, and ads. You can add your hook calls below, and they should take the
    // following form:
    // add_action('thesis_hook_name', 'function_name');
    // The function you name above will run at the location of the specified hook. The example
    // hook below demonstrates how you can insert Thesis' default recent posts widget above
    // the content in Sidebar 1:
    // add_action('thesis_hook_before_sidebar_1', 'thesis_widget_recent_posts');

    /**
    * function custom_bookmark_links() - outputs an HTML list of bookmarking links
    * NOTE: This only works when called from inside the WordPress loop!
    * SECOND NOTE: This is really just a sample function to show you how to use custom functions!
    *
    * @since 1.0
    * @global object $post
    */

    function custom_bookmark_links() {
    global $post;
    ?>
    <ul class="bookmark_links">

    <li><a rel="nofollow">&title=<?php urlencode(the_title()); ?>" onclick="window.open('http://delicious.com/save?v=5&noui&jump=close&url=<?php urlencode(the_permalink()); ?>&title=<?php urlencode(the_title()); ?>', 'delicious', 'toolbar=no,width=550,height=550'); return false;" title="Bookmark this post on del.icio.us">Bookmark this article on Delicious</a></li>
    <?php
    }

    Thesis is on one level, just an additional library of high level functions, and at another, its an incredibly easy way to design and manipulate your theme/template. The structure of the framework and the finished theme it provides also happen to be presented in a very SEO conscious way, which is obviously a big selling point.

    What I would really like to see is a BBPress Template written for Thesis. Hmmm. I wonder. How hard can that be?

    #76041
    chrishajer
    Participant

    If this is the home page of the website:

    http://oakleafmeadowshoa.net/

    Then that is what your link will be. Just like this:

    <a href="http://oakleafmeadowshoa.net/" title="website home">Website Home</a>

    Is it any more complicated than that? You don’t necessarily need a page name in there, the web server will serve up the default index page for that site. If that’s the page you want, then you’re done.

    #86611

    In reply to: Templates for 1.x ???

    johnhiler
    Member

    Glad to hear it! :-)

    #86609

    In reply to: Templates for 1.x ???

    johnhiler
    Member

    bbPress is still a small community… we’re not as big as say, the WordPress community, and we don’t get the sort of corporate commitment and support that they do. So what you’re left with is mostly us volunteers, trying to help each other get the most out of free software that we all use and enjoy. :-)

    There are a couple 1.0 compatible themes on the forums… try some of these links maybe?

    http://www.google.com/search?q=theme+site:bbpress.org/forums

    Here are a few of the ones that support 1.0+:

    https://bbpress.org/forums/topic/new-vanilla-2-inspired-theme

    https://bbpress.org/forums/topic/new-theme-carrington-blog-for-bbpress

    https://bbpress.org/forums/topic/new-theme-superbold-revisited-for-bbpress

    #33951

    Topic: Templates for 1.x ???

    in forum Themes

    Is it me or are there really NO templates out there for BBPress 1.x out there?

    I must say that, as a newcomer to BBPress, I find it very disappointing to find out that template developers not updating their products and leaving cryptic messages on their sites about how BBPress has no cogent leadership. Sorry, can’t remember where I read that or I WOULD leave the URL.

    Code underneath and they way it works looks pretty neat though.

    Oh well, I guess things can only get better… 8^)

    #86596
    johnhiler
    Member

    It’s probably one of your plugins… can you post a list of which plugins you’re using?

    Also – try installing this, so we can get a sense for how many queries you’re using – and how long they take to generate a pageview! :-)

    https://bbpress.org/plugins/topic/bb-benchmark/

    #86584
    Duke
    Member

    My bad.

    When I replaced the auth_key, secure_auth_key, logged_in_key and nonce_key, i pasted it directly from wp-config and didnt add the BB_ before every key.. so it was obviously not working.

    All good now!

    Thank you guys :)

    #86580
    Duke
    Member

    :D just showing my gratitude!

    Because the documentation is so.. not existent.. you were really nice in helping me out on this one :)

    I have another question though…

    Now it wont detect my login on bbpress, when Im connected already to WP.

    I changed the wp security keys in WP, and put the same auth/secure/logged_in/nonce key from wp config inside bbpress config file.

    I also added define(‘COOKIE_DOMAIN’, ‘.mydomain.com’); but it’s still not detecting that i already logged in from wp.

    When i try to access bb-admin, I fill in user and pass from wp, but i get redirected to the forum homepage.

    Maybe the auth keys (salt or else?) must be reconfigured in the db as well (because i changed the wp ones in this new server) ?

    #86579
    zaerl
    Participant

    I actually love you :)

    Whoa.

    this kind of info should be set in the config file

    As far as I know you can define USER_BBDB_NAME, USER_BBDB_USER, USER_BBDB_PASSWORD, and USER_BBDB_HOST in bb-config.php but I don’t know if it is the right way of doing things. There is no documentation.

    #86578
    Duke
    Member

    I actually love you :)

    Thank you so much, I missed exactly this information!

    One little suggestion for the next BBpress release… this kind of info should be set in the config file, like everything else… users should not wander around in the database ;)

    #86369
    chrishajer
    Participant

    So, it needs to be a subforum so it shows up in your list of forums, but when they click it, they don’t get a forum, they get redirected to a WordPress page?

    You could do it with a 301 (permanent) redirection your .htaccess. You would just redirect the old (subforum) URL to the new (WordPress) URL.

    The format would look something like this (assuming pretty permalinks):

    Redirect 301 /forums/forum/subforum-name/ http://www.example.com/your-wordpress-page-slug/

    The first part is relative (just the stuff after the domain name) , and the second part is a full URL. If you get a white screen after adding that to your .htaccess, it means the syntax is wrong and you have to redo it.

    zaerl
    Participant

    forum_description(array( 'before' => ' '));

    #86577
    zaerl
    Participant

    they each had one separate db

    I didn’t know this. Open phpmyadmin and check table bb_meta:

    user_bbdb_name

    user_bbdb_user

    user_bbdb_password

    user_bbdb_host

    put on the new values.

    #86575
    zaerl
    Participant

    Are the settings:

    define( 'BBDB_NAME', 'bbpress' );
    define( 'BBDB_USER', 'username' );
    define( 'BBDB_PASSWORD', 'password' );
    define( 'BBDB_HOST', 'localhost' );

    equal to WordPress counterparts?

    #86587
    zaerl
    Participant

    Oper hidden-forums.php. Line 29:

    $hidden_forums['label']="This is a hidden forum ";

    #86542
    Damien
    Member

    I just noticed that actually :)

    Back to the drawing board…

    #86536
    moochyschwag
    Member

    I literally just replaced every file on the server except the config file. I checked both themes: kakumei and kakumei blue. And it’s still gone. :( No plugins are active or even on the server except Askimet, Bozo Users and Hello Louis all of which are disabled. Is there another version of bbpress I can use?

    #33946
    Duke
    Member

    Hello,

    I recently moved a WP site + BBpress to another host (but im using the same domain), so I set up whole new DB for each, and imported the old DBs.

    WP is working fine, I just had to edit the wp-config file and it connected perfectly to the new db (with the old data imported).

    The problem is BBpress now. I thought that just editing the DB info in the bb-config file with the new DB would have been enough, but it’s now giving me this: ERROR: Could not establish a database connection

    But I know that everything is correct! (i use a plugin on WP that retrieves all the topic from BBpress and it is retrieving everything from the new BBpress DB).

    I wonder if there’s more I should edit? but where?

    Could the problem be that WP and BBpress were integrated? Where can I change the WP integration info for BBpress? Maybe BBpress is trying to find the old WP db info on the old server?

    Help please :(

    #86520
    zaerl
    Participant

    To go deeper into that code a code that does “forumS” for more than one and “forum” for just one?

    $tf = get_total_forums();
    printf(__ngettext('Viewing %d forum', 'Viewing %d forums', $tf), $tf);

    functions.bb-statistics.php isn’t automatically included. The statistics.php file (https://trac.bbpress.org/browser/tags/1.0.2/statistics.php#L5) does include that file as well.

    #83139
    gerikg
    Member

    Can someone simplify this code?

    1. to show only the parent forums

    #86541
    gerikg
    Member

    BTW the code you have does work in front-page.php but does not in forum.php

    #86517
    gerikg
    Member

    Thanks! that works great. To go deeper into that code a code that does “forumS” for more than one and “forum” for just one?

Viewing 25 results - 21,676 through 21,700 (of 32,516 total)
Skip to toolbar