amandafrench
Forum Replies Created
-
Forum: Plugins
In reply to: [Loco Translate] Fixing BuddyPress 2.9.3Thanks so much for this! I thought I was crazy when I tried to edit buddypress.pot and it was empty.
Forum: Plugins
In reply to: [DiRT Directory Client] Changes to DiRT API, maybe?Forgot to say thanks, @boone. Thanks!
- This reply was modified 6 years, 9 months ago by amandafrench.
Forum: Plugins
In reply to: [DiRT Directory Client] Changes to DiRT API, maybe?Ah, that’s done it! Resetting permalinks (as usual) fixed the 404. So simple. And I can see now how it’s supposed to work.
I think I’ll turn it off for Groups, though, and just have it available from user profiles and from the /tool/ page.
Forum: Plugins
In reply to: [DiRT Directory Client] Changes to DiRT API, maybe?Thanks for the reply, @boone! Yes, the stuff above is the group description. No, there’s nothing below the bottom of the screen (apart from the site footer etc.). Clicking the “Digital Tools Directory” link does take me to the /tool/ page, but it 404s. Admittedly this might be because I’ve renamed “Groups” to “Projects” throughout, including a couple places in the buddypress plugin itself (which I mean to fix once I’ve had a chance to remember how to do it in functions.php), so let me roll that back and see if that helps.
No users have currently indicated “I use this,” but I’m not sure how they would so indicate. Do they do that on the /tool/ page? Can you point me to a site where it’s working so that I can see how it’s supposed to work?
Forum: Plugins
In reply to: [DiRT Directory Client] Changes to DiRT API, maybe?By the way, I’m using a child theme of the default cbox-theme, so it should be compatible.
Hey, I figured it out — as with a lot of these plugins, with this one you have to go in and regenerate Pretty Permalinks before it’ll work. Settings –> Permalinks and just hit “Save Changes.”
Yeah, me too — can’t get to the project page. Maybe because I already have a page named “Projects” at the slug https://mydomain.com/projects ?
Still works for us for the existing users, though admittedly we haven’t had any new users (the site’s not really being used). We are running Wp 4.5.2.
You are welcome, @rmiarka! All credit to Chris Klein of https://www.d13development.com/
Sorry it has taken me so long to do this, but I finally dug up the login info and took a look. As best I can tell, this was done as a functions.php file in a child theme. The child theme has the necessary style.css with the header, but that’s the only other file. The functions.php in the child theme creates a ‘taglist’ shortcode, as follows:
<?php //[filters] function clean_taglist($field_value){ preg_match_all('/\[.*?\]/',$field_value, $matches); $tags = ''; foreach($matches as $match_array) { foreach($match_array as $match_item){ $tags = $tags . trim($match_item) . ','; } } $tagarray = explode(',', $tags); natcasesort($tagarray); $tags = implode('; ', array_filter(array_iunique($tagarray))); $tags = cpfb_add_brackets($tags); $tags = cpfb_add_social_networking_links($tags); $tags = cpfb_unlink_fields($tags); return $tags; } //[Array Unique Case Insensitive] function array_iunique($array) { return array_intersect_key( $array, array_unique(array_map("StrToLower",$array)) ); } //[taglist field="field-name"] function taglist_func( $atts ){ $attributes = shortcode_atts( array( 'field' => null, 'brackets' => 'false' ), $atts ); // If no field defined, return error. if($attributes['field'] == null){ return "Missing required attribute: 'field'."; } $allusers = get_users(); $taglist = ''; //For fields requiring brackets (In this install, only one field) if($attributes['brackets'] == 'true'){ foreach ($allusers as $user) { $args = array( 'field' => $attributes['field'], 'user_id' => $user->ID ); $taglist = $taglist . bp_get_profile_field_data($args); } $taglist = clean_taglist($taglist); }else{ //For fields without brackets (all other fields) foreach ($allusers as $user) { $args = array( 'field' => $attributes['field'], 'user_id' => $user->ID ); $taglist = $taglist . bp_get_profile_field_data($args) . ';'; } $tagarray = explode(';', $taglist); $tagarray = array_filter(array_iunique($tagarray)); natcasesort($tagarray); foreach($tagarray as $key => $org){ $tagarray[$key] = trim(xprofile_filter_link_profile_data($org)); } $taglist = implode('; ', $tagarray); } return $taglist; } add_shortcode( 'taglist', 'taglist_func' );
Yes and no — sadly, said talented developer has left us, so he never did abstract the code for use in CBOX. ?? What a difference a month makes! I’ll see if I can dig it up, though.
Forgot I posted this as a feature request! Funny you mention this — a developer here said the same thing about the difficulty, but he hacked together a shortcode that produces the desired result. See https://vadhconsortium.org/interests
I haven’t looked at the code, but I asked him just a couple of days ago to look into abstracting it enough so that it could be contributed to CBOX (couldn’t find a GitHub repo for the plugin; I think it predates GH!). Stay tuned. I’ll send him this thread.
Forum: Plugins
In reply to: [Configurable Tag Cloud (CTC)] Tag post count: Want to italicizeIn general, it would be great if we could style the tag / category links and the post counts — wrapping each item in a <span> or <div> would make that possible. Great plugin otherwise!
Forum: Themes and Templates
In reply to: [Graphene] Link header image doesn't workGah, never mind, I see that you have to be on a page other than the Home page for it to work. My bad.
Forum: Plugins
In reply to: [WordPress.com Custom CSS] Can't save stylesheetCorrect — after the first try on any subsite, when I click “Save Stylesheet” (with “Add this to the theme’s stylesheet” selected), the CSS that I typed into the box just disappears, and it goes back to the default “Welcome to Custom CSS!” text. After the second try, it saves.
– WP version: 3.5.1
– WordPress.com Custom CSS plugin version: 1.5 (note the plugin name — it’s not SafeCSS, but if I remember rightly that’s the plugin’s former name)We have Jetpack Lite installed instead of Jetpack, but maybe we’ll upgrade. I’m sure it could also be a plugin conflict, so I could also troubleshoot by turning off all the other plugins on our test site and turning them back on one at a time — perhaps I will; I just never got around to it.