Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 30,701 through 30,725 (of 32,432 total)
  • Author
    Search Results
  • #55754
    Sam Bauers
    Participant

    Include the following at the top of the new file:

    require_once('../bb-load.php');

    You may have to adjust the path a little to correctly reference the file.

    That should give you access to the whole API, including the $bbdb object for manipulating the database.

    #53812
    Atsutane
    Member

    The fix i already put inside the plugin seem not working. :( Maybe in the future bbpress should automatically fill up the display_name

    Anyway i try to see what i can do with that.

    #55770
    bassetts
    Member

    You have to create a folder called my-plugins inside the bbpress root e.g. /bbpress/my-plugins/ and then upload the plugin to that folder.

    #55757

    In reply to: multiple forums

    Trent Adams
    Member

    I am afraid not. It would require you manually creating a forum for each site. If you wanted them all to have different sites, it would require a bbPress install for each and every user with different databases. If someone hacks the code to a MU version of bbPress maybe, but right now, not that I know of.

    Trent

    #1591

    Topic: Smilies plugin?

    in forum Plugins
    kentpaus
    Member

    I’m missing a smilie plugin. Has anyone made one yet? If not I will try to make one ASAP :)

    Edit: Sorry! Fonund one now. Will try it out :)

    #55753
    Null
    Member

    Hmm well so the easiest way is to keep the external file containing:

    <?php
    $id = $_POST['id'];
    $content = $_POST['content'];
    echo stripslashes(htmlentities($content)); ?>

    This file returns the edited text (this works), but how can I let it safe the variables to the database at the same time?

    It’ll have to save: $content to the table bb_menu -> item

    where $id = edit_id

    Tried some stuff, but couldn’t get this updated into the db :(

    #53809
    Atsutane
    Member

    Glad it work perfectly for you :)

    #55761

    In reply to: What happened?

    Sam Bauers
    Participant

    Turn off permalinks in the config.php file

    $bb->mod_rewrite = false

    Or add the appropriate entries to your .htaccess file as described here

    #1589

    Topic: What happened?

    in forum Installation
    daniel8802
    Member

    Hi guys … I have wordpress up and running on my site, but I tried to get bbpress working, but something isn’t quite right I think. Am I doing something wrong? You can check it out at rigelastronomy.com/bbpress … thanks! I’m new to bbpress, but love wordpress :)

    #53806
    Atsutane
    Member

    FROM _bbtopics

    it seem to me your bb table prefix kinda mess up. Try check back inside option page. I also using wp 2.1.2 and bb 0.8.1, and still i can update my option :)

    Try deactive and reactive the plugin back .. maybe that gonna fix it.

    @fel64

    thanks i will keep that in mind :)

    #1586
    Null
    Member

    Hi,

    I am currently upgrading my bbMenu plugin. You can now edit the titles en safe them to you db. The problem is, the last part I can’t get the saving to work.

    In the JS file I have now:

    var url = 'edit.php';

    This file (edit.php) is called when someone renames the menu item and has the following code:

    <?php
    $id = $_POST['id'];
    $content = $_POST['content'];
    echo stripslashes(htmlentities($content)); ?>

    Now I don’t want to have an external file so I copy past this code into my bbmenu.php and changed the var url in the JS file too:

    var url = '../my-plugins/bbmenu.php';

    So it now calls the bbmenu.php but this gives some errors, cause it will reload the plugin file:

    Fatal error: Call to undefined function add_action() in /bbpress/my-plugins/bbmenu.phpon line 30

    How to solve this?

    If this aint possible what do I need to add to edit.php so it also safes the stuff to the db?

    Hope you guys can help me out

    #55729
    peiqinglong
    Member

    Did you specify to load the admin interface? Make sure this line is inside your bbpress header somewhere: <?php if ( is_bb_profile() ) profile_menu(); ?>

    #55724
    peiqinglong
    Member

    The first problem is in your header, you have:

    <php bloginfo('stylesheet_url'); ?>, it should be <?php bloginfo('stylesheet_url'); ?> and with the second import, I'm not sure why style.css is just floating around outside. It should be pointing to your forum so it should be: @import url(“/archas/ram/wordpress/forum/bb-templates/your themestyle.css”);`

    The second problem is you have to edit EVERY file in the template. Make a new folder in bb-templates, call it whatever you want and copy all the files from kakumei theme except for images directory into your new folder and change all the files that have <bb_get header()> to <get_header()> and don’t forget the footer and sidebar.

    The third problem is you need to style the bbpress stylesheet to match your theme…

    #55723
    archasek
    Member

    in bb-admin panel, it shows only the code of php file.

    what bout other questions ?

    #53802
    fel64
    Member

    Haha, Atsutane, fantastic. :D Continually improving this plugin is great :D

    You spelt “integrated” intergrated by the way – luckily consistently through your code, so it works okay anyway. ^^ Better English is also “in” category rather than inside. Just if you want to know. :)

    #53801
    Atsutane
    Member

    Update the plugin already. Now u can set the length of the text from BbLD option page. Get it from bbPress plugin page.

    Refer to changelog for older update. Hope this gonna solve your problem :)

    #55721
    archasek
    Member

    ok, i did something like that in my front site, and everything seem to be working ok, but:

    – look at forum and at wordpress- there is a little difference between them. text in forum is on the left, out from the table.

    – in my bb-admin page i have bad encoding (im polish), i have to use the unicode, dunno what bbpress uses

    how to add (activate) plugins for bbpress? i want to have display-name plugin to change moderators names :)

    #55720
    peiqinglong
    Member

    Make sure that when you enter: require_once( ‘../wp-blog-header.php’);, it’s absolute path. For example: /home/username/archas/ram/wordpress/

    To find out what your absolute path is:

    1) make a file and call it path.php

    2) add this code into the path.php: <?php $p = getcwd(); echo $p; ?>

    3) upload it to your wordpress directory and access it http://www.cs.elomza.pl/archas/ram/wordpress/path.php, that will output your path.

    For more info: http://www.bui4ever.com/web-itecture/how_to_integrate_wordpress_and_bbpress/

    #53800
    Null
    Member

    It’s not that hard to do. Just google on this and script/excamples will pop-up in no time. Basicly you will have to count the nr of letters and replace all other letters with …

    I am at work else I could give an excample….

    … not very helpful I know just google :D

    #54370
    fel64
    Member

    Is there any way of displaying the page numbers (as links) in the thread listing, so that you can jump straight to the latest page? Would be much nicer to navigate. :) If not, I’ll add it as a ticket to trac? Not sure what the right thing to do is!

    #55735

    In reply to: bbPress on mac osx

    Sam Bauers
    Participant

    Check your apache error log for PHP errors using tail.

    tail -f /var/log/httpd/error_log

    On the command line.

    #54369
    spencerp
    Member

    Haha. All I know is… after wiping the database clean of the bbPress tables and files/folders and such in the htdocs folder for Xampp Lite/ localhost … tried to install it fresh again… it went just fine, except for that Stylesheet URL issue…. :)

    Not sure why, or what’s going on with it.. but apparently she’s holding a grudge against Xampp Lite and the localhost… damn bitch!!!! LOL! Nah, just kidding folks! :P

    spencerp

    #54368
    Trent Adams
    Member

    Good to know…….so that is the URL issue and not the localhost issue even though you are installed on a localhost. Man, this thread is confusing sometimes! ;)

    Trent

    #54367
    spencerp
    Member

    Oh okay. However, I just SVN-ed my localhost copy, and she’s still not working like supposed too. So, I just manually re-added the straight URL to the stylesheet for now.. ;) :)

    So evidently it hasn’t been fixed yet sigh.. Hmm..

    spencerp

    #54365
    spencerp
    Member

    It’s ok Trent. :) It’s really not a big deal since it’s for the localhost copy only. ;) It’s just that it *would be* nice to have this fixed in general though, ya know.. ? :)

    Do you know if mdawaffe had applied a fix yet or not? I noticed a handful of files come through the SVN, just not sure if one contains a “fix” or whatever.. lol!

    spencerp

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