Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 3,988 total)
  • 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.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

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

    http://buddypress.org/support/topic/placing-a-set-profile-filed-beside-users-name-in-h1-title/

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    Why did you not use the given example in the file?

    bp_member_profile_data();

    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.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    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.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    @barney92 Not really the best way of responding nor is having a ‘lousy week’ an excuse I’m afraid, lets just back off the forum until we are having a better week is generally the best approach.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    @barney92 A final warning: Please do not resort to insulting forum members, it’s not to be tolerated.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    @anna_tianna

    It is not a case of not being willing to help but as @shanebp pointed out how to help is the problem, generally on tech forums an idea of what has been attempted or what exactly is the issue run up against is looked for, you mention a link to the codex but state your skills are not sufficient thus the only advise that can really be given is that which shanebp did give.

    @barney92 A gentle warning with my mods hat on: Please tone it down a bit, if you have nothing constructive to offer that helps the OP’s question then it’s better not to post at all.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    Yes I removed the links, especially to this thread which actually offers zero advice on dealing with caching :)

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    @inget Sound like issues probably better raised or made on the bbPress support forums.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    However don’t simply expect to suddenly find BP functions like a dream on teeny weeny weeny screens, if you really want that you’ll probably need to put some custom work in or find a plugin that renders a more app like view of the site on mobile devises.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    It’s an understandable assumption but sadly an historic nomenclature that can’t be changed now. In some senses though that set of templates will become a legacy of the older bp-default standalone theme that was provided before ‘Theme Compatibility’ arrived in 1.7 as essentially they were revised copies of the existing bp-default templates, when we get the Template Pack project added to core, hopefully in 1.9.1, those will represent the best and latest set of templates to use with theme compatibility. Not sure if that makes anything clearer though :)

    >Thanks everyone for this hard-to-find-info!

    Well we have attempted to provide some guidance in the codex.

    As for the general point about naming I have raised the issue of ‘bp-default’ on trac as when this old theme is finally moved out from core and added to the WP repo I for one would prefer that it isn’t any longer referred to as ‘default’ as that is confusing as it isn’t the default theme, theme compatibility is the process BP uses now and as such that isn’t a theme more a set of templates designed to work in conjunction with any chosen theme.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    Having resurrected a 4 year old thread for no apparent reason other than perhaps highlighting there’s an issue it would have helped if you had provided a clue as to which , of the many pages in the codex, brought you to this thread so we could deal with it!

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    Please ask specific questions on the appropriate forum:

    http://wordpress.org/support/plugin/live-comment-preview

    It’s not BP related, a third party plugin, and we’re not necessarily going to be familiar with it’s setup and configuration, also we have no knowledge of what theme you are using or how that’s setup or where they may have put the comments form code.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    ? Is this a BuddyPress related question, if so you’ll need to be clearer on what you want to do.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    There are times when it’s worth remembering that a theme is not necessarily just a bunch of visuals but the directory that contains the crucial files, without which a site will not function and that not all sites hop around changing themes on a whim which would be very poor practise from a business site point of view. I get why people say a theme should only contain theme related code, but this applies to themes as they might be released to a repo for general download and can not have any notion of what a site user might need to do and then yes theme files mustn’t contain this sort of function, but as asked in this thread and as long as the OP understands what it means to keep that code in a theme that then isn’t portable across themes although perhaps a must always have requirement then it’s fine to add to functions.php.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    It’s a difficult one to help with, would need to see how this plugin links page selected widgets to page sidebar/page id. You’re going to have to trace back and try and find where this plugin stumbles, which I know isn’t much help really.

    There’s probably an alternative one could take coding things from scratch, but again to be able to suggest what goes slightly beyond what’s possible on a forum and needs detailed look at things.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    When what is deactivated or how deactivated?

    BP theme compatibility will use page.php by default unless you overide that behaviour and as such will show it’s content within that page structure so your get_sidebars() calls should be unaffected.

    You don’t really go into much detail about the theme your using and it’s setup which does help to understand what’s happening.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    Before asking questions of this nature it’s important to understand how theme compatibility in BP functions, reading the docs first would clarify this, it’s why we write them :)

    http://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    I’m afraid not at this time, maps display in groups and members directory to simply show individual location for members, you could though try using a custom front.php for your groups and customizing that to have a shortcode standalone map display and pass a group location through to it, but it wouldn’t be able to display group members.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    If you don’t know how you’re loading BP assets that suggests you are running under bp default theme as a child theme or overloaded all the template files to your theme root e.g themes/my-theme-name/members/index.php that would mean you’re not running under bp theme compatibility (have to admit didn’t look for the other tell tale signs for approach taken) I would check out the codex for a better understanding of theme compatibility if you’re unfamiliar with it.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    Good job doesn’t look half bad. One thing though spotted you load the BP JS from the bp-default folder , old bp-dtheme I would change that either copy the file to your theme or grab it from bp-legacy as it will be safer in the long run, when eventually bp default theme is retired and removed.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    This is an old thread!

    Using CSS to remove objects in this sense is an incorrect, and unsafe use of CSS.

    The filter does work as described in the original solution run from either bp-custom or functions files or disable messaging for a complete solution.

Viewing 25 replies - 1 through 25 (of 3,988 total)