Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 30,626 through 30,650 (of 32,491 total)
  • Author
    Search Results
  • #49575

    yes! in config.php :(

    #56185

    In reply to: Numbered Posts

    fel64
    Member

    I believe that if you attach this to your CSS file:

    ol#thread li {
    list-style-type: decimal;
    }

    you would see the post numbers without any extra code, certainly the most elegant method. There is likely already a definition for ol#thread, so you could simply add this property to that one. Bear in mind that this is entirely untested (will try it when I get home).

    #56237

    In reply to: No ajax on replies

    Null
    Member

    They used to be ajaxed… or was that wordpress?? well ajexing this would be great to have as default!!

    Any bbpress programmer who wants to comment this?

    Also editing could be made ajaxed… :D

    #49573

    I put the code of thomasw98 but…

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    why?? I put in my folder a new .htaccess file.. :(

    #56184

    In reply to: Numbered Posts

    mshutch
    Member

    The post_position in the bb_post table has the correct number for each post. I don’t know much about php, but I made a little plugin for my forum, which seems to work.

    function get_post_num() {
    global $bb_post;
    return$bb_post->post_position;

    function post_num() {
    global $bb_post;
    echo $bb_post->post_position;
    }?>

    I just place post_num() where I wanted it to show. Hope this helps?

    #56094
    Null
    Member

    No 1? :(

    #53814
    Atsutane
    Member

    With new version of plugin, u dont need to edit the file directly anymore. U can always get the new version from https://bbpress.org/plugins/topic/39

    From what i can see. SELECT * FROM topics WHERE It seem the bb table prefix is missing. Maybe u miss the setting.

    I dont know what u mean by “i still have the SMF forum that reads the forum topics” but u can find the option page inside wordpress option under “BbLD Option”

    #1653
    #53813
    drcmanx
    Member

    I’m just going to add onto this post with my error about the plugin.

    I edited the php at these two lines:

    Code:
    $bbpath = ‘/forum’; // Adjust the path to suit your bbpress
    $forum_slimit = ’10’; // Adjust the limit to show

    uploaded the plugin into wp-content/plugin and then added

    Code:
    <?php wp_bb_get_discuss_sidebar(); ?>

    to my sidebar. activated the plugin to get the following error:

    Code:
    WordPress 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 ” at line 1]
    SELECT * FROM topics WHERE topic_status = 0 ORDER BY topic_time DESC LIMIT

    i still have the SMF forum that reads the forum topics with the line code:

    Code:
    <?php include (‘/forum1/extern.php?action=active’);?>

    so i have no clue what I did wrong… i’m thinking maybe its something I didn’t edit. Also i keep hearing about a option page for the plugin and can’t seem to find it.

    #56254
    wittmania
    Member

    As somewhat of a novice in the mysql world, all I really know is what works for me. However, I do think that your suggestion would work.

    One concern would be that some wp-specific data would be missing from the bbp-only users. Again, I don’t exactly know what that would be.

    I don’t know if there is a quick and easy way to modify the user IDs in WP, since they are going to be associated with posts, comments, and so on. That might be more trouble than it is worth. It might be easier to just create new users in WP and change their ID numbers before they are associated with anything else. Then, delete the “old” users one by one in WP, and each time make sure you set the “Attribute posts and links to:” option to the new, highly-numbered user it should correspond to. At least that way you could add the bbp users in without conflicts.

    There may be a fancy, streamlined way to do this, but I don’t know what it is. :)

    #56253
    cweb
    Member

    Thank you very much for the detailed response. I’m sure this will help out many folks who have this issue. Let me ponder a lazy man’s approach. That lazy man being me, since I already have said bye to phpbb and have bbpress up and running. Couldn’t I run mysqldump to extract the bb_users table, then go in and modify the first few user ID’s (across the data I know :( ) and then just import that table into wp_users?

    Or since my WP install is still fresh with only a couple users, it might be easier to change their ID’s in the database, then import bb_users into wp_users?

    #56252
    wittmania
    Member

    I had the same epiphany as you did when I learned that bbpress existed.

    Here’s what I did:

    1. I looked at the currently registered users in WP (I only had a few) and noted their numeric ID numbers. I then went over to my phpbb database to see which users they would conflict with (i.e. which ones had the same unique numeric ID number).

    2. I used a phpbb mod which allowed me to go into these users’ profiles and change their ID (not their name) to a number that would not conflict with the WP users, or any other user in the DB.

    At this time, phpbb.com is having trouble with their mod downloads, so I just uploaded the mod file to my own server. You can view the complete mod here:

    http://www.wittmania.com/change-user-id-mod.txt

    It takes about 10 minutes total to make all of the changes. Basically, what it does is add a field to the user’s profile when viewed by an administrator. In this field you can change their ID number to whatever you want it to be.

    So, once the mod has been implemented, go through and change the ID number for whichever users conflict with your existing WP users.

    3. Once you have gotten rid of all user ID conflicts, download Jaime GÓMEZ OBREGÓN’s incredible phpbb to bbpress importer, which can be found here:

    http://www.iteisa.com/phpbb2bbpress/

    You will need to edit the file so that it reflects your DB permissions for both the phpbb and the bbpress databases. Also, if you are running a WP integrated installation (as you obviously are), you will need to change the prefixes for a couple of tables further down in the code.

    Change lines 172 and 173 from:

    $bbpress_tables['users'] = DB_BBPRESS_TABLEPREFIX . 'users';
    $bbpress_tables['usermeta'] = DB_BBPRESS_TABLEPREFIX . 'usermeta';

    -to-

    $bbpress_tables['users'] = 'wp_users';
    $bbpress_tables['usermeta'] = 'wp_usermeta';

    Note: be sure that you use the actual WP table prefix if it is something different than wp_. This change will make the importer put the users into your existing wp_ tables instead of in new bb_ tables, which would defeat the whole point of your import.

    Once you have modified the file, upload it and navigate your browser to it. It should run automatically, importing all of your phpbb info into your bbpress installation.

    4. At this point my memory gets a little fuzzy. In either WP or BBP (or both?), the imported users did not have a role assigned to them. Make sure you check to see what role they are assigned and that it is what you want it to be.

    Of course, before you do anything you should backup your existing WP database, and probably your phpbb database as well just in case. Then, scrap the bbpress tables that you have in the current (broken) installation so the importer has a blank canvas to work with.

    You will also need to install the bbpress integration plugin in WP, which can be found here:

    https://wordpress.org/extend/plugins/bbpress-integration/#post-34

    This plugin will assign the default WP new subscriber role to users who register through bbpress. However, on my blog/forum I changed things around a bit so registrations for both WP and BBP are handled through the WP registration screen. I don’t know why, but I’m just more comfortable with it that way.

    I’m sure as time goes by more plugins from both sides will be developed which will allow for even tighter integration between WP and BBP.

    Good luck!

    #55878

    In reply to: links to forums broken

    bedbugger
    Participant

    I posted another comment here then decided it should be a new post :-)

    #49617

    In reply to: Emoticons For bbPress?

    citizenkeith
    Participant

    but I presume it still requires some knowledge. :P

    :D That’s why I posted here!

    #49616

    In reply to: Emoticons For bbPress?

    fel64
    Member

    Unfortunately you’ll need someone with some Javascript mojo to do that. It’s been done often enough before, but I presume it still requires some knowledge. :P

    #56249
    fel64
    Member

    Thanks for coming back and telling me :D

    #55577

    In reply to: User ID = 999999999?

    cweb
    Member

    Ok this worked for me, here’s how I actually reset the auto_increment counter.

    NOTE: If you’ve already integrated WP and bbpress and/or if you’ve already had a bunch of new users register, this wont be so easy for you. If however, you’ve performed a fresh installation and conversion then this will be simple.

    1. make sure one of my existing users in the normal ID range is a Key_Master (this is very important). For me, I made one of my users with ID =5 the Key Master.

    2. login with the new Key Master, and delete all the users who are registered with a number => 999999999. For me this wasn’t a problem because “admin” was the only user, I haven’t had any new user registrations. If you do have new users in the 1000000000 range you’ll need to reset their ID’s (I’m not a MySQL guy so I dunno how)

    3. Once all users in the ugly high number range are deleted, you can run the command to reset the counter on your *_users table, for me it was:

    ALTER TABLE bb_users AUTO_INCREMENT = 400

    I just added a few new users and they indeed started at ID 400.

    BTW, here’s the code in the phpbbtobbpress.php converter that sets this very high ID:

    //Let's clean up the trash.
    //Your admin user will be given the biggest possible ID (I tried the biggest BIGINT but it didn't work inside bbPress)
    //If you have more than 999999999 users on your forum, you may have problems... ;-)
    @mysql_query ("UPDATE " . $bbpress_tables['users'] . " SET ID=999999999 WHERE ID=1");
    @mysql_query ("UPDATE " . $bbpress_tables['usermeta'] . " SET user_id=999999999 WHERE user_id=1");
    @mysql_query("TRUNCATE TABLE " . $bbpress_tables['forums']);

    #49615

    In reply to: Emoticons For bbPress?

    citizenkeith
    Participant

    I’d love to have the emoticons available from a pop-up menu, that way you only load them when needed.

    Camino hates all the emoticons on my screen at once. :D

    #56248
    Vili
    Participant

    Brilliant! I didn’t know that global variables like this exist in PHP (I’m a hobbyist). Thanks a bunch!

    Btw, I had to change the declaration from

    global $forumpage = true;

    to

    global $forumpage;

    $forumpage = true;

    It gave me an error otherwise.

    #56193
    fel64
    Member

    The nice thing is you don’t actually need any of that. People can still read your posts if you don’t.

    But I know what you mean; a truly polished interface would be intuitively sensible. I’m not sure what you’re thinking of when you say a plugin to improve it beyond the Quicktags plugin? Obviously minor improvements are always possible, but can you think of a change to make it much easier?

    That’s not rhetorical :P

    #56247
    fel64
    Member

    I have no idea how the bb environment can be detected, but I think I know why your $forumpage hack didn’t work; the WP headers are in different files and such.

    When setting $forumpage, try something like this:

    global $forumpage = true;

    When checking if $forumpage is true, do it something like this:

    global $forumpage;
    if( $forumpage = true )
    {
    ...
    }

    If you tell PHP that you want the global variable $forumpage it should work.

    Not too confident about this, but that should tell PHP to make them global (ie. available everywhere). Otherwise you’ll probably be calling different variables called $forumpage.

    #56229
    fel64
    Member

    Hey Henry, unfortunately it isn’t working for me. Going to your forum and clicking on the Chinese tab gets me an error page in FF but not in IE7:

    The page isn't redirecting properly
    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
    * This problem can sometimes be caused by disabling or refusing to accept cookies.

    No idea why!

    #56192
    wittmania
    Member

    He does make a good point, though. Most people can’t/won’t figure out how to use html code in their posts. Heck, for many people who use my forum, the bbcode in phpbb was too difficult for them to figure out. It’s not that the people installing/administering BBP can’t figure out what they are doing (although his post does make me a little nervous about his ability to maintain a board), it’s the general public using the board that are likely to have trouble.

    The quicktags are nice, but you still have to know a little about opening/closing tags (and what they all mean) in order to use them appropriately. This is one area that I think many plugins will address as BBP becomes more popular and stable.

    #56168

    In reply to: Quote Plugin Weirdness

    fel64
    Member

    Bah, this is bb (and WP) trying to be clever. It’s annoying; they both mess with your code too much. >_< Although at least WP can handle nested blockquotes.

    #56138

    In reply to: Some links do not work

    fel64
    Member

    I’m surprised you have the page parameter at the end of URLs linking to topics, I never had that.

Viewing 25 results - 30,626 through 30,650 (of 32,491 total)
Skip to toolbar