Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 26,726 through 26,750 (of 32,481 total)
  • Author
    Search Results
  • #55248
    chrishajer
    Participant

    The code above handles both cases, you’re logged in or you’re logged out. There is no in between. If one is true, the other is false.

    <?php
    if ( bb_is_user_logged_in() ) {
    echo "No ads for you!n";
    }
    else {
    echo "Here is an ad, buy now!n";
    }
    ?>

     

    You could also just check to see if they’re not logged in like this:

    <?php
    if ( !bb_is_user_logged_in() ) {
    echo "Here is an ad, buy now!n";
    }
    ?>

     

    The exclamation in front of the function says “if this is NOT true, then the if statement is true; continue.)

    #60774

    In reply to: PHPBB3 Converstion

    _ck_
    Participant

    bbxf if the work in progress – it’s in it’s infancy however and you’ll have to look at previous work by others on the phpbb2 convertor. There is no 1 minute way, it’s going to take some time and effort.

    http://bbxf.org/

    http://code.google.com/p/web-forums-standard/

    You are much better off following this tag:

    https://bbpress.org/forums/tags/phpbb

    #4147
    citizenkeith
    Participant

    I have a user that has requested I delete his account and all his posts. I have agreed to do this, but have no idea how to do it. Help is appreciated. :-)

    Radium
    Member

    Well, the issue has not been resolved and it is a problem with Alpha 2. For now I myself am going to stick with Alpha 2 until an update (or plugin for wordpress as the keymaster mentioned in the linked topic above) is released. This problem would probably require some code modification, but I don’t have time to carouse the php at the moment. At least they forewarned us by calling it alpha :)

    #68350
    chrishajer
    Participant

    Does that mean you resolved it or you still need help? That logged in cookie key can be found in your wp-config.php, line 15:

    define('LOGGED_IN_KEY',

    #68159

    In reply to: Second Page Gone!

    chrishajer
    Participant

    Interestingly, I just checked the forum again, and it was inaccessible. So I tried the main website, and it came up. Then I tried the forum again, and it came up (so, it appears that the forum was down about 10 minutes this time.)

    But I got this error on the forum page for:

    http://harrismarine.co.nz/bbpress/topic.php?id=63

    Fatal error: Call to undefined function: avatarupload_display() in /mnt/local/home/harrismarine/harrismarine.co.nz/bbpress/bb-templates/kakumei/post.php on line 7

    There were supposed to be 6 posts to that thread I think, but only the first one comes up, with this error, then there are no more replies.

    Then, I refreshed the same page, and I got this error:

    Fatal error: Call to undefined function: show_view_count() in /mnt/local/home/harrismarine/harrismarine.co.nz/bbpress/bb-templates/kakumei/topic.php on line 9

    That error kept coming up over and over when I refreshed the page.

    It seems to me that right now you’re disabling plugins, but the call to the plugin function is still in the template, which is causing these errors. That points to a totally different problem, not the one that was causing the 503 before. This is something new and only because I think you disabled some plugins.

    #64336
    myu
    Member

    how silly I was…. trying to encode the whole header array….

    here’s the working code, just in case somebody else is too tired to work it out …

    (from around line542 down)

    if ($from)
    //$headers[] = 'From: "' . bb_get_option('name') . '" <' . $from . '>'; //orig
    //
    edit
    $headers[] = 'From: "' . mb_encode_mimeheader(bb_get_option('name'), 'utf-8') . '" <' . $from . '>';
    //
    end edit
    }
    $headers = trim(join(defined('BB_MAIL_EOL') ? BB_MAIL_EOL : "n", $headers));
    //
    edit --added
    $subject = mb_encode_mimeheader($subject, 'utf-8', 'B', defined('BB_MAIL_EOL') ? BB_MAIL_EOL : "n");

    //
    end edit
    return @mail($to, $subject, $message, $headers);

    #68305
    nekita
    Member

    I think that’s just a glitch in the code because the permalinks remain in the “None” type (when saved as such) even so the dropdown in the general section of the admin menu will switch back to “Name based”.

    For now, just make sure to reselect “None” when saving any other changes to General Settings I guess.

    #68304
    Bharat Karavadra
    Participant

    Thanks for your help anyway Epiphone, it’s much appreciated.

    Let’s see what the bbPress team come back with.

    Thank you again :)

    Bharat Karavadra
    Participant

    Yes…

    I’ve mapped the roles.

    I’ve set the wordpress and blog addresses which are the same.

    I’ve put in “auth” cookie salt.

    I have NOT put in “secure auth” as my WordPress admin options page did not have one

    I have put in “logged in” cookie salt.

    I’ve copied the foolowing to my wp-config.pgp file

    define(‘COOKIE_DOMAIN’, ”);

    define(‘COOKIEPATH’, ”);

    and added the “Manual bbPress config file settings” to the bb-config.php file, however in this section it says “Afterwards, the settings in this form will reflect the hard coded values, but you will not be able to edit them here.”

    What is hard coded where? I didn’t see any difference to this page after adding these speedup settings to the bb-config.php file.

    #68301
    epiphone
    Member

    I think on the admin panel (bbPress) there’s a link in the description of the permalinks settings part, that when you click it will display the .htaccess code thats meant to be in your .htaccess.

    Now I don’t quite know why your having problems but I have also come across problems with something called multi views.

    Sometimes permalinks won’t work because of multiviews not being ables. Try adding this to the very top of your .htaccess:

    Options +MultiViews

    #4134
    epiphone
    Member

    Well I’ve finally done it, Intergrated my WP blog theme with bbPress. It’s not as hard as you think once you look around. Anyway check out my intergration here:

    http://www.james-blogs.com (blog)

    http://www.james-blogs.com/forum (forum)

    (There are still 1 or two minor CSS errors but the intergration of WordPress functions has been done successfully.

    It’s taken me a few days to figure it all out, but I’ve finally done it. Although it does sound like im bragging alot. I also want to share a website that could also help you do theme intergration:

    http://bbpressraw.com/bbpress_blank_themes/

    This site provides blank themes that are literally the bare minimum of CSS, but even better they provide blank themes in type so for example my blog layout is a 2 Column design. I would also find this layout on bbpressraw.com and then begin editing it.

    Being able to get a pre-coded layout with the bare minimum needed within it, certainly helped me alot. And I was able to understand and modify to intergrate my blog theme into it.

    I hope this website can help you to in intergrating your bbPress installation

    #68153

    In reply to: Second Page Gone!

    chrishajer
    Participant

    Error log access is highly dependent on your hosting setup. If this is a shared server, you might have a control panel and in there might be access to logs. What is your hosting setup?

    If you don’t have or can’t find logs, then you can setup error logging for bbPress, then just log to a file for a while and try accessing this page 2 and see what gets logged. Then, find and fix the problem. I can post the code for custom error logging, or you can google for it.

    #68150

    In reply to: Second Page Gone!

    brad_langdon
    Member

    Thanks for the help.

    Plugins I am using are…

    Allow Images 0.7.1

    Terms of Service 0.0.3

    Human Test for bbPress 0.7.1

    Post Count Plus – Dynamic.Titles & More! 1.1.5

    bbPress Smilies 0.0.1

    Quote 0.2

    BBcode Lite 1.0.1

    bbPress Attachments 0.1.11

    Avatar Upload 0.8.3

    My Views 0.1.2

    BBcode Buttons Toolbar 0.0.4

    BBPress Private Messaging 0.80

    bbRatings 0.8.5

    Mini Track 0.1.5

    My Views module – Started/Participated Topics 0.1.2

    Tweaks (mini-plugins)

    bb Topic Views 1.6.2

    Simple Onlinelist 1.5

    My Posts module – Most/Least Posts 0.1.1

    Unread Posts 0.9.0

    I cant really switch the theme as my clients customers are using the site as we speak…changing the site now wouldn’t be a great look.

    How do I access the error logs?

    #68285

    In reply to: HELP!

    Shagalaga
    Member

    THANKS MAN!!! I LOVE YOU !!! :D

    #68283

    In reply to: HELP!

    Shagalaga
    Member

    Come on guys! PLEASE help me :-(

    #67928
    nekita
    Member

    Hi chris and thank you for your suggestion.

    I looked into the function you mentioned in template_functions.php which would be around here:

    function bb_profile_data( $id = 0 ) {
    if ( !$user = bb_get_user( bb_get_user_id( $id ) ) )
    return;

    $reg_time = bb_gmtstrtotime( $user->user_registered );
    $profile_info_keys = get_profile_info_keys();
    echo "<dl id='userinfo'>n";
    echo "t<dt>" . __('Member Since') . "</dt>n";
    echo "t<dd>" . bb_datetime_format_i18n($reg_time, 'date') . ' (' . bb_since($reg_time) . ")</dd>n";

    The problem is that this functions gets the data from the currently logged in user, or so I would assume, given that it’s the data for that specific profile.

    But in order to display the registration date for each user in a topic I’d need to call the data for each user individually.

    #55732
    cayoba
    Member

    ok I changed the require once to this code

    $bb->WP_BB = true;

    if (file_exists(‘../wp-blog-header.php’))

    require_once(‘../wp-blog-header.php’);

    else

    if (file_exists(‘../../wp-blog-header.php’))

    require_once(‘../../wp-blog-header.php’);

    it got rid of the errors, however, now when i click on the admin link, after logging in, it just refreshes the page and does not bring me to the admin so now im exactly where victor is with his problem

    #67926
    nekita
    Member

    Hmm, still didn’t figure out the syntax for this. :(

    #4130
    chrishajer
    Participant

    WordPress 2.6.2 svn checkout r8849

    bbPress trunk svn checkout r1794

    I installed WordPress first and that went fine. I logged in and changed my password. Then I went to install bbPress. bbPress installation appeared to go fine. I used simple keys with WordPress so that bbPress wouldn’t choke on them.

    I got to the final step and got a message “There were some errors encountered during installation!” and then I checked off “Show messages” to reveal the following:

    “Forum could not be created!” (that may have been visible before revealing the messages as well – I can’t recall.)

    After that, I tried to access the forum anyway, but I get an error in Firefox3:

    Redirect Loop

    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    The browser has stopped trying to retrieve the requested item. The site is redirecting the request in a way that will never complete.
    * Have you disabled or blocked cookies required by this site?
    * NOTE: If accepting the site's cookies does not resolve the problem, it is likely a server configuration issue and not your computer.

     

    There is no .htaccess in the WordPress directory or in the bbPress directory. bbPress was installed in a subdirectory of WordPress.

    /var/www/htdocs/ch/wordpress

    /var/www/htdocs/ch/wordpress/forums

    Any ideas?

    #68106
    chrishajer
    Participant

    Right, it is more complex than that. Since the function returns an array it’s up to you do figure out how to display it. Also, looking at the widget code is a pretty good start of how to go about getting the data out of that array. And the readme file is also good.

    #68105
    patung
    Member

    Fair enough I don’t know php from my elbow, it’s just with other plugins, including some you can use as a widget, if you don’t use the widget they tell you what code to stick in the sidebar and it’s usually just like <?php call_to_some_function(); ?> but if this is more complex than that then ok.

    Btw ignore what I said about cpu usage, I can’t re-create it so must have been something else.

    chrishajer
    Participant

    Looks like the key I posted in the beginning there is not properly escaped within code blocks either. You can see the original key here, and how I posted it. If you check the source of that post, you can see how bbPress parsed it.

    More info here, in the original format:

    http://www.chrishajer.com/bbpress/wp-key.txt

    chrishajer
    Participant

    d\EtHv;aK&V9;)L@rZ7-{P~u}~C~”N4O]=Cnw1pl=c2 !6-~b6!VHt9n;>&Tj-

    That was my AUTH_KEY for WordPress 2.6.2 which was working fine. When I tried to integrate bbPress, it apparently read that key, but on step three of the installer, I saw this error:

    http://www.chrishajer.com/bbpress/installer-step-3.png

    As you can see, part of that key is displayed there (&Tj-) and I suspect it shouldn’t be, and was not being used properly in this case.

    I wonder if this is why so many people are having log in/log out issues with WordPress integration. I am going to try a plain vanilla key (alphanumeric only) and see how that works.

Viewing 25 results - 26,726 through 26,750 (of 32,481 total)
Skip to toolbar