Search Results for 'code'
-
AuthorSearch Results
-
April 6, 2009 at 12:45 am #72878
In reply to: Adding to the allowed tags in KSES
chrishajer
ParticipantThis allows the admin to post anything: maybe looking at it would be useful:
https://bbpress.org/plugins/topic/admin-can-post-anything/
Also, if you’re just interested in allowing video, this works fine:
http://www.naden.de/blog/bbvideo-bbpress-video-plugin
Users don’t even need to paste the embed code, just the URL to the video.
April 5, 2009 at 10:54 pm #5132Topic: Adding to the allowed tags in KSES
in forum PluginsTom Lynch
ParticipantI would like to make a plugin which allows more than just img tags, I want to let people paste youtube embed code in etc.. but still block javascripts, form tags, iframes and meta’s for example, I looked about but theres no instruction, I looked at how allow images works but while it made sense that plugin doesnt work on bbpress 1.0 a6 so its pointless.
April 5, 2009 at 10:20 pm #69390Filipe Deschamps
MemberHey guys! I can’t make $result->topic_poster_name work in my 0.9.0.4 instalation.
Is this the right function for this version?
// REPLIES
$query_replies="SELECT * FROM bb_posts WHERE topic_id=$topic_id AND post_id != $first_reply_id AND post_status=0 ORDER BY post_time DESC";
$results_replies=$wpdb->get_results($query_replies);
$replies_text = "";
foreach ($results_replies as $result) {
echo $result->post_text;
echo $result->topic_poster_name;
}
The post_text works perfectly, but the poster_name returns me nothing. Any idea?
April 5, 2009 at 10:11 pm #5131Topic: Losing keymaster when mereging bbP into WP
in forum Troubleshootinggoken50
MemberSo I’ve been digging all through the forums here and I can’t seem to find anything that will work (most threads on the subject are years old)
Anyway, I got everything worked out properly and set the permission translation to give both Editors and Admins in WP Keymaster access.
This isn’t working for whatever reason. I am able to log into bbPress with the account created through WP and set to the proper rights, but it doesn’t give me keymaster access.
Any thoughts before I continue with the next reinstall?

Thanks in advance!
April 5, 2009 at 7:17 pm #72849chrishajer
Participant25 Resources to Get You Started with PHP from Scratch:
http://nettuts.com/articles/web-roundups/25-resources-to-get-you-started-with-php-from-scratch/
April 5, 2009 at 3:58 pm #72870In reply to: bbpress dont Suport arabic names in registration
johnhiler
MemberAccording to Sam, bbPress supports unicode display names, not unicode usernames:
https://bbpress.org/forums/topic/check-out-this-very-nice-r-t-l-arabic-bbpress
There are some discussions over possible plugins solutions (and related security risks!) here:
* https://bbpress.org/forums/topic/diacritic-letters-i-username-like-goran
April 5, 2009 at 3:54 pm #72848adammann33
MemberThanks CK! Yeah — I’ve not done any html either, but I’m less intimidated about getting in there and cut and pasting and what not, which I’ve done as it is more intuitive. Heh, so maybe I need an html for dummies too! I don’t want to be one of those guys who doesn’t want to get his hands dirty! So thanks for the tips — I’ll check out those sites you referenced.
April 5, 2009 at 3:14 pm #72795In reply to: Display bbpress on wordpress page (inside the blog)
Ipstenu (Mika Epstein)
ModeratorIpstenu made some great points, to show you the thoughts of someone with a different perspective. While you might not see his point of view, he was kind enough to lay out his view point for you.
As much as Ipstenu and _ck_ are making generalisations, so are you. You have no proof that “the majority” want what you want. You keep using the phrase “the majority” to back up your points, and while i mostly agree with your premise, i’m not overly confident that randomly adding in your guess on how many people might possibly maybe agree with you is helpful.
She … but that’s okay.
And of course I’m making generalizations. You kind of have to when the samples to draw from (bbPress users) are small, and the ideas are in-progress/developing as we speak

