Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 26,701 through 26,725 (of 32,466 total)
  • Author
    Search Results
  • #68367

    In reply to: Double Posts

    Bharat Karavadra
    Participant

    the WITH replace code does not seem to appear corectly – I think because it had not spaces. here it is again:

    <input type=hidden id=hidden1><input type=”submit” id=”postformsub” onclick=”this.disabled=true; hidden1.name=this.name; hidden1.value=this.value; this.value=’Please Wait…’; this.form.submit();” name=”Submit” value=”<?php echo attribute_escape( __(‘Post Message’) ); ?>” tabindex=”4″>

    #4160
    mojorob
    Member

    I’ve followed the installation instructions, including saving bb-config-sample.php as bb-config.php with the correct values (although it doesn’t say to do this in the bbpress installation instructions). When I go to the intended URL of the bbpress site I get the following error:

    Fatal error: Call to undefined function: wp_kses_no_null() in /homepages/45/d144276697/htdocs/mysite.net/news/forum/bb-includes/pluggable.php on line 240

    I have a wordpress installation in /news/ of the domain, and attempting to put bbpress into /news/forum/

    WordPress: 2.6.2

    bbPress: 0.9.0.2

    Any thoughts?

    #68391

    In reply to: CSS files. . .

    tdrinker
    Member

    Thank you for your help.

    I have set everything right, except I can’t find how to increase the size of three fonts:

    the font used when a person is in the process of typing a post

    and the tiny little font for for “posted # days ago”

    the “send post” font

    I want to make the font large enough for geriatric eyes

    I am comfortable going into all the templates files and fooling around with them. my site, http://www.bookofmatthew.org demonstrates the extent of the rough surgery

    I do wish I could keep a sign giving credit to bbPress, but unfortunately I was unable. perhaps there is a nice graphic saying bbPress I can put somewhere? I cannot write the code to put a sign at the bottom saying, “powered by bbPress”

    I would like to cut out the “member” etc. designations given below the name of the poster

    How can I tell how large to make the font and page?? It would seem to depend on the setting of the person’s computer, which is variable. On a Mac, if you hit command+ or command-, everything is enlarged or decreased

    #4157
    tdrinker
    Member

    I know where the CSS code is for my bbPress site, but what parts are relevant for the following simple adjustments?

    larger font size throughout

    more narrow margins and a wider text area

    taking out tags and other things like that

    maybe even adding a big announcement at the head of my page?

    taking away titles such as “member”

    replacing the text ‘be brief and descriptive’

    many thanks to anyone who can tell me

    #67236
    Tom Lynch
    Participant

    I have investigated some more it seems that new users of mu which own blogs get assigned as inactive on bbpress, dispite the role map being set to give them member level or higher for all levels on the role map.

    Any suggestions, theres no error codes it just plain doesn’t like wpmu’s role map

    #68382
    chrishajer
    Participant

    Your users probably want to mark a topic as a favorite if they want an email when there is a reply. A topic created by a member does not automatically subscribe them to it as a favorite (I think in some versions of phpBB that’s how it works.)

    For buttons, you probably want one of these two plugins:

    https://bbpress.org/plugins/topic/bbcode-buttons/

    https://bbpress.org/plugins/topic/quicktags-4-bbpress/

    You’ll find with bbPress that most of the things you want to do can be accomplished with plugins.

    #52354
    grenoli-dk
    Member

    I am having problems with the phpbb2bbpress converter (http://www.iteisa.com/phpbb2bbpress/).

    When I run the file I just get this message. There isnt a sql-file to download or a file created on my server.

    1: I downloaded the file from: http://www.iteisa.com/phpbb2bbpress/

    2: I edited the lines I have written in bold.

    Code:
    define(‘DB_PHPBB_USERNAME’, ‘[strong]databasename[/strong]’);
    define(‘DB_PHPBB_PASSWORD’, ‘[b]databasepassword[/b]’);
    define(‘DB_PHPBB_DATABASE’, ‘[b]databasename[/b]’);
    define(‘DB_PHPBB_TABLEPREFIX’, ‘phpbb_’);

    define(‘DB_BBPRESS_HOSTNAME’, ‘localhost’);
    define(‘DB_BBPRESS_USERNAME’, ‘[b]databasename[/b]’);
    define(‘DB_BBPRESS_PASSWORD’, ‘[b]databasepassword[/b]’);
    define(‘DB_BBPRESS_DATABASE’, ‘[b]databasename[/b]’);
    define(‘DB_BBPRESS_TABLEPREFIX’, ‘bb_’);

    I only have one database on my server, so the databasename and password is the same on the phpbb and bbpress part

    Code:
    define(‘EXPORT_TO_FILE’, true); // Should the converted DB be exported to a file ?
    define(‘FILENAME’, ‘/tmp/phpbb_imported.sql’); // Which one ? (Ensure this path is writeable by the server)
    define(‘AUTO_IMPORT_EXPORTED_DATA’, false); // Should the script automagically import the converted DB ?

    3: I created the folder tmp at the root and used chmod on it.

    4: I uploaded the file to the root and tried to open it but I couldnt. So I removed the s in .phps and it worked. But i only got this message – but nothing really happened. I cant download a file, and there is nothing on my server. What am I doing wrong?

    Q! wrote:
    phpBB to bbPress database converter

    This script can convert a PhpBB 2.0.X (www.phpbb.com) forum database to bbPress “Bix” 0.73 (www.bbpress.org) format.

    Developed by Jaime GÓMEZ OBREGÓN from ITEISA, based on the previous work of Bruno Torres and The phpBB Group.

    The latest version of this file can be found on http://www.iteisa.com/phpbb2bbpress/.

    Starting conversion

    1.

    Connected to the phpBB database host

    2.

    Selected the phpBB database

    3.

    Exporting forums…

    4.

    Exporting users…

    5.

    Exporting user metadata…

    6.

    Exporting topics…

    7.

    Exporting posts…

    8.

    Sending all your database e-mails to all major world-wide spam sending mafias…

    ‘strong’dsfgds’strong’

    #68083
    chrishajer
    Participant

    No.

    Kakumei is a theme (WordPress terminology) or a template (bbPress terminology) and controls the display of the content on your site. Any modifications you make to your site should be done in these template files, never in the core. Changing core files makes it hard to upgrade to newer releases: you lose your changes with every upgrade. So, if you make the changes in a template file, you can maintain them between releases.

    Also, by default, the stock kakumei theme is used and it’s in the bb-templates directory. I recommend creating a new directory called my-templates (if it’s not there already) at the same level as bb-templates. So, in a directory listing, they’d be at the same level. Then, inside there, create a directory called mytheme or some other name that is descriptive for your forum. This directory name does not matter. (The my-templates one DOES matter.)

    Now that you have a my-templates directory, and inside that a new directory with a name you choose, copy everything from inside the bb-templates/kakumei/ directory to this new directory you created. Then, open up style.css and change the header to give this new template a unique name on line two. You will see this there:

    Theme Name: Kakumei

    Change that to “Theme Name: My Cool New Theme” or whatever you want. Then refresh your admin panel, and you will see a new theme. You can change the rest of the lines in that header as well, to things that are meaningful to you. Be sure not to modify the text before the colon, just change the text after, to your values.

    Now, modify the php and css files in this directory to change the look of your forum. You can switch back and forth between themes here. If you break something, just choose the default theme until you fix the one you were working on.

    #68081
    chrishajer
    Participant

    If you just want to delete the display of the information below the post form, don’t remove that from a core file. What you want to do does not require any modification of core files. Stay out of there.

    You want to be in a template folder, by default bb-templates/kakumei/ but if you created a custom template, you may have a my-templates/yourtemplatename/. In that folder, there should be a file post-form.php and edit-form.php. In the 0.9.0.2 version, you want to look at

    ./edit-form.php line 19

    /post-form.php line 31

    Those lines contains the code to display “Allowed markup” below the post form. Remove that line completely and the text will no longer appear under your post form. Remove it in edit-form.php as well, and it won’t appear below that form either.

    If you don’t have those files in your template, or those lines in your template files, then I don’t know what to say. That’s where the text comes from in a stock installation.

    #68080
    beernews
    Member

    Got around to trying this in version 0.9.0.2 / template: bbOrg

    I didnt see those files you mentioned but searched a bunch of files and all I found was this strip of code in the includes/template-functions.php file:

    function allowed_markup( $args = '' ) {
    echo apply_filters( 'allowed_markup', get_allowed_markup( $args ) );
    }

    // format=list or array( 'format' => 'list' )
    function get_allowed_markup( $args = '' ) {
    $args = wp_parse_args( $args, array('format' => 'flat') );
    extract($args, EXTR_SKIP);

    $tags = bb_allowed_tags();
    unset($tags['pre'], $tags['br']);
    $tags = array_keys($tags);

    switch ( $format ) :
    case 'array' :
    $r = $tags;
    break;
    case 'list' :
    $r = "<ul class='allowed-markup'>nt<li>";
    $r .= join("</li>nt<li>", $tags);
    $r .= "</li>n</ul>n";
    break;
    default :
    $r = join(' ', $tags);
    break;
    endswitch;
    return apply_filters( 'get_allowed_markup', $r, $format );
    }

    Would that get rid of the markup stuff underneath the posting area WITHOUT disrupting my BB Code Buttons functionality?

    Thanks!

    #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

Viewing 25 results - 26,701 through 26,725 (of 32,466 total)
Skip to toolbar