Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '"wordpress'

Viewing 25 results - 26,001 through 26,025 (of 26,737 total)
  • Author
    Search Results
  • #55049

    I can answer the second question – Yes there is a plugin that will achieve that for you – its called bbPress Post and you can get it from http://dev.mbzeus.net/ – it goes in as a plugin on the WordPress side

    Can’t help you with the others though I’m afraid

    #54781
    dld
    Member

    I am having this same problem at install, “Cannot select DB.”

    I have only bbPress and not wordPress, so mine is a simple setup.

    Any ideas on what the problem could be?

    #54693
    nickbrady
    Member

    Hi, fel64, you can use wp_get_posts() instead of wp_show_posts() and then use a foreach loop, much like the examples in the WP Codex for the get_posts function

    You don’t mind that pretty permalinks are not being used? I think it’s a killer, let’s hope some expert can help us.

    #54691
    nickbrady
    Member

    Hi,

    I am writing a plugin for BBPress that shows the latest posts from WP (if WP and BBPress are sharing the same database). It’s still in development, but it already works, you just have to write


    <?php wp_show_posts(\"\" ); ?>

    in any BBpress template.

    As you will see, it works, but it has a problem: it does not show WP’s pretty URLs. I would like to call WP’s get_permalink() function, but it uses many WP functions that are not available when you’re in BBPress.

    Any advice on how to do this? Or maybe it would be easier to read WP’s RSS?

    Thanks!

    Here goes the code of the plugin so far (if you don’t care about pretty permalinks, you can use it, it works):


    <?php
    /*
    Plugin Name: WP Posts
    Plugin URI: http://thesandbox.wordpress.com
    Description: Get a list of WordPress posts from your bbPress (needs to be integrated with WP, sharing database)
    Author: Nick Brady
    Version: 0.1
    Author URI: http://thesandbox.wordpress.com

    Install Instructions:
    - If you don't have a /my-plugins/ directory in your bbpress installaltion, create it on the same level as config.php.

    - Check out: https://codex.wordpress.org/Template_Tags/get_posts

    */

    function wp_get_posts($args) {
    global $bbdb, $bb;

    parse_str($args, $r);
    if ( !isset($r['numberposts']) )
    $r['numberposts'] = 5;
    if ( !isset($r['offset']) )
    $r['offset'] = 0;
    if ( !isset($r['category']) )
    $r['category'] = '';
    if ( !isset($r['orderby']) )
    $r['orderby'] = 'post_date';
    if ( !isset($r['order']) )
    $r['order'] = 'DESC';

    $now = bb_current_time('mysql');

    $posts = $bbdb->get_results(
    \"SELECT DISTINCT * FROM \".$bb->wp_table_prefix.\"posts \" .
    ( empty( $r['category'] ) ? \"\" : \", \".$bb->wp_table_prefix.\"post2cat \" ) .
    \" WHERE post_date <= '$now' AND (post_status = 'publish') \".
    ( empty( $r['category'] ) ? \"\" : \"AND \".$bb->wp_table_prefix.\"posts.ID = \".$bb->wp_table_prefix.\"post2cat.post_id AND \".$bb->wp_table_prefix.\"post2cat.category_id = \" . $r['category']. \" \" ) .
    \" GROUP BY \".$bb->wp_table_prefix.\"posts.ID ORDER BY \" . $r['orderby'] . \" \" . $r['order'] . \" LIMIT \" . $r['offset'] . ',' . $r['numberposts'] );

    return $posts;
    }

    function wp_show_posts( $args ) {
    global $bb;
    $posts = wp_get_posts( $args );
    foreach( $posts as $post ) {
    echo \"<li>n\";
    echo \"<a href='\".$bb->wp_home.\"?p=\".$post->ID.\"'>\";
    echo $post->post_title;
    echo \"</a><br/>n\";
    echo \"</li>n\";
    }
    }
    ?>

    #54881

    In reply to: Template Tags

    fel64
    Member

    Page numbers – say a thread has more than 30 replies and falls onto the second page, it’s very irritating having to click the thread’s name and then click again to get to the second page. Next to the page’s name you should simply have the page numbers displayed and clickable, hopefully in a smart way (say showing the first few and the last few). You can see it on this forum, too: say I want to read the second page of posts in the Plugin: Forum Restriction thread, I have to click on the name and then on the second page. Is there maybe even a plugin to list the page numbers next to the page name in the thread listing?

    In WordPress you have hooks that let you take actions through your plugin when they’re called, right? I guess bbPress does the same. I specifically want to create an Identicon avatar on registration – it’s not essential, just something I’d like to do. How do I register my plugin to work on that hook, and what hook do I use? Just a list of hooks would be helpful. :)

    #1476
    macwise
    Member

    Well, here I go again…

    Anyone know the way I might call in the wordpress Profile fields from a users Profile page and display/edit those in the bbpress profile.php and edit-profile.php pages?

    Thanks!

    #54969
    fel64
    Member

    I assume the same way as you would in WordPress – using filters for when the text is called from the db, then going through the text looking for links and adding them?

    I don’t know what filter there are, though, so I can’t tell you which one to call.

    #1472
    macwise
    Member

    Does anybody know how/where the cookie domain for bbpress is stored? I am not talking about the siteurl or home…I’m looking for the value “Website” in the cookie table in Safari’s preferences – > Cookies window, or the value “domain” in Firefox’s Preferences -> Domain field. I’m having conflicts with WordPress’ integration when I have a user create new password etc. in bbpress. I need to assign the cookie website or “domain” to be .myurl.com instead of http://www.myurl.com.

    fel64
    Member

    It doesn’t require wordpress, no.

    flatworm
    Member

    Yes. If i would not save my config.php, this thing would not install.

    Does this thing have to be connected to wordpress?

    Does it have it’s own pictures for graphics or it relies on wordpress?

    #54401
    Null
    Member

    Demo plz?

    Also found this one where you can dowload the theme you are watching (http://alexking.org/projects/wordpress/theme_browser.php) but it isn’t for download. (Author doesn’t want that)

    flatworm
    Member

    I installed the thing, but it does not show graphics and interface.

    Does it have to the in the same folder as WordPress?

    Help me.

    #54906
    fel64
    Member

    It can’t find the function get() because no such function exists – unless you’re sure it exists in your wordpress plugins or something? Are you sure that’s the function you want to be calling in that template file on line 127?

    #1466
    cmoseley
    Member

    I use aggrss to do syndication of my own website’s RSS feeds to the front page (OncTalk) and I want to be able to do the same thing on my bbPress theme (which is nearly identically to my WordPress theme). I’ve setup integration between the two theme systems, and I know it works becuase all of my WordPress Conditional tags and things I’m using in my bbPress theme are working, but when I put in aggrss, I get this error:

    Fatal error: Call to undefined function: get() in /usr/home/josh/domains/onctalk.com/public_html/wp-content/plugins/aggrss.php on line 127

    When looking up the code on that, I didn’t seen anything blatantly obvious that would cuase a screw up, but im still a beginner at this.

    This is the code around line 127 from aggrss.php:

    (From line 123-131)

    function aggrss($rssurl,$striptags=false,$num=0) {

    global $lastRSS;

    $lastRSS->CDATA= ($striptags) ? “strip” : “content” ;

    $lastRSS->items_limit=$num;

    if ($aggr = $lastRSS->Get($rssurl))

    return $aggr;

    else

    return 0;

    }

    Full view of the code can be found here.

    Any help in getting this fixed/solved would be much appreciated.

    #1461

    Topic: Template Tags

    in forum Themes
    fel64
    Member

    I would like/want to know about all the various template tags there are. For example, I wanted to change the way authors are presented next to their post, but found it impossible without changing core files (and those fairly confusing anyway). It would be nice if there were more template tags like there are in wordpress, so that I could call the_author(), the_author_title(), the_author_website(), the_author_profile() (or some variation with parameter-passed requested details). I’d like something, in other words, that was simple and straightforward to use, where looking over code you could immediately see the function. Maybe it’s implemented but I couldn’t see it?

    If they exist, then at least a list of them would be nice.

    More template tags would be great.

    #54328
    donnavitan
    Member

    Hello chrishajer,

    I’m definitely seeing the () error when I look at the source.

    I have installed the latest xampp, wordpress and bbpress locally for testing purposes. My config is as follows:

    $bb->wp_table_prefix = 'wp_';

    $bb->wp_home = 'http://localhost';

    $bb->wp_siteurl = 'http://localhost';

    I really don’t think I should be getting this error, so must I configure something else? Any help would be greatly appreciated. Thank you.

    kirkk
    Member

    Although it is Turkish but as u see on that page there is no Add New link or when u want to click on Profile u will have an error screen about “Page Not Found” or something like that. I couldnt understand that why i am having this problem.

    Also i cant see the site styled on FireFox2

    Note: I integrated bbpress with wordpress and they are using the same database. WordPress is a sub-directory of an other site of mine and bbpress is a sub-directory of wordpress.

    #54834

    In reply to: .htaccess/Cookie woes!

    macwise
    Member

    STATUS: RESOLVED

    Ziyphr,

    I’ll preface this by saying that I love Ahi Tuna dishes at restaurants. What is it about that huge hunk of raw fish meat that’s only seared to (probably) keep men’s wives from refusing to share a bed with a man who would eat a classic “dry heave” food. So, why do I like it? Well, it’s not the big chunk of meat that draws me in and pleases my palate. It’s the simple glaze that I often find on top; the light, sweet sauce that perfectly compliments the fish. As they say, “The secret’s in the sauce.”

    So, the “sauce” for this problem was the secret, and the sauce ended up being all too simple. Ziyphr first directed my friend and I to wp-settings.php. (He said to check out line 185, but mine was around 151-160). I found the code that called the siteurl and home, both of which would have returned http://babyquestions101.com, as that is what I have listed in my admin panel. I thought I needed to modify those to somehow spit out two domains, with the www and sans.

    My friend also informed me that he believed that cookie domains really need two dots, the first before the domain and the second after the domain but before the ‘com’. In my case it would be .babyquestions101.com. How to get ‘siteurl’ or ‘home’ to reflect that was a challenging thought.

    One side-note for anyone trying this same thing, DON'T CHANGE YOUR SITE ADDRESS OR HOME ADDRESS TO ANYTHING OTHER THAN \"WWW.MYURL.COM\" OR \"MYURL.COM\" IN THE ADMIN PANEL. Doing so will cause you more headaches than when you meet your mother in law for the first time. (Ok, that was an exaggeration, but only slightly).

    Once I got that mess sorted out, we tried to hard code in the .babyquestions101.com, replacing

    define('COOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_settings('home') . '/' ) ); with

    define('COOKIEPATH', '.babyquestions101.com');

    This didn’t work, and all hope was lost. Curiosity getting the best of me, I opened up my preferences panel in Safari and pulled up the list of all my stored cookies to see if there were any similarities/discrepencies between my cookie and other sites’ cookies. This is where I saw my cookie had the value “www.babyquestions101.com” under the heading “website” where most other sites were listed as “.siteurl.com”, missing the www that seemed to be plaguing me. I decided that was what I needed changed, and when I looked back at the code in wp-settings.php, I discovered that line 160 was unique from the others.

    if ( !defined('COOKIE_DOMAIN') )
    define('COOKIE_DOMAIN', false);

    I decided to change this to this:

    if ( !defined('COOKIE_DOMAIN') )
    define('COOKIE_DOMAIN', '.babyquestions101.com');

    What do you know…I dumped my cookies for my site, refreshed the page, logged in, checked the cookie, and there it was, ‘.babyquestions101.com’. Now for the true test, I got rid of the ‘www’ in the address bar, hit return, and VOILA! I was still logged in. Everything was seamless. I was now the owner of a spiffy wordpress/bbpress integrated site that shared cookies across sites and subdomains. No crazy .htaccess directives, no checking and double checking every last link in my site to reflect my choice of domains.

    This is the way it should be done. I’m quite surprised it was such a simple solution, and that nobody seemed to be aware of how simple the solution is. I hope this is helpful to someone else trying to share cookies across multiple subdomains.

    #51970
    fel64
    Member

    I like this plugin a great deal, because it works so nicely right off the bat :D

    Since my forum is in a subdomain, I had to change the code a bit (just coded in the location of my forums instead of letting it grab my blog location and adding a path). But a very minor thing to do for a very nice plugin. :)

    #54865
    brakai295
    Member

    hi there,

    thanks for the quick reply. No, I’m not using WordPress. It’s a self-made community system. Actually I’m not the one who programmed it, I’ve just designed and produced all the templates. But I’m also the one who decides what way to go with the forum.

    Has anyone here successfully integrated bbpress into their own website with 3rd party member database etc.?

    #54864
    bbolman
    Participant

    Are you using WordPress or WordPress MU for your blogging system? If so then the integration is really easy and simple. I would suggest taking a look at these tutorials:

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

    https://bbpress.org/documentation/themes/

    #1457
    tzangms
    Member

    Today I am integreating wordpress and bbpress, it’s works fine, but after I set BBLANG to my language(zh_TW), this message below shows up.

    “Fatal error: Cannot redeclare class streamreader in /path/to/bbpress/bb-includes/streams.php on line 26”

    Coz StreamReader class has been declared in wordpress, but bbpress will declare it again in ‘bb-settings.php’, this coz the error.

    here is the code in ‘bb-settings.php’

    Code:
    include_once(BBPATH . BBINC . ‘streams.php’);
    include_once(BBPATH . BBINC . ‘gettext.php’);

    I use class_exists to avoid these two files, ‘streams.php’ and ‘gettext.php’ to be include twice.

    the code came into these:

    Code:
    if (!class_exists(‘StreamReader’))
    include_once(BBPATH . BBINC . ‘streams.php’);

    if (!class_exists(‘gettext_reader’))
    include_once(BBPATH . BBINC . ‘gettext.php’);

    then it works! bbpress came back to normal, but my language file seems not to be loaded.

    After all, I find out, that bbpress uses wordpress function after integrate, so I place my .mo file into /path/to/wordpress/wp-includes/languages/ , then, my language file finally loaded. but ….. here is another problem, the .po of wordpress and bbpress will mess up into one file. but I want my wordpress not to be translated. ><

    #53602
    fel64
    Member

    Hey,

    I just wanted to say that I just installed bbPress in a subdomain from my forum and got the cookie syncing to work fine.

    Much thank to Trent, who provided half the solution:

    $bb->cookiedomain = '.lumanation.com';
    $bb->cookiepath = '/';

    made it so that forum-generated cookies worked for the entire website. I had to go into wordpress root and edit wp-settings.php line 190:

    define(COOKIE_DOMAIN, '.example.com');

    I do not understand how it worked previously, as it defined it simply as false (I assume that the browser will automagically substitute the domain that the user is currently on?). However, hardcoding the domain worked for me, and as long as I remember to change this in future upgrades I should be fine.

    I did have troubles, especially logging out, while testing all this, and found that it’s vital to clear your cookies manually as the wordpress/bbpress logouts were clearing different cookies and you could stay logged in despite trying to log out.

    But yeah, I’m all good. :) Thanks guys.

    #54802
    macwise
    Member

    Ok, this is the solution that worked for me. I did have to add the rewrite rule, as multiviews isn’t working on my server??? (I think I’m running on php4, is that why?) So, for others who want a wal-mart type bb build ;) here’s a recap of what I did:

    I created a page in my bbpress root called contest.php. Inside of that page I put:

    <?php
    require('./bb-load.php');
    bb_load_template( 'contest.php' );
    ?>

    I then created my contest.php page with the content I needed (the template)

    The last thing I did was to put these two lines in my .htaccess file IN MY FORUM ROOT FOLDER, (not my wordpress root folder):

    RewriteRule ^contest/$ /forum/contest.php [L,QSA]
    RewriteRule ^contest$ /forum/contest.php [L,QSA]

    This basically says that myurl.com/my/forum/directory/contest (without the trailing backslash)

    and myurl.com/my/forum/directory/contest (with the trailing backslash)

    will both point to the contest.php page in the root forum directory.

    As so1o said, this last part in .htaccess may be unnecessary if you have multiviews enabled (if your .htaccess file in your FORUM directory has this line: “Options +MultiViews”). Maybe someone else can confirm/deny this, as my configuration is different.

    Hope this helps someone else who needs some custom functionality out of bbpress.

    #54801
    so1o
    Participant

    macwise..

    if you are ok hacking the code.. create a page contest.php in the root forum folder

    add require_once('./bb-load.php'); on the top of the page. and write whatever code you want in the page.. that should create a static page with bbpress functions..

    as far as rewrite is concerned.. im not 100% sure but i think multiviews will automatically translate /contest.php to /contest/. test it and see.

Viewing 25 results - 26,001 through 26,025 (of 26,737 total)
Skip to toolbar