Silver-bullet means a magic cure all that does everything you (and by you I mean the individual) wants.
Mine is different from yours and everyone elses. So yeah, I’d rather see bbPress built with the flexibility to fit everyone. And that does mean something for the folks who want full-integration. But what we have today isn’t it. And based on what’s been posted before, I suspect it won’t be unless someone makes a plugin that does it.
As for being wrong about integration… I was incorrect, in part, but I was correct in what I meant. Didn’t say what I meant, which is soooo my bad. Can I blame being sick? Anyway, if you read https://bbpress.org/documentation/integration-with-wordpress/ it mentions functions (ie DEEP integration) as being both optional and not suggested. Which is what I meant. People ask about it, and the direction is right there. Now I will totally admit that ‘function’ doesn’t mean ‘theme integration’ and that is confusing to the newbies. So yes, the info in there makes sense, but it’s vague if you’re not really sunk into this already
April 5, 2009 at 10:19 am #5126Topic: bbpress dont Suport arabic names in registration
in forum Installationmobd3box
MemberHelleo , Why bbpress dont Suport arabic names in registration
?
April 5, 2009 at 6:35 am #72836In reply to: something happening on TalkPress.com
John James Jacoby
KeymasterFlies only live for 15 days; females for 26 if they’re lucky. We probably want people to stick around for a little longer…

Opinion: What *Press needs is some visual and code consistency to re-align everything back to the basics of what made WordPress awesome in the first place.
Opinion: Right now all the automattic apps look and feel like totally different programs, but lets be honest… On the surface, bbPress is basically WordPress without topics being able to have multiple categories; On the surface, BuddyPress is basically the user-profile area that phpBB has had for 6 years but arranged to tap into the MU way of thinking. Under the surface the code and the methods are totally different, but the end result is pretty close to existing webware.
Opinion: The only thing left for automattic to do is a shopping cart, which we can take a bunch of osCommerce experience from and apply to WordPress methods pretty easily if automattic ever wants to venture into the e-commerce market.
Opinion: From a developers perspective, trying to keep up with and remember all of the WordPress, WordPressMU, BuddyPress, and bbPress classes and functions and ‘isms is getting really, really hard…
Defense: PLEASE don’t get me wrong… It’s also exhilarating, exciting, totally 150% fun, and I wouldn’t trade it for the world, but holy crap lets sit back and look and say that there a whole meta ton of a lot going on lately…
Matt, do you have an ulcer by now? Because I think I might... Ha!
Defense: And hopefully I haven’t made myself out to be a total ass here; I hope that TalkPress helps to accelerate the .org thought process behind integrating both the user portion and the template portion of these awesome apps together in a more transparent way… Including my TalkPress.com forum into my WordPress.com blog would be pretty killer.

