Forum Replies Created
Do try to always check tech documentation before asking questions, while the codex is not 100% perfect we have put a fair bit of effort into writing articles to help & guide people, such a how to work with template files in BP.
Might be very wide of the mark but haven’t time to read the rather lengthy specs evolving here – try having a look at Paul Gibbs ‘Achievements’ plugin.
stylesheets are a client side processed file, you cannot place server side code such as PHP in them. To run code such as that filter you either run it from a plugin, your themes functions.php file or from bp-custom.php located in the plugin folder root (and user created – it doesn’t exist by default)
>I’m sorry I can’t do that.
Can’t do what/which?
Also what are you trying, what code, it’s difficult to suggest anything when not sure what you have tried that hasn’t ‘worked’ tbh if you want to customize then you will need to learn a little bit about how to use CSS, providing the styles for you will not really be possible as they need to sit within a particular theme.
If you have images you can paste them into posts, I apologise but I’m removing the link to that image service as it has dubious practises at work, too many third party ads and a very annoying re-direct to another site (casino type site) when you try and back out of the page.
@metasynchronic The post was closed as it wasn’t really a question that related directly to BP. it was in fact a question related more to servers and WP.
Was the BP install working before, when you installed via the auto install script, generally the strong advice is to avoid those auto installers like the plague, but that doesn’t mean they are all bad, but it would be very hard for us to advice in detail unless someone has direct experience of this particular installer. It is something that perhaps wpengine could advice on or at least run the import, set you up and if there are issues then re-install on the new server (which I would probably do anyway), if you’re moving to a new server/hosting might as well make the move then resolve issues there?
Certainly using JS is probably the easiest/sensible option here, if you know your controls should be simple enough to add the placeholder attr to them.
And your register page does correctly appear so you’ll need to explain exactly what the issue is your having.
When you say “solve the issue of repairing “Register” “Links” & “Activate” pages.” that generally means simply telling BP what pages you created should be used for these BP components.
You need to explain a little about the actual problem you are having doing this or is this some deeper issue with the custom theme you mention in which case you’ll need to clarify how that works where these aspects of BP are concerned.
>removing the labels altogether.
Please don’t remove labels altogether, responsive design does not mean writing malformed markup contrary to the specifications, nor for that matter do the new html5 atts. placeholder text is nice but does not replace the proper use of label/control pairs.
>The placeholder attribute should not be used as a replacement for a label. For a longer hint or other advisory text, place the text next to the control.
WP has a convention for hiding label text using a class something like ‘screen-reader-text’ or ‘assistive-text’ can’t recall which and adding a ruleset to position the label element off screen(not! displayed none).
As for adding html5 atts to the additional profile field elements the only way will be if they have a filter, but think this is going to be tricky to implement.
>When I get this figured out I may be qualified to write a dummies-friendly tutorial – LOL
Did try and write it as noob friendly as possible
The editor im WP won’t show subfolders or used not to and it’s not a great idea to edit files this way or indeed have it running from a security point of view.
And the file paths/dir are vital as stated in the guide. When you are a little more familiar with the process of template hierarchy and theme compatibility have a read of the more advanced guide on how to further modify the template files for more specific actions.
behind the membership options?
Every one of these pages have the REQUIRE MEMBERSHIP enabled to view (and all my membership levels are checked)
You seem to be talking about some third party approach to membership here, if that’s the case you really do need to acknowledge that in the opening question so we know how to respond best, bear in mind that buddypress doesn’t have any default membership options as you describe them.
? Does anything get updated in wp-content, considering it mainly holds themes – custom?, plugins, your uploaded images/files.
Once you have your files copied to your child theme as explained in the guides so that you may safely edit files such as buddypress.css you will need to use a browser dev tool such as Firebug for firefox to inspect elements on the screen which will then show you what rulesets govern the visual styles and where in the file they live i.e line number.
If you already have a child theme in use then that’s great you do not need to repeat that step, you will use your child theme to hold copies of various buddypress files so that you may modify them safely.
Please always check the documentation that is available as we have some guides on tackling this aspect of overloading BP files to child themes, these guides will explain how to proceed.
If/when you have further questions do post back to this thread.
What you ask would require some custom functions being created and that would require fairly extensive php skills and knowledge of BP.
There are some connect plugins around that are BP aware, nextend google connect springs to mind as one that does populate BP profile fields with user data so it may be worth hunting around for other plugins?
And what are your permalinks settings? Are you running with ‘almost prety permalinks’ or are your pages/posts references as something like ?p=.
Running under IIS does have issues with setting up permalinks which Apache doesn’t, BP does have a strict requirement for permalinks running. I would check out the WP codex for articles on ISS and permalinks unless your happy those are working correctly on your install.
If you choose a theme that says it’s compatible with BP then really first port of call for issues needs to be the theme authors.
tbh looking at those pages doesn’t suggest any particular issues with BP, but you will need to be specific as to what you consider are issues. Always try to describe issues rather than just link to pages as then people have an idea of what to focus on and help will be more forthcoming.
@osirisravenwood to answer your last question, you work in the child theme NOT the parent, as soon as your running a child theme all work happens in that theme not the parent for the very reason you state earlier in requiring files re-adding back to theme on any updates, and the reason child themes exist in the main.
Please do read links left on posts though, the one left earlier by mercime referencing the codex article was written to explain this aspect.
Users are either meant to ‘close’ the message or the one responsible for issuing it deactivates it while leaving the widget in place – having the widget activate is about the only check that made sense at the time as a means to cancelling out the default message positioning as a overlay across top of site, remove the widget and that default behaviour will restate it’s self.
However some of what you’re describing sounds as though it may well be theme related?
I can’t replicate this issue on a fairly standard install running trunk, yes the BP display strings are wrapped in paragraph tags(nothing wrong in that) but I do not see that transposing to any edit screens in backend or on adminbar. Is it possible you have plugins running that might be involving themselves in the profile process?
Moving your files under a folder in root of theme as either ‘community’ or ‘buddypress’ with the folder structure as seen under BP’s bp-legacy folder will allow you to overload all the templates to be used by BP first if found in preference to it’s own copies with the benefit of using the bp functions file and other assets styles js both of which are also copyable to your theme, but best to leave all but css under bp control, however theme compatibility was made as flexible as possible by design and you can move the whole thing i.e functions.php and create a new instance of the theme compat class referencing your own paths and files etc.
When you had your BP files directly in the theme root you were effectively telling BP that theme compat mode was disabled as it’s setup to run a check for files in certain paths and bail out of further theme compat setup, this is a tricky area though and the best advice is to work with theme compat as really there’s no good reason not to.
The two articles – which I think you have read already – are a good reference, be sure to read the second one that goes into more depth on the extended template hierarchy for BP templates.
@simple-man you might want to read the release docs more carefully
@jonbie you already have a more recent thread running on this same question, please stick to one thread per question to avoid splitting responses & confusion.
Closing this thread.
Why did you not use the given example in the file?
That’s a self echoing function so need for ‘echo’ & it can be used in a members loop.
You can pass the args as an array but as ‘field’ & ‘user_id’ but again in the example it shows you simply (‘field=my-field’)
You can use the function as you have but no need to use it’s ‘get’ version unless you want to prevent it displaying but you can only pass the two args as mentioned ‘field’ & ‘user_id’ if you leave out user_id it defaults to displayed_user_id.
A for where it goes that’s up to you, can’t really tell you where to place it that depends on what looks right for your layout.
A familiarity with BP templates is going to be essential here so if you aren’t first step is to check the codex and give a quick read to the guides on working with Theme Compatibility which will help explain how to create copies of the BP templates for modification; then an understanding of how WP child themes work so you can safely modify files without losing the changes.
Then if you open member-header.php you will actually see a commented explanation on how to do what you want, you will then need to move the function to a position you want in that file i.e above/below the heading markup, wrap it in a suitable html element e.g ‘<p>’ or a span if you want to use it within the heading tag and style as wished.