Search Results for 'code'
-
AuthorSearch Results
-
March 27, 2009 at 12:16 am #72673
In reply to: when will bbpress support i18n usernames?
_ck_
ParticipantThere is a mini-plugin for i18n usersnames.
https://bbpress.org/forums/topic/diacritic-letters-i-username-like-goran#post-14205
But there are fundamental flaws in how bbPress uses usernames and unicode characters might interfere with proper operation.
I also don’t see any real attempt to sanitize in there, so there might be security risks.
March 26, 2009 at 8:47 am #72672In reply to: when will bbpress support i18n usernames?
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
Not sure about future versions, but it sounds like version 1 isn’t gonna support unicode usernames…
March 26, 2009 at 7:40 am #5065Topic: Google Summer of Code 2009
in forum Requests & Feedbackchrishajer
ParticipantSam Bauers listed as a mentor here:
http://codex.wordpress.org/GSoC2009#Community.2FEvent_Organizing_Framework
March 26, 2009 at 6:36 am #72657In reply to: Tag filtering plugin
_ck_
ParticipantThere is no such plugin or ability yet (or any expression of need for such an ability).
If you know how to code in PHP you might look at the experimental tag filter I made inside of the Hidden-Forums plugin to see how such a query would be done. You could then use the query to create a custom view for the topic results.
March 26, 2009 at 2:55 am #71933In reply to: Instant Password
pierrottorreip
MemberHey _ck_,
Well I threw both files into diffmerge. The ‘do_action and apply_filter’ code is there. My file was missing ‘php echo $key’ – but I really don’t know if that matters or not.
I think I might give it a while and see how it goes without the plugin. If I find I can’t live without it I may be back!
BTW, I spent some time on your site last night. The top 100 list was very interesting and inspiring!
Thanks for the hard work!
March 25, 2009 at 5:34 pm #72647In reply to: Upgraded to 0.9.0.4, can’t login
bedbugger
ParticipantWhew! Clearing cookies did it. Thanks
I just upgraded to WP 2.71 also, should have mentioned that.
March 25, 2009 at 2:15 pm #72198_ck_
ParticipantIt’s possible because I was testing it on 1.0 that 1.0 automatically escapes the mysql values passed and that 0.9 does not. I can’t remember.
Try adding this before the $bbdb->query
$pmtitle=mysql_real_escape_string($pmtitle);
$message=mysql_real_escape_string($message);and see if it helps or if it just add slashes to your text instead and breaks it.
It may also be a quote problem but I thought the bbpress pre/post text filters should encode quote or any other problematic characters.
March 25, 2009 at 10:37 am #72640In reply to: How to display topic starter name on front page?
salemw
MemberTry this one
<?php echo ( get_topic_author());?>
March 25, 2009 at 3:25 am #71932In reply to: Instant Password
_ck_
ParticipantSomething I just realized and I should have noticed / asked sooner.
You are using a custom template. A very common problem with plugins when you use custom templates is they have accidentally removed some critical actions / filters.
Open up your register.php template and open up the original bb-templates/kakumei/register.php template.
Compare the two, specifically looking for any
do_action
orapply_filter
that you are missing.In your case, specifically
<?php do_action('extra_profile_info', $user); ?>
but I suspect you have that, or you’d see nothing from the plugin.
March 25, 2009 at 3:19 am #71931In reply to: Instant Password
_ck_
ParticipantSo to be clear, it’s happening after you successfully submit it, not the message on the same page you type in the password right?
The password error only happens for two reasons, either the primary password doesn’t match the confirmation or the password is less than 6 characters.
The $_POST data must be making it through because you’d get a different error.
I assume you tried various passwords and aren’t using multibyte (unicode) password or with slashes in them.
March 25, 2009 at 2:41 am #72638_ck_
ParticipantI guess it would be a good alternative to akismet (or even in addition to).
Your code can be cleaned up and condensed considerably.
It also could benefit from some security checks on the $_POST data being injected into the url.
Here is an untested, condensed version with some mild security checks on the $_POST
(there is also an alternative to curl in there for the 50% that don’t have it on their server)
I took out some of the extended manipulation of the returned data that you didn’t need.
March 24, 2009 at 2:48 pm #65912_ck_
ParticipantSorry, looks like I left some customized leftovers in there.
Simply remove line 5 entirely or comment it out like this
<?php // my_views_header(); ?>
March 24, 2009 at 3:22 am #5055Topic: I got me a fatal error on good ol’ line 72
in forum Installationmcaddengroup
MemberI installed bbpress and went to activate it and got the following message on the plug-in page…
// Bail here if no key is set
if (!bb_get_option( 'akismet_key' ))
return;I’m assuming this has something to do with my API key? No Idea.
-D
March 24, 2009 at 2:49 am #72313erick_king
Memberhello! o hola en español.
You can try with the version 1.0 alpha, it works fine!!
March 24, 2009 at 2:48 am #72617erick_king
MemberHola/hello!
If someone else have the same problem try to use the version 1.0 alpha version!
it works!
March 24, 2009 at 2:09 am #72616erick_king
MemberHola
I check the server it is using php 4.4.8 and mysql 5.0.45 and i dont have integrated anything…jaja
I tried to installed in a empty directory.
there is another version of bbpress?
March 24, 2009 at 1:30 am #72234In reply to: error when logging out
chrishajer
ParticipantIt seems it should be pretty easy to modify the plugin. Just change the references to the table bb_online to the proper $bbdb->online and I think it should be fine. Or, for yourself, you could just hard-code the table prefix for your installation, but I would say that’s bad form and not portable.
March 23, 2009 at 10:24 pm #72618In reply to: get_bb_location overite doesn’t work
Null
MemberTo make my description easier:
view.php
gives: view-pageview.php?view=port
gives: view-page too.I want
view.php?view=port
to give: port-pageThx
March 23, 2009 at 7:38 pm #72631In reply to: Functions.php came with unexpected t string
wpitn2shape
MemberI get the same error with that code, too. Is it supposed to be that short? I’m a tad confused, sorry.
If you thought I said the whole file was blank, I did not mean that. The line is, and it’s after that code.
What’s different between the two codes?
Thanks for trying to help! Hope we can fix this.
March 23, 2009 at 6:47 pm #72628In reply to: exluding “user on” from topic feed title
Ipstenu (Mika Epstein)
ModeratorProbably by changing this:
'show_author' => 1,
Make the 1 a 0?March 23, 2009 at 6:46 pm #72630In reply to: Functions.php came with unexpected t string
Ipstenu (Mika Epstein)
ModeratorA functions.php should be like this:
<?php
function bb_nonce_ays( $action ) {
$title = __( 'bbPress Failure Notice' );
$html .= "t<div id='message' class='updated fade'>nt<p>" . wp_specialchars( bb_explain_nonce( $action ) ) . "</p>nt<p>";
if ( wp_get_referer() )
$html .= "" . __( 'Please try again.' ) . "";
$html .= "</p>nt</div>n";
$html .= "</body>n</html>";
bb_die( $html, $title );
}
?>March 23, 2009 at 4:22 pm #5053Topic: exluding “user on” from topic feed title
in forum TroubleshootingAvaz
MemberI’m displaying latest forum posts using RSS:
<?php require_once(ABSPATH . WPINC . '/rss.php');
wp_widget_rss_output('http://localhost/bbpress/rss.php', array('items' => 5, 'show_author' => 1, 'show_date' => 1));
?>and the code above displays as follows:
admin on “Test topic” 13/03/2009 admin
Now, how can I exclude “admin on” part from the title?
March 23, 2009 at 3:40 pm #72592Ivaylo Draganov
MemberHi
Well, it would be as simple as changing the existing CSS-rule. Just remove the #front-page parent declaration so that the rule applies to all pages containg the #hottags div
#hottags {
position: absolute;
top: 0;
left: 0;
width: 150px;
overflow: hidden;
}March 23, 2009 at 8:29 am #72625In reply to: Best answer
Shagalaga
Membera democratic voting by users would be cool, since it’s web 2.0
March 23, 2009 at 5:37 am #72611In reply to: Forum name withing
_ck_
ParticipantYou would use either
forum_link($topic->forum_id); // self echos
or
$link=forum_get_link($topic->forum_id); // returns a string
what you probably want is:
<a href="<?php forum_link(); ?>"><?php forum_name(); ?></a>
-
AuthorSearch Results