Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,951 through 31,975 (of 32,511 total)
  • Author
    Search Results
  • #52160

    In reply to: Admin problems

    malak
    Member

    I have just add

    require_once('admin.php');

    to .php files (in bb-admin)

    and it works now

    #52159

    In reply to: Admin problems

    malak
    Member

    same problem when I try to Move topic to other:

    Fatal error: Call to undefined function: bb_current_user_can() in /forum/bb-admin/topic-move.php on line 10

    Close topic:

    Fatal error: Call to undefined function: get_topic() in /forum/bb-admin/topic-toggle.php on line 5

    #1070
    malak
    Member

    when I try (0.73 with WP, login as Key Master or Administrator) to set “not spam” in “Akismet Spam” section I got:

    Fatal error: Call to undefined function: bb_current_user_can() in /forum/bb-admin/delete-post.php on line 6

    same if I try to check some post as “spam”.

    Thanks.

    #1069
    andrabr
    Member

    So, I uploaded bbpress, configured config.php, punched bb-admin/install.php in my browser and saw… nothing. Not even an error message.

    Ok, I went poking around. Deleted config.php and got the error message as expected.

    Next line in the code is: require_once(‘../config.php’);

    I do not believe I get over this hurdle (if I recall correctly, require_once dies quietly).

    I changed it to require config-sample.php, and got as far as database error message. config-sample.php and config-php sit next to each other with exactly same permissions.

    I cannot think of a reason for require_once to see one but not the other…

    Mystery…

    Any ideas?

    #52147

    I know the yellow is default color of the FAT Library. But I like it in yellow … think this looks nice. =)

    If you want to change it by yourself:

    – Open /bb-includes/js/fat.js

    – Go to Line 32 and replace #FFFF33 by #E4F3E1

    Now it will be green everywhere.

    #52096
    ardentfrost
    Member

    then add this in front of your plugin.

    if ( is_front() ) {

    *plugin I mentioned here*

    }

    #52095
    Null
    Member

    Well I am working on a new page where I want to have this reply function on. If I do this your way or use it as a plugin, it would effect everypage using this option. I only want this on my alternitive index/front-page.php file. Lets call it index2.php.

    So I want this only on my alternitive index page, thats why I want to hardcode it for that page only…

    Thx

    #52021

    In reply to: Site Options Plugin

    so1o
    Participant

    https://bbpress.org/documentation/faq/#customization-folders

    do the default plugin installation routine..

    please note that you need site-options plugin and the latest code from the bbpress repository

    #52103
    Null
    Member

    Yeah, thats why I ask that here :) I have no clue how to do that!

    #52094
    ardentfrost
    Member

    Why wouldn’t you want to use it as a plugin? There’s a filter applied to the reply count call specifically so you can do something like what you’re asking for.

    If you want to hardcode it, you have to go to template-functions.php and find the “get_topic_posts” function and do the -1 there.

    #52143
    Null
    Member

    About the placing, where ever i placed it in the header it never turned out right. Sec I dont know how to build sugh a menu like this, i am a compleet retar…. noob :)

    #52093
    Null
    Member

    If I don’t wanna use it as a plugin, but hardcode it? Then I put it in index.php? and where in the index.php?

    Thx for the help

    #52092
    ardentfrost
    Member

    this is untested…

    make a file in your my-plugin directory and call it whatever you want. Insert the following:

    global $topic;

    add_filter ( 'get_topic_posts', ($topic->topic_posts)-1, $topic->topic_id );

    That should work

    #52100
    ardentfrost
    Member

    just find where it is and add this:

    <a href="<?php topic_link(); ?>">First Post</a>

    #1067
    Null
    Member

    Wel when posting etc you see that AJAX thingy fading. It’s YELLOW though and I think it should be green, just like the rest of the template. Plz fix :)

    #51738

    In reply to: Guest user

    steven19
    Member

    *bump* :(

    #51171

    In reply to: Private Forum script

    topiq
    Member

    i installed the site_opitons plugin. but i get some kinds of errors.

    in the “private forum management” i get this errors:

    Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /srv/www/httpd/phost/c/com/pytalhost/cessi/web/bbpress/my-plugins/private-forums.php on line 29

    value="2" > News

    and if i want to change the message a user gets if he is not allowed to access a private forum:

    Fatal error: Call to undefined function is_serialized() in /srv/www/httpd/phost/c/com/pytalhost/cessi/web/bbpress/my-plugins/site-options.php on line 190

    thanks for your help!

    PS: in the SITE OPTIONS tab i get nothing but a submit button…

    #50962
    anotherbrick
    Member

    Alright :) I’d like to follow the progress, and contribute if possible. I have a need for such a thing in an ongoing project, so I have time to give for this(I’m new-ish to PHP, but not to programming in general – C/C#/Ruby). Lemme know if you make a start!

    #50961

    Ah … this isn’t implemented yet. But would be a nice idea for a plugin, I think I’ll give it a try =)

    #50950
    spencerp
    Member

    @talkaboutdesign, wow, that’s nice! Thanks for doing that! Can’t wait until ya release it. ;) :)

    spencerp

    #51169

    In reply to: Private Forum script

    topiq
    Member

    it does not work for me. when i want to access the private forum plugin in the admin panel i get this error:

    Fatal error: Call to undefined function get_option() in /srv/www/httpd/phost/c/com/pytalhost/cessi/web/bbpress/my-plugins/private-forums.php on line 22

    #50643

    In reply to: rawurlencode() Error

    plognark
    Member

    Ok, I lied, that actually doesn’t fix the problem.

    However, what does seem to work is error supression:

    $this->query_string .= $wpvar . ‘=’ . @rawurlencode($this->query_vars[$wpvar]);

    Just throw an @ sign in front of the offending rawurlencode function and it seems to clean things up.

    #51846
    spencerp
    Member

    In your forum’s root directory.. you have to make a folder called: my-plugins and then upload the file there.. Call a blank file: my_resolve_ title.php and add the above codes into it.. make sure there isn’t white space before the: <?php and after the last: ?>

    Save it, and upload it to your my-plugins folder.. Good luck!

    spencerp

    #51845
    suleiman
    Member

    where does this plugin code get dropped exactly?

    #50840

    In reply to: Error for tags.php

    chrishajer
    Participant

    @richardjeananders: this addition to the .htaccess absolutely fixed this exact problem for me. I was seeing the same error in Firefox when I clicked on the Tag link in the breadcrumb navigation. PHP scripts were being interpreted by PHP 4.4.4 on the server until I created an .htaccess file with this one line. Now, PHP scripts are being interpreted by PHP 5.1.6. I can’t believe that fixed it. Thank you very much.

    .htaccess

    AddType x-mapp-php5 .php

Viewing 25 results - 31,951 through 31,975 (of 32,511 total)
Skip to toolbar