Search Results for 'buddypress'
-
AuthorSearch Results
-
December 25, 2008 at 9:45 pm #35075
In reply to: Take away Create a Group option
Burt Adsit
ParticipantHi wardeh. I was checking the ‘topics with no replies’ and saw you here. All by your lonesome self. How goes the battle this week?
You don’t want to turn off groups but you just don’t want the option to create more groups to be available. Well, you want group creation to be a site admin thing only. Hmmm…
I went and looked at the member theme code and finally arrived in the core code and lo and behold Andy was thinking of you! There is an unused option for the menu items. ‘site admin’ only. You’ll have to modify one line to turn off the group creation option for everyone except you.
In the file /mu-plugins/bp-groups.php at line 205. This currently reads:
bp_core_add_subnav_item( $bp, 'create', __('Create a Group', 'buddypress'), $groups_link, 'groups_screen_create_group', false, bp_is_home() );
Change that line to read:
bp_core_add_subnav_item( $bp, 'create', __('Create a Group', 'buddypress'), $groups_link, 'groups_screen_create_group', false, bp_is_home(), true );
That change adds the ‘true’ parameter at the end which normally defaults to ‘false’. It’s the ‘site admin only’ sees this menu item flag.
Merry Christmas.
December 25, 2008 at 6:26 pm #35068nicolagreco
ParticipantUPDATED, i wrote an example plugin that works without adding files in member-theme

