Search Results for 'code'
-
AuthorSearch Results
-
December 8, 2007 at 2:15 am #57160
In reply to: Registration Email Not Being Sent – new issue
chrishajer
ParticipantI can’t see a way that bbPress would be responsible. The email is sent right before the registration success message is sent. From register.php lines 39-41:
do_action('register_user', $user_id);
bb_load_template( 'register-success.php', $_globals );So, after the register_user action (which emails the password) the success message is displayed. There is no delay built into bbPress. So, it is somewhere after bbPress has handed off the email.
Is is possible there is a different header in the bbPress password message that causes it to be delayed by the recipient’s ISP? I know there is a
Precedence: bulkheader in the bbPress email, and that WordPress has the same, but there is also a X header in the WordPress email that I don’t see in the bbPress email:X-Priority: 3(which means “normal” delivery.) It could also be due to the email address the email is coming from (some sort of validation by the SMTP server to see if the sender is valid.)I would say the problem is with the server sending the emails, or the recipient’s ISP, not with bbPress. I can’t come up with any ideas at all how bbPress could be responsible.
December 7, 2007 at 7:53 pm #2665Topic: Decomposing “author_title” Template Tag
in forum Themesrosebud
MemberI am trying to get the User Role on the posts page (that links to the profile) next to the poster name to display, on hover, a span containing this text: “View profile of *user*”. I want to make it clear that clicking on the user title (role) will send the visitor to the user’s profile.
To accomplish this in a very simple way I need to add a span inside the a tag, like this:
<a>User Title<span>View profile of <?php post_author(); ?></span></a>And then apply simple css rules:
a span {display: none;}
a:hover span {display: block;}Thus, I need to decompose the template tag “post_author_title” given that this tag already outputs the whole link, so I can’t add the span inside it.
What I have to do is find a template tag that outputs the User Title in just plain text, and I then recreate the link. I found “get_post_author_title” but I don’t know what it does. When I put it instead of “post_author_title” nothing renders (no text, nor link, nor error).
I also tried doing this just by css with this markup:
<a>User Title</a><span></span>And playing with the selectors + and >:
a + span {display: none;} ---> This actually works
a:hover + span {display: block;} ----> This does not...I hope I have been clear with what I want to do. Probably this is a trivial matter and someone could just set me on the right direction.
Thanks very much for your continuous support.
December 7, 2007 at 6:30 pm #61629In reply to: [resolved] Help integrating BBpress and WordPress
Trent Adams
MemberYou posted an hour ago! We are around to help, but not always right away! I am thinking it is the lack of an .htaccess file in your /bbpress/ folder on your server. Create that file and have the following in it and upload it and it might get you going:
Options +MultiViewsCheck out:
https://bbpress.org/documentation/faq/
Trent
December 7, 2007 at 6:24 pm #61628In reply to: [resolved] Help integrating BBpress and WordPress
neffster
MemberI guess I will go with one of these: https://codex.wordpress.org/Plugins/Forums
December 7, 2007 at 4:06 pm #61845In reply to: Next page not working
Thord D. Hedengren
MemberI managed to duplicate the problem on my own project. Take a look, Next link (Nästa in Swedish, way down) doesn’t work.

