I am pretty busy at the moment… and you are rather amazing at creating these plugins…
I was thinking that when generating the quoted text it would show up at the top of the textarea like this:
|
Quote:
so you really like ascii?
| that’s pretty cool
|
| Yeah, I love ascii… I’m a geek, afterall
When generating that quoted text, it would be necessary to find an existing quote within the post and remove that, so the quote of a post that quotes another post then would only have the actual post. (boy was that confusing) It should be simple enough to remove anything between
Then on display there should be a hook to find a pair of
and replace it with a div that we can then style correctly. By only allowing a pair then you would prevent breaking divs. If the post submitter screwed up the
Quote:
tags, then their post would just not make sense, but wouldn’t break the design of the page.
This is similar to the way invision does it, and it seems like a reasonable way to handle it.
Make sense?
Look again at this tonight I see all the magic would have to happen in “post-form.php” and unfortunately it would need a simple edit.
<textarea name="post_content" cols="50" rows="8" id="post_content" tabindex="3"></textarea>
would have to be edited to something like
<textarea name="post_content" cols="50" rows="8" id="post_content" tabindex="3"><? quote_post(); ?> </textarea>
Even though there is do_action( 'post_form_pre_post' ); just above it, there is no way to manipulate the textarea content without javascript. It’s a shame they didn’t think of that.
So quote_post() could just look for the added arg to the URL and insert the formatted quoted text in the textarea. Then a simple quote button on each post in the topic to trigger the new post.
ie.
?new=1"e_post=1873
If you don’t write it, I’ll take a shot at it.
Thanks for both your replies. I’d read that thread previously and my impression was that it is overly complex for what I’m trying to accomplish and was hoping for a much simpler way. I’d rather avoid having to “hack core files” as described and I want to be able to upgrade both WP and bbPress easily with changes only in my template files. I also don’t need the complex behavior of conditionally showing admin links, etc. since I just bookmark the admin page. And finally, as I mentioned, my PHP skills are non-existant at this point so not the kind of thing I am comfortable taking on right now.
fel64, currently I have my user tables and cookies integrated. I installed bbPress within the WP directory to get the easy integration described in the docs since I’m still pretty new to both. So far that seems to work great. I like your suggestion of just grabbing the HTML code for the WP login and making it look like the bbPress login. That would solve the login part of it. However, then I would need some conditional code to display different things if the user is logged in or not, similar to what the bbPress login form does. It displays the welcome and profile link if logged in, or login form if not. For new user registration I’d have to send them to the bbPress registration page because I want them to fill out profile info not available in the WP registration form since it only asks for username/pw. Then I think it would be kind of weird that the user clicks register from the home WP page and gets taken to the forums after they register. Probably have to do some special handling there to see where they came from and send them to the right place.
So…. hope you don’t mind the thinking outloud but after all that I’m wondering if it’s all worth the trouble given how unfamiliar I am with these systems. Maybe I’ll postpone this until future versions of bbPress make login integration much easier or there are plug-ins written for WP that can help. My initial thought was, why can’t I just call the login form code from bbPress from WP? Is this something that requires a deeper level of integration than what I have? I’m curious about this in general as it would be something I’d like to be able to do in the future.
Thanks!
Yes, I do have that add-on. I used it in creating nhsdesigns.com.
Again, I used a theme from elsewhere, so I will try to validate it when I get some extra time. 
Thanks!
Whaha i had some nice skins, 4 years ago, never took the time to cancel the .com
That plugin of mine is still so buggy (and not working) it proberbly caused the 2 launches of topicmeta. To be honest, if I told you what I wanted to create, you’d fix it in 1 day i guess. I still need to reverse engineer it, learn how stuff works and puzzle it togther. Working on it for 2 weeks now, no working results yet 