Round Up: With BuddyPress 1.0 on the horizon, bringing the social networking abilities that people usually make plugins for WordPress and bbPress to emulate, *Press automatic applications really do stand to evolutionize the way that people use the internet in a major way…
Summary: I for one am totally pumped to see what TalkPress looks like and works like… When a new version of *press comes out, it’s like Christmas morning to me and I download it and poke my head around the new code and find all the cool new little additions…
Please don’t hit me for my long winded and slightly off topic response. Probably wouldn’t expect anything less from me now would you?
April 4, 2009 at 3:47 pm #69727In reply to: phpbb3 -> bbpress converter
chrishajer
ParticipantAre you using bb_ as your bbPress table prefix? Maybe the bb_ table prefix is hard coded and it does not match up with your installation.
April 4, 2009 at 3:30 pm #69387swaymedia
Membercan you please just do a step by step tutorial, it is really hard to follow and i dont know which piece of code goes where.
April 4, 2009 at 12:49 pm #72847_ck_
ParticipantYikes. Well I guess that is one way. Books are great but nothing beats hands-on.
Funny thing is I’ve never read a book about PHP or MySQL
I learned through reading other people’s code and trial and error and reading php.net and mysql.com
Not knowing how to make a link from one page to another though is a more fundamental problem, it means you don’t know HTML either?
A link to your front page looks like this:
<a href="http://herbalremedyforum.com/">main site</a>However in your case, your theme already has a section for a nice menu at the top.
It looks like the theme author was clever enough to put in a way to modify it.
Save this as a file called
_my-custom-menu.phphttp://pastebin.com/pastebin.php?dl=f4d77734c
and upload it into the bbpress
my-pluginsdirectory. If you don’t have such a directory, make one (just like thebb-pluginsthat’s already there)Alternately you could edit
functions.phpin yourgenealogiastheme folder around line 102function gs_navigation_menu() {
$links = array();
$links[] = sprintf('<a href="%s">%s</a>', bb_get_option('uri'), __('Front Page', 'genealogies'));
$links[] = sprintf('<a href="%s">%s</a>', bb_get_tag_page_link(), __('Tags'));
$links[]='<a href="http://herbalremedyforum.com/">main site</a>';
printf('<ul class="primary xoxo"><li>%s</li></ul>', implode('</li><li>', apply_filters('gs_navigation_menu', $links)));
}April 4, 2009 at 7:59 am #69386_ck_
Participantedlvg you want something like
echo "Posted by $result->topic_poster_name";I just realized I completely missed explaining how to get forum names via WordPress, I was telling people to use bbPress functions which is of course impossible from WordPress. Let me know if anyone still needs the help.
April 4, 2009 at 5:20 am #70340In reply to: Basic integration screencast
Filipe Deschamps
MemberPerfect video, couldn’t do the integration with out it.
Just 1 minor problem:
– I’m using wordpress 2.6.5 (I think) with bbPress 1.0-Alpha-6. I could fully integrate the logins, but not the Admin panel.
There’s that plugin (showed over the last minutes off the video) to make possible login at WordPress and get access to the Admin panel. Unfortunately, it sais that you need to use at least WP 2.7 for it to work.
Well, I actually tried to install and activate it in my WP 2.6, it worked and generated me the “define(‘COOKIEPATH’, ‘/’);” code.
But in the end, it doesnt work like expected. Probably because of the 2.7 minimum requirement.
Is there any solution to make this work out? I just need this last step working to keep it 100% integrated.
Best regards.
April 4, 2009 at 4:39 am #69385edlvg
MemberHello, so how’s the code if we’d like to add posteb by… in …
I get the topic and forums list but’d like to show the author.
Tried the codes at the beginning but doesnt seem to work, fatal errors :S
thanks in advance
ernesto
April 4, 2009 at 12:09 am #72794In reply to: Display bbpress on wordpress page (inside the blog)
adeboy
Member@swaymedia – you make a php page in the bb template folder and put that code in, you get the topics which you can loop through as normal.
@chrishajer – sure, the full bbpress forum is not in an iframe in a WP page, just the recent posts, although i just realised for something else that a micro bbpress forum in an iframe/widget could be very interesting
April 3, 2009 at 10:42 pm #72791In reply to: Display bbpress on wordpress page (inside the blog)
swaymedia
Memberwhere would you put the code:
require_once('../../bb-load.php');
$topics = get_latest_topics( );edit: @kevinjohn: i wont read all of that but “thumbs up”
April 3, 2009 at 10:40 pm #72790In reply to: Display bbpress on wordpress page (inside the blog)
kevinjohngallagher
MemberSwaymedia,
Ipstenu made some great points, to show you the thoughts of someone with a different perspective. While you might not see his point of view, he was kind enough to lay out his view point for you.
As much as Ipstenu and _ck_ are making generalisations, so are you. You have no proof that “the majority” want what you want. You keep using the phrase “the majority” to back up your points, and while i mostly agree with your premise, i’m not overly confident that randomly adding in your guess on how many people might possibly maybe agree with you is helpful.
“the majority” is the same as “deep integration will crush a shared server if you get a surge in visitors”, there’s not facts or figures, just someone’s massive assumption, laid out to attempt to prove a point.
Ipstenu is wrong about integration not being mentioned on this site, it’s on the homepage (https://bbpress.org/), the about page (https://bbpress.org/about/features/) and on the documentation page (https://bbpress.org/documentation/integration-with-wordpress/) and this is what confuses people who are new to BBpress. But, every time someone mentions it, it’s shot down.
And yes, while using an iFrame is a hack, hacks are far from uncommon in the web industry, let alone wordpress or BBpress. Making things work has always been the way websites have been built, and while i understand and support your desire for a different method, there’s very little need for the ‘OMG’ simply because you dont like the solution presented (not to mention, i think very few 13 year old girls read this website so wont be too impressed ;-] ).
There’s loads of things wrong with BBpress, and many are trying to work to make it better. Getting up tight becuase you dont like a solution or because you want others to code a better one for you isn’t going to make BBpress a better fit for you. Take a deep breath my friend.
Kevinjohn
p.s. And if you were using an iFrame back in 1995 then my hats off to you, as Microsoft didn’t invent them until 2 years in later, so kudos for driving that delorian up to 88 miles an hour and going back in time to work as a microsoft dev in building IE 4.
===============================================================
_ck_: “If you don’t know what I know about bbPress it just means you are lazier than me”
April 3, 2009 at 10:37 pm #72789In reply to: Display bbpress on wordpress page (inside the blog)
adeboy
Member@chrishajer – Its not quite ready for primetime but you just make a very basic page with the bb-load.php include and then you can get the latest topics/comments and create some links. You need some simple css in the page to match your site styling for the links and target the top frame in the links
require_once('../../bb-load.php');
$topics = get_latest_topics( );Your homepage might have adverts, widgets, maps etc which will often load in an iframe, as well as images, so the latest topics appear as part of the page build up.
One day i might get round to proper integration but until then, it works fine
@swaymedia – grow up
April 3, 2009 at 9:17 pm #71913In reply to: Last logged / Not logged in for
_ck_
ParticipantHey I made this today just for you