and
http://pakten.se/forum/forum/testa-loss
The forum is installed in /forum. There’s a WordPress MU installation in the root directory, with working permalinks.
December 7, 2007 at 1:26 am #61842In reply to: Problem with Japanese Translation
ruilouis
MemberI reply to myself (This forum is auto-curative ;P)
So for the people who are endeavouring the same errors here is the deal:
* a format specification for argument 1 doesn’t exist in ‘msgstr’ : This error is due to a missing variable in the translated string -> In my case a %s was missing.
* field `Language-Team’ still has initial default value : This error means that you have to update information in ” Catalog / Settings / Project info ” -> In my case the Project name and version was something like “bbpress trunk”, the Language wasnt defined, nor wad the Country, Charset and Source code Charset. I still do not have info in the Plural Forms but it’s running.
Don’t hesitate to contact me if you encounter problems with ja.po or ja.mo (Or if you want those files and cannot found them).
バイバイ
Rui
December 6, 2007 at 9:39 pm #61837In reply to: language file ?
العاب
MemberOk hajii

i will see the tags probim
thank you for hard work with us !
December 6, 2007 at 8:41 pm #61836In reply to: language file ?
chrishajer
Participant1. No problem
2. I am unfamiliar with the tag problem, but I *thought* it was fixed in r846
3. I don’t know about creating a subdomain of bbPress.org. You could always create your own site to support an arab user.
4. Nope, not an arab. American. People do call me hajii sometimes, but I’m pretty much American
fel64
Membersheatsb, out-of-date documentation. I didn’t realise people actually read that.
You don’t need the files, you don’t need the tag, it’s improved since then.AlexHertz, it would have been better etiquette to just ask in your original topic if it can be done with bbsync. Starting two debates is rude because it’s spam, but also counter-productive because, well, you’ve got two small debates.
_Any_ functionality can be added to bbsync. It doesn’t do what you’re asking for, however. In addition, ‘moving comments to the forum’ would be pointless, because – and this is core bbsync functionality – replies in the forum show up as comments.
sheatsb
MemberI’m having a couple of issues:
-Is it just me, or are a few files missing from the package. There are claims in the documents of a
stylesheet and another file outside of bbsync.php.
-When I put the
<?php bbrepliestext(); ?>tag in my theme, it shows nothing, then I try<?php felbbreplies(); ?>and I get Fatal error: Call to undefined function felbbreplies() in /Applications/MAMP/taos.htdocs/woodfin/wp-content/themes/default/single.php on line 56I’ve integrated WordPress and bbPress with the database and plugins. Is there something I’m missing to make this work, because this is a great plugin.
December 6, 2007 at 3:51 am #61830In reply to: language file ?
chrishajer
ParticipantThese instructions are for WordPress but the procedure is the same:
https://codex.wordpress.org/Translating_WordPress
I think you take that pot file I linked to and use a tool like poedit to translate all the phrases that are in that pot file.
Then, according to the config.php:
// Change this to localize bbPress. A corresponding MO file for the
// chosen language must be installed to bb-includes/languages.
// For example, install de.mo to bb-includes/languages and set BBLANG to 'de'
// to enable German language support.
define('BBLANG', '');So, according to that, use poedit to generate the mo file (maybe it’s ar.mo for arabic?) and drop the ar.mo file you just created into the bb-includes/languages folder. Now change the BBLANG line to read:
define('BBLANG', 'ar');I THINK.
I am guessing on the ar as the proper language according to this page I found:
http://www.iana.org/assignments/language-subtag-registry
I am totally guessing at all of this, but I think that’s pretty close to what you need to do. When you’re done translating, please post back and share your work. Thanks.
December 5, 2007 at 2:49 pm #61820In reply to: Lost in Login Loop
chrishajer
ParticipantWhat did you set mod_rewrite to in your config.php? If you set it to true or slugs, you might want to try setting it to false.
$bb->mod_rewrite = false;That’s right after the admin email you entered.
Also, there used to be a problem where depending on which login form you used (the one in the header or the one in the body of the page after you fail to login) you would get in a redirect loop that said something to the effect of:
The page isn't redirecting properly
Firefox has detected that the server is
redirecting the request for this address
in a way that will never complete.If that doesn’t help, then I think posting the URL to the broken forum would be the best thing so people can see what’s actually going on.
I don’t think it’s cookies or permissions. I think it’s the mod_rewrite setting and your host does not support rewrite rules in the .htaccess file, or you haven’t created the .htaccess.
December 4, 2007 at 10:50 pm #61819In reply to: Cannot select DB error!
pwdrskier4
MemberSUCCESS!!!
It was the changes to bb-settings.php that did it, the 757 patch: https://trac.bbpress.org/ticket/757
Thanks for all the help chrishajer and livibetter. I could still be staring at my password wondering why it won’t work.
So now I have reinstalled again (to get rid of any bad changes I made while trying to figure this out) and we are good to go.
And yes, this was a “all of the sudden” problem, don’t know how, don’t know why. I have some other similar sites running the same code/settings and they still work fine without the patch even though they too have the host: ‘localhost:/tmp/mysql5.sock’
Also, yes, I am on 0.8.3 and was before the issue – if you were still curious.
December 4, 2007 at 9:21 pm #61818In reply to: Cannot select DB error!
livibetter
MemberAre you using 0.8.3?
Try to patch with https://trac.bbpress.org/ticket/757
or
modify https://trac.bbpress.org/browser/trunk/bb-includes/db-mysqli.php#L56
to be
$this->$dbhname = @mysqli_connect( $server->host, $server->user, $server->pass, null, null, $server->port );December 4, 2007 at 6:25 pm #61809In reply to: Documentation
jwagener
MemberOk, thanks for the link. I have fixed the error with my blog. Thanks for notifying me.
December 4, 2007 at 1:24 pm #61808In reply to: Documentation
livibetter
MemberThe best way to work with bbPress is reading the source, currently. Unfortunately, not everyone can code.
Btw, your Programming page of blog has an error.
December 4, 2007 at 6:34 am #61589In reply to: How Do I Do This?
chrishajer
ParticipantI’m not sure which version of front-page.php you’re using (couldn’t make my site look like yours using the last front-page.php code that was posted) but I THINK all you need to do is change the line that looks like this:
<table id="forumlist">to this:
<table id="forumlist-<?php forum_id(); ?>">That just adds a dash and the forum number to the table id. That should validate. But I think that will affect the CSS in a bad way. There will no longer be an id of “forumlist”, they’ll all be “forumlist-something” which the CSS will have trouble with.
Maybe it would be better to do something like this:
<table class="forumlist" id="forumlist-<?php forum_id(); ?>">Then you would need to change your style.css to make any references to #forumlist look like .forumlist (change from applying the forumlist styling to ids and make it apply to classes.)
That’s a lot of work, but ids are supposed to be unique on a page, where classes are not. This is actually a better application of a class since all the tables should look the same and use the same styling. You’re not referencing them with javascript or something where the ids matter.
I just tried this and it worked on mine and validated properly. There were 6 instances of #forumlist that needed to be changed to .forumlist in my style.css
Hopefully that will work for you.
December 4, 2007 at 12:29 am #53606In reply to: Add a “page” to my template
ralev-dot-com
MemberI’m using this method here: http://desbar.eu/
check the ABOUT page, for example
it works for me.
Keep in mind there are a lot of ways to make a static page.
1. The most simple is to create some about.php file.
It should looks like livibetter says:
<?php bb_get_header(); ?>
The static content here.
<?php bb_get_footer(); ?>
2. put this about.php in the root directory ( e.g. – the URL should be something like youbbPressSite.com/about.php )
3. Then call this URL from somewhere ( e.g. – put a link in the Header.php )
that’s it.
PS: I’ve just been curious about the method above (livibetter version) – that’s why I used it
looks smoother at first site.
December 1, 2007 at 6:56 pm #61799In reply to: Front page stickies on forum pages?
livibetter
MemberNo ideas. But it has something to do with
bb_index.php_pre_db( https://trac.bbpress.org/browser/trunk/index.php ) orbb_forum.php_pre_dbactions. So I just left it unchanged.December 1, 2007 at 5:56 pm #61797In reply to: Front page stickies on forum pages?
livibetter
MemberThis should work:
<?php
if ( !$bb_db_override ) :
$super_stickies = get_sticky_topics();
endif;
?>
<?php if ( $super_stickies ) : foreach ( $super_stickies as $topic ) : ?>
<tr<?php topic_class(); ?>>
<td><?php bb_topic_labels(); ?> <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; // $super_stickies ?>December 1, 2007 at 4:20 am #61748In reply to: 1970 issue
chrishajer
ParticipantNow the plugin browser theme just needs to be fixed
November 30, 2007 at 9:10 pm #61747In reply to: 1970 issue
livibetter
MemberI see.
There are some useless code in
search.php, like $users and $titles. They are not used in 0.8.3. If you can’t switch to an updated template, then you should diff to find out what has been changed.November 30, 2007 at 8:55 pm #61745In reply to: 1970 issue
livibetter
MemberThis is quite old (check this diff)
<?php echo date(__('F j, Y, h:i A'), bb_get_post_time()); ?>replace it with
<?php bb_post_time( __('F j, Y, h:i A') ); ?>You are using 0.8.3, right? You should use an updated theme.
November 30, 2007 at 8:53 pm #61744In reply to: 1970 issue
electroniques
MemberHey.
I checked the Database time and it is correct.
So it must be some theme/bbpress related error.
Here’s my search.php:
<?php bb_get_header(); ?>
<h3 class=”bbcrumb”>“><?php option(‘name’); ?> » <?php _e(‘Search’)?></h3>
<?php search_form( $q ); ?>
<?php if ( !empty ( $q ) ) : ?>
<h2><?php _e(‘Search for’)?> “<?php echo wp_specialchars($q); ?>”</h2>
<?php endif; ?>
<?php if ( $users ) : ?>
<h2><?php _e(‘Users’)?></h2>
-
<?php foreach ( $users as $user ) : ?>
- ID); ?>”><?php echo get_user_name( $user->ID ); ?>
<?php endforeach; ?>
<?php endif; ?>
<?php if ( $titles ) : ?>
<h2><?php _e(‘Thread title matches’)?></h2>
-
<?php
- <h4>“><?php topic_title(); ?></h4>
<small><?php printf(__(‘ %1$d replies — Last reply: %2$s’), $count, get_topic_date(__(‘F j, Y’), $topic->topic_id) ) ?> </small>
foreach ( $titles as $topic ) :
$count = $topic->topic_posts;
?>
<?php endforeach; ?>
<?php endif; ?>
<?php if ( $recent ) : ?>
<h2><?php _e(‘Recent Posts’)?></h2>
<ol class=”results”>
<?php foreach ( $recent as $bb_post ) : ?>
- <h4>“><?php topic_title($bb_post->topic_id); ?></h4>
<p><?php echo show_context($q, $bb_post->post_text); ?></p>
<p><small><?php _e(‘Posted’) ?> <?php echo date(__(‘F j, Y, h:i A’), bb_get_post_time()); ?></small></p>
<?php endforeach; ?>
<?php endif; ?>
<?php if ( $relevant ) : ?>
<h2><?php _e(‘Relevant posts’)?></h2>
<ol class=”results”>
<?php foreach ( $relevant as $bb_post ) : ?>
- <h4>“><?php topic_title($bb_post->topic_id); ?></h4>
<p><?php echo show_context($q, $bb_post->post_text); ?></p>
<p><small><?php _e(‘Posted’) ?> <?php echo date(__(‘F j, Y, h:i A’), bb_get_post_time()); ?></small></p>
<?php endforeach; ?>
<?php endif; ?>
<?php if ( !$topics && !$recent && !$relevant && !users) : ?>
<p><?php _e(‘No results found.’) ?></p>
<?php endif; ?>
<p><?php printf(__(‘You may also try your search at Google‘), bb_get_option(‘uri’), urlencode($q)) ?></p>
<?php bb_get_footer(); ?>
</code
November 30, 2007 at 8:48 pm #61375In reply to: Agregar nueva categoría de temas
spanish4practice
MemberGo to Content > Forums and “Add Forum” there. That will give you another “category” (actually another forum) to post in.
Esta bien, voy a explicarse lo que él dijo en el español
. Vaya usted al Content>Forums, y clicka ¨Crear Forum¨, y se puede crear un catagoría con el nuevo foro
. Hay un opción
. Espero que usted sepa ahora
.
-
AuthorSearch Results