You can find a small post here http://buddypressdev.org/forums/topic.php?id=7
That explain a bit about this example extending component that i called bpdev-example
I forgot, here you can download bpdev-example : http://buddypressdev.org/plugins/bpdev-example
December 25, 2008 at 5:05 pm #35067nicolagreco
ParticipantI’m sorry. So, i think that you don’t need add files in /member-theme/ because you can write your plugin without adding files in /member-theme/ for example you can write:
function test_page_settings() {
global $current_user, $bp_settings_updated, $pass_error;
add_action( 'bp_template_title', 'test_page_title' );
add_action( 'bp_template_content', 'test_page_content' );
add_action( 'bp_template_content_header', 'test_page_tabs' );
bp_catch_uri('plugin-template');
}
function test_page_title() {
_e( 'Hello title', 'buddypress' );
}
function test_page_content() {
global $bp, $current_user, $bp_settings_updated, $pass_error; ?>
<p>Hello Content</p>
<?php
function test_page_tabs() {
global $bp, $create_group_step, $completed_to_step;
?>
<ul class="content-header-nav">
<li>Hello Tabs</li>
</ul>
<?php } ?>With that you don’t need to add page in /member-theme/. I think that users that install a plugins want only add files on mu-plugins/.
Think if i’ve another member-theme that isn’t like the default, and i would like add this plugin..
I hope i explain well now
December 25, 2008 at 3:42 pm #35065Per Søderlind
Participantsorry, my bad .. I created “the bug”
December 25, 2008 at 3:28 pm #35064David Bisset
Participant@Nic. Unfort. i’m guessing what you are saying. It’s not clear, but i realize english is not your first language. The examples above include how to simply modify the existing BuddyPress theme. Plugin-template is actually a nice starting point, I just added more to my examples. Thanks for the feedback.
December 25, 2008 at 2:44 pm #35062nicolagreco
ParticipantI think that you don’t need using page to add in your member theme :S look plugin-template.php
December 25, 2008 at 1:51 pm #35061David Bisset
ParticipantUPDATE: This trumps the first version of bp-test mentioned above.
Basically I have created three versions of bp-test which allows one to learn and hopefully start building BP components. Here is a blog post with screencaps:
For those impatient, here are the links:
http://www.davidbisset.com/wp-content/uploads/2008/12/bp-testv0-1-0.zip
http://www.davidbisset.com/wp-content/uploads/2008/12/bp-testv0-1-1.zip
http://www.davidbisset.com/wp-content/uploads/2008/12/bp-testv0-1-2.zip
Version 0.1.0:
This version is very close to the proof of concept screenshots for Twitter and Friendfeed. Very basic – it just adds a menu and two submenus to that menu. It should automatically also add the menu to the “BuddyPress Bar†that appears at the top and (by default) is grey.
Version 0.1.1:
This version adds the “header tab†navigation you see in the screenshot on my blog. This requires a few additional PHP functions, and therefore increases the complexity a little bit. I also added a few BuddyPress PHP functions in the sample page that you should become familiar with but are very straightforward. This version rounds out how to create major navigational elements in BuddyPress.
Version 0.1.2:
This (final?) version changes the “Second Page†into an example of showing rowed results (similar to what you see on the wire page). This bumps up the complexity a bit since we use alot more PHP functions, mostly stored in the bp-test-templatetags.php file. We also use several classes seen in bp-test-classes.php and bp-test-templatetags.php. Also add a “standard†(of sorts) filter file (bp-test-filters.php). If you are planning on displaying anything in a table/row format like in the screenshot above, then you will want to examine this version. I have removed AJAX references to make it easier. Honestly this is all very close to the WIRE BuddyPress component so if you want to look at that as well, especially if you have the hang of this and just need to add in AJAX, that would be a wise move.
These three versions support potential BuddyPress components ranging from the very simple to more-or-less the level of some of the current BuddyPress beta components. These building blocks will hopefully be a learning tool first (if you don’t understand what they do, then you won’t get very far) and a time saver second.
December 25, 2008 at 9:20 am #35060In reply to: 3rd parts Plugin Directory on BuddyPressDEV
nicolagreco
Participanteheheh, now i understand your sarcasm. Next time try to use smiles like
December 25, 2008 at 6:08 am #35057In reply to: 3rd parts Plugin Directory on BuddyPressDEV
Burt Adsit
Participantnicola, I’ve been teaching you american slang in irc. This is your first lesson in sarcasm. I keep forgetting that english is your second language. Sorry. Trying to be funny and failing miserably.
December 25, 2008 at 5:56 am #35054In reply to: Redirecting user to profile page
Burt Adsit
ParticipantHowdy. You can modify the member theme’s target for successful login in the /member-themes/buddypress-theme/header.php file. Lines 53 and 55. It redirects people to site_url() you can send them where you’d like by replacing that with your destination.
If your user elects to login via the buddybar
you can edit the file /mu-plugins/bp-core/bp-core-adminbar.php in the function bp_adminbar_login_menu() at line 33. Another similar line where they get redirected to ‘siteurl’.
December 25, 2008 at 4:08 am #35052In reply to: Avatar cropping issues
fishbowl81
ParticipantYou may want to try a larger image. There are still issues, but currently buddypress doesn’t have anyway to “upsize” images before cropping. The early beta had a minimum image size of 450x450px, and generally have had pretty good luck when using images of that size or larger.
December 25, 2008 at 3:45 am #35051In reply to: BuddyPress Showoff: Post your links
grizzlygroundswell
Memberhttp://theodoremedia.com Grizzly Groundswell!
December 25, 2008 at 3:42 am #35050grizzlygroundswell
MemberThis is great stuff! Can’t wait until it is released!
Chad
December 25, 2008 at 3:39 am #35049In reply to: How-To: Expanding BuddyPress Profile Settings Menu
grizzlygroundswell
Memberhey, this is a great idea! It did not work when I entered the bp-social.php in PluginMU but I am also running the pay to blog plugin and I think there is a conflict there or with something. Hey my site is http://theodoremedia.com and if you come up with a fix, please post here or email me grizzlygroundswell@chadeverson.com I have had some really exciting success with twitter, now over 13,000 followers on @chadteverson @clayoxen @EWEverson @grizzlyfeed @grizzlyradiorss @grizzlyvideorss @socialistsqurrl
There is some incredible reach that can be gained through twitter by extending my online efforts through twitter.com
I came up with a strategy you may find interesting http://www.fightingsquad.theodoremedia.com look for the post on twitter. people are getting 1000 followers in 5 days and keep growing every day! If you use the strategy keep me in touch with how much success you are having!
Chad Everson
December 25, 2008 at 3:19 am #35048David Bisset
ParticipantPers,
What exactly do you mean by “main page”? I am on the main page of my BP site and i still see the “test” in the dropdown “my account” in the top bar. I am logged in, though. Screenshots would be helpful.
Just want to confirm to determine perhaps if it’s MY code or truly a BP bug.
December 25, 2008 at 2:21 am #35047Per Søderlind
Participanteh .. there’s a bug in buddypress, when you’re on the main page, “Test” is missing from the admin bar. If you enter a member page, it’s there. I’ve reported this in ticket #283
December 25, 2008 at 2:18 am #35046In reply to: Forum Integration: HELPING HINTS
grizzlygroundswell
MemberTrent, where can I find this: –> WPMU 2.7 SVN
Hey stop by and check out our conservative version of BuddyPress! http://theodoremedia.com
Thanks, we are loving Buddy Press!
December 25, 2008 at 2:15 am #35045In reply to: Redirecting user to profile page
grizzlygroundswell
MemberI am having a similar problem. Except when in http://www.grizzlygroundswell.theodoremedia.com when a user goes to sign up it takes them to the WP login without offering an option to register.
So I need to know where I need to change that redirect.
Another problem when you go to any user’s profile the tab says “nothing found for username”
Just two concerns that I need to figure out. Loving BuddyPress so far! Check it out! http://theodoremedia.com our conservatives are loving it!
Chad Everson
763-244-3265
December 24, 2008 at 11:47 pm #35043In reply to: How-To: Expanding BuddyPress Profile Settings Menu
iamzaks
Memberamazing work! I would like to help translate it to spanish, please let me know what I can do!
EDIT: I added the two pieces of code to my bp-core-settings.php and it just broke my site, loaded a blank page instead of the content.
December 24, 2008 at 11:32 pm #35041In reply to: 3rd parts Plugin Directory on BuddyPressDEV
nicolagreco
ParticipantI’ve just registred an account, sendme your e-mail, and the nick you want on notsecurity at gmail
December 24, 2008 at 11:19 pm #35040gpo1
Participantcheck out twitme 1.7 plugin which integrates twitter fully for bp.
still work in progress
December 24, 2008 at 10:34 pm #35039Per Søderlind
Participantnice, very nice. thank you david
December 24, 2008 at 9:27 pm #35038In reply to: 3rd parts Plugin Directory on BuddyPressDEV
Slava Abakumov
ModeratorNothing in spam-folder (I did this several times). Be waiting…
December 24, 2008 at 9:19 pm #35037nicolagreco
Participant@dimensionmedia, i’m working for aggregator, here a picture: http://img385.imageshack.us/img385/6578/aggregatorlg7.jpg
i think tomorrow i will release basic code
December 24, 2008 at 9:01 pm #35036David Bisset
ParticipantGreat Nic. I’m developing another version of this that expands on the navigation.
Remember that this isn’t really a plugin, more like a starting point FOR a plugin.
-
AuthorSearch Results