Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 28,251 through 28,275 (of 32,481 total)
  • Author
    Search Results
  • #62853

    In reply to: Error

    jompen8
    Member

    Okey, i want to that integration and i have put the folders correct.

    But why can´t i see the forum there then :S ?

    It only a blank page as u see at http://jompen8.byethost13.com/?page_id=24/

    sorry if i´m stupid but it would be so nice if i could get this forum to work on the site :)

    regards

    johan

    #62826
    chrishajer
    Participant

    Interesting (16:12 CST):

    Your bbPress URL (http://www.johnwade.ca/Forums/) is not a subdirectory of your WordPress URL (http://www.johnwade.ca/puppyplaydate).
    Sharing login cookies is possible but is more complicated. See the documentation about integrating bbPress and WordPress.
    In the meantime, remove the http://www.johnwade.ca/puppyplaydate setting from your config.php file, or you may not be able to log in.

    #62825
    chrishajer
    Participant

    The formatting of the config.php got jazzed up posting it here, so now there are lots of parse errors in it. Hard to say what it is without having the actual config.php in hand. It’s either on line 16 or right before line 16 and then it gets reported as line 16. This is line 14 in a stock config-sample.php:

    $bb_table_prefix = 'bb_';

    Maybe there’s a problem with that line in your config?

    #50333

    In reply to: Using RSS Feeds

    chrishajer
    Participant

    I’ve heard of this problem recently but have not seen a solution.

    https://bbpress.org/forums/topic/rss-result-is-empty#post-13571

    I thought I saw something regarding RSS checked into the code around revision 1044 – 1046 so maybe it’s fixed in development:

    https://trac.bbpress.org/changeset/1045

    #62849

    In reply to: Error

    chrishajer
    Participant

    There are lots of people out there who know how to fix it.

    I think the problem you are having related to glob() is fixed in revsion 1075. I would download that as a zip archive. It works around the fact that glob is not available on some servers.

    You can download any revision you want right here (look at the bottom of the page for zip archive and download that, when you find r1075.)

    https://trac.bbpress.org/

    There is a quick fix also:

    https://bbpress.org/forums/topic/php-error-messages#post-13143

    #62848

    In reply to: Error

    jompen8
    Member

    Isnt it anybody out there who knows how to fix it? :(

    #62838
    kernow
    Member

    thanks for the info. Have installed and sync’ed WordPress and BBpress on xammp now. Really there is nothing like an install you can play with without worrying about it all crashing :)

    Re the integration plugins with security issues, what is the situation with those?

    #62490
    charliestout
    Member

    Sam, this is great news. I’m not a coder but I’m fairly good with CSS. I could help with writing classes for some of the more popular themes.

    #2878

    Topic: Error

    in forum Installation
    jompen8
    Member

    I got this error when i tried to install :

    Warning: glob() has been disabled for security reasons in /home/vol2/byethost13.com/b13_1521748/htdocs/wordpress/bbpress/bb-settings.php on line 169


    http://www.jompen8.byethost13.com/wordpress/bbpress/bb-admin/install.php

    Can anybody help me? Please

    Regards Johan

    #62818
    chrishajer
    Participant

    Interesting…

    I don’t know why it would redirect to the home page vs. giving you a failed login attempt. I registered, received my email, tried logging in, and it seemed like it just redirected to the front page of the forum again.

    Is the WordPress installation going to be here:

    http://www.johnwade.ca/puppyplaydate/ ?

    If so, with integration, the bbPress installation should be here then (I believe):

    http://www.johnwade.ca/puppyplaydate/Forums/

    but it’s actually here:

    http://www.johnwade.ca/Forums/

    I wonder if the cookie path is wrong and that prevents bbPress from setting the proper cookie and thus thinks you’re not logged in, or that you logged back out since there is no valid cookie?

    I checked the cookies that were set and I have a cookie path of /puppyplaydate/ for wordpressuser and wordpresspass. I would expect the cookie path to be /Forums/ with this setup.

    As a test, I just stopped accepting cookies for my site (integrated with WordPress as well), then tried logging in. If I tried to log in while I was viewing a forum, it just silently redirected me to the forum home page. This seems like confirmation that it’s a cookie issue at this point. I can make mine do what yours is doing.

    If I set the 2 cookies manually in Firefox, I am logged in! Check this out:

    Screenshot of me logged into your forum:

    http://www.chrishajer.com/bbpress/ppd-profile.png

    Screenshot of the cookies I manually set (note path /Forums/):

    http://www.chrishajer.com/bbpress/ppd-cookies.png

    Here is the response from your server where it tries to set the cookies with a path of /puppyplaydate/:

    http://www.chrishajer.com/bbpress/ppd-response.txt

    HTH

    #62810
    chrishajer
    Participant

    In your config.php, you should start with mod_rewrite being false. I suspect you have it set to true or slugs, and that is creating problems for you as well.

    $bb->mod_rewrite = false;

    That should take care of the bb-admin issue, unless you are currently logged in and NOT a keymaster or admin. If you are logged in as a regular member and try to access the admin page, I believe you are directed to the bbPress installation instead of admin.

    UPDATED INFO after thinking about it: It’s also possible that this redirection is occurring because the creation of tables and modification of tables did not go well, and it’s not reading your user information properly and it does not know you are keymaster with access to bb-admin.

    Regarding the SQL errors, is it possible your WordPress installation already used ppd_ as a table prefix, and then you used it in your config.php for the bbPress table prefix as well? If that’s the case, the errors are because it is trying to create tables that already exist or modifying tables with the wrong names. From the snippet of config.php you posted earlier, you showed $bb->wp_table_prefix = 'playdate_'; but also ppd_ in the line below (the ‘for example’ part), and the errors here show ppd_ as the table prefix. Oddly enough, there are some errors with just ppd and no underscore as the table prefix as well.

    Seems like it’s a combination of configuration things at this point. Maybe the $bb_table_prefix was set to the same thing as the $bb->wp_table_prefix with the exception of the underscore (so, ppd vs. ppd_). That info doesn’t agree with the piece of the config.php you posted though where you said $bb->wp_table_prefix = 'playdate_';

    I suspect the whole picture has not been posted since you’re working on it and trying things and then you make a change and the old information no longer applies.

    Right now, you have the database connection issue figured out. You should be using different table prefixes for wordpress and bbpress: wp_ and bb_ are the defaults. In the bbPress config.php, the $bb->wp_table_prefix should be the same as whatever it is in your wp-config.php and THAT should be different from the bbPress table prefix, set earlier in the config.php at $bb_table_prefix.

    #62806

    Is it possible the problem lays in my use of local host in spite of the “99% chance you won’t need to change . . .” :) What does one change it to when one is the 1%? Is this even a possibility if the same info was used in wordpress installation?

    I cut and paste just the actual db name, password and username and nothing else.

    I don’t know whether I’m using a port or socket, that’s getting out of my pay grade. I’ve done multiple installs though of wordpress without problems.

    jw

    #62803

    sigh …

    I cleaned house and started from scratch, and still:

    Cannot select DB.

    As a side question (2)

    In the section of the code for “What are you going to call me?” Can the content have punctuation?

    Second, I’m not clear on the slug reference. I think I understand the end result but do you actually type in the word ‘slugs’?

    jw

    #62792

    In reply to: add a link

    fir
    Member

    Thanks a million Chris! All that was needed was some extremely simple html as you have pointed. :)

    #62799
    chrishajer
    Participant

    This error points to a problem in the config file:

    Parse error: parse error in /home/cust2/user1080446/html/bbpress/config.php on line 4

    Line 4 is the first line of the database config stuff, starting with database name. This error was not mentioned previously by you and maybe there is a new problem there.

    The bb_walker error is interesting. In your error message, it’s lower case, but in the source, it appear like this, with some uppercase: BB_Walker_ForumAdminlistitems and BB_Walker. Not sure if that’s a typo in the source or a problem with the upload or something else.

    My guess is that it’s used in lowercase for the function call, and it’s defined in uppercase, which doesn’t work, I don’t think. I’ve had that happen before when the development of a plugin or function is developed on a Windows machine where the case does not matter, and it’s loaded onto a Linux server where the case does. Maybe it’s something like that?

    Looks like your server is Linux, so case matters there.

    This is not a comforting note from the trunk: backPress: BOOM! this will break *everything*

    Did you download the 0.8.3.1 release or a trunk release? I am fairly certain trunk is broken right now, but 0.8.3.1 should work. There was a post from sambauers here about a month ago saying that r980 was the best version to try:

    https://bbpress.org/forums/topic/broken-profiles-for-users-with-spaces-in-the-names?replies=5#post-12769

    bbPress is in flux right now. It’s not normally anywhere near this difficult to get up and running. Sorry for the troubles.

    #2876
    tmeister
    Member

    Hi there.

    I am working in a post preview plugin. you can see it here http://www.klr20mg.com/dev/bbpress/.

    I dont know if that is enough to release a beta version.

    The plugin only sends the textArea text, applies filters and shows the text using ajax.

    The preview only works with replies and has no design at all :).

    What you think?

    Test url http://www.klr20mg.com/dev/bbpress/

    see ya.

    #62488
    charliestout
    Member

    Fel64, you are totally right. That wasn’t so much an appeal to inferiority as it was an appeal to the bandwagon: I simply think people tend to judge a product based on what’s included, moreso than what’s excluded. I could have worded that better.

    I could try to make a better case for an attachments plugin, but I run the risk of becoming “that crazy dude who’s always whining about attachments.” Besides, I don’t feel like I should try to argue the point, because I don’t really hear anyone arguing *against* it.

    The best case I can see for any plugin is a chorus of users singing the same tune, asking for such an extension and offering what resources they have to contribute to it. I appreciate the input from everyone on this discussion, and hope we can continue it to the eventual development of this feature. As I mentioned before, I will look at the code, and do what I can (hack around) but then I’ll run the risk of being “that crazy dude who thought he could write a file attachment plugin.”

    Which might be slightly better than being the dude who was just whining about not having one. But still.

    #62487
    fel64
    Member

    (which if I remember from my signatures plugin has no action hook unfortunately and templates will need to be edited)

    No, there’s been hooks for the post form for as long as I can remember.

    • pre_post_form
    • post_form
    • post_post_form

    Charlie: ticking off boxes because other software ticks those boxes is feature creep. Goes against, as you say, what bbpress is about. And even if it didn’t, it makes no sense; feature ideas should be evaluated on their own merits. I’m not saying attachments shouldn’t make it in (personally, I don’t much like file attachments), but that you can make a much much better case for it than saying that it’s a square on the Forum Matrix that bbpress doesn’t have.

    #62486
    charliestout
    Member

    I can’t speak for the world at large, but I think that many people might be passing up a great product (bbpress) because they are looking for forum software with a few more “essential” features. A great number of other forum packages on the ForumMatrix offer multiple file attachments, and while I agree with the developer’s dream of keeping this thing nice and lite and agile, I think anytime a red X on the ForumMatrix is eliminated, it increases the overall appeal of bbpress to the forum dev community.

    HowToGeek, I don’t know how much use I’d be to you as a coder, but I’m willing to do whatever I can to help you start a plugin like this.

    #62791

    In reply to: add a link

    chrishajer
    Participant

    Just put what ever sort of link you want (button, image, text link) in whatever page template you want the link to appear in. Just edit the proper template (maybe header.php) and put something like this in it where you want the link to appear (maybe near the login form around line 36 in the 0.8.3.1 release):

    <a href="http://www.server.com/blog/" title="return to blog">Return to Blog</a>

    #60325
    Bob Jones
    Member

    Ok, so I changed the code to this:

    Options +MultiViews
    RewriteEngine on
    RewriteBase /
    RewriteCond %{HTTP_USER_AGENT} !FeedBurner
    RewriteRule ^/rss/$ http://feeds.feedburner.com/PinkOnBrownBB [R,L]

    And…nothing. Here’s the link to the forum:

    http://bb.pinkonbrown.org/

    Rewrites seem to be working in every other sense. Redirecting to feedburner works fine in WP – but then, I’m using the plugin.

    #62485
    _ck_
    Participant

    Again, essentially the avatar upload plugin does all this (filename scrubbing, etc) the code would just need to be hacked to make it attach to posts instead of users and the interface would have to be on the create/edit post form (which if I remember from my signatures plugin has no action hook unfortunately and templates will need to be edited). “Avatar Upload” even checks filenames and the php code checks dimensions which ensures it’s really an image. Other filetypes like zips or pdf would be more tricky but just an extension of the process – first start with images and work from there once you have it running.

    I’d like to see this happen, but don’t look at me for coding, I hope someone else steps up to the plate. Got my hands full right now with “Super Search” which is quite difficult on all sorts of issues. I won’t be done with it for a week or two at earliest, more realistically the rest of February.

    #62777
    howtogeek
    Member

    You can find this function in bb-includes/functions.php

    function bb_add_topic_tags( $topic_id, $tags ) {
    global $bbdb;

    $tags = trim( $tags );
    $words = explode(',', $tags);

    if ( !is_array( $words ) )
    return false;

    $tag_ids = array();
    foreach ( $words as $tag )
    if ( $_tag = bb_add_topic_tag( $topic_id, $tag ) )
    $tag_ids[] = $_tag;
    return $tag_ids;
    }

    The explode() function is where the logic is happening… you’ll have to test to see if it screws up anything else, cause I’ve not tried it.

    #60323
    Bob Jones
    Member

    HowToGeek – I’ve put that code in the .htaccess and it still doesn’t seem to work.

    Here are the contents of my .htaccess file:

    Options +MultiViews
    RewriteEngine on
    RewriteCond %{HTTP_USER_AGENT} !FeedBurner
    RewriteRule ^/rss/$ http://feeds.feedburner.com/PinkOnBrownBB [R,L]

    Is there anything noticeable that might be causing the problem?

    #62714
    _ck_
    Participant

    All my knowledge is usually from trial and error (and lots and lots of benchmarking).

    MySQL penalties are biggest when there’s no index for what you are searching for and how cacheable the result is. If there’s only one user online, you’ll never notice poor mysql performance. If there’s 500 users online, each making 20-30 queries, you better have decently written code.

    Loading a regular topic page is very low penalty as long as other plugins are properly using the bbcache. Many of them don’t and hammer away at mysql for every new user/post encountered.

    Ajax topic loading would be no worse than regular page loading as long as the queries are nearly identical for users, therefore the result can be cached in mysql. As long as you use OFFSET in the query, you can keep going forever down the page without preloading the entire result – the hard part is not the db code, but the ajax code. I have no clue how to do it, I’d have to do it in pseudo ajax (simple innerhtml writes) which is probably some kind of security risk.

    The bad idea about all of this is bookmarking results. If you want to send a friend a link to the 50th post which is technically on the 4nd page but you seem to be on the first page because of ajax – you’ll never be able to bookmark the 4th page. Some ajax routines dynamically change the URL to solve this by adding a cruft like #page2 after they pass that mark, which will not re-load the page in the brower but alter the bookmark if saved.

    Getting back ajax posting is probably a bigger priority than ajax reading for now. And a bit more difficult.

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