Search Results for 'code'
-
AuthorSearch Results
-
April 8, 2009 at 9:47 am #65710
In reply to: Intergrating the theme
zeronix
MemberIs there a wayy to get this Tool you talked about in your Tutorial?
I´d also love to integrate my WP theme to my forum but the link you posted is down

PS:
I run WPmu and the latest bbPress release
I hope this tool will work with it (if you could send me).
Best regards, Sebastian
April 8, 2009 at 8:17 am #72924In reply to: Remove Forum Dashes: —
Tecca
ParticipantFrom ctsttom:
Can we see your front-page.php code as its possibly part of the html as mine uses a different template and it only has one dash.
<?php bb_get_header(); ?>
<?php if ( $forums ) : ?>
<div id="contentleft">
<div id="login">
<?php login_form(); ?>
</div>
<h2><?php _e('Forums'); ?></h2>
<table id="forumlist">
<tr>
<th><?php _e('Forum Categories'); ?></th>
<th><?php _e('Topics'); ?></th>
<th><?php _e('Posts'); ?></th>
</tr>
<?php foreach ( $forums as $forum ) : ?>
<tr<?php alt_class('forum'); ?>>
<td><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a> — <small><?php forum_description(' '); ?></small></td>
<td class="num"><?php forum_topics(); ?></td>
<td class="num"><?php forum_posts(); ?></td>
</tr>
<?php endforeach; ?>
</table>
<?php if ( $bb_current_user->ID ) : ?>
<?php endif; else : // $forums ?>
<div id="contentleft">
<h3 class="bbcrumb"><a href="<?php bb_option('uri'); ?>"><?php bb_option('name'); ?></a></h3>
<?php post_form(); ?>
<?php endif; ?></div>
<div id="discussions">
<?php if ( $topics || $super_stickies ) : ?>
<h2><?php _e('Latest Discussions'); ?></h2>
<table id="latest">
<tr>
<th><?php _e('Topic'); ?> — <?php new_topic(); ?></th>
<th><?php _e('Posts'); ?></th>
<th><?php _e('Last Poster'); ?></th>
<th><?php _e('Freshness'); ?></th>
</tr>
<?php if ( $super_stickies ) : foreach ( $super_stickies as $topic ) : ?>
<tr<?php topic_class(); ?>>
<td><?php _e('Sticky:'); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big></td>
<td class="num"><?php topic_posts(); ?></td>
<td class="num"><?php topic_last_poster(); ?></td>
<td class="num"><small><?php topic_time(); ?></small></td>
</tr>
<?php endforeach; endif; ?>
<?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
<tr<?php topic_class(); ?>>
<td><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td>
<td class="num"><?php topic_posts(); ?></td>
<td class="num"><?php topic_last_poster(); ?></td>
<td class="num"><small><?php topic_time(); ?></small></td>
</tr>
<?php endforeach; endif; ?>
</table>
<?php endif; ?>
<div id="search">
<?php search_form( $q ); ?>
</div>
<br />
<img src="http://teccahigh.com/wp-content/themes/revolution/images/divide.png"><br />
<h2>Members Online</h2>
<small>Online now:
<?php do_action('members_online_now',''); ?></small><br />
<small>Online today:
<?php do_action('members_online_today',''); ?></small>
</div>
<?php include 'sidebar.php'; ?>
<div style="clear:both;"></div>
<?php bb_get_footer(); ?>April 8, 2009 at 12:06 am #72900In reply to: *Lost* Admin Username
Ipstenu (Mika Epstein)
ModeratorExtrapolating from this may help: https://codex.wordpress.org/Resetting_Your_Password#Through_phpMyAdmin
April 7, 2009 at 11:51 pm #72923In reply to: Remove Forum Dashes: —
Ipstenu (Mika Epstein)
ModeratorIt’s in here bb-includes/functions.bb-template.php (line 680):
function forum_description( $args = null ) {
if ( is_numeric($args) )
$args = array( 'id' => $args );
elseif ( $args && is_string($args) && false === strpos($args, '=') )
$args = array( 'before' => $args );
$defaults = array( 'id' => 0, 'before' => ' – ', 'after' => '' );
$args = wp_parse_args( $args, $defaults );
if ( $desc = apply_filters( 'forum_description', get_forum_description( $args['id'] ), $args['id'], $args ) )
echo $args['before'] . $desc . $args['after'];
}So you could probably whip up some function to override it.
You both have one dash, most likely, but different fonts
April 7, 2009 at 11:20 pm #72879In reply to: Adding to the allowed tags in KSES
Tom Lynch
ParticipantI know chrishajer but the bbvideo plugin is crap because people like and are used to putting in the embed code, my users are tech savie just not used to the restrictiveness, can I disable filtering for all attributes of the embed, object, img, and param tags?
April 7, 2009 at 10:45 pm #72921In reply to: Remove Forum Dashes: —
Tom Lynch
ParticipantCan we see your front-page.php code as its possibly part of the html as mine uses a different template and it only has one dash.
April 7, 2009 at 7:22 pm #5144Topic: Remove Forum Dashes: —
in forum ThemesTecca
ParticipantHey,
I’m trying to figure out how I can remove those dashes that separate the ‘Forum Name’ and its ‘Description.’
Here’s an image to show what I’m trying to say: http://teccahigh.com/images/uploads/forum22.png
Where it says “News, Updates, and Announcements —” I’d like to get rid of that dash in there. I have tried going into front-page.php and changing this:
<?php forum_description();To this:
<?php forum_description(' ');Which actually did work, but it removed a different dash (there used to be two dashes which looked like: — –
It removed the small one, but now I can’t figure out how to remove the other one.
April 7, 2009 at 4:46 pm #72918In reply to: Agitainment.Comics Forum
agitainment
MemberThanks, _ck_. I appreciate the feedback.
By the way, I’m running several of your plugins, including Human Test, bbCode, Subscribe to Topic and more.
For anyone wanting to extend your bbPress site, I suggest looking first at _ck_’s plugins under the Extend tab. Really great stuff.
April 7, 2009 at 3:00 am #72913In 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.
-
AuthorSearch Results