Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,226 through 27,250 (of 32,481 total)
  • Author
    Search Results
  • #65707

    In reply to: Intergrating the theme

    793634
    Inactive

    The script from the website that you gave me…

    There is stuff in wordpress everywhere saying on the top of the thing (like the top of the page)(but it only happens in the admin control panel) saying

    bbPress database error: [Table 'c4cwp.wp__users' doesn't exist]
    SELECT * FROM wp__users WHERE ID = 3

    Thats one of the main reasons why I want to fix it…and it also changed my homepage to my blog. And when I remove the script well thats where things get extremely messy.

    #3693
    795625
    Inactive

    Hi all,

    i’m looking for a template which seems like official forum of WP : http://wordpress.org/support/

    i’ve seen many template, but this seems to be th nearest that i’m looking for for my forum ( http://www.mummujoruxu.com/forum )

    If you know where i can find a similar template, or this :D

    thanks :D

    #57459
    Vili
    Participant

    deliciousbass:

    The “latest discussions” list at http://akirakurosawa.info/forums/ is compiled without the use of WordPress or bbPress loops. Instead, it makes use of two direct hand-crafted MySQL queries to the database, one to the WordPress tables and the other to the bbPress ones.

    Basically, both queries search for all the posts (or comments, in the case of WordPress) written in the past month, then put these posts into various arrays. The arrays are then sorted so that the items are in a reversed chronological order, and finally the resulting list is displayed on the page with only the latest post/comment from each thread/blogpost/page included.

    In case it is any help, here is the code that I use — I wouldn’t suggest just copy-pasting it to your site though before reading it through and knowing what you are doing. You may at least need to change the table names. I have added comments to give some idea what is done where.

    See the code here

    There most probably is a simpler way to do this, the php code could be streamlined, made more error-resistant, and it could possibly also be done with WordPress/bbPress tags, or it could be turned into a plugin, if someone has the time and the energy.

    #66408
    chrishajer
    Participant

    On another note, I fixed the JavaScript error and was able to use the [INSERT] link to insert the code into the post, but this is what appears:

    [attachment=1,undefined] 

    I am guessing the undefined is part of the problem. That code still remains in the post though. I read this in the plugins page:

    (extra BBcode plugin not actually needed)

     

    I don’t have any bbCode plugin installed (I have no plugins installed actually) so I’m not sure why this bbCode is not being converted by the plugin.

    #65705

    In reply to: Intergrating the theme

    793634
    Inactive

    OK this is how I have it set up…

    wordpress is at /

    bbpress is at /bbpress

    I don’t care if I do or do not integrate it I just don’t want to have any errors. And when I took out the script everything went blank white and displayed the error message…so I decided to put it back in but I am getting this type of error instead when I try to log in to bbpress(which I can’t ever since I tried to integrate it)

    bbPress database error: [Table 'c4cwp.wp__users' doesn't exist]
    SELECT ID FROM wp__users WHERE user_login = 'Noproblem'

    bbPress database error: [Table 'c4cwp.wp__users' doesn't exist]
    SELECT * FROM wp__users WHERE user_login = 'Noproblem'

    I am running 2.6 of wp

    and the latest for bbpress as well…

    Thanks for the help,

    Noproblem

    #66405
    chrishajer
    Participant

    I tried inserting the bbcode directly, like the JavaScript would have done (I think), but it does not appear to work either.

    [attachment="2","1"]

     

    The above just displays in the post.

    #66404
    chrishajer
    Participant

    There are two different options here.

    1. Allow Images plugin. The member needs to link to an image available in the Internet somewhere. If that’s not a problem, then that’s the way to go. It allows members to insert images into their posts. Pretty easy.

    2. Attachments plugin. This you have working as attachments now, but you want the image inline, not attached. The newest version is supposed to do that, and I just read this on the plugin page:

    After uploading, an [INSERT] link will appear next to each attachment.

    So, the user needs to upload it first, then go back and edit their post, and click the [INSERT] link. I actually just noticed that: I have the link, but it doesn’t work. It seems like a JavaScript error.

    Error: myField is not defined
    Source File: http://www.example.com/bbpress/edit.php?id=2
    Line: 76

     

    If you cannot use the Allow Images plugin, instead of the Attachments plugin, then you might want to post your concerns on the plugin page, or wait for _ck_ to show up here. The plugin was released early because a lot of people were looking for the inline functionality, and I’m sure _ck_ will appreciate feedback from anyone using it.

    #64545
    RossB
    Member

    Chris – need some clarification PLEASE.

    I’ve changed the HTML tags, put them in a div and given it a CSS class, exactly as you suggested. I’m stuck at your point 3. I’ll enumerate for ease of reply.

    1. Should I still be in the header.php file when making the CSS code you have suggested? Or should all CSS code be in the style.css file?

    2. I don’t understand what you mean by “add it right around the lines for the #header, since you’re still in the #header div”. Specifically:

    a) Where are the #header lines you refer to, and

    b) When you say “add it right around the lines for the #header”, I’m not sure what you mean by “right around”, exactly. Do you mean immediately under #header?

    I didn’t anticipate these questions. I am very ignorant technically. Thanks for your patience.

    #3689

    Topic: bbFlickr

    in forum Plugins
    thion
    Member

    Because I have no idea how to deal with all this SVN stuff in Ubuntu (I’m just a “user”, not a geek), and I want to share plugin no matter what – here it is:

    http://astateofmind.eu/freebies/bbflickr/

    I’ve made modifications to original FlickrRSS to make it working under bbPress – you can display your photos, your set, group or community photos from Flickr on your forum now :).

    You can see demo here on sidebar.

    #66389
    thion
    Member

    Oh my… this will be more difficult than I thought in first place ;). Thanks for links, I’m going to look for some SVN “manager” for my Ubuntu…

    Edit:

    OK, topic is resolved. Although my knowledge is not enough to deal with SVN yet… ;)

    #66393

    In reply to: Just a question…

    chrishajer
    Participant

    Yes, put it in it’s own folder, inside the WordPress folder. So you might have something like this:

    /var/www/public/website/wordpress
    /var/www/public/website/wordpress/bbpress/

     

    The 404 error might be because you are trying to use permalinks, either “slugs” or true, and they’re not set up on your server. I would change them to false for now and see if you can get the links to work. If that works, then you know that was the problem and you just need to set up permalinks.

    https://bbpress.org/documentation/faq/#pretty-permalinks

    phpBB3 conversion:

    https://bbpress.org/forums/topic/phpbb3-converstion

    I don’t think so, not easily, not yet. I think there was a script to export phpBB2 to bbPress:

    https://bbpress.org/forums/topic/a-phpbb-to-bbpress-database-converter

    #66388
    _ck_
    Participant

    Ah there is probably a more developed guide on the WordPress side, let me see if I can find it for you.

    update: here’s a few guides – essentially the process is identical to the WordPress side except the URL used is going to be https://plugins-svn.bbpress.org/

    guides:

    http://www.binarymoon.co.uk/2008/01/wordpress-plugin-subversion-guide/

    https://wordpress.org/extend/plugins/about/svn/

    #3687
    thion
    Member

    I have no idea where to post it so I’m using the less-invasive section of this forum :). Is there any “guide to submitting a plugin” to bbpress.org/plugins/? I’ve clicked “Add your plugin!”, I recieved approval and “access to your SVN repository” but now what?

    I never used SVN or Trac before, I have no idea what to do, I just want to share my plugin with others via bbpress.org ;). If there’s any “guide” or wiki page out there to help me out, please point me to it as I have no idea where to look for anything like this…

    PS: I want coffeeeeeeee ;)

    #66336
    _ck_
    Participant

    I’ve now made this into a full plugin:

    https://bbpress.org/plugins/topic/forum-last-poster/

    Once you install it, you’ll be able to use your code above, but change the part of the function that says topic to forum, ie. forum_time()

    #66013
    _ck_
    Participant

    Hi filosofo, it’s an honor to have you here (I learned alot from studying your WordPress plugins).

    I take it you are trying to do “full” integration where bbPress and WordPress run together and I guess I didn’t think of that as I try to encourage people NOT to do that because of the massive amount of code that has to execute for every page rendered.

    I meant the cookies should integrate, with simple (stand-alone) integration.

    Having bbPress based on BackPress and WP not based on it yet is going to become a problem for people doing full intregration. I am not sure if Sam is willing to wrap all the functions in “function_exists” clauses.

    It’s great that it works when you remove them – they must have copied the most recent WordPress functions.

    #65857
    chrishajer
    Participant
    [~]$ curl -I http://www.picbi.com/forum/
    HTTP/1.1 404 Not Found
    Date: Sat, 26 Jul 2008 15:51:13 GMT
    Server: Apache/1.3.41 (Unix) mod_jk/1.2.25 mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.7a
    Set-Cookie: wassup=d236f9ce34fae04016f3af250c7877e2%3A%3A1217090173; expires=Sat, 26-Jul-2008 16:41:13 GMT; domain=picbi.com
    X-Pingback: http://picbi.com/xmlrpc.php
    Expires: Wed, 11 Jan 1984 05:00:00 GMT
    Last-Modified: Sat, 26 Jul 2008 15:51:14 GMT
    Cache-Control: no-cache, must-revalidate, max-age=0
    Pragma: no-cache
    Connection: close
    Content-Type: text/html; charset=UTF-8

     

    The “404 Not Found” should be a “200 OK”.

    #66012

    For those that know what they are doing and have subversion, you can checkout or switch to the trunk of bbPress which will give you compatibility with WordPress 2.6

    Are you sure it’s compatible? I’m getting fatal errors because the functions in bb-includes/backpress/functions.core.php and bb-includes/backpress/functions.compat.php, which are shared with WP, are all getting re-declared.

    However, if I make those files blank, the integration seems to work.

    #65856
    chrishajer
    Participant

    If you do a curl -I http://example.com/ from the command line on a Linux or Mac machine, or check the response headers with Firebug or the Web Developer Toolbar (both Firefox add-ons) you will see the response header is a 404, but the page still loads. This has something to do with WordPress, I think.

    I tried to load a page on your forum just now, to show you the header output, but I keep getting a “page load error.”

    #60879
    chrishajer
    Participant

    Did you add that to wp-config.php as the first line, right after the <?php?

    The error cannot redeclare means something has already been included that it’s trying to include again.

    http://www.google.com/search?q=Cannot+redeclare+_http_build_query()

    https://bbpress.org/forums/topic/having-trouble-integrating-wp-functions

    RossB
    Member

    Thanks, Chris. I know Firefox is a better browser, and the only reason I am using IE is out of habit. Currently running IE 6, and I suppose newer versions are equipped for RSS feeds. Anyway, you’ve cleared up the mystery of the RSS coded page for me! Weird thing, is, IE does show RSS feeds as they should appear on various blogs I’ve subscribed to. Why it should be different for the WP and bbPress forums…aaarrghh, not even going to think about it!

    #66366
    _ck_
    Participant

    It’s very easy to do this via a plugin.

    You have to attach to the ‘bb_head’ action.

    In fact if there’s a plugin for WordPress that does it, it would take under a minute to change it for bbPress.

    Here’s a mini-plugin I wrote to do noarchive and nofollow:

    function no_archive() {
    echo "n".'<meta NAME="robots" CONTENT="noarchive,nofollow">'."n";
    } add_action('bb_head', 'no_archive');

    .

    It would just have to be wrapped in an IF statement with a URI check to add it when you want it. To get the current location, either check bb_get_location or steal it’s code and modify as desired.

    Something like this (untested)

    function no_index() {
    if (in_array(bb_get_location(),array("login-page","register-page","profile-page")) {
    echo "n".'<meta NAME="robots" CONTENT="noindex,nofollow">'."n";
    }
    } add_action('bb_head', 'no_archive');

    #66365

    Anyone? Simple “if page” stuff. Yet, I don’t know what the variables are. :|

    #65852
    _ck_
    Participant

    Nice look but you need to look into your server configuration as the bbPress pages are being served with 404 error code instead of 200 (even though they display).

    Something might be wrong with your htaccess

    #66387
    _ck_
    Participant

    I am not sure about the loading order of your plugin but keep in mind that stuff like bb_is_user_logged_in() is only available when bbPress is fully initialized.

    Essentially you cannot execute anything but the most basic independent code until do_action('bb_init' happens.

    So you have to hook bb_init, ie:

    add_action('bb_init','your_function_name);`

    and THEN your function can check bb_is_user_logged_in.

    BB_IS_ADMIN is a constant so be sure to use DEFINED to test it and not directly or you’ll get an error

    if (defined('BB_IS_ADMIN')) {

    (also, BB_IS_ADMIN means if you are in the admin menu, not if the user is an administrator – not sure if you knew that)

    #66011
    _ck_
    Participant

    For those that know what they are doing and have subversion, you can checkout or switch to the alpha trunk of bbPress which will give you compatibility with WordPress 2.6

    svn switch http://svn.automattic.com/bbpress/trunk/

    Unfortunately an automated download zip cannot be created because this is the first version of bbPress that uses BackPress which is automatically added by svn, but can’t be zipped by TRAC.

    Here’s a ZIP’ed snapshot from yesterday:

    http://www.mediafire.com/?alvvslgmh22

    Keep in mind that you should NOT use the bbPress trunk for live websites – it’s bound to have bugs and some might affect security. You are on your own if you chose to use this version – plugins may have some compatibility issues.

    1.0 requires the 3 new WP matching keys inserted into bb-config.php (see thebb-config-sample.php for more info)

Viewing 25 results - 27,226 through 27,250 (of 32,481 total)
Skip to toolbar