Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 22,826 through 22,850 (of 32,481 total)
  • Author
    Search Results
  • #81539
    Kolya33
    Member

    Holy cow, good catch! It’s working now. Thank you again.

    :)

    #81538
    Elias
    Member

    Oh, that’s weird, time for a deeper examination…

    I get the output from bb-config.php as a local file with wget and cat it to my console on my UTF-8 linux system. It looks like an empty file, but it has a size of three bytes. And than I remembered about Unicode and typed od -x bb-config.php, which results in

    bbef 00bf

    And then I began to understand.

    The first three bytes ef bb bf (for normal reasons least byte first on intel platforms in inverse order to make it not too easy to understand) are the byte order mark for a UTF-8 encoded textfile. But for PHP, they are simply characters.

    Some informations about the BOM in german language

    http://de.wikipedia.org/wiki/Byte_Order_Mark

    Your text editor saves the file as UTF-8 and writes a byte order mark at the beginning of the file, and these three bytes do cause the strange error. Look in the documentation of your editor to find the setting for the file storage format, and if in doubt, simply save the bb-config.php as a plain ASCII file instead of Unicode or UTF-8.

    Ich hoffe, jetzt hilft es wirklich ein bisschen weiter. So ein Problem ist richtig arg, da kommt man nie drauf, wenn man kein Glück hat…

    (Okay, it is an english forum here: I hope this times it helps a little more. This type of problem is a hard one, something you never think about and find it only by chance…)

    #81535
    Elias
    Member

    There is a problem in your bb-config.php, most probably in the first line.

    Normally, HTTP-requesting bb-config.php should not create any output. But try

    http://uni-bonn-medienwissenschaft.de/forum/bb-config.php

    and see the strange “”. I cannot get, what the problem exactly is, but it is the bbPress configuration file for sure. After login, bbPress tries to set a cookie. This is done by sending an HTTP header. But if there is any output before the PHP header () invocation, PHP sends a generic header, which lets the cookie fail. Result: you can not login.

    Ich hoffe, es hilft ein bisschen — und sorry für mein mieses Englisch ;-)

    Oh, ich vergaß — Oh, I forgot

    If you want a german language file for bbPress 1.0.2 (with the formal “Sie”), take my translation — Wenn du eine deutsche Sprachdatei für bbPress 1.0.2 haben möchtest, nimm meine Übersetzung.

    http://bbpress.tamagothi.de/

    #32353
    #32210
    paamayim
    Member

    Hi,

    I’d like to show only latest discussions in the last x days, for example, how cuold I do? I tried inspecting the code with no clue about a query to do that :(

    #81499
    mattrogowski
    Member

    This is a bug, it’s because you’re using PHP 5.3.0 and the code on the lines it references has been deprecated in PHP 5.3.0 to be removed in PHP 6.0. What I’d do (and did do) is downgrade to PHP 5.2.11 until the code is fixed to be 5.3.0 compatible; I got the same errors when I had it on PHP 5.3.0, downgrading sorts it as it’s OK code for PHP 5.2.11. It’s very simple to downgrade on WAMP, I’m not sure how you’d go about it on XAMPP though. Turning off the errors will still work, yeah, because the code will still physically work with PHP 5.3.0, but it’s just letting you know it’s due to be removed.

    That’s for the four errors about deprecation, for the Cannot modify header information error, may be related to the PHP 5.3.0 errors too as the error in bb-settings.php is on the same line as the deprecated warning.

    #32351
    asafche
    Member

    hello,

    i wanted to continue with translating the .po file of the hebrew language that for some reason was just half translated, and i loaded it to POedit.

    after i tried to save the file the program announced a FATAL ERROR! –

    he_IL.po:587: 'msgstr' is not a valid PHP format string, unlike 'msgid'. Reason: The character that terminates the directive number 1 is not a valid conversion specifier.

    i think it is in the.po file and not in the POedit.

    can anyone help me understand what is’nt working?

    thanks.

    #80388

    I am having the same exact problem. However, I am doing what was said above, and integrating deeply and including the header. I have no experience with code, so I was wondering if someone could tell me what to do? I am using the same plugin, and no luck.

    #80983
    bbhack
    Member

    Just add these to the template file front-page.php

    <p><a class="rss-link" href="rss">All Recent Posts</a></p>
    <p><a class="rss-link" href="rss/topics">All Recent Topics</a></p>

    #81507
    chrishajer
    Participant

    Sounds like the plugin does not have a valid header.

    Can you post the plugin here, in a code block, or send a link to where it can be downloaded? What plugin are we talking about?

    #32345
    toddmccalla
    Member

    I upload the zipped plugin and it installs ok but when I click Activiate I get the message “The plugin does not have a valid header.”

    What is wrong?

    Thanks for you help :)

    #32344

    Hi, I’m trying to figure out how to display bbPress’ tag cloud from the sidebar in WordPress. I’ve googled a lot, but can’t seem to find anyone who’s done this.

    I’ve hacked a temporary solution that displays the topic tags from bbpress as a list in the wordpress sidebar, but I’d really love to have the size formatting as well.

    <?php

    global $wpdb;

    $taglist = $wpdb->get_results(“select name from bb_terms”,”ARRAY_N”);

    $number_of_tags_to_show = 10;

    for ($count = 0; $count < $number_of_tags_to_show; $count++)

    {

    if($taglist[$count][0])

    {

    $tag = str_replace( ” “, ” “, $taglist[$count][0]);

    echo ‘

  • <a href=”http://www.mysite.org/forum/tags.php?tag=&#8217;;

    echo $tag;

    echo ‘”>’.$tag.’

  • ‘;

    }

    }

    ?>

    Any suggestions for how to access bb_tag_heat_map from inside WordPress?

