Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 28,901 through 28,925 (of 32,458 total)
  • Author
    Search Results
  • #61083
    chrishajer
    Participant

    The error might not be on line 18, it might be before that, and 18 is just where it shows up when PHP parses it. Can you post the prior lines as well? Maybe there’s a problem with the $bb_table_prefix = line if you happened to edit that.

    Thanks.

    #2493
    jaysays
    Member

    I receive the following error after install:

    Parse error: parse error, unexpected T_VARIABLE in …/forum/config.php on line 18

    The code relevant to line 18 is:

    // The full URL of your bbPress install

    $bb->uri = ‘http://thebigo.ejoculation.com/forum/’;

    I’ve tried editing this to:

    // The full URL of your bbPress install

    $bb->uri = “http://thebigo.ejoculation.com/forum/”;

    … as suggested in similar instances, but receive the same error.

    It’s official, I don’t know the answer and I’m forced to admit there are smarter people out there than me. Can someone please help?

    #61081
    jaxxx
    Member

    thanks, but that wasn’t exactly what I meant. I’m less concerned about wanting to change the wording of the text, and more interested in replacing the <h2> tags around it with something else.

    #58128

    In reply to: bbSync

    slexaxton
    Member

    I love the plugin fel. It takes a while to get used to what file is doing what, but to anyone who is using it along with the integration scripts you might realize that the posts on the forum show up as comments and visa versa, but the comment count on the main page only counts the comments made via wordpress, and doesnt take into account the comments that show up, but were originally made in the forum.

    I added a function in the plugin that just recieved the number of posts (since this data is correct).

    function bbreplycount() {
    global $id, $opshuns;
    $posties = 0;
    if( !$opshuns )
    $opshuns = get_option('bbsync');
    require_once( $opshuns['bbpath'] );
    $topic_id = felwptobb( $id );
    if( $topic_id ) {
    $topic = get_topic( $topic_id );
    $posties = $topic->topic_posts;
    }

    return $posties - 1;
    }

    Using this I was able to modify the comments_popup_link(...) to accept another variable (the number of posts returned by the new function). Then instead of getting the number of actual comments via the wordpress method, I simply replaced my new variable with that function call. Viola, works like a charm.

    Its nothing serious, but could be helpful to some. cheers. Thanks again fel.

    #60593

    In reply to: Danish translation

    Daniel Juhl
    Participant

    Hi SMU,

    Yes, I’ve tried to find the .pot or .po files for the plugins – but I couldn’t.. What I did instead was to make a few more lines in the main translation, and that worked. It’s probably not the right way, but it works for now :)

    Thanks for your time and help!

    #61080
    Graeme
    Member

    Try editing topic.php in the default template and replace:

    <?php post_form(); ?>

    with:

    <?php post_form('Reply to this topic:'); ?>

    This is a simple way to make the change you want.

    Note that rather than editing the default template, you can make use of the powerful templating behaviour of bbPress if you create your own theme. With custom themes, bbPress will always pick up missing template files from the default kakumei theme! That means custom themes can be quite simple!

    1. Create a directory called my-templates.
    2. Create a directory in that directory called myfirsttheme.
    3. Copy style.css, screenshot.png and topic.php from bb-templates/kakumei to your my-templates/myfirsttheme directory.
    4. Edit my-templates/myfirsttheme/style.css and change:
      Theme Name: Kakumei

      to

      Theme Name: myfirsttheme

    5. Change my-templates/myfirsttheme/topic.php with the change described above to topic.php.
    6. At this point you should see your own custom template in the admin backend.

    That allows you to setup your own theme. Then when new versions of bbPress come along you may not have to reedit the default templates – just copy your custom theme into the new/upgraded bbPress installation.

    I hope that makes sense.

    Note:

    Sometimes new functionality in bbPress will mean that it is best to copy the default template files and re-apply your changes in your custom theme.

    #61055
    outchy
    Member
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^playground.manonfire.cc$ [OR]
    RewriteCond %{HTTP_HOST} ^www.playground.manonfire.cc$
    RewriteRule ^(.*)$ http://www.manonfire.cc/playground [R=301,L]

    it seems to be working now…

    #2492
    jaxxx
    Member

    I’m currently editing the default theme template for the latest version. Everything is going well, except I can’t find the code reference for the “Reply” label (it shows up as <h2 class='post-form'>Reply</h2> in the HTML output. The rest of this section is editable in post-form.php. Where do I need to look to find the section (basically I just want to either remove this label and add a new one separately, or else be able to wrap some more code around it). The only other thing which may shed some light on this is the preceeding code: do_action( 'post_form_pre_post' ); but I have no idea what this function does.

    #60592

    In reply to: Danish translation

    smu
    Member

    Hi Daniel,

    Being relatively new to bbPress I am not sure how to do just that. Have you tried finding the relevant .pot or .po files for the plugins that you have installed? I think you need to have a separate translation file (.mo) for each plugin – similar to WordPress.

    Alternatively, there is the hard way. Translate directly in the source code! ;-)

    #60972
    chrishajer
    Participant

    I just did a fresh install of 0.8.3 and I can add tags to existing posts just fine. Maybe it happens only with upgrades? I noticed that on this install, my username is something I chose, rather than the old default of admin, so maybe that is messing up the keymaster somehow.

    #61059
    jolaedana
    Member

    No worries! I’ve done it a million times myself and I do it for a living- you live and learn. ;)

    #2491

    I would like to add topic text to the frontpage where I use

    <?php topic_title(); ?>

    Is there a variable for this?

    #61070

    In reply to: CSS

    Graeme
    Member

    You appear to be using identical style.css files for the wordpress and bbpress sections of your site. You can fix this by copying some CSS rules from one of my theme downloads.

    I have just updated the blank bbPress themes at bbpressraw.com with new versions that have a forum-like tabular style.

    You can see them in action via the theme switcher at the bottom of the bbpressraw.com forums page.

    To solve your problem, I suggest you download one of the themes and copy all of the rules below:

    /* Global Styles

    =================================== */

    hr {

    display: none;

    }

    into the bottom of your bbPress theme stylesheet. This will allow you to pick up all the bbPress CSS rules that are applied by these themes. Tweak these CSS rules in order to change the appearance of the forums.

    Enjoy!

    #61021

    In reply to: bbPress Site

    drtech
    Participant

    Firefox displays the page correctly. Webkit and safari ( the same) have the format problem. Its only on the bbPress Extend page ( on this site) that firefox and safari disagree on how the site looks. I have a pic of the problem, just need to know how to post or send it for you to take a look at it. It could be the code on the page or a problem with Webkit.

    #61058

    Yeah I’m an idiot. I’m using Safari so there’s no such thing as ctrl+shift+F5, so I felt like a right idiot when I clicked as to what I was doing wrong. I just presumed it was my ineptitude lol.. Thanks for the reply :)

    #61068
    chrishajer
    Participant

    Can you add this line to config.php:

    $bb->debug = 1;

    You can put it near the top after the database details. That should give you some useful information.

    #2487
    Anonymous User 179266
    Inactive

    After installing the bbPress, i can’t see my topics, forums, tags… (everything) i tried everything but i cant fixed :(

    http://www.bilgisinema.org/forum

    #61051

    In reply to: bb-Bluesands

    Jim S.
    Participant

    I also notice there is a LOT of extra whitespace at the bottom that doesn’t belong there. I’m betting it has something to do with the presence of the theme switcher button interfering, but I can’t say for sure without seeing what code you’re using for the switcher.

    #58126

    In reply to: bbSync

    fel64
    Member

    Hey Joe,

    try adding $bb_cache and $bbdb to the list of globals in your config.php file (as outlined earlier in this topic, or ask if you’re unsure). That seems to cause the error publishing articles. That said, right now I also get an error publishing but it seems to work fine – I’ll look at that when I’ve got my dev machine again.

    The error for comments I don’t understand. Line 105 seems to be a function declaration: https://plugins-dev.bbpress.org/browser/bbsync/trunk/bbsync.php#L105, so how it could be missing an argument I don’t know. Are you using the latest version of bbsync, too?

    #61064
    jolaedana
    Member

    Hi Sam! Thanks for the reply.

    I’ve already tried to chmod the files- I get a “you do not have permission to modify these files” on all the files, no matter what permission level I tried. I’ve got pretty extensive web experience, so that was the first thing I tried.

    I guess for now I’ll go back to the non plugin install- I was just curious if there was something written into the Plugin Manager that caused the file permission settings to be locked. Seems odd that I can’t even overwrite a .gif file!

    Thanks for the overview and clarification. :)

    #61063
    Sam Bauers
    Participant

    The files and folders need to be writable by the webserver user. You may have changed the permissions when you edited the files that exist there already.

    The easiest approach (but insecure on shared hosting services) is to chmod the files.

    chmod -R 777 bbpress-root/my-plugins

    .

    Or you can change ownership on those files to the webserver user, usually “www” or “apache” depending on the setup.

    chown -R www:www bbpress-root/my-plugins

    .

    Remember that the upgrade facility of the plugin browser won’t maintain your manual changes to the plugins. You will need to re-edit the new versions.

    Plugins that are installed normally will happily co-exist with those installed by the plugin-browser. Just keep them outside of the pb–xxxx folder structure.

    #58125

    In reply to: bbSync

    joe12south
    Member

    Would very much love to use this plug-in, but even after moving heaven and earth to find my absolute path on a Godaddy hosting account :-) I am still getting errors.

    When I try to publish a new article I get this:

    Fatal error: Call to a member function on a non-object in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/functions.php on line 997

    When I try to submit a comment I get this:

    Warning: Missing argument 2 for felsynccomment() in /home/content/a/d/m/adminsportzzz/html/wp-content/plugins/bbsync/bbsync.php on line 105

    Fatal error: Call to a member function on a non-object in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/functions.php on line 1216

    This is a completely fresh install of both WP (2.3) and BB, btw. Any help would be greatly appreciated.

    #2486
    jolaedana
    Member

    Hello all,

    I’m using the Plugin Browser by SamBauers.

    I have a few plugins that I was using, and installed through this plugin (great stuff, btw) that I had modified the files on slightly. Main example here is the Page Links plugin- I had changed the page icon graphic to be different colors. I would like to overwrite the file in the Plugin Browser installation of the file, however it tells me I don’t have permissions to overwrite the file- or change permissions on the folder or files inside it.

    Is there an easy work around for this, or should I just go back to the non Plugin Browser version? :) Thanks!

    #61060
    chrishajer
    Participant

    Did you actually use the line path/to/wp-blog-header.php or did you change it to the ACTUAL path to wp-blog-header.php? Something like /home/thewayev/public_html/wordpress/wp-blog-header.php.

    The “path/to/” part is illustrative and should be changed to your actual path for your installation.

    #2485
    andajus
    Member

    When I add the line

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

    to my bbpress “config.php” file in order to give access to WordPress’ functions: my forum doesn’t load and I get the following message instead:

    Warning: require_once(path/to/wp-blog-header.php) [function.require-once]: failed to open stream: No such file or directory in /home/thewayev/public_html/forums/config.php on line 12

    Fatal error: require_once() [function.require]: Failed opening required ‘path/to/wp-blog-header.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/thewayev/public_html/forums/config.php on line 12

    It doesn’t seem to matter what line I put the code on, and as far as I know I’ve carried out every other integration procedure listed with no problems. Does anyone know what I’m doing wrong?

Viewing 25 results - 28,901 through 28,925 (of 32,458 total)
Skip to toolbar