But I’ll get it right…. ever……
Oh that was immediately more helpful than anything else I’ve asked or you’ve answered. There is something really strange going on in that the code is being inserted twice. Some hook is firing twice when it should only be once. I have to investigate.
Er, What other plugins do you have running?
I see your bbmenu in there.
Can you try deactivating everything?
Also, post your post.php template in code tags here – are you positive it’s stock?
I think I know exactly what is happening but I don’t know why.
My plugin hooks topicmeta
add_action('topicmeta','bb_polls_pre_poll');
Topicmeta can only happen once on a topic page.
Somehow it’s firing more than once on your page.
Deactivate all other plugins for a minute just to make sure something doesn’t have a major bug.
Try this experimental fix which unhooks itself after the first execute to prevent a second run:
http://ckon.wordpress.com/files/2007/08/bb-polls.txt?v025
I doubt I will add lines/characters countdown meters anytime soon but will keep them in mind. The Polls plugin is my top priority for now as I don’t even allow signatures on my own sites.
I’ll look into the stylesheet bug though.
To see a signature somewhere else you’d have to call
echo add_signature_to_post('');
which might work but won’t apply other bbpress filters to it. It also needs to know the post and user id from $bb_post so if it’s outside the loop it won’t work at all.
I only worked on signatures for a day or two, it’s very very beta.
Null, I am testing using opera 9 on windows.
I am using 0.24 of the plugin on the bbpress trunk.
I am able to create a new poll & vote with no alerts.
There is no problem with the css layout.
Make sure you create a NEW poll for testing with 0.24
Wait I just thought of something.
Are you using a personal firewall like Norton?
They sometimes filter javascript in bad ways.
I am also starting to think that php 5 is doing something weird with the data escaping since you say you get it in all browsers. Unfortunately I do not have a php 5 server to test on.
Can anyone else reproduce what Null is reporting or does it work?
ps. you can turn off ajax if you want to test it normally by changing the “use_ajax” option near the top of the code. Set it to “false”.
pps. Null, is this off the site in your profile?
Can you create a poll for me to see off one of the pages so I can see the bug in action?
1. insert “quote” button on every post like my “report” button
2. don’t use javascript, use the arg add function and build a simple url for each quote button which references the source post id #
3. clicking said url button does a get from the server/bbpress
4. look for and capture the $_GET (ie. "epost=1327)
5. now the hard part, tell bbpress to start a new reply post in the topic and insert the formatted text from the quoted post. I have no clue how to pass bbpress existing text to a new post. Not even sure it has the action/filter to do it. I would bet not
Hmm You took away the brake between the option for single or multy votes? Shame
Ow and yes that caching in Opera is true, I always solve it to give it an unique time thingy to force Opera to reload instead of using cache.
Also I get this bug in Opera now:
You haven’t selected anything!
Well I DID select something
Can’t vote at all now, keeps saying that message!
Also the other issue with the standard template isn’t solved yet!
Ah I think I see the problem.
Unlike all the other browsers, Opera has taken it upon itself to cache the javascript request instead of actually fetching it each time (this is one way it cheats for speed).
Will add some code for a unique URL to force it to work.
okay, here you go, v0.24
http://ckon.wordpress.com/files/2007/08/bb-polls.txt?v024
should fix the issues with opera (and anything else caching)
I’ve also now added hidden near the top of the code a “test_mode”
If you change “test_mode” to “true” it will allow you do keep voting on any poll for testing purposes. You can switch back and forth to view/vote etc. Obviously change it back on a live site with members or people will be able to stuff the ballot box.
Keep in mind that previous poll data may have been made invalid by the bug in opera so start with a fresh poll. Do not keep re-using the old polls for testing with v0.24. I have not changed data structures but if the data got inserted wrong, it could be invalid for that topic.
(I’ll make a “delete poll” option soon for administrators.
The space it takes is trivial, so don’t worry about that)
I’m sorry if I just copy and paste what I said before but I’m not sure you saw. 
Then the somequote function finds the li where id is post-#, extracts the post text (this depends somewhat on the page HTML but should work) and puts it in the post box at the bottom. The somequotefunction can also use the DOM probably to take out blockquotes.
The key bit is that the function is only passed the post ID. It can get the post HTML perfectly simply itself with the getElementById method. And then remove the <blockquote> elements.
It doesn’t work for me
It is widening the whole table but I think the sproblem is tag <fieldset>. Removing this tag solved the problem.
Wasn’t aware of that one. I will look into it.
I’ve dropped it to the older escape routine.
Will just have to see if it works with non-english pages or not.
Is *anyone* else experiencing what Null is showing?
I cannot reproduce it.
v0.22 now adds ajax-ish voting so it’s almost entirely ajax except for the poll setup form which will take much more work than I am willing to do right now. (also cancel button added to poll setup)
http://ckon.wordpress.com/files/2007/08/bb-polls.txt?v022
It’s getting really good, ready for the the members to give it a go.
Can’t believe I didn’t have any code at all for this three days ago and its over 15k now with nearly 400 lines.
Now I need someone to come up with some pretty CSS styles.
Can you use $bbdb->escape() ? In future you could even use $bbdb->prepare() but I’m not sure how that one works.
Are your usertables integrated? If they are it shouldn’t matter what login form you use and your userdetails should be identical, a change in one system resulting in a change in the other. In that case you can simply but the WP login forms back and integrate cookies.
If they are not integrated and you don’t want to do so, a solution could be to load bbPress when you load WP [edit: but again unless you’re integrated you’ll have function name collisions so that’s not an option] and use the login_form() I believe it is template tag.
Or you could just look at what the bbP output login form is like, copy the HTML into wordpress and let users use that. No reason why that shouldn’t work. 
ganzua, that’s not all that helpful.
What I think you should do is use a bit of nifty javascript, like so:
<a href="" onclick="somequote( /* post_id */ ); return false;">Quote</a>
Then the somequote function finds the li with id post-#, extracts the post text (this depends somewhat on the page HTML but should work) and puts it in the post box at the bottom. The somequote function can also use the DOM probably to take out blockquotes. Quoting people isn’t something that needs bookmarking, at least not for my tastes, and reloading the page is annoying. But then quoting people is usually annoying anyway. You’re on a forum, why do you have to quote someone else’s post if other people can see it just above? Meh, personal preference
BOX help
:D:D:D:D can’t figure it out! Changed al $r into r1 etc mixed them did all variations, nothing worked. The foreach is wrong i guess…
we solved this issue in a previous thread, just make a search
Still not good here (also deactivated all other plugins):
http://www.sourceskins.com/pollbug2.gif
Also plz remove the capitals:
VOTE NOW -> Vote
SAVE POLL -> Save Poll
No need to shout 
I also miss a Cancel button when creating a poll
Any 1 can give me a wroking excample to activate a function on plugin activation and 1 on plugin deactivation?
I want to create a table on plugin activation. There is a hook, but don’t know how to use it
Hi everyone, I’m a bbPress newbie and have recently installed it along side my WordPress blog and followed the basic integration steps in the docs here. My WP blog is the home of my site and I have a link to the forums similar to this site after customizing the themes for both. I’ve removed the login/registration links from WP (anyone can comment) and users can log in from the bbPress login form if they’re at the forums.
What I’d like to have is that same bbPress login form show up in my WP page so that if users are logged in they get the welcome/view profile otherwise they can log in/register from anywhere on the site. I want all registration to happen through bbPress that way users aren’t confused by two login systems/profiles. I’ve been following alot of integration topics here and haven’t found one that answers this question for me so please let me know how this might be done or if it’s not a good idea for reasons I haven’t thought about.
Also, I don’t know any PHP but I can code in other languages. I’m not familar with any functions in bbPress or WP for that matter so hopefully this isn’t that involved but I’m definitely interested in learning. Just thought I’d give some heads up. 
Thanks in advance!
Ohhhhh
My test site has nothing but posts from me, no wonder I didn’t see it 
And to answer your question at the very top of this thread, I’m trying to use bbPress for a serious forum… I just opened my forum a little over a week ago. Not as much traffic as I’d like, of course, but decent.
Do you mean inside the edit profile page?
You’d need to reduce the <table width="100%">
but maybe also textarea style="width:90%;"
Are you using a custom template? Seems to work fine in the few templates I’ve tried.
If you still have trouble, post a screenshot image if you can.
I am now removing width="100%" from the new/next version.
I’ve been having problems to translate bbpress since I integrated the forum with wordpress.
In particular I’m having this error;
Fatal error: Cannot redeclare class CachedFileReader in
wampwwwwordpressbbpressbb-includesstreams.php on line 163
whenever I try to define a lenguage in config.php -> define(‘BBLANG’, ‘es_ES’);
I was suggested to redirect to wordpress mo file -> define(‘BBLANGDIR’, ‘../wp-includes/languages’);
and then editing this mo file with poedit.
Well, I’ve been messing with poedit but I didn’t change bbpress config.php yet or included any language file for bbpress anywhere.
I went to bbpress control panel to activate the new signature plugin and I find that a line of the menu (and just one line, the rest are still in english) is already translated to spanish, this one;
http://img213.imageshack.us/my.php?image=transyf3.jpg
I admit that I’ve been very busy and I even admit that a was drinking some beers this evening but, what the hell did I do? I can’t rember!. I’ve been unsuccesfully trying to translate bbpress for a month and now bbpress started to translate all by itself?