Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 4,010 total)
  • But you would, the code block in the centre isn’t JS it’s PHP and you have escaped out of PHP parsing so it will be treated as cdata.

    Why are you thinking you need to use json functions?

    Perhaps explaining exactly what your trying to achieve might prompt someone to suggest a better approach which there almost certainly is.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    @bucobill You have a different issue from that of the original posters, it’s for this reason amongst others that stepping into a running thread that wasn’t started by you with what is assumed the same issue is frowned upon and discouraged, multiple responses to different posters and issues in the same thread can not be supported. You must start your own thread on your particular issues. As a start point for your issue, looking at your url suggests you are on IIS or non standard apache type server running mod_rewrite head over to the WP codex and search on permalinks for some guidance on setting permalink structures under IIS.

    @samchozx Likely your theme does something odd and non standard with page.php which BP needs to use to inject it’s content into, the_content() function must run through as normal in this file, you probably need to create a buddypress directory in your theme(as a child theme) and then copy page.php renaming it to buddypress.php and copied to the root of this new bp directory, that file then needs to retain the themes specific markup but properly use the ‘the_title()’ & the_content()’ functions. Please check the BP codex for guides on this process of overloading files, editing the actual file may require some help from the theme authors.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    however we could also just add a new class to the bp body class function!

    @rodgerfuller it won’t help in the short term but I have submitted a patch to core that adds the group name to the body class output so it will have ‘group-{my-group-slug}’

    Can’t see a reason why we don’t do that, so if accepted you could patch your core file in advance of the next version being released.

    even if not accepted you can quite easily filter into the WP_classes function and add your own, done in functions.php should mean it runs after BP has done it’s filtering into the WP function, this is what I do in all my functions.php for additional classes required.

    This will get you some way there:

    $classes[] = 'group-' . groups_get_current_group()->slug;

    You’ll need to filter that into the WP ‘body_class’ filter.

    If you want something a little more complex then a plugin might be better, try something like:

    http://www.philopress.com/products/buddygroupbanners/

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    and what happens if you change to an established theme that is known to work with BP i.e one of the core WP themes, 1014,2012 etc.

    It’s important to troubleshoot some basics to establish where the core reason may lie.

    BP works with a great many themes in it’s default Theme Compatibility mode but not all, there are sadly a vast number of badly written themes selling themselves as premium themes available from third party resources that BP won’t work with, so we need to establish whether this is a theme issue firstly.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    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.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    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.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    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)

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    >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.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    @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?

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    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.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    And your register page does correctly appear so you’ll need to explain exactly what the issue is your having.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    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.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    >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.

    http://www.w3.org/TR/html5/forms.html#the-placeholder-attribute

    >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.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    >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.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    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.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    ? Does anything get updated in wp-content, considering it mainly holds themes – custom?, plugins, your uploaded images/files.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    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.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    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.

    http://codex.buddypress.org/themes/theme-compatibility-1-7/

    If/when you have further questions do post back to this thread.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    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?

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    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.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    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.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    @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.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    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?

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    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?

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    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.

Viewing 25 replies - 1 through 25 (of 4,010 total)