Search Results for 'wordpress'
-
AuthorSearch Results
-
August 18, 2015 at 7:23 pm #243360
shanebp
Moderatoralso, the
1in this:
add_action( 'bp_core_activated_user', 'send_message_to_new_member', 1 );Is the priority, not the number of args.
August 18, 2015 at 4:15 pm #243350In reply to: Set page template for BuddyPress Registration.
danbp
ParticipantBP’s registration template is in: https://buddypress.trac.wordpress.org/browser/tags/2.3.2/src/bp-templates/bp-legacy/buddypress/members/register.php
Copy it to your child-theme, /your-theme/buddypress/members/register.php, and make your change in that copy.
In some case, you could also use bp_get_template_part filter.
August 18, 2015 at 9:29 am #243328In reply to: Photo upload
danbp
Participantif the developer ceases to update them This problem is the same for official or unofficial plugins.
Brajesh is a long year and well knowed buddypress plugin developper, you can trust his awesome work !
https://profiles.wordpress.org/sbrajesh#content-pluginsAugust 18, 2015 at 9:08 am #243322In reply to: how to check if the length of field is too long?
danbp
ParticipantHere an example for profile field lenght with some comments.
function bpfr_custom_textfield_length() { //Check if user is logged in & if xprofile component is activated if ( is_user_logged_in() && bp_is_active( 'xprofile' ) ) : $my_custom_textfield = bp_get_member_profile_data( 'field=Brief Biography&user_id='.bp_get_member_user_id() ); /* * The length = number of characters, not words. * Set the number of caracters to show. * The 3 dots are the appended text ending the excerpt. * Don't remove the quotes if you change this * BuddyPress 2.1 will add new class and id for custom fields. * The span can be omited to style this part. See ticket #5741 */ if ( strlen($my_custom_textfield) > 20) : //adjust to your need $my_custom_textfield = substr($my_custom_textfield, 20).'...'; //adjust to your need endif; // uncomment the following line to get a span around the displayed field content // echo '<span class="short-custom">'. $my_custom_textfield; .'</span>'; // comment the following line if you use the span echo $my_custom_textfield; endif; // is_user_logged_in } add_action( 'bp_directory_members_item', 'bpfr_custom_textfield_length' );Ticket #5741
August 17, 2015 at 10:17 pm #243305In reply to: Set page template for BuddyPress Registration.
deanljbirch
ParticipantThank you, the plugin I used to embed the nocaptcha recaptcha is “Are you robot google recaptcha for wordpress” available on the WP Plugin Directory https://wordpress.org/plugins/are-you-robot-recaptcha/
August 17, 2015 at 10:16 pm #243304In reply to: Photo upload
Ricsca2
Participantthis latest model seems the most comprehensive. because it is not about wordpress.org? I’m afraid to use extensions unofficial because if the developer ceases to update them as is?
August 17, 2015 at 7:37 pm #243299danbp
ParticipantA username is not a real name and wordpress use only username, email and password (the only real security point) to allow access.
And the default behavior of WordPress is to set the nicename equal to the username. So, where is the security issue ?If you’re affraid by the Name field coming with BuddyPress during registration, rename it to Pseudonyme and you’re done. The field must contain a value, which can be first name, last name or whatever. The value is mandatory, not the name as name… ch1n3s3b0y is certainly not your name !
You’re asking to replace the username by a another value collected with the same register form. Do you think that such other field has less importance in regard of security ? Why would the username be critical and the custom field not ?
You can even disallow dashboard access to your subscriber, so they never can change anything outside of what is on hand on front-end profile management.
Please read here to calm you down (hopefully) π
August 16, 2015 at 3:39 am #243253In reply to: Group Widget Link Target
danbp
ParticipantReference file: buddypress\bp-groups\bp-groups-widgets.php
To make your own version of the widget: https://codex.wordpress.org/Widgets_API
HTML definition
target="_blank"Or maybe this plugin ?
https://wordpress.org/plugins/bp-extend-widgets/August 16, 2015 at 3:13 am #243249In reply to: My accaunt in menu or header
danbp
ParticipantHowdy [username] is part of WordPress Toolbar. When BP is activated, it add a sub-menu to this menu.
If you want it elswhere, it’s not really possible as the BP part of it was written to go to the admin_bar only.
To get a similar menu, you simply add buddypress menu to your theme main menu (explained on above codex link). But this menu will be static and you cant get same details.
Another solution is to recode that menu, so you can add it with a filter function to wp_nav_menu, which handles the main menu or the header menu.
To do this, you can use a new Walker Class extention or the existing filter. Possibly also some other ways to do this, but i don’t know them.
To remove the Howdy menu and the attached BuddyPress Profile sub menu from the Toolbar, you can use this snippet (in functions.php or bp-custom.php):
function bpfr_remove_my_account_menu() { global $wp_admin_bar; $wp_admin_bar->remove_menu('my-account'); } add_action( 'wp_before_admin_bar_render', 'bpfr_remove_my_account_menu' );Codex References
https://codex.wordpress.org/Function_Reference/wp_nav_menu
https://codex.wordpress.org/Navigation_MenusAugust 15, 2015 at 11:51 pm #243239djsteveb
ParticipantI would GUESS that you could edit that plugin to add in the code as mentioned above https://buddypress.org/support/topic/how-users-can-link-to-their-profile/
Or ask the plugin author for clarification.
I stopped using that plugin when they added the extra security stuff for strong passwords that broke things for me.. however the plugin’s support page is pretty active, and given that he/she has options for redirecting users after login based on role – there may be an easy way to add such functionality to the plugin by asking the plugin author.
There is a bit of info with some of the functions here ->https://codex.buddypress.org/themes/members-navigation-menus/
I see others are asking about bp xprofile fields and such within the them my login support forum,
( wordpress.org/support/plugin/theme-my-login )
so hopefully this plugin author will add more and more BP options – I enjoyed using that plugin some time ago – hope it continues to mature.August 15, 2015 at 6:58 pm #243229In reply to: My accaunt in menu or header
djsteveb
Participant@sismis
maybe this will help without getting into code -> https://codex.buddypress.org/getting-started/buddypress-links-in-wordpress-menus/August 15, 2015 at 5:32 pm #243228danbp
Participant@djsteveb +1 !
– you go to your menu dashboard and select the menu of your theme (if exist, it should be there)
– you open screen option (top right) on menu admin and select BuddyPress
– you select profile in the left column where BuddyPress appeared and give it a title XYZ
– save and you’re done !Now you have a XYZ button near Home, About and whatever is already on your theme menu.
Doc is here https://codex.buddypress.org/getting-started/buddypress-links-in-wordpress-menus/August 14, 2015 at 12:37 am #243179In reply to: Help with New user emails
djsteveb
Participantfirst test with default 2014 or 2015 theme – and all other plugins disabled except bp – does it work then? If not…
previous forum posts maybe helpful –
(let us know what you find works!)With a new bp setup I usually check these things first if email are not seeming to send or go through ->https://buddypress.org/support/topic/activation-e-mail-failing-to-send/#post-241079 (From a recent similar thread)
Better to check the basics before digging into whether itβs a email header config on the server, php settings limiting functionality β need for wp to send as smtp plugin β something just with gmail blackhole filtering β
so many different things can affect wp sending, bp sending, your web serving sending email as php, or an email service accepting something that was sent, much less put in the actual inbox instead of junk mail / promotions box or whateverβ¦
=-=- also from danbp about 8 months ago:
When encountering a registration problem, first thing to do is to test your install without any plugins and one of WPβs Twenty default theme. Ensure that your site send correctly emails. Before activating any plugin, your base WP install must work.Once WP is OK β you can install BuddyPress and check your permalinks. Pretty permalinks must be activated to get the plugin working correctly.
This point is important, especially if you have redirection issues after BP is activated.
Second point to check is your theme installation.
Proceeding like this will help you to isolate easely the culprit. If:
β WP install: OK
β BP install: OK
β theme activation: problemSo you know here the problem comes from.
While testing your install, you can activate wp_debug (set to TRUE) in the wp-config file. This can give you a lot of information about conflict and/or errors.
Just keep in mind that these information have 2 levels of importance: notice and warning.
While notice are generally harmless, warnings should be taken seriously in account and solved.If WP is the problem, see first the wordPress support
If itβs BuddyPress, see the BP support
If itβs the theme, see the theme support
If itβs any other plugin, see first the plugin support.August 13, 2015 at 4:57 pm #243157In reply to: BUDDYPRESS 2.3.2 PROBLEM WITH PROFILE BUTTONS
danbp
Participanthi @kostasbarkas30,
i even tried to copy some functions from bp default theme in my functions php theme but still nothing.
Revert back to the original install by deleting that custom work. then follow @djsteveb advice.
Keep in mind that you should never install something on WordPRess before WP is working correctly. Same thing when you add, let’s say BuddyPress. In this case, WP and BP should work flawlessly together. Once you hace the built your house, you can add the wallpaper. OMG ! Like IRL ! π
That way, it’s much easier to debug if an issue occurs. 1 is ok, add 2. 1 & 2 are ok. Add 3. 1 & 2 & 3 are ok, and so on.
Note also that BP-Default theme is no more maintained and is only in for backward compatibility. BuddyPress works on slightly any theme !
BP has no theme, just some templates with minimal styles. This stuff is stored in bp-templates/bp-legacy/buddypress/. If you need to modify some theme functions, you do it from within a child-theme, in which you copy what you want to change from bp-legacy.
All this and more, is explained on Codex. Don’t hesitate to read through it, if you’re new to BP !
We all started a day. Rome wasn’t built in one day. It’s a Long Way to Tipperary . Facebook is unique and BuddyPress is great. Hold on, it’s just the begin ! π
August 13, 2015 at 2:00 pm #243147In reply to: Looking how to implement custom nav bars
danbp
Participant@seore, please search a bit before asking ! For example “add profile tab to nav bar”
https://buddypress.org/support/search/add+profile+tab+to+nav+bar/BP use slgihtly same technique as WordPress to build menus.
https://codex.wordpress.org/Function_Reference/wp_nav_menuAugust 13, 2015 at 11:16 am #243135In reply to: Creating marketplace using buddypress
Roger Coathup
ParticipantHi Ollie,
this is all achievable with a custom build on top of BuddyPress and WordPress.
We’ve built similar marketplace type sites on the platform in the past. BP is a useful base for the profiles in this scenario, but also the messaging, and the activity items (which can help with audit trails and transaction history).
However, 50 hours is not a lot for a site build — a basic well designed & written portfolio site can take that in excess of that. Once you add custom functionality, the multiple screens, the security and transactional aspects of a marketplace site — you’ll be considerably more.
When looking to engage a developer bear in mind you will get a better quality site in less time from expert developers. Of course, you’ll also be paying higher hourly rates for their expertise. An expert should also advise you at the start whether what you want to achieve is reasonable within your budget.
Suggest you should post this on the job board along with contact details.
Roger
August 13, 2015 at 10:56 am #243132In reply to: No Change Avatar link and url
danbp
ParticipantNo thank you ! If you need someone to get the job, hire a dev. You could post at the official WordPress Jobs Board at https://jobs.wordpress.net and/or here at https://buddypress.org/support/forum/plugin-forums/bp-jobs-board/
August 13, 2015 at 6:59 am #243109atfpodcast
ParticipantYes sir the bar is there when are not logged on. I added show_admin_bar( true ); in a function plugin and that did not work. I tried the 2014 theme with the same results. no tool bar. THe one i deactivated was the one from stranger studios hid admin bar to non admins and and I deactivated that.
https://wordpress.org/plugins/hide-admin-bar-from-non-admins/August 12, 2015 at 10:30 pm #243100In reply to: Need urgent help with BP notifications
danbp
ParticipantPlease use the code button when you publish code !
First, you can’t use a function name twice. (setup_globals)
Second, it’s more easier to do after reading the correct documentation:And to find some answers once you have this information:
http://stackoverflow.com/questions/23148948/add-a-custom-notification-in-buddypressThe dev discussion around the new notification system:
https://buddypress.trac.wordpress.org/ticket/5148And the appropriate filter
bp_notifications_get_notifications_for_userwhich let non BP component hook into notification:
https://buddypress.trac.wordpress.org/changeset/7578August 12, 2015 at 10:27 pm #243099In reply to: Creating marketplace using buddypress
Henry Wright
ModeratorYou could try looking through the WordPress Plugin Directory first to see if any of the functionality you need has already been made available. Once you’ve exhausted the free options, recalculate your development requirements and hopefully the developer effort needed will have reduced somewhat.
August 12, 2015 at 10:02 pm #243098In reply to: Profile Pic upload failure
danbp
ParticipantHi,
i’m not familiar with bp-attachment yet, so sorry in advance.
First, I would check that BP is installed and setup correctly and test it with Twenty something theme, and all other plugins deactivated.An error occurred. Please try again later.is only used in one place:bp-core/bp-core-attachment.php
This error is related tobp_attachments_get_plupload_default_settingsfunction, which controls some default settings to get plupload to work on your install.Read through it to see what is checked by this function, and maybe you will have an idea of which plugin or theme is messing up the upload process. It’s probably nothing important (pictures are uploaded), but you see that message, which is weird, of course. A little js conflict perhaps. Or a plugin with some bad code or not correctly updated…
The other reason i tell you to re-check BP settings, is this URL to a profile.
http://www.adventureridingnz.co.nz/members/members-2/martin_worswick/
Can you explain why you use/members/members-2/and how you built it ?Usually, a profile URL looks like this: `http://www.adventureridingnz.co.nz/members/martin_worswick/
`
As the attachment API use js, it is possible that the uploader doesn’t find the correct way to end the upload, or something like that, due to this URL.Headlights call from a Guzzi. π
August 12, 2015 at 6:30 pm #243094In reply to: Creating marketplace using buddypress
djsteveb
Participant@olliecard – I’m sure there are many ways to accomplish this, however I am not sure that buddypress is easily adaptable to some of the requirements – privacy for certain things, restricting profiles and such. I hope someone can chime in an share methods for using BP in this way, I’d love to see those options.
You could play with things like s2member for some restrictions and payments even – but restricting BP stuff is a challenge I think. Using other member and restrictions plugins with regular wordpress is pretty solid.
I believe you may be able to achieve your goal using some other WP plugins – there are many others that get into profiles, membership, restrictions, classifieds and such.
It might be 50 hours of work to mash all the various components together in a perfect way – and if so you may want to look at what wpmudev has withe their “membership 2” plugin and others that mix with it. wpmudev peeps had quick answers and solutions for something similar I posted about there years ago. I think their prices are double what they should be – but the support there exists, and if you are looking at a serious project it may be best to get into a professional support system like that.
Of course you would mix and match some of the free plugins in the wp-repo and probably come out with something – press permit, profile plugins, s2member – custom fields, tweak some themes – maybe even go WP-MS multi site for some semi-separated static things – and you may achieve what you are describing as well.
I’d love to see others post about other options, and I’d love to see BP have more fine grained control over things – it’s moving in that direction with things like user levels and such so the future with bp is possible, I just don’t think it’s there yet, and likely won’t be playing well with others anytime soon – and getting code help with BP – even if you offer to pay for it – is not the easiest thing in the world.
2 cents from a random user – not an expert
August 12, 2015 at 4:49 pm #243091In reply to: Photo upload
chicho1969
ParticipantYou may try this pluging: BuddyPress Activity Plus, I am pretty sure that it doews what you are looking for. link; https://wordpress.org/plugins/buddypress-activity-plus/
August 12, 2015 at 4:33 pm #243090In reply to: Wp Photo Album Plus – works 100% with Buddypress!
Jenny
ParticipantHi there,
Unfortunately the website I used wp album plus on, is my client’s private social networking website,by invitation only, so I can’t share his website link here.However I assure you that it does indeed work properly with Buddypress. If you see this support thread below, I added a tinypic link in one of the posts there, which shows a screenshot of how albums look on the front end, using buddypress and wp photo album plus plugin. If you use the echo code in this support thread, then it will work with Buddypress, no problem.
August 12, 2015 at 4:01 pm #243087In reply to: Need urgent help with BP notifications
chicho1969
ParticipantOk, now I am trying this:
//function class function setup_globals( $args = array() ) { global $bp; $sr_notifications_test_slug = 'sr_notifications_test'; parent::setup_globals( array( 'id' => 'sr_notifications_test', 'slug' => $sr_notifications_test_slug, 'notification_callback' => array( $this, 'sr_format_notifications_test' ) ) ); /* Register this in the active components array */ $bp->active_components[$sr_notifications_test_slug] = 'sr_notifications_test'; // do_action( 'setup_globals' ); } //format notofication function sr_format_notifications_test( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) { switch ( $action ) { case 'my_test': $link = get_permalink( $item_id ); $text = 'Test Notification'; $return = apply_filters( $filter, array( 'text' => $text, 'link' => $link ), $link, (int) $total_items, $text, $link, $item_id, $secondary_item_id ); break; } do_action( 'sr_format_notifications_test', $action, $item_id, $secondary_item_id, $total_items ); return $return; } //Notification added to DB: bp_notifications_add_notification( array( 'user_id' => $user_id, 'item_id' => $activity->id, 'secondary_item_id' => $activity->user_id, 'component_name' => buddypress()->activity->id, 'component_action' => 'my_test', 'date_notified' => bp_core_current_time(), 'is_new' => 1 ) ); print_r ($bp->active_components[$sr_notifications_test_slug]);and this is the error I have: (still the same)
WordPress database error: [Table 'WP_db_funs.n' doesn't exist] SELECT * FROM n WHERE component_name IN ('activity') AND component_action IN ('my_test') AND is_new = 1 WordPress database error: [Incorrect table name β] INSERT INTO (user_id,item_id,secondary_item_id,component_name,component_action,date_notified,is_new) VALUES (0,0,0,'activity','my_test','2015-08-12 15:57:21β²,1)Please if anybody Knows about this I will apreciate any help π
Table ‘WP_db_funs.n’ doesn’t exist how come?? table n ??
-
AuthorSearch Results