Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 101 through 125 (of 1,007 total)
  • @rogercoathup

    Participant

    As @modemlooper points out, this is trivial to implement with a little PHP development knowledge.

    s2member builds on top of the WordPress roles and capabilities system — so, in addition to the s2member wrapper functions, you can also use standard WP functions. Combine them with the BuddyPress API and you have a rich environment for creating code to handle access control to pages.

    You can add your access / redirect logic in your theme’s header.php files, or even neater in an action function (in your functions.php file) — try hooking onto init, or bp-screens.

    In reply to: Profile wireframes

    @rogercoathup

    Participant

    @FIQ – horizontal navigation tends to work well with a small set of options, but falls over for a flexible site with large numbers of screens / menu options / tabs. As you add more screens (photo albums, events, etc, etc.) you quickly run out of reasonable horizontal space to display the menu tabs. We’ve encountered this on a number of our builds.

    Vertical navigation on a flexible (expandable) social site copes better with a large number / growth in menu options. It’s the approach that both Facebook (news feed / landing page) and Google+ take to cope with that situation.

    It continues onto Facebook’s mobile app as well — where the menu button expands to a long vertical nav.

    Of course, there are those who’ll cry out we shouldn’t copy Facebook — but, that kind of begs the answer “Why not? They’ll have invested considerably in analysing the UX issues / best practices – let’s learn from that.”

    [EDIT: In any case, I trust the navigation and the actual content will be rendered via separate template parts – which should make it relatively straightforward (even for ‘default themers’) to present / locate the navigation where they best see fit.]

    @rogercoathup

    Participant

    Yep, nothing wrong with that file.

    MIght be worth Googling to see if it’s a litespeed related problem, or if anyone has had the problem previously. Then bump again on here.

    @rogercoathup

    Participant

    Say it isn’t so!

    Handy for you in this case, but a nightmare generally speaking. A class of ‘confirm’ is something that’s quite likely to be used by devs, without wanting any unexpected Javascript kicking in.

    The classname should be namespaced in the core.

    @rogercoathup

    Participant

    OK, so the problem is in your configuration, rather than your theme / plugins.

    A few suggestions to try: setting / resetting your permalink structure (from wp-admin); checking your .htaccess for redirects. Failing that – Googling the problem to see if anyone has addressed it previously; then bumping it again on here to see if anyone has further input to add.

    @rogercoathup

    Participant

    It’s purely voluntary – with reasonably regular input from one of the core developers.

    People will answer questions that take their fancy, or where they can provide useful feedback (and sometimes when they can’t) — most reasonable questions will get a response within 24 hours or so.

    I’ve given a little feedback on your other question [tbh — including all that info about your setup tends to distract from your question — I know it’s in the forum guide, but just sticking to a minimum stops your post looking intimidating! Don’t tell anyone I said this]

    @rogercoathup

    Participant

    Does it work using the bp-default theme and with all your plugins (apart from BuddyPress) deactivated?

    @rogercoathup

    Participant

    Here’s a related thread — although, about post urls rather than member profile URLs, in the activity stream. https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/changing-wordpress-permalinks-breaks-old-buddypress-activity-updates-links/

    Storing the post URL independent of the permalink structure, is a simple enough fix. It’s harder to think of a solution that could deal with 3rd party plugins (or manual) changes to the member URL structure (other than the core BuddyPress being enhanced to support a ‘permalink’ settings for BP members / components similar to those applied by WP to posts, categories, etc.)

    @rogercoathup

    Participant

    Activity stream content is created / hard coded when the item is created, so you have your old member urls in there.
    You have two options.. A search and replace in your database of old style links, or add a filter to get activity item call which inserts the missing URL part.
    Unfortunately the activity stream items aren’t very resilient to future changes in URL structures.

    @rogercoathup

    Participant

    Using phpmyadmin.. Export your tables to file on the source site, and import from that file on the destination site.
    There are plenty of tutorials on moving a WordPress site.. Have a Google.

    @rogercoathup

    Participant

    Your items (activity, groups, etc.) will all have member IDs in them, and other key fields.

    If you try to move those tables without moving the members table as well, you will lose all the keys, and the items will not function correctly.

    If you want to move them ‘programmatically’ and assign the items to different members, you will need to write a very sophisticated import routine — remember some items such as activity updates have multiple ID fields that you’ll need to manage.

    @rogercoathup

    Participant

    If you want to add additional Javascripts — use wp_enqueue_script() to load them.

    Put your wp_enqueue_script() calls in your theme’s functions.php file.

    [Edit: and of course, remember to upload your scripts to the server. In bp-default theme, the scripts typically reside in the _inc folder, but put them wherever works best for your theme.

    @rogercoathup

    Participant

    You can use the filter bp_get_group_join_button to modify the class.

    Have a read up on WordPress filters and actions.

    You can put your filter in bp-custom.php or functions.php.

    That said, I’m not sure what simply adding a class ‘confirm’ will achieve — is there some Javascript configured that will auto display a confirmation popup if the button has a class of ‘confirm’ added to it?

    @rogercoathup

    Participant

    You add the filter (and associated hook) in your functions.php file. You don’t modify any of the core files.

    ‘hook’ the filter onto one of those hooks that bp_insert_activity_meta provides – e.g. add_filter( ‘bp_activity_time_since’, ‘my-function’, … );

    @rogercoathup

    Participant

    @qrahaman – thanks for the feedback. We used Buddyvents on a few projects at the time, but more recently have been working with Modern Tribe’s Event Manager plugin.

    @rogercoathup

    Participant

    @thirstcard — image replacement techniques for small pieces of text like this are used throughout the web (find a modern website that doesn’t do it somewhere or other) — Google is not going to punish you for this. Have a read around, there are hundreds of articles on this and SEO.

    Here’s Jeffrey Zeldman’s post on the latest technique to use: http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement/

    @rogercoathup

    Participant

    @modemlooper – I missed where you made that point?

    @rogercoathup

    Participant

    @synergywp – I understand where you are coming from re: visibility of username in the url and the consequent reduction in site security.

    It’s a fundamental part of the way BuddyPress sets up the URL structure, but should theoretically be
    possible to rework the rewrite system to implement something more secure. Perhaps in the Facebook style, where user ID in the URL is just a number (until they change it to a preferred name), and does not reveal their login username (an email).

    Would be interesting to get feedback from an informed core developer on this subject — did you check the trac to see if it had been raised before.

    [EDIT: having said all that, is Facebook much more secure? — if someone knows my email address, they know my username]

    @rogercoathup

    Participant

    Do you mean like this:

    http://stuconnect.co.uk/groups/#.UDqEIUJAjyU

    It’s not a code snippet or plugin. To achieve this affect, we just made some simple changes to the groups-loop /entry.php template to modernise and simplify the markup, and then styled appropriately in the CSS file to achieve the layout (floating the items and so on).

    If you’re au fait with CSS and PHP / HTML it’s straightforward to achieve.

    @rogercoathup

    Participant

    @FIQ – assume you are meaning a jQuery event, equivalent to something like a document.ready() that fires on Ajax load. Pretty sure there are some default jQuery events ready to AJAX activity.. can’t remember names off top of my head

    [EDIT: take a look at the global jQuery ajaxSuccess, ajaxError, ajaxStart, ajaxSend, and ajaxStop events — there are also local versions]

    @rogercoathup

    Participant

    @shemada – to do this properly, you need to use the bp_core_remove_nav_item() function.

    Add a call to it in your theme’s functions.php file passing in the ID of the Events nav item.

    If you Google on here for ‘remove_nav_item’ you should find plenty of previous threads / examples.

    @rogercoathup

    Participant

    @thirstcard – Henry, as Tammy suggests — CSS can address this for you; It’s a little more complex than just setting background.

    Have a Google on CSS Image Replacement Techniques — there are several approaches, you can choose your favourite.

    @rogercoathup

    Participant

    If you are sure the option field in the db for your sidebars isn’t corrupted, then it may be a clash in the way you’ve named (id’d) them, or perhaps in where you have your hook to create them.
    It’s impossible to say without more information, or someone taking time to walk through your site, examine your code, and test your db pre and post upgrade, etc

    [Edit: I’m assuming you’ve also gone through an upgrade with all other plugins deactivated, and using the bp-default theme, to ascertain whether that preserves the widgets, before switching to your theme, and reactivating the other plugins]

    @rogercoathup

    Participant

    The plugin is 3rd party, not from Woo. It’s owned by Sven, with a lot of the code developed by Boris. But thanks for the advice @modemlooper.

    It’s easy enough to rework it.

    @rogercoathup

    Participant

    @megainfo – my outline solution from the other threads is:

    “If you have a look in the code for bp_has_activities(), you can
    see how it’s implemented scope searching internally, and then create your own version:

    e.g. for scope=>friends, it builds an array of the friend IDs and sets that array as the user_id element of the filter.

    Therefore, you should be able to do the same in your template — create an array of friend IDs, add the users own ID to the array, and then pass the array as the user ID filter to bp_has_activities().”

    Rich Fuller’s version: http://wpmu.org/create-a-better-community-experience-with-the-new-buddypress-friends-only-activity-stream-plugin/ takes an alternative approach.

    There’s some coding involved, but either of those solutions should help you.

Viewing 25 replies - 101 through 125 (of 1,007 total)
Skip to toolbar