https://bbpress.org/plugins/topic/members-online/
(well, I’ve been meaning to make it since my Mini-Track is broken)
I’ll make some custom views for it over the weekend to show who is most active or least active. It will be easy now because the last time is tracked in their metadata.
April 3, 2009 at 7:40 pm #72846adammann33
MemberSo . . . I just got on amazon and bought three books on php and mysql. Hopefully soon I’ll be one of the cool kids! Thanks for the help!
April 3, 2009 at 3:15 pm #72845_ck_
ParticipantAny template editing guide for WordPress should still be helpful for bbPress.
The header and footer parts are somewhat similar, just some slightly different names inside.
You are also going to need to change that link on your WordPress side for the forums to the proper link but that might be tricky since it’s not an internal wordpress page.
April 3, 2009 at 3:10 pm #72784In reply to: Display bbpress on wordpress page (inside the blog)
Ipstenu (Mika Epstein)
ModeratorAh. Yes, but no. Read https://bbpress.org/about/
bbPress is a simple forum software. Full stop. The fact that it integrates better with WP than other forums is … a bonus. In fact, none of the about pages mention wordpress except in that WP was the reason for tBB to be made.
The reason people come to BBPress is becuase of the intergration possibilities
Yes, most likely this is true. Heaven’s knows it was for me!
limiting the deep integration is the most Counter-Intuitive thing against its own selling point
Except it’s not a selling point. If it was, I’d agree with you, but it’s clearly not. Even in the documentation on how to to shallow and deep integration, it suggests not doing it because of load and overhead and other things.
I have no need for deep integration and I never will. I use four totally separate tools for my website: MediaWiki, bbPress, WordPress and Gallery2. ONLY WP and BB are integrated and even then, it’s just users so people can comment and post. I could, if I wanted, integrate WP+BB+MW, but even then I’d just want logins.
Why? Because while I want the site to look the same on each one, each tool I use is slightly different and needs customization. I feel that I can give my users a BETTER level of cross-tool integration if I take the time to customize each of my tools to that it is consistent with my site design AND consistent with the intended use of the tool itself. And I’m not the only person who thinks that way.
Some people want a silver bullet, a tool that does it all. Some people want the right tool for the right job and will customize as needed. Neither is right or wrong, it’s just preference.
By keeping bbPress NOT deep-integrated with WordPress, bbPress leaves itself open to be integrated with any other application, or not. It allows itself to be customized based on the needs of the client. And that is, in my opinion, a fantastic selling point
April 3, 2009 at 2:58 pm #72844adammann33
MemberThanks for the fast replies!
Could you guys point me to a kind of Editing “PHP Stuff For Dummies” — I’m embarrassed to say that I really don’t even know what all that code is in those files — what language it is and all that. I mean I’ve been a pretty savvy user of all manner of software for years but never gotten under the hood. But I’m willing to attack that steep learning curve because I dig it! Where do I start?
-
AuthorSearch Results