Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 29,851 through 29,875 (of 32,432 total)
  • Author
    Search Results
  • #58521

    In reply to: Sticky posts

    There are two kinds of stickies. Those that stick in the individual forum pages and those that stick in the front page.

    Click “Stick Topic” to stick it in the forum page.

    Click “Stick Topic To Front” to stick it to the front page (click the “to front” part).

    Not super intuitive :)

    Stickies are given css classes: sticky and super-sticky (if it’s stuck to the front page). You can use those classes to style them however you like.

    #58442

    In reply to: header

    driz
    Member

    okay after loads of work i fink i have managed to get them intergrated by adding two plugins and adding the code to the config.php file.

    problem is i cant logout? this is a cookie issue i guess, a fix?

    #58494

    Is there a file in bbPress’ main directory called .htaccess? Depending on how you’re accessing your server and because that file starts with a period, you may have to ensure that you are viewing hidden files when looking for that file.

    If you find that file, paste its contents to a pastebin.

    If you don’t, create a file with that name and put into it the text generated when you visit http://www.bqtrademark.com/bbpress/bb-admin/rewrite-rules.php

    #58429
    kehlers
    Member

    Well, your guess was correct! Your tip got me to thinking about cookies – I’m a little rusty on my setcookie() syntax! Anyhow, I decided to install WordPress, even though I don’t need it just now, because if I could get that to integrate across directories, then I could surely do what I’m hoping for with the gallery.php page.

    That helped me to understand the interactions of the cookies and directories and domains. All that to say, I was able to get it to work using the following in config.php:

    $bb_cookiepath = "/";
    $bb_cookiedomain = ".mydomain.com" ;

    I believe that if cookie domain is not specified, then it will default to be the root of the directory in which the script is running, i.e. mydomain.com/forums/, making it unavailable to any other directory, including parent directories. You probably already knew that, but just putting it out there in case someone else has the same issue. ;)

    #58050

    In reply to: bbSync

    fel64
    Member

    Sneaky, I have an idea of what it is. Find this line near the beginning:

    $bbprefix = get_option( 'wpbb_bbprefix' );

    And replace with

    $bbprefix = 'bb_';

    or your actual bb table prefix.

    #52179
    Burkie
    Participant

    <a href="<?php user_profile_link(get_post_author_id()) ?>"><?php post_author(); ?></a>

    the above gets the use profile for any page.

    #58465

    In reply to: bbPress 0.8.2

    Null
    Member

    – Fantasy mode on –

    How about an “upgrade me” button in the admin area?

    This button is only clickable when there is an upgrade. Clicking it will upgrade you bbpress (downloading and installing the nessecairy files) :)

    – Fantasy mode off –

    #56414

    In reply to: Freshness Linked

    fel64
    Member

    Sorry, forgot about this 😮 Looked at it, can’t figure out where it might go wrong, so here’s some slightly alternative code that will use a different function to do it’s thing and we’ll see if that works. Replace function fel_addlatestlink() with

    function fel_addlatestlink($title)
    {
    global $topic;
    //$felgtlpl = get_topic_last_post_link($topic->topic_id);
    $felgtlpl = get_post_link( $topic->topic_last_post_id );
    $title = $title . ' <a href="' . $felgtlpl . '">&nbsp;&raquo;&nbsp;</a>';

    return $title;
    }

    #58463

    In reply to: bbPress 0.8.2

    karaboga, permalinks should be permanent. Perhaps we can work on redirecting old permalinks to the new ones. Better yet, that’d be a great plugin :)

    #58513
    karaboga
    Participant

    Thank you very much, but I am not able to write any plugin. :)

    #58512

    You can change some of the views (untagged, no-replies, …) with a plugin filtering on bb_views.

    For the rest, you’ll have to use rewrite rules. You’ll also have write a plugin that filters on get_topic_link, get_forum_link, and so on or bbPress will end up in an infinite redirect loop.

    #58488

    I really do need to know what your .htaccess file looks like in order to help you.

    Also, there may be some issue with your bbPress running on http://www.bqtrademark.com and your WordPress running on bqtrademark.com

    #58406
    Kahil
    Member

    by looking at the code for the “upload avatar” plugin I found this…

    strtolower($user->user_identity);

    This is what I have now, but nothing displays for the filename, just yourkahil.com/forum/avatars/.jpg

    <?php

    /*

    Plugin Name: WP Avatars

    */

    function wp_aud( $felID ) {

    $avatar = strtolower($user->user_identity);

    $bburl = ‘http://yourkahil.com/forum&#8217;;

    echo ‘<img alt=”avatar” src=”‘ . $bburl . ‘/avatars/’ . $avatar . ‘.jpg” class=”avatar” />’;

    }

    ?>

    #56413

    In reply to: Freshness Linked

    citizenkeith
    Participant

    fel64,

    Did you ever get a chance to this out? :)

    #58405
    Kahil
    Member

    Ok, so I’ve figured out some more info to share…

    First, the code posted above needs to reference the file type (.jpg, .jpeg, .gif, or .png). Right now the code only points to the avatars folder.

    Next, I’ve figured out that the “avatar upload” plugin for bbpress does rename the images to the user’s username, but makes it all lowercase letters if there are any caps.

    Hope that helps.

    Thank you!!

    #58486

    What does your bbPress’ .htaccess file look like?

    Have you read the documentation on setting up pretty permalinks?

    #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!

Viewing 25 results - 29,851 through 29,875 (of 32,432 total)
Skip to toolbar