Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 30,576 through 30,600 (of 32,432 total)
  • Author
    Search Results
  • #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.

    #56191
    fel64
    Member

    I’d have to read the forums, once again, to figure out what you mean.

    Or you could just ask us here. :) A large part of these forums is just for help making it work. You’d be happier with bbPress in the long run.

    The markup thing for example is quite simple; I struggled with it initially but a random guess worked out, and the quicktags certainly help. Any text between two backticks (on a European/English keyboard, the button just above tab) will be rendered as code. The ‘markup’ thing refers to HTML, so to make that work you do this:

    <em> makes your text italic </em>

    <br />
    like so will create a single new line.

    <ul> or <ol> will create a ‘list’ structure. Simply put <li> and </li> around each seperate list element. End the list by putting </ul> or </ol>.

    To create links, you do this: <a href="www.example.com/linklocation">link text</a>.

    #1644
    crosinski
    Member

    I admire the idea of bbpress … I really do. After several hours of work, I’ve finally got a forum up and running on my site. There is so much more work to be done to make it usable for my visitors, though, that I just don’t think I can do it. Every installation has been a struggle for me. I don’t know php. The config file took me an entire day to get right. Each and every plugin I installed required further tinkering.

    Here’s a small example that represents my large frustration:

    Allowed markup: a blockquote br code em strong ul ol li.

    Put code in between backticks.

    That’s not enough information for me. I can’t make that work. I’d have to read the forums, once again, to figure out what you mean. And I’m just too exhausted to do that, so I’m going to install another forum for now.

    I’ll keep checking back to see the improvements that you make and, when you get everything worked out and as easy to use as WordPress, I’ll try again.

    But, for now, installing bbpress requires too large a learning curve for me.

    Good luck and carry on,

    C.R. the Exhausted

    #56166

    In reply to: Quote Plugin Weirdness

    Null
    Member

    That is the problem with this plugin, it uses blockquotes. I suggest the plugin builder uses <quote></quote> for this (some users want to use the quoteblocks and also want to quote stuff.

    But yourproblem (Keith) is that bbpress can’t handel nested blockquotes (I think)

    #1643

    Topic: Numbered Posts

    in forum Themes
    citizenkeith
    Participant

    I’d like to have the post number shown for each post. I’m hoping that bbPress already has this functionality, and I would need to do is insert some code into my template. Or do I need a plugin?

    #1642
    citizenkeith
    Participant

    I’m running bbPress 0.8.1 with the Fix bbPress Plugin. I installed Michael Nolan’s Quote plugin, version 0.2.

    It works fine if you quote simple post. But when you quote a post that already has a quote in it, things get weird. This is what my edit box looks like when I do that:

    <blockquote></blockquote>
    <blockquote>
    This is text that was quoted in the post that I am quoting.

    </blockquote>
    This is the text that I am quoting directly.

    It looks as though the plugin doesn’t like nested blockquotes.

    My forum is here:

    http://www.citizenkeith.com/forums/

    #56134

    In reply to: Some links do not work

    fel64
    Member

    Okay, so turn off pretty links and take that out from your .htaccess file so we can find out if that’s the problem. :)

    #56158
    fel64
    Member

    Yo.

    Open your folder containing all your bbPress stuff, including the config.php file. Make a new folder and call it my-templates, if it doesn’t exist yet! Open my-templates and make another new folder, and call it anything you like. This folder will house your forum’s theme.

    Now go back to the main bb folder, and open bb-templates > kakumei. Copy the style.css file into the folder you created a minute ago.

    Open style.css, and look for this (it’s right at the top):

    body {
    margin-bottom: 50px;
    background: #fff;
    font: 62.5% 'Trebuchet MS', 'Lucida Grande', Verdana, Tahoma, Arial;
    }

    Those are the fonts that will be used, in order from left to right (if someone doesn’t have, for example, Trebuchet MS they’ll then try to use Lucida Grande). The font they use here is Georgia.

    Change that part to:

    body {
    margin-bottom: 50px;
    background: #fff;
    font: 62.5% Georgia, 'Times New Roman', Times, serif;
    }

    Save it and put the my-templates folder and everything in it on your server in the main bb folder.

    Now, open your forums, go to the admin panel, go to Presentation, and click on your theme’s name. Your forum should look the same as before, but with the new font. :)

    #56161
    boomanfloral
    Member

    Thanks! I did it!! :) So happy.

    Is there a place where I can donate $?

    #56160
    Trent Adams
    Member

    It is done through CSS and blockquote. We don’t have it in the stylesheet here in these forums, but can be done easily. The image for the quote is here. Just download a copy of it to put in on your server. The CSS for that particular one would then be:

    .post blockquote {background: url('/path-to-your-image/quote.gif') no-repeat;margin-left: 175px;padding:5px;border:1px solid #a3a3a3;}

    Trent

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