#81464

In reply to: Backticks Not Working

arpowers
Member

NM — he has since updated the plugin to fix the issue.

Using the latest update fixed it.

Mark as resolved :D

#81459

In reply to: Backticks Not Working

chrishajer
Participant

There is no config option. What did you try and what happened when you did it? How was that different from what you expected? Is it possible the code is just not styled any differently in your theme?

You did read this right?

https://bbpress.org/forums/topic/html-tags-for-explanation-purposes#post-60673

#81366
DKB
Participant

I dont know which code i have to add and where in mini-track.php

#81418
chrishajer
Participant

Try removing the float:left; from the div that wraps around all those image links. That messes up some other stuff on the page, but it makes the links clickable. You might need to do something else to format that area.

#81458
chrishajer
Participant

1. Just move the blocks of code in your template’s front-page.php to put the forums up top and the latest discussions on bottom.

2. There is a space for first name and last name in the profile, it’s just not required and not part of the sign-up. Why not direct them after signing up or logging in to change their password, and to complete their profile. Just provide them with a link to their profile page.

If you’re looking to make that information required, or part of the sign-up process, I’m not sure how to do that.

#81448

In reply to: lost password

kenney
Member

If you’re using 1.0.2, here is a password to log in with, and the hash you should insert into the bb_user.user_pass field (bb_user table, user_pass field) for your user:

insert this hash: $P$BlNSCHus7UmWzMPMh1c/MH71Mjj7kj/

log in with this password: n4gN#cO39wpL

Now change your password after you’re logged in.

You are so far over my head it’s terrible…Where do I find the line “bb_user.user_pass field (bb_user table, user_pass field)” & what and where in that line do I insert… do I login with this password “n4gN#cO39wpL” on the main login or Admin login or both…& what is the user name…I really appreciate your help but I am very illiterate with code of any sort…The version is not visable at the top or anywhere for that matter that I can see…I just started this forum about 3 weeks ago so it should be the new one…the URL is http://mysoberlifetoday.com maybe you can tell what version it is…thank you Chris

#81447

In reply to: lost password

chrishajer
Participant

You can just edit the record directly to insert the hashed password, or you can use this SQL to update it:

UPDATE bb_users SET user_pass = “$P$BlNSCHus7UmWzMPMh1c/MH71Mjj7kj/” WHERE ID=YOURNUMERICUSERID

If your ID is 1, this would be the SQL:

UPDATE bb_users SET user_pass = “$P$BlNSCHus7UmWzMPMh1c/MH71Mjj7kj/” WHERE ID=1

That also assumes your table prefix is bb_. Change it if you used something different.

#81446

In reply to: lost password

chrishajer
Participant

If you’re using 1.0.2, here is a password to log in with, and the hash you should insert into the bb_user.user_pass field (bb_user table, user_pass field) for your user:

insert this hash: $P$BlNSCHus7UmWzMPMh1c/MH71Mjj7kj/

log in with this password: n4gN#cO39wpL

Now change your password after you’re logged in.

#81445

In reply to: lost password

chrishajer
Participant

The version will be in the admin section, on the bottom of every page.

http://chrishajer.com/bbpress/bbpress-version.png

Of course, without being able to log in, you aren’t going to be able to see that. If you haven’t removed it, the version is also showed in the head section of each forum page. It might look like this:

<meta name="generator" content="bbPress 1.0.2" />

I want to give you a password that will work with your version, so I need to know what version you are using.

#80385
chrishajer
Participant

So, on this live site, why not just use wp_list_pages('exclude=WHATVER_ID') – unless you’re not planning on using this wp_list_pages functionality on the live site in the future.

I know that doesn’t resolve the issue of plugins apparently not working in your integration, but I am more concerned with the results at this point than figuring out where the problem lies with integration in general.

Can you just exclude pages in the wp_list_pages on your forum?

#80459
chandersbs
Member

This is the whole code I used btw:

<?php if ( bb_is_user_logged_in() ) : ?>
<?php else: ?>
<a href="http://domain/register.php" >Register free</a>
<?php endif; // bb_is_user_not_logged_in() ?>

#80458
chandersbs
Member

@nickaster thanks

I implemented it today, it works like a charm :)

#80384
arpowers
Member

not on this ‘live’ site… (my initial BBPress theme).. I actually duplicated the header code (using wp_list_pages etc…)

On my local server I use get_header() and I’m still having the issue.

Viewing 25 results - 22,826 through 22,850 (of 32,481 total)
Skip to toolbar