Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 29,001 through 29,025 (of 32,458 total)
  • Author
    Search Results
  • #2401
    mikecicc
    Member

    OK so i successfully completed a BBpress / WPress integration…logins are all synced and i can successfulled login to bb or wp…thats all straightened out and everything appears to be working great..

    one bug im noticing now is in WP, in my Visual Editor [write post], all the icons that were once there (Bold, Italic, Font, Font Size, Add Link, Add pic…etc.) that hole graphical bar dissappears…

    i’ve narrowed it down to some kind of caching problem…because i deactivated the integration pluggin in wordpress.. removed the line of code in my wp-config.php…cleared my cache and the visual editor re-appears

    now when i went back in to re-activate the bbpress integration plugin and got the bbpress back up, and go to check out my visual editor in WP, its there ! great!!! but just to be sure it wont go away, i clear my cache, refresh the page, and its gone again….any ideas?!!!?!

    THANKS FOR ANY HELP MY NINJAS

    #60682
    chrishajer
    Participant

    Can you add this line to your config.php right after the 4 MySQL setting lines:

    $bb->debug = 1;

    That should provide some useful information. Not sure if it will help here though.

    Nola1974
    Participant

    I knew it was something simple.. some sleep helped me figure out I was missing a ‘global $forum’

    I got it working with the following:

    In my theme’s functions:

    <?php

    function show_bblogin() {
    global $forum;
    if ( $forum ) {
    login_form();
    if ( is_bb_profile() ) profile_menu();
    } else {
    echo '<a href="/forum/">Visit the Forum!</a></br>';
    }

    }
    ?>

    and in my sidebar:

    <?php show_bblogin(); ?>

    Works like a champ.

    #60572
    fel64
    Member

    Yeah, cheers Chris for finding that one. :)

    Nola1974
    Participant

    I’m using the ThemePress theme, that uses the header/footer from the integrated wordpress install as well co-mingles the various template functions. What I’m trying to do is put code in the wordpress sidebar (not widget) that will show the bbpress profile link/login ONLY when the user is in the forum, otherwise it will show a link to go to the forum.

    In the sidebar, I’ve tried

    <?php if ( $forums ) :
    login_form();
    if ( is_bb_profile() ) profile_menu();
    endif; ?>

    Thinking that, since I can supposedly use each other’s functions, the if if ($forums) would work. I was wrong. :)

    I also tried trying to set $is_forum = 1; in front-page.php and in the sidebar:

    <?php
    function show_bbmenu() {
    if ( $is_forum ) :
    login_form();
    if ( is_bb_profile() ) profile_menu();

    endif; ?>
    }

    show_bbmenu();
    ?>

    Among other things and apparently I’m overlooking something stupid and easy but I’m afraid insomnia is not being kind to me this morning. :)

    (Did I mention I got stuck in an elevator at my office for an hour last night? grrrr)

    This is at adultaggregator.com/forum (warning, not safe for work.)

    #60570
    chrishajer
    Participant

    Line 55 has a typo:

    enforeach; ?>

    should be

    endforeach; ?>

    That takes care of the syntax error on line 60. I have no idea if the plugin works after that correction though.

    #60627
    talgalili
    Member

    Thanks SamBauers – I now see it :)

    Hopefully one of the other developer will through in a word as to their predictions for the system – I am very curious to know.

    #60651

    In reply to: Cookies

    jdawson
    Member

    Thank you Trent,

    This worked perfectly!

    Took me a while though to figure out why setting the cookie with the same password hashed as the one in the database wasn’t working, reason being, bbpress stores your password into the database as md5(yourpassword), fine — obvious! :)

    BUT … it stores your password in your session cookie as, md5(md5(yourpassword)) — So, there you go :)

    #2393
    dvdiveguy
    Member

    During installation when I go to step 2 I get the following access violation message

    PHP has encountered an Access Violation at 0AF7B927

    bbPress

    Second Step

    Now we’re going to create the database tables and fill them with some default data.

    1. Created table dvdgbb_forums

    2. Created table dvdgbb_posts

    3. Created table dvdgbb_topics

    4. Created table dvdgbb_topicmeta

    5. Created table dvdgbb_users

    6. Created table dvdgbb_usermeta

    7. Created table dvdgbb_tags

    8. Created table dvdgbb_tagged

    At this point the tables have actually been created in the database but I can’t go forward with the installation. So if I start again I get the following.

    First Step

    We found Steve who is already a “Key Master” on these forums. You may make others later.

    First Forum

    Forum Name:*

    Description:

    Double-check that username before continuing.

    From here everything goes fine and I get this

    Finished!

    Now you can log in with the username “Steve” and password “*Your WordPress password*”.

    Username

    Steve

    Password

    *Your WordPress password*

    Login address

    Diver Forums

    Were you expecting more steps? Sorry to disappoint. All done! :)

    Unfortunately, I never got a valid password in the process so I can’t login. So I tried the password reset and the send me the password features but to be able to email from my server I need to put 2 ini_set statements before the mail statement so it knows which smtp account to use (this is for server security). the problem is that I will have to search all the files looking for the mail function.

    Can you help me out here.

    Here is my System Info

    PHP Version 5.0.4

    mySQL Versions:

    Server: 4.1.12

    Client: 4.1.7

    Steve

    I’m adding to this because I have since found and edited the registriation_functions.php file so it would send emails. I used the reset password functions to get a new password via email. The first step had me go to a url with a key at the end. Once I got the password I tired to login and got a Key Not Found error. So I took the key part of the url from the first email and forced it into the user meta table in the database. After that, I could login successfully. However, now when I create a topic and post it and then try to view it or any other things like edit users or forums it always returns an unable to locate page error. Well that’s where I’m at now. Its 2am so I going to bed.

    #60650

    In reply to: Cookies

    Trent Adams
    Member

    Not sure which file actually ‘writes’ the cookie, but as you know you can play around quite a bit by changing things in config.php. For example:

    For default installs this effectively makes the cookie names:
    'bb_user_' . md5('bb_')
    'bb_pass_' . md5('bb_')

    You can override the name of the cookie by setting values for the following somewhere in config.php:
    $bb->usercookie = 'my_great_user_cookie_name'
    $bb->passcookie = 'my_great_pass_cookie_name'

    Other than that, another user might have to tell you what function creates the cookie and then check the code. function.php maybe?

    Trent

    #60647

    In reply to: Forum Structure

    kanni
    Member

    Hej guys

    I removed the parent category, that’s why you dont see anything. using the newest version (0.8.2.1 ). you can try it yourself, just rebuild the structure in the images above and you will see it doesn’t work…

    I noticed that the category in the admin menu jumps back when i refresh the page.

    thats what it should look like:

    http://img406.imageshack.us/img406/4117/richtigrv0.jpg

    and that is what it looks like after refreshing:

    http://www.monstrs.de/wp-content/uploads/2007/09/falsch.jpg

    changing ex to em didn’t change anything :/

    thanks for your help so far, all!

    e: here is a link to a completely new installation. same problem.

    http://monstrs.de/test/

    #60645

    In reply to: Forum Structure

    chrishajer
    Participant

    I found one problem in the CSS. On line 339 of style.css change this:

    padding-left: 2.5ex;

    to this:

    padding-left: 2.5em;

    That will take care of indenting the nested lists. Not sure if that is your problem or not, but it’s something.

    Also, for creating your own theme, you might want the copy the files over to a theme folder under “my-templates”. Then you can switch back to stock if there is a problem, and your theme files will not be overwritten by any upgrades.

    #60578
    chrishajer
    Participant

    1. No security problems most of the time. Every WYSIWYG editor I’ve seen allows the use of certain HTML code, and everything else is stripped away. With any piece of code, there can always be vulnerabilities, WYSIWYG or not. Without a WYSIWYG editor, there can still be cross site scripting and SQL injection errors.

    WYSIWG editor vulnerabilities

    http://www.google.com/search?q=WYSIWYG+editor+vulnerabilities

    2. Yes, it is used in large forums.

    #2381
    mrmacmac
    Member

    Hi there… I’m a vBulletin veteran, but am considering a switch over to bbPress to use in tandom with wordpress. Can anyone out there tell me the advantages of using bbPress compared to vBulletin? Is it just as powerful? Does it tie into WordPress seemlessly?

    I also need to know if some features I require are available in bbPress… Here is my shortlist:

    – Ability to act as forums admin (edit everything)

    – Ability to add moderators to specific forums

    – Custom avatars and signatures for users?

    – Spam and ‘bad word’ filters?

    – Private email/messaging system?

    – Can I create categories/subcategories?

    – Can I create little thumbnails for these categories?

    There’s more but that’s a short list… Any help anyone can give would be greatly appreciated :)

    #60499

    In reply to: Unread Topics

    henrybb
    Member

    That solution seems a bit hackish to me and prone to incompatibility if anything changes in the code, such as a new condition gets added to the query.

    #56760

    In reply to: Plugin: Avatar Upload

    LMD
    Participant

    Thumbnails are now an undocumented feature in version 0.8.3.

    It’s undocumented because I think it ought to be road tested first. To use thumbnails you have to enable the feature in the plugin file itself, it is not configurable in the admin options page.

    1. Open up bb-avatar-upload.php and in the configuration settings class, scroll down to the following section:

    // Use a thumbnail image (hidden feature for now). 1 = yes / 0 = no (default)
    $this->use_thumbnail = 0;
    $this->thumb_width = 25;
    $this->thumb_height = 25;

    Set $this->use_thumbnail to 1 to enable and change the dimensions if desired.

    When enabled, whenever a user uploads an avatar a smaller copy is created with the prefix ‘thumb.‘ So the avatar username.jpg will have a thumbnail called thumb.username.jpg (the file type changes with the avatar file type, so PNG avatars produce PNG thumbnails etc).

    2. You can access the thumbnail image with the following function call:

    echo avatarupload_displaythumb($user->ID);

    An image tag is returned with the class name avatar_thumb.

    <img src="thumb.username.jpg" width="25" height="25" alt="Username" class="avatar_thumb">

    I think that covers everything, let me know if you have any problems.

    #60597
    ozirr
    Member

    Thank you very much to answer the question… And now i will found gallery for wordpress, and integrate it :) Thanks…

    #60483

    In reply to: Installation problem

    chrishajer
    Participant

    Looks like this is wrong in your config.php:

    $bb->uri = 'http://africanloft/forums/';

    should be:

    $bb->uri = 'http://africanloft.com/forums/';

    Looks like you forgot the .com?

    It’s also possible the ('BBDB_HOST', 'localhost') setting is wrong, but I saw the lack of a .com in the source for your page. None of the links on the index page work because they are all pointed to http://africanloft/forums/{whatever}

    #60585
    chrishajer
    Participant

    Can you post the output from phpinfo? That error message comes up when the installation cannot find either the mysql or mysqli extensions. It’s possible PHP was configured without those extensions.

    Create a file (maybe name it info.php or anything.php) and put this into it:

    <?php
    phpinfo();
    ?>

    Go to the location of that file with a web browser (like http://www.yourserver.com/info.php) and that will echo a whole bunch of data back about the PHP installation.

    http://www.php.net/phpinfo

    That would be the first step, seeing if your PHP was compiled with the proper modules for MySQL.

    #56556

    In reply to: Strut Your bbPress!

    stevepowell
    Member

    My bbPress :)

    Computer Help Forum

    #56758

    In reply to: Plugin: Avatar Upload

    fabianzaf
    Member

    Hey louisedade :) Not that I wanna bother you but its a week since I wrote my reply to your post.

    Are you still interested in helping out?

    #60563
    fel64
    Member

    Oh hey. I think the colon syntax works so that the endif comes after all of it, including the else statements. So just try removing the endif;. If that gets unexpected results, can you copy the entire code for that file to http://pastebin.com/ and link it here for me to look at please? In fact, might be best to do that anyway just to make sure.

    #55747

    In reply to: Anonymous posting

    Replace (in anonymous.php):

    add_action('bb_new_post', 'bb_anonymous_posting_add_post_poster');

    function bb_anonymous_posting_add_post_poster($post_id) {

    global $bbdb;

    $name = bb_get_current_user_info( 'name' );

    $bbdb->query("UPDATE $bbdb->posts SET poster_name = '$name' WHERE post_id = '$post_id'");

    }

    with

    add_action('bb_new_post', 'bb_anonymous_posting_add_post_poster');

    function bb_anonymous_posting_add_post_poster($post_id) {

    global $bbdb;

    $name = bb_get_current_user_info( 'name' );

    $bbdb->query("UPDATE $bbdb->posts SET poster_name = '$name' WHERE post_id = '$post_id'");

    $bbdb->query("UPDATE $bbdb->posts SET post_status = '1' WHERE post_id = '$post_id'");

    }

    Now, new Posts are automaticly marked as spam. You can go to your admin area and undelete them (if its not spam) :D

    sorry for my bad english, im german :)

    #60534
    fel64
    Member

    && and || are just two different things. && means both things have to be true for the entire result to be true, || means just one needs to be true for the entire result to be true.

    On a german keyboard I think it’s the capital letter on button just left of backspace. On a spanish layout it should be the one two left of enter, the one that also gives you ^ and [ (if I’m looking at the diagrams right). :)

    #60498

    In reply to: Unread Topics

    fel64
    Member

    There is one thing you can do – there’s a generic query filter that executes every time bbdb makes a query. You could use a regex to get the thread numbers from that. (If you don’t know regexes that well I could write it.)

    Probably no design decision behind that, just an oversight. Go to trac, log in using your details here and create a new ticket requesting this (marking it as an enhancement not bug). Mdawaffle (^^) is busy with wp or something at the moment but when he sees it he’ll probably either implement or discuss at least.

Viewing 25 results - 29,001 through 29,025 (of 32,458 total)
Skip to toolbar