Search Results for 'code'
-
AuthorSearch Results
-
April 7, 2009 at 3:00 am #72913
In reply to: bb-post.php: how to define name=”_wpnonce” of input
Filipe Deschamps
MemberFinally figure it out.
It’s the bb_create_nonce();
It’s like an MD5 hash, formed by “create-post_” + “topic_id”
for example:
<input type="hidden" name="_wpnonce" value="<?=bb_create_nonce('create-post_3');?>"With this, you can create replies (posts) within the topic with id 3.
Best regards.
April 7, 2009 at 2:28 am #72911In reply to: bb-post.php: how to define name=”_wpnonce” of input
Ipstenu (Mika Epstein)
Moderator2. https://codex.wordpress.org/Function_Reference/wp_nonce_field
Don’t worry about the nonce field, it’s just for WP side and doesn’t translate, as of yet, to BB.
3. I think it’s just the internal http referrer, but I could be wrong.
April 6, 2009 at 9:56 pm #72598In reply to: Mazcue.com.ar (WP + BBpress)
Fernando Tellado
ParticipantFelicidades, estupenda integración, ya me gustaría a mi hacer algo así

In english: congratulations, very nice integration, I would like to do something similar
April 6, 2009 at 5:22 pm #68051In reply to: Here’s how to install Avatar Upload plugin
bobruffolo
MemberIt’s still not working for me
April 6, 2009 at 12:58 pm #72891In reply to: Registrations and Spam.
_ck_
ParticipantYou really get that many humans registering to spam on a smaller site?
One solution I use on a large site is to prevent any post with more than 2 urls.
Spammers typically cannot help but be morons and post several urls at once, normal humans rarely post more then two per post, and then not every post.
Not sending a password would be fairly easy by hacking the core, I’d have to look at it more carefully to see if it can be done via plugin without hacks. I believe it’s done in
pluggable.phpwhich means it’s replaceable, so that’s good.Another method would be to use my Instant Password but NOT do the final step of logging them in and activating the account, but instead store a scrambled password and log the request, then manually authorizing it which would drop their chosen password hash into place. The important/hard part is not letting them request a new password to activate the account.
This might also be worth a shot but not sure if it’s useful against humans unless they work from the same IP pool:
https://bbpress.org/forums/topic/new-stop-forum-spam-api-plugin-block-fake-user-registrations
April 6, 2009 at 1:15 am #72877In reply to: Losing keymaster when mereging bbP into WP
goken50
MemberThanks! Fix admin access would have worked.. I eventually worked it down to just going into phpmyadmin and setting a user to have admin bb abilities. Wish that went smoother, but good to figure out
April 6, 2009 at 12:45 am #72878In 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”
-
AuthorSearch Results