Search Results for 'code'
-
AuthorSearch Results
-
March 29, 2007 at 5:59 am #53813
In reply to: Latest Disscussions Plugin
drcmanx
MemberI’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 showuploaded 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 LIMITi 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.
March 28, 2007 at 10:21 pm #56254In reply to: importing bb_users into wp_users
wittmania
MemberAs 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.
March 28, 2007 at 9:59 pm #56253In reply to: importing bb_users into wp_users
cweb
MemberThank 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?
March 28, 2007 at 9:32 pm #56252In reply to: importing bb_users into wp_users
wittmania
MemberI 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 existingwp_tables instead of in newbb_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!
March 28, 2007 at 9:24 pm #55878In reply to: links to forums broken
bedbugger
ParticipantI posted another comment here then decided it should be a new post
March 28, 2007 at 8:48 pm #49617In reply to: Emoticons For bbPress?
citizenkeith
Participantbut I presume it still requires some knowledge.

That’s why I posted here!
March 28, 2007 at 8:23 pm #49616In reply to: Emoticons For bbPress?
fel64
MemberUnfortunately 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.
March 28, 2007 at 8:21 pm #56249In reply to: Getting bbPress and WordPress to talk to each other
fel64
MemberThanks for coming back and telling me
March 28, 2007 at 8:16 pm #55577In reply to: User ID = 999999999?
cweb
MemberOk 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 = 400I 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']);March 28, 2007 at 7:47 pm #49615In reply to: Emoticons For bbPress?
citizenkeith
ParticipantI’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.
March 28, 2007 at 7:18 pm #56248In reply to: Getting bbPress and WordPress to talk to each other
Vili
ParticipantBrilliant! 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.
March 28, 2007 at 7:12 pm #56193In reply to: Learning Curve Too Large
fel64
MemberThe 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
March 28, 2007 at 7:09 pm #56247In reply to: Getting bbPress and WordPress to talk to each other
fel64
MemberI 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.
March 28, 2007 at 7:03 pm #56229In reply to: The Chinese tags will be wrong
fel64
MemberHey 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!
March 28, 2007 at 6:32 pm #56192In reply to: Learning Curve Too Large
wittmania
MemberHe 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.
March 28, 2007 at 4:33 pm #56168In reply to: Quote Plugin Weirdness
fel64
MemberBah, 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.
March 28, 2007 at 4:31 pm #56138In reply to: Some links do not work
fel64
MemberI’m surprised you have the
pageparameter at the end of URLs linking to topics, I never had that.March 28, 2007 at 4:29 pm #56191In reply to: Learning Curve Too Large
fel64
MemberI’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>.March 28, 2007 at 2:15 pm #1644Topic: Learning Curve Too Large
in forum Requests & Feedbackcrosinski
MemberI 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
March 28, 2007 at 1:24 pm #56166In reply to: Quote Plugin Weirdness
Null
MemberThat 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)
March 28, 2007 at 12:57 pm #1643Topic: Numbered Posts
in forum Themescitizenkeith
ParticipantI’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?
March 28, 2007 at 12:18 pm #1642Topic: Quote Plugin Weirdness
in forum Pluginscitizenkeith
ParticipantI’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:
March 28, 2007 at 9:05 am #56134In reply to: Some links do not work
fel64
MemberOkay, so turn off pretty links and take that out from your .htaccess file so we can find out if that’s the problem.
March 28, 2007 at 9:02 am #56158In reply to: I want to change the font
fel64
MemberYo.
Open your folder containing all your bbPress stuff, including the
config.phpfile. Make a new folder and call itmy-templates, if it doesn’t exist yet! Openmy-templatesand 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 thestyle.cssfile 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-templatesfolder 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.
March 28, 2007 at 3:13 am #56161In reply to: What plugin makes this?
boomanfloral
MemberThanks! I did it!!
So happy. Is there a place where I can donate $?
-
AuthorSearch Results