Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 30,726 through 30,750 (of 32,432 total)
  • Author
    Search Results
  • #55713
    archasek
    Member

    doesn’t work :( whats wrong ://

    #55635

    In reply to: What’s integration?

    fel64
    Member

    An example: I have WP on http://www.loinhead.net/ and bbPress on http://forums.loinhead.net/. It works without problems for me and was very little work to set up.

    You should certainly understand the integration process before installing as there are several key things you have to do differently – your config.php configuration will be very different, for example. If you have already installed bbPress then I think you will have to get rid of it and install it again, but integrating this time.

    If you need help at any specific part of the process, feel free to ask here. :)

    Also in mathematics integration is the opposite of differentiation.

    #55712
    fel64
    Member

    Possibly you need to go up two or three directories, since config.php is called somewhere else? I have no idea really. Just try an absolute or base URL, such as http://www.example.com/wordpress/wp-blog-header.php or /wordpress/wp-blog-header.php, hopefully that will work :) If it doesn’t you can probably be sure it’s something else.

    #55726

    In reply to: More “Main Themes”

    fel64
    Member

    That’s not a big problem, it can be done with a patch: https://bbpress.org/forums/topic/698?replies=40

    Hopefully this will be in a major release soon. :)

    #1578
    archasek
    Member

    hi.

    everything works well but i just cant add header from wordpress. i add to my bbpress config:

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

    my directories look like this:

    /wordpress – here is the wordpress

    /wordpress/forum – here is the bbpress

    whats wrong :)?

    and i want to remove ‘views part’ .

    #55297
    Trent Adams
    Member

    This is a good plugin! The options currently have to be edited in the plugin code itself, but it also allows you to pick which fields are required at login as well. In an effort to slow spammers, I added a few fields and made all of them except 1 required! Seems to have worked so far…..

    Trent

    #55672
    Null
    Member

    Just compare FCKeditor and TINYmce with image lining/placing, you’ll get the point :) FCK is more user friendly in my oppinion

    #1569
    boomanfloral
    Member

    Hi,

    I’m new to bbpress, and I’m trying to install it. I already use wordpress. There are lots of posts that talk about integration, but I’m not sure what ‘integration’ really means.

    Is there a site where I can look and see an example of ‘integration’? What are the benefits? How do a BLOG and FORUM integrate? Thank you! :)

    -daniel

    #54362
    spencerp
    Member

    @nanome, nope.. still a no-go. I even tried it with BOTH “plugins” your’s and trent’s together. Then one at a time… no-go.. =/ =(

    spencerp

    #54357
    nanome
    Member

    Last time I checked (about a minute ago :) ) I was still a man.

    Glad it worked for you as well.

    Since I only downloaded BBpress today this hack comes with “use at own risk warning”. Don’t know what other effects it may have on other parts of the script. Saying that, it works ok for me so far.

    #55665
    ghoulash
    Member

    nanome, I had just read that post and used your tweaked code to solve the problem. Thanks so much.

    #54355
    nanome
    Member

    Testing bbpress on localhost (xampp, windows) and viewing with firefox I get the same error in the stylesheet link.

    <link rel="stylesheet" href="http://localhost/leebbpress/bb-templates/kakumei/style.css" type="text/css" />

    Created the plugin as Trent suggested but that didn’t solve the problem. Played around with the code a bit and now it does work.

    Here is my hacked version.

    <?php

    function fix_bb_path_to_url( $url ) {
    $url = str_replace(array('//', '\\', '\'), array('/', '\', '/'), $url);
    return preg_replace( '|:/([^/])|', '://$1', $url );
    }

    add_filter( 'bb_path_to_url', 'fix_bb_path_to_url', 1, -1 );

    ?>

    Only difference is adding ‘\’ to the str_replace.

    #55670
    Null
    Member

    NAh don’t use tinyMCE it’s crap :D FCKeditor is so much better

    Also if I have the time, I am going to make a WYSIWYG editor for bbPress that uses open source scripts and will be 10 times smaller to install (also cause bbPress has limited functions to use), but thats far far far away for now :)

    #55160
    talgalili
    Member

    Thank you chrishajer :)

    #55505
    Justin Tadlock
    Participant

    I know exactly what I need, but I don’t know how to get it. I need the “topic author id.” That’s it. Seems pretty simple, but I have no idea how to get it. Surely, there’s a way.

    I found this code on another part of the forum, except I just added <?php post_author(); ?> to get the to post author’s name. It’s a really good solution for getting the replies to the topic.

    <a href="<?php bb_option('uri'); ?>profile.php?id=<?php echo (get_post_author_id()); ?>"><?php post_author(); ?></a>

    What I need to get instead of (get_post_author_id()) is the topic author’s id, then I’ll be set. I’ve tried every variation I can think of, but came up with nothing.

    #1577
    wenkong
    Member

    1. download the latest version of TinyMCE , I use version tinymce_2_1_0

    2. unzip file and upload “jscripts” folder to your server/bbpress/my-plugins/, so link will like this (http://example.com/bbpress/my-plugins/jscripts)

    3. add code to the bbpress templates header file (http://example.com/bbpress/bb-templates/kakumei/header.php),

    ADD CODE before ‘/head’ of header.php

    <script language=”javascript” type=”text/javascript” src=”http://example.com/bbpress/my-plugins/jscripts/tiny_mce/tiny_mce.js”></script&gt;

    <script language=”javascript” type=”text/javascript”>

    tinyMCE.init({

    mode : “textareas”

    });

    </script>

    4. Done! you can check it out when Post content in your bbpress. :)

    see demo capture: http://img147.imageshack.us/img147/5363/tinymceao7.jpg

    p/s: I need someone pitch in and help me how to hack bbpress to support more allowed markup like <u> <tr> <td> <font color> <font size>… etc

    #55696
    fel64
    Member

    You have to enter the right password and username in config.php to your databases.

    I don’t know what Yahoo Webhosting entails, but unless it says MySQL tables somewhere you can’t use it. You need hosting that allows you to create MySQL databases, and they should be able to tell you your details to log into that. :)

    #55695
    boomanfloral
    Member

    Thanks for the advice!

    I’m using Yahoo Webhosting Services. I looked around, and I don’t see where to change those ‘permissions’ :( Does anyone know?

    Thanks again!

    daniel

    #1576
    boomanfloral
    Member

    Hi,

    I just installed bbPress and on STEP TWO I got a screen with the error below. I’m not a programmer or anything, I just know basic HTML and that’s it, so I don’t know where to look for a way to fix this. Can anyone give me some pointers on how to fix this? Or is there a service where I can pay to have this fixed and running smoothly? Thanks!

    bbPress database error

    Second Step

    Now we’re going to create the database tables and fill them with some default data.

    bbPress database error: [Access denied for user 'boomanfloral'@'localhost' to database 'mysql']
    CREATE TABLE bb_forums ( forum_id int(10) NOT NULL auto_increment, forum_name varchar(150) NOT NULL default '', forum_desc text NOT NULL, forum_order int(10) NOT NULL default '0', topics bigint(20) NOT NULL default '0', posts bigint(20) NOT NULL default '0', PRIMARY KEY (forum_id) )

    bbPress database error: [Access denied for user 'boomanfloral'@'localhost' to database 'mysql']
    CREATE TABLE bb_posts ( post_id bigint(20) NOT NULL auto_increment, forum_id int(10) NOT NULL default '1', topic_id bigint(20) NOT NULL default '1', poster_id int(10) NOT NULL default '0', post_text text NOT NULL, post_time datetime NOT NULL default '0000-00-00 00:00:00', poster_ip varchar(15) NOT NULL default '', post_status tinyint(1) NOT NULL default '0', post_position bigint(20) NOT NULL default '0', PRIMARY KEY (post_id), KEY topic_id (topic_id), KEY poster_id (poster_id), KEY post_time (post_time), FULLTEXT KEY post_text (post_text) ) TYPE = MYISAM

    bbPress database error: [Access denied for user 'boomanfloral'@'localhost' to database 'mysql']
    CREATE TABLE bb_topics ( topic_id bigint(20) NOT NULL auto_increment, topic_title varchar(100) NOT NULL default '', topic_poster bigint(20) NOT NULL default '0', topic_poster_name varchar(40) NOT NULL default 'Anonymous', topic_last_poster bigint(20) NOT NULL default '0', topic_last_poster_name varchar(40) NOT NULL default '', topic_start_time datetime NOT NULL default '0000-00-00 00:00:00', topic_time datetime NOT NULL default '0000-00-00 00:00:00', forum_id int(10) NOT NULL default '1', topic_status tinyint(1) NOT NULL default '0', topic_open tinyint(1) NOT NULL default '1', topic_last_post_id bigint(20) NOT NULL default '1', topic_sticky tinyint(1) NOT NULL default '0', topic_posts bigint(20) NOT NULL default '0', tag_count bigint(20) NOT NULL default '0', PRIMARY KEY (topic_id), KEY forum_id (forum_id), KEY topic_time (topic_time), KEY topic_start_time (topic_start_time) )

    bbPress database error: [Access denied for user 'boomanfloral'@'localhost' to database 'mysql']
    CREATE TABLE bb_topicmeta ( meta_id bigint(20) NOT NULL auto_increment, topic_id bigint(20) NOT NULL default '0', meta_key varchar(255) default NULL, meta_value longtext, PRIMARY KEY (meta_id), KEY user_id (topic_id), KEY meta_key (meta_key) )

    bbPress database error: [Access denied for user 'boomanfloral'@'localhost' to database 'mysql']
    CREATE TABLE bb_users ( ID bigint(20) unsigned NOT NULL auto_increment, user_login varchar(60) NOT NULL default '', user_pass varchar(64) NOT NULL default '', user_nicename varchar(50) NOT NULL default '', user_email varchar(100) NOT NULL default '', user_url varchar(100) NOT NULL default '', user_registered datetime NOT NULL default '0000-00-00 00:00:00', user_status int(11) NOT NULL default '0', display_name varchar(250) NOT NULL default '', PRIMARY KEY (ID), UNIQUE KEY user_login (user_login) )

    bbPress database error: [Access denied for user 'boomanfloral'@'localhost' to database 'mysql']
    CREATE TABLE bb_usermeta ( umeta_id bigint(20) NOT NULL auto_increment, user_id bigint(20) NOT NULL default '0', meta_key varchar(255) default NULL, meta_value longtext, PRIMARY KEY (umeta_id), KEY user_id (user_id), KEY meta_key (meta_key) )

    bbPress database error: [Access denied for user 'boomanfloral'@'localhost' to database 'mysql']
    CREATE TABLE bb_tags ( tag_id bigint(20) unsigned NOT NULL auto_increment, tag varchar(200) NOT NULL default '', raw_tag varchar(50) NOT NULL default '', tag_count bigint(20) unsigned NOT NULL default '0', PRIMARY KEY (tag_id) )

    bbPress database error: [Access denied for user 'boomanfloral'@'localhost' to database 'mysql']
    CREATE TABLE bb_tagged ( tag_id bigint(20) unsigned NOT NULL default '0', user_id bigint(20) unsigned NOT NULL default '0', topic_id bigint(20) unsigned NOT NULL default '0', tagged_on datetime NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY (tag_id,user_id,topic_id), KEY tag_id_index (tag_id), KEY user_id_index (user_id), KEY topic_id_index (topic_id) )

    1. Created table bb_forums
    2. Created table bb_posts
    3. Created table bb_topics
    4. Created table bb_topicmeta
    5. Created table bb_users
    6. Created table bb_usermeta
    7. Created table bb_tags
    8. Created table bb_tagged

    bbPress database error: [Table 'mysql.bb_topicmeta' doesn't exist]
    SELECT * FROM bb_topicmeta WHERE topic_id = '0' AND meta_key = 'bb_db_version'

    bbPress database error: [Table 'mysql.bb_topicmeta' doesn't exist]
    INSERT INTO bb_topicmeta ( topic_id, meta_key, meta_value ) VALUES ( '0', 'bb_db_version', '688' )

    bbPress database error: [Table 'mysql.bb_users' doesn't exist]
    INSERT INTO bb_users (user_login, user_pass, user_email, user_url, user_registered) VALUES ('daniel', 'fae46cfefe5fb87eedf6f8801e497d06', 'daniel@boomanfloral.com', 'http://boomanfloral.com', '2007-03-14 22:01:31')

    bbPress database error: [Table 'mysql.bb_usermeta' doesn't exist]
    SELECT * FROM bb_usermeta WHERE user_id = '1' AND meta_key = 'from'

    bbPress database error: [Table 'mysql.bb_usermeta' doesn't exist]
    INSERT INTO bb_usermeta ( user_id, meta_key, meta_value ) VALUES ( '1', 'from', 'Vista, CA' )

    bbPress database error: [Table 'mysql.bb_usermeta' doesn't exist]
    SELECT * FROM bb_usermeta WHERE user_id = '1' AND meta_key = 'interest'

    bbPress database error: [Table 'mysql.bb_usermeta' doesn't exist]
    INSERT INTO bb_usermeta ( user_id, meta_key, meta_value ) VALUES ( '1', 'interest', 'Unusual Plants & Internet' )

    bbPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' '', , '', '2007]
    INSERT INTO bb_topics (topic_title, topic_poster, topic_poster_name, topic_last_poster, topic_last_poster_name, topic_start_time, topic_time, forum_id) VALUES ('Your first topic', , '', , '', '2007-03-14 22:01:31', '2007-03-14 22:01:31', 1)

    bbPress database error: [Table 'mysql.bb_topics' doesn't exist]
    SELECT * FROM bb_topics WHERE topic_id = 0 AND topic_status = 0

    bbPress database error: [Table 'mysql.bb_forums' doesn't exist]
    UPDATE bb_forums SET topics = topics + 1 WHERE forum_id = 1

    bbPress database error: [Table 'mysql.bb_topics' doesn't exist]
    SELECT * FROM bb_topics WHERE topic_id = 1 AND topic_status = 0

    Finished!

    #55575

    In reply to: User ID = 999999999?

    chrishajer
    Participant

    So, it sounds like this is related to the conversion from phpBB. At least that narrows it down.

    In phpMyAdmin, select the table (be that bb_users or wp_users) and then select the “operations” tab up top. On that page, near the bottom are “Table options:” and in there is a field that says [ xxx ] auto_increment where the xxx is the next auto_increment value that will be used. That’s where you would change it.

    You should first figure out what that value should be, and you should also fix the other high numbered users. But that’s where you reset it with phpMyAdmin. *** Perform at your own risk. ***

    You can also just do it with SQL:

    ALTER TABLE 'wp_users' AUTO_INCREMENT =whatever-number

    The wp_users tablename might be bb_users or something else in your install. Also, the table name should be backticked, but you can’t do that in a block of code that’s already backticked here :D

    #55626

    In reply to: Duplicate Posts

    It also works quite nicely using:

    onclick="this.disabled=true"

    But I can’t get it to re-enable on pressing back – when there is no message for instance. I’ve tried onload="$('postformsub').disabled=false" in the body (we’re using Prototype) but it doesn’t seem to do anything. Is there another event that I’m forgetting that is called when the page is reloaded via the back button?

    #54352
    spencerp
    Member

    Do you have any issues transitioning from a desktop environment to a server environment (as I did, with MySQL and PHP versions and configs and such)?

    To tell you the truth, I didn’t have any issues going from my Xampp Lite localhost copies, straight to my live servers. I just find it odd though that this whole time of running that bbPress on the localhost, and just applying the SVN updated files from time to time. It was fine..

    It was only when I installed it fresh, with the latest copies of Trunk that it gave me this problem. I SVN CO the trunk on my other new domain via SSH and it went smoothly… no troubles though, I guess that’s to be expected. Hmm.. I’ll have to look into the problem a little deeper.

    I’m trying to when I have the time, but with being so busy.. it’s hard taking a gander at it…sigh.

    How about installing a linux distro in house since your server is linux also?

    Geesh, didn’t even think of that, or try it. Thanks for that, I’ll have to give it a go then. ;) :)

    spencerp

    #55625

    In reply to: Duplicate Posts

    fel64
    Member

    Chris, lovely code, works straight away. :D Implemented in my forum, the button instantly disappears and double-posting is impossible. Thanks a lot!

    If anyone else wants to implement this but is unsure how, go to your theme (or Kakumei?) and open post-form.php using Notepad.

    Find the line that says:

    <input type=”submit” id=”postformsub” name=”Submit” value=”<?php echo attribute_escape( __(‘Send Post »’) ); ?>” tabindex=”4″ />

    and change it to

    <input type=”submit” id=”postformsub” name=”Submit” value=”<?php echo attribute_escape( __(‘Send Post »’) ); ?>” tabindex=”4″ onclick=”this.style.display=’none’;” />

    (Could someone please add the overflow: auto property for posts in this theme’s CSS? It’s incredibly inconvenient for code running over several lines.)

    #55624

    In reply to: Duplicate Posts

    chrishajer
    Participant

    Here is the JS I was thinking of. It would be added to the submit button input element:

    onclick="this.style.display='none';"

    I have no idea if that will work :) I just read it on the Internet. There are lots of hits in Google if you’re curious. In my experience, once people do it a few times, they realize it just takes a couple seconds to appear, so they become more patient and avoid double posting.

    #55616
    chrishajer
    Participant

    You could disable it just to see if that’s the problem. In addition to removing or modifying the .htaccess file, you need to set

    $bb->mod_rewrite = false;

    in your config. That will turn off the rewriting completely. Both need to be working for the pretty permalinks to work (i.e. the .htaccess is present, and the $bb->mod_rewrite = true. It doesn’t work on all servers though. Oddly, it works for my WordPress just fine, but not for bbPress which is in a subdirectory, so I have mine set to false for bbPress.)

    I would disable it for now, just to see if that’s causing your problem.

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