Search Results for 'forum'
-
AuthorSearch Results
-
February 27, 2010 at 1:00 pm #65846
In reply to: new plugin: BuddyPress Rate Forum Posts
andrew_s1
ParticipantI’ve just attached the theme patch to the trac ticket here https://trac.buddypress.org/ticket/2063#comment:1
February 27, 2010 at 12:38 pm #65843In reply to: Group’s forum moderation
sakthig
ParticipantYes i think the issue is not yet resolved by buddypress!
Being a admin of my group forum i can not moderate the forum topics that posted by others .
Any answers from our members?
February 27, 2010 at 12:31 pm #65841In reply to: Additional buttons in messages
andrew_s1
ParticipantI’ve just proposed the adding of a new action hook that would make it easy to develop a plugin for this. The action hook is suggested for another purpose, but would work for this purpose as well.
See https://buddypress.org/forums/topic/new-plugin-buddypress-rate-forum-posts/page/2#post-39751 – the proposed action is bp_single_forum_topic_links
If that hook gets incorporated, then writing a plugin to do what you want would be very easy.
Alternatively, you could also just modify your theme directly, to add it. See the theme file groups/single/forum/topic.php</b> , in the loop:
while ( bp_forum_topic_posts() ) : bp_the_forum_topic_post();February 27, 2010 at 12:09 pm #65839In reply to: new plugin: BuddyPress Rate Forum Posts
andrew_s1
ParticipantAt the moment, the classes are added to individual posts in a topic, by javascript. This results in extra server load, because wordpress has to do two whole startups for each such page. The trade-off is adding another apply_filter and a do_action to the theme, but as this plugin already benefits from one such proposed theme change, we can get two for the price of one.
Proposed change to buddypress/bp-themes/bp-default/groups/single/forum/topic.php, from line 26:
<ul id="topic-post-list" class="item-list">
<?php while ( bp_forum_topic_posts() ) : bp_the_forum_topic_post(); ?>
<li <?php
$topic_post_id = bp_get_the_topic_post_id();
echo "id='post-$topic_post_id' class='",
apply_filters('bp_single_forum_topic_post_css',array('class'=>'', 'post_id'=>$topic_post_id)),
"'";
?> >
<div class="poster-meta">
<a href="<?php bp_the_topic_post_poster_link() ?>">
<?php bp_the_topic_post_poster_avatar( 'width=40&height=40' ) ?>
</a>
<?php echo sprintf( __( '%s said %s ago:', 'buddypress' ), bp_get_the_topic_post_poster_name(), bp_get_the_topic_post_time_since() ) ?>
</div>
<div class="post-content">
<?php bp_the_topic_post_content() ?>
</div>
<div class="admin-links">
<?php
if ( bp_group_is_admin() || bp_group_is_mod() || bp_get_the_topic_post_is_mine() ) :
bp_the_topic_post_admin_links();
endif;
do_action( 'bp_single_forum_topic_links' , $topic_post_id );
?>
<a href="#post-<?php echo $topic_post_id; ?>" title="<?php _e( 'Permanent link to this post', 'buddypress' ) ?>">#</a>
</div>
</li>
<?php endwhile; ?>
</ul>Proposed change to buddypress-rate-forum-posts/bp-rate-forum-posts.php, insert:
// modifies the css class for topics to highlight popular posts, and hide very unpopular ones
function rfp_css_class_for_post($args) {
global $rfp;
$class = $args['class'];
$post_rating = rfp_get_post_rating( $args['post_id'] );
$rfpclass = '';
error_log('rfp='.print_r($rfp,true));
if ( $post_rating == NULL )
$rfpclass = '';
else if ( $post_rating >= $rfp->superboost )
$rfpclass = 'rfp-superboost';
elseif ( $post_rating >= $rfp->boost )
$rfpclass = 'rfp-boost';
elseif ( $post_rating <= $rfp->hide )
$rfpclass = 'rfp-hide';
elseif ( $post_rating <= $rfp->diminish )
$rfpclass = 'rfp-diminish';
//error_log("in rfp_css_class_for_post rating '$post_rating' adding class '$rfpclass' to '$class' with args ".print_r($args,true));
return $class.($class?' '
'').$rfpclass;
}
add_filter( 'bp_single_forum_topic_post_css', 'rfp_css_class_for_post', 3);
function rfp_echo_hidden_post_link($post_id) {
global $rfp;
$post_rating = rfp_get_post_rating( $post_id );
if ( $post_rating && $post_rating <= $rfp->hide )
echo "<span class='rfp-show' onclick='jQuery(this).remove();jQuery("#post-$post_id").removeClass( "rfp-hide" );'>Click to show this hidden post</span>";
}
add_action( 'bp_single_forum_topic_links', 'rfp_echo_hidden_post_link', 3);And then the javascript section starting
jQuery(document).ready( function()can be removed from buddypress-rate-forum-posts/js, and the corresponding section can be removed from the end of buddypress-rate-forum-posts/rate.phpFebruary 27, 2010 at 11:46 am #65835In reply to: Categories Missing after BP 1.2.1 Upgrade
John Stringfellow
ParticipantRay, Good Morning. Thank you for sharing your experience with a similar issue.
Unfortunately, I think that your problem might relate to mine. I shut down the site completely to do the MU install and I used Ron’s Advanced Import Tool/Widget. I thought all the categories were imported and working fine until this last BP update. Something in that update made my category structure go all pear shaped.
I guess I’ll have to spend some time over in the MU forums. I think this relates to BP too since the update seems to have changed the way categories are changed or shown. Specifically, the category slugs cannot be edited anymore. [at least that I can find]
I hardly know where to start to find the problem in the database.
BNJ
February 27, 2010 at 10:29 am #65824In reply to: Location Profile Field
xspringe
ParticipantThere used to be the possibility to use pre-built fields to the registration form (as described here: https://buddypress.org/forums/topic/what-happened-to-add-prebuilt-field), which would take care of at least part of this problem. But it appears this is no longer supported for 1.2.
So I definitely support the request for the ability to add pre-built registration fields.
February 27, 2010 at 8:44 am #65815In reply to: Excluding Blog Posts from Activity Feed
nickrita
ParticipantHere’s something similar:
https://buddypress.org/forums/topic/removing-blog-posts-form-the-swa-widget#post-36775
February 27, 2010 at 8:10 am #65811In reply to: Better user management capabilities
snark
ParticipantYes, that makes sense, until there are hundreds of IP addresses to try to ban. Also, WP isn’t logging the IP addresses, though I suppose I could install a plugin to do that.
Philosophically, it goes back to the debate over sending new users a confirmation email or not. I’m in the yes camp, because many forum spambots will sign up for memberships with a bogus email address, so if they have to confirm via email, their memberships will never get confirmed. But I suppose there’s a performance trade-off to sending out a high percentage of emails that end up bouncing.
Ideally I can figure out a set of methods to stop most spam registrations from happening in the first place, greatly reducing the amount of user editing I would otherwise have to do after the fact.
February 27, 2010 at 6:43 am #65809In reply to: Additional buttons in messages
pandragon
MemberAlso where can I go to remove the yellow notice for forum posting? As i want to disable users from creating groups themselves I only want admin to be able to do this – So far I have gotten rid of create button for normal users but if normal user tries to post in forum the yellow notice comes up and says “why not create a group” which then enables members to make a group – I want to remove this option from the notice for members?
February 27, 2010 at 3:14 am #65799In reply to: Installing buddypress as a Subdomain
Sabuntu
MemberThanks everybody for the backup
Actually, I raised this issue and I found the answers, Thanks to both wpmudev and buddypress docs
But after activating buddypress on a subdomain, I found it better if I activated it on the root blog, so I will not confuse my members.
I tried to reverse the process, But I completely failed
I tried the following maneuvers but non of them succeeded:
1- I deactivated bp plugin and deleted it –> once installed and activated again it will be activated back on blog 3
2- I droped the bp tables in the database, installed again but the same problem
3- I added this code to wp-config:
define ( ‘BP_ROOT_BLOG’, 1 );
define( ‘BP_AVATAR_UPLOAD_PATH’, ‘/var/www/wp-content/blogs.dir/3/files’ );
define( ‘BP_AVATAR_URL’, ‘hxxp://community.example.com’ );
and tried to activate bp plugin again
it activated nicely and asked me to choose a theme for buddypress but once choosing a theme I see only a blank white page and I can’t access my dashboard even
I get to it by accessing another blog and deactivating bp plugin to get through my dashboard
so I tried another way
I did all of the mentioned in addition to editing my .htaccess and adding the following codes
RedirectMatch 301 ^/members/(.*)$ http://community.example.com/members/$1
RedirectMatch 301 ^/groups/(.*)$ http://community.example.com/groups/$1
RedirectMatch 301 ^/blogs/(.*)$ http://community.example.com/blogs/$1
RedirectMatch 301 ^/forums/(.*)$ http://community.example.com/forums/$1
but non of them helped
I still have one option to delete blog 3, but I’m afraid I will be stuck and No way to do it back
I Know I’m asking too much but Please Help Me
February 27, 2010 at 1:12 am #65791In reply to: Categories Missing after BP 1.2.1 Upgrade
r-a-y
KeymasterHey BNJ,
You’re lucky that this also happened to me!
Read up on what I did to overcome this:
https://mu.wordpress.org/forums/topic/15553?replies=7#post-89067
[EDIT]
You say you did a completely clean WPMU install, so I’m not sure if the link I posted above will help you.
February 26, 2010 at 10:49 pm #65776In reply to: new plugin: BuddyPress Rate Forum Posts
bpisimone
Participant@Dwenaus, haha good one! At the moment there’s no hurry for me. I just wanted to check what you think about that. But who knows maybe I will need the feature in a few weeks.
But again, good plugin, nice implementation.
February 26, 2010 at 10:17 pm #65770In reply to: new plugin: BuddyPress Rate Forum Posts
rich! @ etiviti
ParticipantI think my situation is somewhat unique as
$bp->forums->bbconfig = $bp->site_options['bb-config-location'];which is loaded in bp-forums.php is different (subdomain) than the wp root bb-config.php which had a stale reference to the default bb table prefix.I’m not certain – but you may be able to call
do_action( 'bbpress_init' );February 26, 2010 at 9:45 pm #65764In reply to: new plugin: BuddyPress Rate Forum Posts
Dwenaus
Participant@andrew_s1 thanks for the code, I’ll add that soon.
@nuprn1 – I would love to not hard code it, but I was having trouble getting those variables. Can you give me a suggestion on how I can do that. One solution could be to check a db option value, and if it exists (for example in a custom install) then use that instead of the default one. what do you think?
@Bpisimone – I might get around to comment rating, but that is a pretty low priority because those plugins already exist. However it would be good to combine points rather that have two systems. Things like this that don’t effect the project i’m working on are lower priority. (but donations do make them higher priority.
February 26, 2010 at 7:32 pm #65746In reply to: new plugin: BuddyPress Rate Forum Posts
bpisimone
ParticipantThis thing works well on my test install, very well done @Dwenaus! Right now I’m also using another plugin called comment rating. Any chance you might extend yours to comments also?
February 26, 2010 at 7:27 pm #65745In reply to: new plugin: BuddyPress Rate Forum Posts
rich! @ etiviti
ParticipantOk, just updated to 1.0.3 and hit another snag. Seems you have the bb_meta table hardcoded as I’m using an external forum install
nevermind – looks like i have weird issue with an external bbpress install and various prefix values being defined (might be a buddypress bug)
February 26, 2010 at 7:25 pm #65744code012
MemberBuddyPress works like a central community, so it’s either you have one BuddyPress website or not.
What you can do is to install it on a single subdomain.
like community.abc.com
then you would have to edit your wp-config.php file, add the following line
define ( ‘BP_ROOT_BLOG’, 3 );
the number 3 is your blog id.
I’ve found the solution from
http://premium.wpmudev.org/forums/topic/how-to-install-buddypress-as-a-sub-domain
Thanks to Sabuntu!
I’m requesting the subdomain installation as a feature though.
February 26, 2010 at 7:19 pm #65743In reply to: Installing buddypress as a Subdomain
code012
MemberHi Sabuntu.
Thank you so much for your contribution on wpmudev.
http://premium.wpmudev.org/forums/topic/how-to-install-buddypress-as-a-sub-domain
You saved me so much time on this.
I’m adding this post so that maybe it can help out people here as well.
February 26, 2010 at 7:01 pm #65740In reply to: new plugin: BuddyPress Rate Forum Posts
andrew_s1
ParticipantWhat do you think about displaying the karma on the profile page too?
Something like this:
function rfp_show_poster_karma() {
global $bp;
$poster_id = $bp->displayed_user->id;
$karma = get_usermeta( $poster_id, 'rfp_post_karma' );
echo rfp_poster_karma($karma);
return;
}
add_filter( 'bp_before_member_header_meta', 'rfp_show_poster_karma' );February 26, 2010 at 6:44 pm #65738In reply to: bbPress issue
r-a-y
KeymasterCan you be specific when you say “reinstalled bbPress twice”?
Are you trying to have an external bbPress install?
Or are you trying to use the BP group forums? eg. testbp.org/forums
February 26, 2010 at 6:31 pm #65734In reply to: how do i disable members from creating groups?
snark
ParticipantMan I’m dense — too many sleepless nights doing this are taking their toll on me. I already asked for help on this in another thread, received help, and even successfully implemented it. I thought it seemed like deja vu all over again. Doh! See this thread, especially the last few posts:
The solution by intimez near the end of the thread is basically the one above, but with the button code included.
Ahh, now it’s all coming back to me…
February 26, 2010 at 5:52 pm #65728In reply to: Avatar Upload Issues
lyricalbiz
ParticipantMy avatars are showing up, but the alignment is all vertical on the sidebar with no spacing . What I would love is an avatar block to show up. I’m also having the spacing issues (or lack of spacing) in my Members page.
I’m using the BuddyPress Template plugin on BuddyPress 1.2.1 for WordPress single user 2.9.2. This site is a test site for a client project and it’s pretty much the last hurdle. The website is http://workingonthisnow.com/MHA
I appreciate all the help! This forum is amazing.
February 26, 2010 at 4:50 pm #65723In reply to: Forums give a blank page after installing
kim-culhan
MemberBP depends on .htaccess being enabled.
In apache in httpd.conf AllowOverride controls
what directives will be allowed in .htaccess files.
I’m using:
AllowOverride FileInfo Options
The default value was:
AllowOverride None
Which caused problems when installing BuddyPress
-kim
February 26, 2010 at 2:05 pm #65705rich! @ etiviti
Participantcheck out:
https://buddypress.org/forums/topic/removing-blog-posts-form-the-swa-widget#post-36775
but instead of component == ‘blogs’ change it to type == ‘new_member’
then change your theme activity/index.php to remove the select option ‘show new members’
I would also like to see this filter turned off if logged in as admin, so we could administer the the spammers better –
using the above example – add before the loop
if ( is_site_admin() )
return $activities;February 26, 2010 at 2:01 pm #65704In reply to: new plugin: BuddyPress Rate Forum Posts
Dwenaus
Participantgood to know the plugin is working well.
@andrew_s1 thanks for the headsup
-
AuthorSearch Results