Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 28,501 through 28,525 (of 32,481 total)
  • Author
    Search Results
  • #60856
    Sam Bauers
    Participant

    > I suspect bbPress of having hard coded a connection to localhost and thus configuring define(‘BBDB_HOST’, ‘…’) to be something else than localhost doesn’t really matter.

    That’s simply not the case.

    #62083
    alderete
    Member

    Yeah, I guess it would work for now, we only have a few forums. But I’m reluctant to put that kind of thing into the templates, where it’s hard to update, and prone to typo problems, etc., if the conditional code gets accidentally mucked up.

    Is there any way to add arbitrary meta attributes to things in bbPress, the way you can add them to posts in WordPress?

    #62092
    livibetter
    Member

    Check Step 2 of https://codex.wordpress.org/Installing_WordPress#Detailed_Instructions

    It’s written for WordPress, but you can use it for installing bbPress.

    #62066
    chrishajer
    Participant

    You could extract all the email addresses from the database with a tool like phpMyAdmin. I don’t know of a plugin that does this. If it’s a onetime thing, I would just grab the email addresses from the database with a query like:

    SELECT DISTINCT user_email
    FROM bb_users
    ORDER BY user_email ASC

     

    With all the email addresses, then just send out a mass email with your email client putting their email addresses in the BCC field.

    Are you looking to do this regularly, and are you thinking this should be a plugin? I guess you’d need to know if the installation were integrated or not, then query the correct table, and also if it is an integrated installation, you’d need to separate out the bbPress registrations from the WordPress registrations.

    chrishajer
    Participant

    If you are going to do something like bb_installation_ and bb_plugins_, it sounds like you want subforums. You would have one installation in a directory like /forums/ then you create subforums in your admin panel.

    You would NOT create multiple $bb_table_prefix = lines – that wouldn’t work.

    #61967

    sambauers, is there an ETA on that? I’m not trying to rush it, just wondering. :)

    #61892
    livibetter
    Member

    I just noticed I gave you wrong link to rss.php

    This is the correct one: http://llbb.pastebin.com/f1aee01cf

    #61886
    livibetter
    Member

    The generated result, when you navigate to /wrdp2/bbp1/rss/.

    The thing starts with <?xml

    #62076

    In reply to: Installation woes

    livibetter
    Member

    Well I updated WP…

    You probably need to ask in WordPress Support.

    Here is a document: https://codex.wordpress.org/Upgrading_WordPress_Extended#Detailed_Upgrade_Instructions_for_1.5.x.2C_2.0.x.2C_2.1.x.2C_or_2.2.x_to_2.3.1

    #61882
    livibetter
    Member

    What is that line of generated RSS? <link></link>? (posting completely to pastebin would be better to find out)

    Have you set $bb->uri in your config file?

    What browser are you using?

    #62079

    In reply to: Posts lost :(

    r4zv4n
    Member

    Unfortunately, not only they aren’t in the DB, but I don’t have a usable backup either (the last full backup I have is from about two weeks ago and the daily backup has the same thing as.. what i see).

    Another weird thing is that some days ago, in my Akismet spam list I found some posts from way back (that weren’t spam, but.. why check them if they were already “accepted” ?).

    So I suspect that something might have triggered a full check and it automagically deleted what it considered spam or something..

    So, I lost about a month and some of posts :(

    #61933

    In reply to: Excerpts

    fel64
    Member

    livibetter, if you can separate the logic code from the presentation it’d be even better. You can always put a hook into the template and put the code into a plugin, or use the query filter to find when the topics are being looked for.

    #62057
    livibetter
    Member

    !defined('DB_NAME') is redundant, since you should be only one can code on your files.

    I will use

    if ( !strpos($_SERVER["PHP_SELF"], 'bb-admin') )
    require_once('../wp-blog-header.php');

    Anyway, you did a great job!

    PS. could you show us your forums?

    #62056
    ixray2
    Member

    Here is a quick workaround I just figured out, but I’m not sure this is state of the art:

    Instead of

    require_once(dirname(__FILE__) . '/../wp-blog-header.php');

    in config.php, I put

    `if ( !defined(‘DB_NAME’) && !strstr($_SERVER[“PHP_SELF”],’bb-admin’) )

    require_once(dirname(__FILE__) . ‘/../wp-blog-header.php’); `

    #60927

    There is still a set of problems with this. The value of $this->$dbhname isn’t checked before it’s used in mysql_get_server_info() on line 75 in db-mysqli.php. If the connection fails, the error won’t be echoed to the user because the use of @ on the mysql_connect() call and then the script just continues, assuming the connection went fine, which in my case, it din’t. Also, the call should be to mysql<b>i</b>_connect() and not mysql_connect(), as far as I can understand.

    The patch doesn’t fix these problems and they need to be fixed for bbPress to work on my host. I’d write these comments on the associated ticket, but there doesn’t seem to be any way to register or comment anonymously there.

    #60854

    I have the same problem and overwriting db-mysqli.php with db.php didn’t help. Just for completeness, here’s the error messages I encounter:

    Warning: mysql_get_server_info() [function.mysql-get-server-info]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/<snip>/bbpress/bb-includes/db-mysqli.php on line 73

    I suspect bbPress of having hard coded a connection to localhost and thus configuring define('BBDB_HOST', '...') to be something else than localhost doesn’t really matter. I don’t have MySQL and Apache installed on the same physical server, so I have to access MySQL through a hostname and thus localhost won’t work.

    #2712

    Topic: Posts lost :(

    in forum Troubleshooting
    r4zv4n
    Member

    This morning when I logged in, I noticed a big chunk of the posts on my forum were gone. I still have posts from the beginning and some recent ones, but a large batch of posts from the middle was lost :(

    Any ideas on why or how I could get them back ?

    #62071

    In reply to: Installation woes

    chrishajer
    Participant

    You really, really, really need to upgrade your WordPress:

    <meta name="generator" content="WordPress 1.5.1.2" />

    Until then, I think it would be silly to try and fix any errors in your install.

    Current WordPress version is 2.3.1: 1.5.1.2 was released 2.5 years ago and has security issues as well as limited functionality.

    http://blog.taragana.com/index.php/archive/serious-security-vulnerabilities-of-wordpress-1512-and-below/

    #61878
    livibetter
    Member

    Here is a temporary solution:

    rss.php: http://llbb.pastebin.com/f5c1a8a37

    rss2.php of template: http://llbb.pastebin.com/f24cd6fd3

    If you need the last post content of each topic, please find a recent topic Excerpt and combine this with it.

    Edit: Oops… just find out you are also the starter of that topic.

    #62031
    chrishajer
    Participant

    It’s working for me. I clicked on some forum names and was brought to a page that listed that forum name. There were no topics though so it said “you must be logged in to post.” So, I created an account and I can look around and everything looks normal.

    If any link that had ‘forum’ in it redirected to the main blog, my guess is you had a permalink issue. I would set your mod_rewrite line to false for the time being (which you may have done already to get it working, since it seems to be fine right now.)

    $bb->mod_rewrite = false;

    #62069

    In reply to: Installation woes

    chrishajer
    Participant

    Why is your bbPress calling a WordPress function?

    wp-includes/functions.php

    Is there more to your setup than it appears?

    Actually, I just went to your forum and it is working?

    #61875
    Doobus
    Member

    After all my slicing and dicing with bbPress, I’m finally coming close to completing everything, except one thing. This RSS thing is really killing me :P. I’m wracking my brain trying to explain this the best way possible.

    So here I go. Each forum has a feed, how do I only show the topics in the feed? As it stands right now, the feed is showing the replies as well, I just want topics to show.

    Sorry for sounding redundant, but I’m desperate >_< to complete. Thanks in advance.

    #62054
    livibetter
    Member

    The workaround won’t work for plugins.

    @sambauers: I think there is no complete working solution if you don’t touch the core files.

    First, load_default_textdomain and load_plugin_textdomain are WordPress version, they only look language files in WordPress directories. So, in bbPress, all text won’t be translated since language file are not loaded because WordPress load_*_textdomain won’t find language files in bbPress’ directories.

    Second, WordPress and bbPress both use default as textdomain when calling __() or _e() without assigning textdomain, that means we can only use either WordPress’ or bbPress’ language files at the same time, not both.

    (edit: plugin’s problem can be solved by add a bb_load_plugin_textdomain, but bbPress’s part. If we don’t want to use something like bb__(), bb_e(), maybe we can try to merge bbPress translations into WordPress’ in runtime? or search bbPress’ first, then WordPress’ if can’t find)

    #62052
    livibetter
    Member

    Sorry, didn’t read bbPress source carefully. Replace first if clause with

    if ( defined('BBLANG') && '' != constant('BBLANG') ) {
    if ( function_exists('load_default_textdomain') ) {
    global $l10n;

    $locale = BBLANG;
    $mofile = BBPATH . BBINC . 'languages/' . "$locale.mo";
    if ( is_readable($mofile) ) {
    $input = new CachedFileReader($mofile);
    $l10n['default'] = new gettext_reader($input);
    }
    }
    else {
    include_once(BBPATH . BBINC . 'streams.php');
    include_once(BBPATH . BBINC . 'gettext.php');
    }
    }

    PS. That “..” is how you put variable to be parsed in string in PHP ( Variable parsing )

    #62048
    ixray2
    Member

    tried out your workaround, does not seem to work (doesn’t load language file).

    also, shouldn’t it be $mofile = BBLANGDIR . $locale . ".mo";?

    but even with that fixed, it doesn’t work.

    but still, thanks a lot!!

Viewing 25 results - 28,501 through 28,525 (of 32,481 total)
Skip to toolbar