Search Results for 'buddypress'
-
AuthorSearch Results
-
April 24, 2011 at 6:54 am #110854
embergermedia
Member@philsquires I agree with @Brooker Might not be the best idea. However, here is a possible solution:
Make every filed of the profile “Required”. I believe this is will not allow new users through until they are filled in. This will have no effect on current users though, Not until they visit their edit profile screen, anyway.Good luck!
April 24, 2011 at 6:49 am #110853In reply to: Hidden group posts visible to all
embergermedia
Member@kenrichman Hey, sorry, I have yet to look into this. I’ve been so busy with getting everything else my client wants working to work that this got put to the bottom of my list. Hopefully I will remember to re visit it before I get a complaint! If I get hnla’a idea working, I will post here how I did it.
Peace
April 24, 2011 at 3:56 am #110849In reply to: Groups to join group category?
Chuscastilla
Member@elliot-s This bp-group-hierarchy works for my purposes, but I’ve problems with almost every new plugin I add.
I’m not sure, because I still have to try myself, but maybe this one can help: Blog Categories For Groups:April 24, 2011 at 2:09 am #110846In reply to: All Old Topics in the Forum Page is Gone
@mikey3d
Participant@r-a-y @djpaul Here’s what happens:
Mikey3D wrote:
Hi,
I just saw your new (hosting name) layout but something is missed in my database. Here’s the problem:
There are no older topics.
I did not post at buddypress yet because after I saw Paul Gibbs posted. This below will be post after you.
=====================================================
“The DB table is “wp_bb_posts”. If there are posts in that table, then that’s good! You could then try repairing the database table.”Yes, there are posts in that table wp_bb_posts. I just did repair this wp_bb_posts table.
“Could also be a plugin conflict. If you’re running any caching plugins, try flushing the cache, or disabling the plugin.”
I disabled W3TC and all plugins except BuddyPress. Also empties the bp-custom.php and functions.php.
All that it’s still the same problem. Huh? Why?
======================================================John S. wrote:
> Hi,
>
> I just saw your new (hosting name) layout but something is missed in my database. Here’s the problem:When we changed the control panel over we did nothing to the MySQL installs on our machines. Just the front-end has changed, so it could not have affected your database.
That being said we would have no info based on what you provided on why you would be having that issue.
We have backups of the site and database on file for the past 10 days, if you would like to check against them.
Please let us know if you have any more questions.Mikey3D wrote:
>>>We have backups of the site and database on file for the past 10 days, if you would like to check against them.
Please I would like to have backup database for 10 days old ago. If the backup database still have the same problem. I may do, how would I give buddypress folk the permission to go into my site?
Ryan S. wrote:
Hello,
> Please I would like to have backup database for 10 days old ago.
Alright, we have restored the database backup from 10 days ago.
> If the backup database still have the same problem. I may do, how would I give buddypress folk the permission to go into my site?
We don’t know. There may not be a way. As we said, we have not made any changes to your database, and if the problem happened more than 10 days ago (but you only noticed it recently), then the oldest backup will have the same problem. In this case, you may need to restore from an even older backup that you have made yourself, and forfeit all additions since that point.
Mikey3D wrote:
WOW!!!! It works.
John, can you tell me why buddypress folks are right? It’s database. I spend a half a day to figure it out why there was no older post. Why is it, John?
Ryan S. wrote:
> Can you tell me why buddypress folks are right? It’s database. I spend a half a day to figure it out why there was no older post.
The Buddypress folks are not right.
They said it’s a host problem. But it’s not a host problem.
Yes, we have database backups, so we helped you to restore an older backup. But the problem was caused by your application. The application broke the database. Restoring the database backup fixed the problem.
In the future, you should also keep your own database backups, too.
Hope that helps!
================================
Have I been misleading?Mikey3D
April 23, 2011 at 9:17 pm #110830In reply to: Add a new Tab
tubruk
Participant@r-a-y thank you very much I found a way and it works fine
:1. in ajax.php I added this:
if ( 'english' == $_BP_COOKIE ) { $user_id = ( $bp->displayed_user->id ) ? $bp->displayed_user->id : $bp->loggedin_user->id; $qs[] = 'forum_id=17'; }2. Then added this in forums/index.php :
<li id="forums-english"><a href="">English</a></li>thanks again. I hope this will help other members too.
April 23, 2011 at 8:13 pm #110823In reply to: Profile page link problem
r-a-y
KeymasterCheck out this plugin:
https://wordpress.org/extend/plugins/custom-profile-filters-for-buddypress/Also check out this thread:
https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/remove-automatic-links-in-profileApril 23, 2011 at 8:07 pm #110822In reply to: Add a new Tab
r-a-y
Keymaster“YOUR LINK” is the link you want to set. This is only useful if you want to link to a new page (like your new forum loop) and you don’t want to use AJAX.
However, it seems like you want to use AJAX, so you’ll have to manipulate the AJAX querystring so BuddyPress knows how to load your new custom forum loop. If you go this route, remember to remove the “no-ajax” CSS class from your tab.
The way you name your tab class is important.
In the example above, “forums-newtab”, BP’s AJAX will see “newtab” as the forum’s scope. You’ll then need to manipulate the AJAX querystring to add your forum IDs only when the forum scope is set to “newtab”.
Check out the bp_dtheme_ajax_querystring() in /bp-default/_inc/ajax.php and try to analyze lines 43-50. See how when the scope is set to “personal” that BP changes the `user_id`. You’ll need to do something similar with the `forum_id` parameter when the `scope` is set to “newtab” and when the `object` is set to “forums”.
Once you get a grasp of this, then you can write your filter to do your manipulation.
April 23, 2011 at 7:03 pm #110820In reply to: Buddypress Friends Table
hugesuccess
MemberAlso, it’s not so much a matter of table size as it is table design. A properly designed database would not have a problem with handling 1 million or 10 million cells in a table.
April 23, 2011 at 6:41 pm #110818In reply to: Get IP address that can pass current $user_ID?
function_im_awesome() {
ParticipantApril 23, 2011 at 6:04 pm #110817In reply to: Add a new Tab
tubruk
Participant<li id="forums-newttab no-ajax"><a href="YOUR LINK">Another Forum Loop</a></li>@r-a-y thank you very much. What is “MY LINK” ? I created another forum loop but whats the url of it?
I only changed this in the new forum loop.php :
April 23, 2011 at 3:43 pm #110809In reply to: how to have comment and replies collapse and expand.
José M. Villar
ParticipantI can see on @aliceembroid site that it shows as “show comments”. I would like to have a comments count as “show comments (x)” being x the total number of comments.
So each visitor can know at a first glance if that activty has any comments or not before pressing “show comments”April 23, 2011 at 3:32 pm #110806In reply to: URGENT – How To Set Default Values?
JamieWade
Member@boonebgorges Hmmm I tried adding these codes into the files but it broke the other subnavs? Groups (x) and @username mentions only displayed the activity stream for the whole site? They didn’t show Group activity/mentions respectively.
April 23, 2011 at 3:29 pm #110804In reply to: how to have comment and replies collapse and expand.
Timothy Tarmon Jr
ParticipantGlad its working now alice, and i think the css isn’t needed, but if you want to test it -> wp-content-> themes -> bp-columns ->custom.css
What i usually do is scroll down to the very bottom and type this
`/* Custom Modifications */`
then my css code, to keep it separate from the default csswhere would you like to show the comments? Buddypress does this by default for logged in user via the reply link : reply(#comments).
April 23, 2011 at 1:51 pm #110797In reply to: how to have comment and replies collapse and expand.
José M. Villar
ParticipantNice, very nice, thanx @timothyjunior and @aliceembroid for sharing this.
Now, how would I add a comments count field ? I mean, showing the comments count if there are any comments or showing nothing if there are not. Am I clear enough ?April 23, 2011 at 1:02 pm #110794In reply to: Suggested Posts Plugin (for Multisite Preferably)
Nahum
Participantthanks @r-a-y
has anyone brought in tags meta into the activity loop’s items? I think as you said, activity loop should be less taxing but I tend to use the switch_to_blog regardless of taxation.

I do have sitewide tags in place and that might be the option I’m looking for. Am I going to insert the xprofile comma seperated terms into wp search of posts?
As for s_w_b function being so taxing…I’ve read that everywhere! But I haven’t seen solutions to making it less “taxing” I never understood why it exists if its so bad. I use it all the time for things because there’s no better way to work with sitewide posts that I’ve seen, the activity loop blog posts is too limiting as far as customizing.
April 23, 2011 at 1:02 pm #110793In reply to: Date in profile is broken in latest BP release
Paul Wong-Gibbs
KeymasterCan you report that as a bug on http://trac.buddypress.org please? Your username and password from this site will work there. Thanks.
April 23, 2011 at 10:11 am #110791In reply to: Date in profile is broken in latest BP release
aljuk
MemberThere’s another issue with dates and Buddypress profiles – perhaps it’s related?
When an Admin performs an edit from the front end of the site on a user’s profile that contains a date field, that date field is automatically populated with the corresponding value from the Admin’s profile ie. I can’t edit a user’s profile on the front of the site without re-setting the user’s birthday to the same date as my own.
This is with BP single, latest versions, out of the box.
April 23, 2011 at 9:01 am #110790In reply to: Organize / Hierarchy Blogs
April 23, 2011 at 7:47 am #110788JamieWade
MemberI did this to my website and it works a treat. This applies if you are using the default BP theme, or a child theme. You will need to go to <b>wp-content/plugins/buddypress/bp-themes/bp-default/header.php</b>
At approximately line 47, you will see the opening tags
<div id="header">Look to about line 52, and you will see the code for the home tab. Replace the code with this<li class="selected"> <a href="yoursite.com/activity" title=""></a> </li><b> Remember to add http: // before the yoursite.com/activity, for some reason it doesn’t show when I type the full URL in here.</b>
If you look below that, you should see the code for the activity tab, delete this code. You should now have removed the activity tab from the menu, and the Home tab has now been changed so it directs to the activity stream. Any problems message me.
April 23, 2011 at 7:24 am #110787In reply to: Date in profile is broken in latest BP release
saphrym
MemberI’m having the same problem. My site is set as UTC. The Birthday plugin works and puts the right date in the widget. When editing, it says the right date. But in the public profile, it is one day earlier. (ex. July 10 is showing as July 9) Using latest version of Buddypress, BuddyPress Corporate 1.3.4 Theme, and WordPress 3.1.1.
Also, when requiring a date on registration, the date field acts as if it’s not filled out. Keeps showing red and saying “Required Field.” I was putting in a date of January 1, 1970.
April 23, 2011 at 6:32 am #110785In reply to: Get IP address that can pass current $user_ID?
Brandon Allen
ParticipantAfter seeing more of what you’re trying to do here (https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/how-to-display-the-user-post-count-in-topic-php/#post-96750) I should also point out, that this will only work if the person has logged in since you started using the code. What the code I gave does is to retrieve and save the user’s IP address each time they log in. If you can get in touch with someone who has an account with a different IP address than yourself, you can have them log out, the log in, and you should then see their IP address. To recap, here is the code you need in your bp-custom.php:
`function my_get_IP( $user_id = false ) {
if ( empty( $user_id ) )
return false;$ip_address = esc_attr( trim( get_user_meta( $user_id, ‘ip_address’, true ) ) );
if ( $ip_address = esc_attr( trim( get_user_meta( $user_id, ‘ip_address’, true ) ) ) )
return $ip_address;
else
return false;
}``function my_update_user_IP() {
$user_id = (int) get_current_user_id();if(!empty($_SERVER)) {
$ip_address = $_SERVER;
} else if(!empty($_SERVER)) {
$ip_address = $_SERVER;
} else if(!empty($_SERVER)) {
$ip_address = $_SERVER;
} else {
$ip_address = ”;
}
if(strpos($ip_address, ‘,’) !== false) {
$ip_address = explode(‘,’, $ip_address);
$ip_address = $ip_address[0];
}if ( update_user_meta( $user_id, ‘ip_address’, $ip_address ) )
return $ip_address;
else
return false;
}
add_action( ‘wp_login’, ‘my_update_user_IP’ );`then add the following to your group/members.php template:
``
April 23, 2011 at 5:27 am #110783In reply to: get buddypress profile field value!
r-a-y
KeymasterThe function you’re looking for is:
`bp_get_profile_field_data()`An example use case:
`
$field = bp_get_profile_field_data(
array(
‘field’ => 1, // where 1 is the field_id or it can be the field name
‘user_id’ => bp_displayed_user_id()
)
);echo ‘Schedule link‘;`
April 23, 2011 at 5:11 am #110781In reply to: How to display the User Post Count in Topic.php
function_im_awesome() {
ParticipantHey ray, i have a quick question.
I have wp-ban installed, and it adds a function that fetch’s the IP address of the user logged in i think, it’s the standard function for calling it.
the full code is here: https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/having-trouble-with-ip/#post-96715
What i did is I put the function in the topic.php so it would show the poster’s IP address. Now knowing that that function only retrieves the current logged in user IP, I thought I could override this with your function above, (my_topic_poster_id) so it would display the IP address of the forum poster. (like the member stats), so put in topic.php
`. `
Will it pass the topic poster ID so it shows the forum poster’s IP and not mine?
April 23, 2011 at 5:09 am #110780In reply to: Suggested Posts Plugin (for Multisite Preferably)
r-a-y
KeymasterYou want to search sitewide blog posts? That would be taxing!
An efficient method would be to use the activity loop and filter by blog posts and the “search_terms” paramater (which in this case would be your xprofile field).
One problem with this approach is blog posts, by default, are truncated when they are saved as an activity stream item, so your xprofile field might not match the blog post if the post content is cut off.
—
An alternative method is having a sitewide blog that aggregates all your blog post data and passing your search term directly to that blog’s post loop. However, this is the “taxing” method I was speaking of because you’ll have to use the switch_to_blog() function and that uses a significant amount of DB queries.
April 23, 2011 at 4:50 am #110775In reply to: Add a new Tab
r-a-y
Keymaster@tubruk – Check out bp-themes/bp-default/forums/index.php.
In that file is a hook to add more tabs:
eg. Add this to your theme’s functions.php:
function my_new_fantabulous_forum_tab() { ?> <li id="forums-newttab no-ajax"><a href="YOUR LINK">Another Forum Loop</a></li> <?php } add_action( 'bp_forums_directory_group_types', 'my_new_fantabulous_forum_tab' );If you want your tab to be AJAX-ifed, you’ll need to remove the “no-ajax” CSS class from the tab and write an AJAX hook as well.
Check out the “bp_dtheme_ajax_querystring” filter in /bp-default/_inc/ajax.php. It’s a little complicated, but once you get the jist of it, it makes things a little easier.
There’s a few posts on these forums about it:
http://www.google.com/search?hl=en&hs=6eV&rls=en&channel=suggest&q=%22bp_dtheme_ajax_querystring%22+filter&aq=f&aqi=&aql=&oq=Hopefully that helps somewhat.
-
AuthorSearch Results