Forum Replies Created
-
In reply to: Limit sign up based on age?
Typically you would do this with a combination of client and server side validation. JavaScript on the client side to validate your register form prior to submission, and a secondary check in your php post submission.
Start with a look at your register.php file
In reply to: Show Profile changes in activity feedThe T-string error is because your code is not valid php
You’ve closed your function after the global definition, and failed to put a ; after your statements.
You’ll need to build your own bespoke theme, with a custom activity loop that doesn’t filter ‘the scope’, but instead shows all activities.
Sounds confusing – unfortunately, it is a little.
The default BuddyPress theme uses a set of filters (put together by a javascript routine in _inc/ajax.php) to determine which entries to show when you visit someone’s activity.
You can read more about building your own theme, and on writing a custom activity loop in the docs section of this site.
In reply to: adding an activity typeDo a search on bp_activity_add on this forum.. I’ve posted some code samples previously
In reply to: Freshness dateI don’t think there should be any trouble with quotes in this case. See examples on this page, partic. #4 http://php.net/manual/en/function.date.php
Are you still getting the ‘unexpected T_STRING’ message? Are you certain line 66 is your date(…) line?
If Ray’s suggestion / similar thread doesn’t help, it would be a good idea to post a few more lines of your code, so we can see the snippet in context.
Re: new members – did you create them in the admin system or through the BuddyPress registration pages?
To confirm: you can use custom permalinks without problem in the default wp install.. Changing them as suggested to /%category%/%postname% ?
If that’s the case, try installing BuddyPress plugin again using the automatic install, switch to the bp-default theme, and let us know the outcome
If you deactivate buddypress..can you create and use custom permalinks in your WordPress install? Try something like /%category%/%postname%/
Do they work, can you go to page, post and category pages with custom permalinks turned on?
You need to get this working on your base WordPress before installing BuddyPress
In reply to: dynamically create new sets of profile fieldsI don’t know if you found any code in the meantime, but in case you haven’t:
The basic function to insert a new profile field is: xprofile_insert_field()
And, to populate a field use: xprofile_set_field_data()
They are defined in bp-xprofile.php
In reply to: dynamically create new sets of profile fields@slashnata – no entiendo tu pregunta exactamente
@johnnyscience – does it work if you switch to the default theme?
If so, you know the problem is in your theme, and you should probably try contacting labsecrets.com for advice on this one
If not, fire it back on here
The default theme files are in plugins/buddypress/bp-themes/
But, don’t edit these directly, create a child theme and work on that
You’ll find the activity loop calls in the activity folder in the default theme
In reply to: Profile Mediabp media+ adds a tab to your profile for media uploads
I believe version 1.9 when it eventually arrives (you can beta it, but it will delete all your media when you upgrade), will support multiple media types
In reply to: BB PluginBuddyPress currently has an unusual forum implementation – it’s based on bbPress and integrated with the BuddyPress Groups concept: https://codex.buddypress.org/buddypress-site-administration/buddypress-forum/
You set it up from wp-admin… buddypress… forum setup , but have to create the forums within your BuddyPress groups.
A new bbPress plugin solution was supposed to be released as a beta in mid-September, but that didn’t happen. The author is now suggesting mid-October.
In reply to: where do I define email notificationBy default, WordPress sends system email using sendmail.
If you receive admin emails (new user joining, password changes, etc.), your email server is working, and it should send out notification emails to members without problem.
Members configure their settings: My Account … Settings … Notifications
If you want to use a different email server, e.g. smtp, this may help: http://maisonbisson.com/blog/post/12939/using-wordpress-with-external-smtp-server/
If you want to send specific emails to members, you could look at something like the Welcome Pack plugin
p.d.
en general, no me gusta tu solución – son privados por un razón!Si en realidad, quieres mas ‘vida’ por tu red, quizás hay una solución mejor. Por ejemplo: http://wpmu.org/introducing-buddystream-a-social-network-synchronization-plugin-for-buddypress/
Cómo se dice: “If you’re having difficulty getting your users to post updates on your BuddyPress site and the activity stream looks like a ghost town with only admin posts, then this plugin will help to fill in some content. It imports recent posts so that your users appear to be much more active.”
Suerte!
algunas cosas:
[es tan temprano – no puedo escribir mi respuesta en castellano]
1. You should not change the core BuddyPress files (e.g. bp-activity-templatetags.php). If you do this, you will make it much harder to upgrade your site.
2. If you want to show all activity items on the home page (including the hidden items), you can do this in your theme files (without changing the BuddyPress core files):
– Have you built your own child theme? If not, check the ‘docs’ section of this site for information
– In the activity_loop file in your child theme, include the parameter (‘show_hidden’=>true) in the call to bp_has_activities()3. No, it’s not a bug to let you reply to an activity item:
– The default logic for privacy / hidden decides whether an activity item is shown in the stream. By default, private / hidden items wouldn’t be shown. You have over-ridden this logic, by changing the template tag to show all items regardless of whether they are hidden or not
– Once an item is shown, you can reply to that item (unless it is a blog or forum item with replies disabled)4. If you want to show hidden / private items, but disable replies to them if the member is not in the group:
– Try adding an additional check for group membership in the activity-meta section of entry.php in your default theme. I’m not sure if there is enough information in the activity item to let you do this
In reply to: Translating buddypressSorry, I don’t.
Marco Rossi experimented with some plugins for this on the site we created for him at http://fisherbook.com/fisherbook-magazine – but, I notice he is no longer using them, so they mustn’t have been successful
In reply to: Removing the ”view” link from the activity streamp.s.
this doesn’t remove the permalink pages themselves, and I think the @mention notifications still lead to them.
So, you should still create the template in your theme – add some doodles or animated gifs or something.
In reply to: Translating buddypressYou would have to ask on the support forum for that plugin (if they have one)
In reply to: Plugin development – please can you helpOk, that’s very advanced level stuff – some quick answers below – BUT, please post your xprofile questions as separate threads – and give a better indication of the problem in the title (“plugin development – please help” is way too general, and unfortunately likely lead to your question being overlooked).
1. I don’t know of any book on BuddyPress plugin development – unfortunately, the codex as @lph2005 points out, is the best starting point, but it’s nowhere near developed enough to handle the questions you are asking re: xprofile_template_loop_end
2. Unless a core developer / xprofile expert can step in here, I don’t know of a better solution than tracking through the code and seeing if an earlier hook is called (and for 3. whether there is anything in the data structure passed to the hook that gives a more specific activity type). Ask these as separate threads.
4. We’ve done some work on this – if you post as a separate thread – I’ll dig through our work at the weekend, and see if I can post some pointers
In reply to: Suggestion for Group(s) on BP.orgYes, the existing setup doesn’t work… There are groups already, but I don’t think they are noticed because the support tab just presents one merged set of threads.
As you say, there is a lot of none bp, and it’s also very difficult to find tech advice that’s been given. Better docs, better forums, but above all better presentation / ux, would go a long way.
Ok… there are few things you need to look at to achieve this:
You should create a new theme where you are going to implement your reworked profile / activity sub-nav menu. I suggest deriving this from the bp-default theme: https://codex.buddypress.org/extending-buddypress/building-a-buddypress-child-theme/
In the default theme, the activity sub-nav menu is created by a call to bp_get_options_nav() in /members/single/activity.php. It’s this call that you’ll either want to replace with your custom version (or apply filters / action hooks to get your desired result).
You should also take a look at how the activity stream is built – it’s quite easy to create your own activity loop that will return all the items for a given user merged into a single page (rather than the separate tabs): https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/
Hopefully that’s enough to get you started.
In reply to: Howto : put a picture between header and contentThere are any number of ways you can do this using CSS positioning (and developing your own bespoke website theme).
This isn’t really a BuddyPress question though, it’s a general website development / CSS question. I suggest a good book on CSS would be a starting point.
Incidentally: There’s no need for div wrappers just to position an image (you are adding unnecessary bloat), and I’d certainly avoid inline style definitions (which can be a maintenance nightmare).
@pcwriter – I’m not sure what you are trying to write with your CSS, but I suspect you’ve confused absolute and relative positioning. For the approach you are suggesting, you should make your main header div relatively positioned, and use absolute positioning on your image to position it absolutely in relation to the header div: http://css-tricks.com/absolute-positioning-inside-relative-positioning/
As to suitability of BuddyPress for a ‘simple site’ – it depends what you want that site to do – if you want user profiles, messaging, groups, activity streams, etc. – then BuddyPress gives you a great platform to build on.
If you just want a simple content management system with posts, then you’d be better building on vanilla WordPress.
If you don’t need content management, then your simplest site would just be HTML and CSS.
You can write your own customised BuddyPress website (theme) to achieve this:
Please check the codex reference I gave you – it has all the details on how to write your own custom (filtered as you want it) activity loop.
Also check under docs on this site for details on how to write your own bespoke website theme.