Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 29,951 through 29,975 (of 32,516 total)
  • Author
    Search Results
  • #58484

    And the error message?

    In your bbPress’ config.php, did you set $bb->domain and $bb->path or did you set $bb->uri (the easier method that bbPress 0.8.2 allows)?

    Try setting

    $bb->uri = 'http://www.bqtrademark.com/bbpress/';

    in your config.php and remove from that file any lines referencing $bb->domain or $bb->path

    ganzua
    Member

    Can I keep 0.8.1 functions.php whe upgrading to 0.8.2?

    I had to modify this file to translate dates and for the signature plugin :(

    #58427
    kehlers
    Member

    Hm. I’m pretty sure I’m actually logged in. Let’s say I’m at the gallery.php page, which is in the root of mydomain.com. I type in my valid login id and password. The next thing I see is the front page of my forum (http://mydomain.com/forums/index.php) , which reads “Welcome, kehlers (View your profile)” etc. I can add, post, go to admin section, etc. When I view cookies, I have a bb_user_(hash) and bb_pass_(hash), which seem to have appropriate values. All that to say, I think I’m logged in successfully.

    However, if I go back to gallery.php, I still see the login form, as though nothing has happened. I did try adding $bb->cookiepath = '/'; to my config.php, but it didn’t seem to make a difference. Do I need to restart anything (browser? Apache?) once I’ve added that? I wouldn’t think so, but thought it was worth asking.

    Thanks for your help on this!

    #58047

    In reply to: bbSync

    fel64
    Member

    Yeah, I know, but thanks. ^^ In the meantime you can use this hack I brewed up a while ago to display replies as comments beneath bbPress-Post integrated posts. Don’t think it supports avatars, though. But we’ll get this to work :)

    #56531

    In reply to: Strut Your bbPress!

    foyb
    Member

    hi,

    i installed bbPress upon a community.

    the theme is a modified kakumai theme,

    some plugins used, the forum is avaible in russian and german language using the .po files from bbpress.de and bbpress.ru

    i had to write my own plugIn which helps me to sync the users from the community to the forum.

    apart of the theme and the disabled bozo.php the forum software is untouched.

    here you can see it in action:

    http://www.russian-imperial.de/forum/

    p.s. bbPress rocks. best forum software ever ;)

    #58046

    In reply to: bbSync

    sneakym
    Member

    Hey fel just wanted to give you an update that may or may not help you. BBpress-Post works 1oo% fine for me. All of my wp posts go right into BB and when I click on “leave a comment/discuss in fourm” I go straight to the topic in BB. All I would need is for those comments to come back into wp so that you can view them without going into BB and for the avatars to be supported/viewable in wp which is what bbsync does and it is killing me that I cant get it to work!!!!

    Anyway, I thought this might help because it seems their code/config (use of three php files?) works fine on my end…thought you might able to adapt something in your next version based on this…

    thanks again fel!!!!

    #58426
    fel64
    Member

    Are you sure you’re actually logged in? I would argue that you’re not logged in if it comes up with the login form.

    I think this sounds like a cookies issue. Can you add this to your config.php and see if it works?

    $bb->cookiepath = '/';

    If not, check what the properties are for cookies set (just to make sure that’s not the problem).

    #58045

    In reply to: bbSync

    fel64
    Member

    Sorry to leave you guys in limbo, but I can’t give you the new version because I’m halfway through adding stuff so it probably doesn’t work and I’ve got exams over the next few days so I’m a bit busy 😮 Will be back on this on Thursday. Could be quite rad! :P

    #1963
    kehlers
    Member

    I’ve tried to find the answer to this by reading the forums and my own experimentation, but I’m still having problems. Any information welcome. In summary, the only way I can seem to acess bbPress login info from other pages on my site is to put bbPress at the root of my site, i.e. on the same level as my other scripts.

    I have a PHP/MySQL installation and I would like to integrate bbPress with my own PHP applications. I don’t want the user to have to have two login IDs/passwords – my issue is very similar to User table abstracted in future versions?, only in reverse. That is, I want to use bbPress functions as the primary authentication/registration and have my apps acess the bbPress user info.

    EX: I have a file called http://mydomain.com/gallery.php, in which I have added the following code:

    require("bb-load.php");
    login_form();
    bb_get_current_user_info('id');
    if (bb_current_user_can('administrate')) {
    //do some things admins can do
    }

    IF I put the bbPress install at the root of mydomain.com, this all works beautifully, but I want to put the bbPress install in http://mydomain.com/forums/. If I do that, altering the code to point to “forums/bb-load.php”, I get the login form, but it doesn’t work: I can type userid and password, and click login, but no login occurs. Furthermore, the login form appears even if a valid user is currently logged in – it doesn’t say “Welcome, UserID”.

    Do I need to do a plug-in? If so, what would it do, in general? Thanks in advance!

    #58044

    In reply to: bbSync

    starrett
    Member

    Fel: I just made a small change to the felbbreplies(); function in order to get a reply link on pages where there aren’t yet any replies. I simply added echo '<h3><a href="' . bbreplylink() . '">Reply!</a></h3>'; to the else clause. If the topic has been created in the forums, it works perfectly, if not, the “Reply!” button simply links to the current page. Not ideal, I know, but it at least makes sure that the reply link appears, whether there are previous replies or not.

    I actually just installed the Upload Avatars plugin, but it doesn’t seem to be working correctly with bbsync – the<?php bbreplyavatar(); ?> portion of felbbreplies(); is returning the following on the WP pages: <img alt="admin avatar" src="http://path_to/wp/forums/avatars/" class="avatar" /> So it appears to know which directory contains the avatar, but doesn’t include the avatar’s file name.

    *Update* – I have just noticed that new forum replies don’t appear back in WP unless the original post is re-saved.

    #58042

    In reply to: bbSync

    fel64
    Member

    Starrett, there’s a few template tags. Originally I was thinking I could make it so people can customise the comment structure in a seperate template file but dismissed it as thinking that no-one would care (I don’t). It’ll be quite easy to put it back in. They are all used internally, so they do work. Do you use the Avatar Upload plugin, actually? Can’t remember if I made a check for that.

    It’s probably a good idea to let it stop at the more tag. With a link to the original entry? Can do, would make that a generic option (hmm, got quite a lot of options now).

    The option “how much of your post” is the character count. A little less than ideal, I suppose. :P You can set this on a per-post basis by enabling per-post options, too.

    Sneaky, the most important thing is error logs. I’ll see if I can help with that. :)

    #58040

    In reply to: bbSync

    starrett
    Member

    fel: Disabling the “Do you want me to load bbPress whenever to …” checkbox worked! I’m now getting the replies from the forum topics on indie pages. Just a few quick questions:

    How do you keep it from posting the entire original entry in the forums? (I know the “How much of your blog post do you want shown on the forums? Set it to 0 to get the full post.” option is there, but I don’t quite understand how to use it – for example, make it stop at the <!--more--> tag.)

    What are the rest of the tags (other than <?php felbbreplies(); ?> ) that we can use? I can go ahead and test them out, to make sure that the rest of them are working as well.

    Sneaky: Don’t worry! :)

    #58441

    In reply to: header

    Trent Adams
    Member

    In fact:

    https://bbpress.org/forums/topic/1281?replies=7

    https://bbpress.org/forums/topic/1275?replies=17

    https://bbpress.org/forums/search.php?q=wp+header+bbpress

    Some have had successful integrations and some problems depending on what you need. I am still sifting through which ones work and don’t :)

    Trent

    #58438
    fel64
    Member

    It probably means your database information is wrong. Open config.php and check it.

    #58039

    In reply to: bbSync

    fel64
    Member

    Starrett: Fantastic! I think I’ve got the problem, for now go to the options and disable the “Do you want me to load bbPress whenever to …” checkbox. Temporary fix.

    Sneaky, we’re gonna make it work! :P

    #58403
    fel64
    Member

    Forget about the PHP.

    Where it just says “avatar” instead of displaying the image, open the page source (in FF: Ctrl + U, in IE: probably something), then search for “avatar” until you hit the right place. There should be an image tag. Look at the src property. Does that URL point to a valid image file? If not, what does it read?

    #58434
    ynotweb
    Member

    you’re putting that code as the first line of config.php and nowhere else?

    it might be the way your wp header is set up in comparison to the bbpress templates. mine was completely simple:

    1. add the ONE php require line to config.php

    2. drop Aditya’s files into a subdirectory of my-templates with a style.css with a name section

    3. add bbpress styles to my wordpress theme stylesheet

    4. change template in the presentation dashboard

    Now I wanted my wordpress sidebar so I also added a div tag and sidebar include to those template files but otherwise haven’t had to change anything else.

    #58433
    sneakym
    Member

    Thanks for the reply but I have followed those instructions to a T numerous times and nothing works, including downloading that template. This code

    <?php require_once(‘/absolute/path/to/WordPress Parent Directory/wp-blog-header.php’) ?>

    Breaks the forums completely. I only get a white page when going to the URL….

    #58037

    In reply to: bbSync

    starrett
    Member

    fel: Success! I added $bb_roles to config.php, and it’s now creating new forum topics upon save of the post. However, it is still giving me the “Fatal error: Call to undefined function: get_topic() in /path_to/wp/wp-content/plugins/bbsync/bbsync.php on line 412” when I call <?php felbbreplies(); ?> on my indie pages, if the corresponding forum topic has replies – it doesn’t do anything otherwise. Any suggestions?

    #56559

    In reply to: onvertigo.com

    Trent Adams
    Member

    I made another change to my forums to match up with my blog at http://trentadams.com using one of the 9 possible combinations from the Crave4More suite of WP templates from Sadish.

    Check it out and let me know what you think! I might even release it at some point ;)

    http://onvertigo.com

    http://trentadams.com

    Trent

    #58402
    Kahil
    Member

    I don’t know the php code. I followed what was stated above. The URI points to the right folder. When you upload an avatar using the bbpress upload avatar plugin, it renames the image you upload to your username.

    #57985

    In reply to: Plugin: Forum Icons

    M
    Member

    I’m not proficient at php but finally figured out I needed to add these bits to front-page.php in my template to create a new column and make the icons show up. Might want to add a tiny bit of instruction for us neophytes.

    <th><?php _e('Forum Icons'); ?></th>

    <td class="num"><?php forum_icon(); ?></td>

    Great plugin, didn’t even realize how useful visual pointers would be to my increasing number of new visitors – the little pics help direct those who don’t seem to be able to read and just post on whichever forum their mouse lands on first.

    Also, any idea how to make it work with the Forum Restriction plugin so I’ve got an image instead of an ugly text link?

    #58036

    In reply to: bbSync

    fel64
    Member

    Sneaky: cool, thanks. I suspect you have a similar problem to Starrett but it’s going to be very difficult to find without seeing the errors. I’ll see if I can write you something that can read the error logs for you. :)

    Starrett: That’s progress! I like it!

    Try adding $bb_roles to the list, so that it becomes

    global $bbdb, $bb_cache, $bb_roles;

    This could be interesting. Either this will fix everything, or we’ll go through global by global variable and it should work eventually. Cool!

    (All I’m doing is looking at the code you’ve got, finding the right line and looking at the variables called in it. The one we’ve got a problem with is usually the one which is called just before, like in this case line 275 uses $bb_roles and a few lines up it says global $bb_roles;. If you feel confident, you can look for the variable that’s causing a problem yourself. Or we can keep doing this. :) )

    #58035

    In reply to: bbSync

    starrett
    Member

    Fel,

    Thanks for the quick reply. I replaced the version I had with the version you just linked, and added the global $bbdb, $bb_cache; and I am now getting this message when I attempt to save a post:

    “Warning: array_filter() [function.array-filter]: The second argument, ‘Array’, should be a valid callback in /path_to/wp/forums/bb-includes/capabilities.php on line 275

    Warning: Invalid argument supplied for foreach() in /path_to/wp/forums/bb-includes/capabilities.php on line 279

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /path_to/wp/forums/my-plugins/forum-moderators.php on line 52

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /path_to/wp/forums/my-plugins/forum-moderators.php on line 52

    Warning: Cannot modify header information – headers already sent by (output started at /path_to/wp/forums/bb-includes/capabilities.php:275) in /path_to/wp/wp-includes/pluggable.php on line 329″

    #58400
    Kahil
    Member

    well, this plugin names the images by username I think. It also has a default image if no avatar has been uploaded… shouldn’t there be some sort of code there to reference a person’s username?

Viewing 25 results - 29,951 through 29,975 (of 32,516 total)
Skip to toolbar