Search Results for 'code'
-
Search Results
-
Hello,
I think I have these two integrated and working but seems to be a problem with the bbpress keymaster having access to the wp-admin area. The only solution I have so far is to have 2 admins…
one for WP ( a:1:{s:13:”administrator”;b:1;} )
&
one for BB ( a:1:{s:9:”keymaster”;b:1;} )
I have set the role in the bbpress-admin for wp-admins to be keymasters but it doesn’t seem to work…
Am I doing something wrong?
Thanks
Topic: problem with installation
When I installed bbpress I am trying login in to administration but its imposible with this code
Deprecated: Assigning the return value of new by reference is deprecated in C:xampplitehtdocsbbpressbb-settings.php on line 186
Deprecated: Assigning the return value of new by reference is deprecated in C:xampplitehtdocsbbpressbb-includesbackpressfunctions.wp-object-cache.php on line 108
Deprecated: Assigning the return value of new by reference is deprecated in C:xampplitehtdocsbbpressbb-includesbackpresspomomo.php on line 171
Deprecated: Assigning the return value of new by reference is deprecated in C:xampplitehtdocsbbpressbb-includesfunctions.bb-l10n.php on line 484
Deprecated: Assigning the return value of new by reference is deprecated in C:xampplitehtdocsbbpressbb-includesbackpressclass.wp-taxonomy.php on line 581
Warning: Cannot modify header information – headers already sent by (output started at C:xampplitehtdocsbbpressbb-settings.php:186) in C:xampplitehtdocsbbpressbb-includesbackpressclass.wp-auth.php on line 273
Warning: Cannot modify header information – headers already sent by (output started at C:xampplitehtdocsbbpressbb-settings.php:186) in C:xampplitehtdocsbbpressbb-includesbackpressclass.wp-auth.php on line 273
Warning: Cannot modify header information – headers already sent by (output started at C:xampplitehtdocsbbpressbb-settings.php:186) in C:xampplitehtdocsbbpressbb-includesbackpressclass.wp-auth.php on line 273
Warning: Cannot modify header information – headers already sent by (output started at C:xampplitehtdocsbbpressbb-settings.php:186) in C:xampplitehtdocsbbpressbb-includesbackpressclass.wp-auth.php on line 273
Warning: Cannot modify header information – headers already sent by (output started at C:xampplitehtdocsbbpressbb-settings.php:186) in C:xampplitehtdocsbbpressbb-includesbackpressclass.wp-auth.php on line 273
Warning: Cannot modify header information – headers already sent by (output started at C:xampplitehtdocsbbpressbb-settings.php:186) in C:xampplitehtdocsbbpressbb-includesfunctions.bb-pluggable.php on line 232
Topic: bbShowcase shut down?
I just tried to drop by bbShowcase and found this waiting for anyone visiting
The bbPress Showcase has been discontinued.
The removal of Sam Bauers and the halting of bbpress.org 2.0
was a clear and final sign that there is no interest in allowing
bbPress to become a mature, robust program and community.
By now bbPress 1.5 could have been in alpha but instead
bbPress development has been deliberately stagnated,
which should be a very alarming warning to everyone.
In addition, bbShowcase had only six donations in 2009,
which indicated to me there was no interest in my work.
My code will remain on bbpress.org as open source GPL
for those that wish to use it, however I caution you to
consider bbPress’s lack of leadership before continuing to use it.
I’m running bbPress 1.0.2.
I’m having problems with the “PREVIOUS” link when using the “bb_latest_topics_pages” function.
I have the following code on my frontpage.php
<?php endforeach; endif; // $topics ?>
<?php bb_latest_topics_pages( array( ‘before’ => ‘<div class=”nav”>’, ‘after’ => ‘</
div>’ ) ); ?>
It display paged frontpage topic links (1, 2, 3, Next) but whenever I’m on a page other than the frontpage … for example, Page 2, both the Previous and Page 1 link points to the current page and not the previous page.
Topic: rss.php patch
Hey there, just had an issue with the “favorites” RSS and wanted to share my solution in case anyone else was having the same problem. Maybe it was just a Firefox thing, but the favorites URL (e.g., rss.php?profile=1) was interpreted as “unformatted XML”–there was an error message and the entire markup was displayed. I eventually discovered this was caused by an
<a>tag inside the channel’s<link>tag. By changing the “bb_get_profile_link” call to a “get_user_profile_link” call in rss.php I got the URL without the tag, and the feed was interpreted correctly.Incidentally, I also noticed a couple other things about the script that seemed a bit off–
1) There are a number of calls to “die()” if the feed turns out to be empty–seems like either an empty feed or an error page would be preferable to this silent failure.
2) The “bb_send_304()” call doesn’t take into account that the feed itself may have changed recently, e.g. threads added to a “favorites” list won’t show up until activity on one of the threads causes the feed to be refreshed. (Which is not totally illogical, but it can be confusing for the user to add a favorite, refresh the feed, and still not see the newly-added thread.)
I thought about working up a patch to address these issues, but decided to post this first–maybe the script’s working exactly as intended and I’m just not understanding it correctly.
I am sharing this, just in case it may help someone else looking to implement this feature. There is a great plugin that does this, bbAvatars, but it was interfering with other functions I wanted to implement, so I had to find a workaround (bbPress 1.0.2).
With the premise that I really don’t like to edit core files, because you have to remember to edit them each time you upgrade, this time I had no choice, as any avatar plugin I tried did not work out for my purposes. There are a few simple steps you can use to set your own custom avatar, when users have not set a gravatar account.
1 – I have noticed that the “blank” choice in the settings is the only one that refers to an internal image, so you just want the code to point to your own custom image, rather than “blank.gif” (which may be also used for other calls, so I wanted to leave that one alone and not replace it with another custom blank).
In “bb-includes”, look for the file “functions.bb-pluggable.php”, and edit around line 895, where it says
case 'blank':
$default = bb_get_uri( 'bb-admin/images/blank.gif', null, BB_URI_CONTEXT_IMG_SRC );and change blank.gif with your image, default.jpg or any other name.
2 – Upload your custom image in bb-admin/images (if you store it somewhere else, change the path in the code above accordingly).
3 – In your Admin Dashboard –> Settings –> Discussions, set the choice to “blank”.
Voila!!!!
To change the avatar size from the bbpress default size, in post.php of your templates, look for
<?php post_author_avatar_link(); ?>and add the number of pixels inside (), for example:
<?php post_author_avatar_link(80); ?>Hope this helps!
