Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 28,276 through 28,300 (of 32,500 total)
  • Author
    Search Results
  • #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.

    #62605

    In reply to: TalkPress

    _ck_
    Participant

    As I was reverse integrating the WP trunk with the bbPress trunk this weekend I was thinking a lot more about this – and the more I think about it, the more I am getting confused about what is being planned.

    If WP and bbPress are being coded to use to a unified function library that would definitely break wordpress hooks. But Matt would never do that as it would break 1000’s of plugins and themes for the far more popular WordPress.

    In some ways, bbPress’s db/load process and hooks are slightly more thought out/evolved than WordPress because they came later and WordPress has to maintain some backward compatibility.

    So then it occurred to me that to leave the WP hooks alone, I hope you are not trying to replace the core of bbPress only with WP-like functions? I don’t see how that could be done without breaking every single plugin and theme for bbPress? Will the next (non minor) release of bbPress have a nearly-unified WP core?

    In trac I see BB functions being renamed to their WP counterparts. But no wrapper functions for backward compatibility are being written. I see the backend of bbPress being hammered into backPress and I imagine the next bbPress as simply a front-end being re-written to only use the backPress, ie. wordpress, hooks.

    So I guess the final question is: is there a plan to write wrapper functions or is the general attitude just to abandon all third party work to date for the next bbPress release and just hope we go along for the ride?

    #62713
    howtogeek
    Member

    @fel64

    Typically the cost of doing a query at all is the biggest performance concern, unless the query returns many thousands of records, then the size becomes a concern. It’s really all about profiling your code to see where the performance problems lie.

    The problem here is that ajax doesn’t load large amounts of data very quickly… it’s best for small requests, not loading a giant page. There are many sites that use this technique, however, including sites like Digg.

    Pre-fetching everything and hiding them has other concerns, because it would make every page load huge, and potentially without reason.

    Finally, there would be concerns for google indexing if you are hiding half the posts, or also if the user doesn’t have javascript enabled.

    #62754
    chrishajer
    Participant

    Or, just turn off permalinks in your config.php:

    $bb->mod_rewrite = false;

    At least at that point, things would work for you.

    #62752
    salman1485
    Member

    problem solved.. :)

    instead of localhost i had to enter the other thing which dreamhost told me …

    but now another problem

    the forum is working fine http://test.nofullstop.com/bbpress/

    but the slugs arnt??

    what went wrong now??

    #62720
    John Conners
    Participant

    Have a look in your mysql database with phpmyadmin at the bb_usersmeta table for your user (whatever ID that is, which you can get from the bb_users table). If you find the row that has the meta_key column of bb_capabilities, you’ll probably find the meta_value is:

    a:1:{s:6:"member";b:1;}

    If you change that to:

    a:1:{s:9:"keymaster";b:1;}

    You’ll find you’re an admin and can see the admin panel.

    #62751
    chrishajer
    Participant

    It is most certainly a problem with the details you have entered for the database. One of the four items is incorrect: that is precisely what the Cannot select DB error is telling you.

    I can help you off list of you would like to contact me (check my profile for a website where you will find contact information.) I will need access to the config.php and your Dreamhost control panel to see the database details.

Viewing 25 results - 28,276 through 28,300 (of 32,500 total)
Skip to toolbar