hiStrat76
Forum Replies Created
-
Forum: Plugins
In reply to: [Featured Video Plus] Video re-sizing on page loadIf I were to remove the call for fitVids in theme_trust.js, would that fix it? Then make sure that video frames are responsive through CSS?
Thanks,
AnneForum: Plugins
In reply to: [BadgeOS] Display user's most recent achievement as metadata?Here is what I’ve ended up with, but the date is still not appearing within the paragraph tags- just empty:
$output .= '<h2 class="badgeos-item-title"><a href="' . get_permalink( $achievement->ID ) . '">' . get_the_title( $achievement->ID ) . '</a></h2><p>' . date( get_option( 'date_format' ), $achievement->date_earned ) . '</p> ';
I’m sure I’m missing something obvious!
Anne
Forum: Plugins
In reply to: [BadgeOS] Display user's most recent achievement as metadata?Thanks for your help! I’m trying to edit the $option for the title in this function, but the date is not rendering after the title. I’m assuming I have to figure out a way to echo the date function. Any advice? Here’s what I’ve done:
Created the variable:
$date= date( get_option( 'date_format' ), $achievement->date_earned );
Added an if statement:
if ($date) { echo $date; }
And then modifed $output for the item title:
$output .= '<h2 class="badgeos-item-title"><a href="' . get_permalink( $achievement->ID ) . '">' . get_the_title( $achievement->ID ) . $date . '</a></h2> ';
Forum: Plugins
In reply to: [BadgeOS] Display user's most recent achievement as metadata?Thanks, works great! While I’m at it, I need to append the date earned of an achievement to the general achievement list that appears in a member’s buddypress profile under the Achievements tab in the subnav. Can you direct me to the function i would need to modify to append the date earned to each of a user’s earned achievements?
Thanks for being so responsive!
Anne
I was assuming I should use the badgeos_get_submission_form filter.
My overall goal is to be able to send a form like this to certain users on our site so that they can nominate other users for achievements on the site and then allow for Admins to either approve or deny them before they officially publish to the nominated user’s profile. We’re using Buddypress. Is this a good approach? This is my first time using BadgeOS so I am very much open to suggestions on best approach.
Thank you!
AnneHi Michael,
I’m getting back to this many months later! Here is the modified form for the submission form I’m hoping to get working. It’s not properly submitting to the admin area, although the form itself looks alright. Any glaring changes I should make to make it work?:
$sub_form = '<form class="badgeos-submission-form" method="post" enctype="multipart/form-data">'; // submission form heading $sub_form .= '<legend>'. $args['heading'] .'</legend>'; // nomination user $sub_form .= '<label>'.__( 'User to nominate', 'badgeos' ).'</label>'; $sub_form .= '<p>' .wp_dropdown_users( array( 'name' => 'badgeos_nomination_user_id', 'echo' => '0' ) ). '</p>'; $sub_form .= '<fieldset class="badgeos-submission-content">'; $sub_form .= '<p><select multiple="multiple" name="badgeos-submission-content"> <option id="760">Achievement 1</option> <option id="761">Achievement 2</option> <option id="762">Achievement 3</option> <option id="764">Achievement 4</option> <option id="765">Achievement 5</option> <option id="766">Achievement 6</option> <option id="767">Achievement 7</option> <option id="768">Achievement 8</option> <option id="769">Achievement 9</option> <option id="770">Achievement 10</option> <option id="771">Achievement 11</option> <option id="772">Achievement 12</option> </select></p>'; $sub_form .= '</fieldset>'; // submit button $sub_form .= '<p class="badgeos-submission-submit"><input type="submit" name="badgeos_submission_submit" value="'. $args['submit'] .'" /></p>'; // hidden fields $sub_form .= wp_nonce_field( 'badgeos_submission_form', 'submit_submission', true, false ); $sub_form .= '<input type="hidden" name="achievement_id" value="' . absint( $args['achievement_id'] ) . '">'; $sub_form .= '<input type="hidden" name="user_id" value="' . absint( $args['user_id'] ) . '">'; $sub_form .= '</form>';
I’ve set the option id to be the specific achievement id.
Thanks for any help you can give.
Forum: Plugins
In reply to: [BuddyDrive] Adding a role capability to view group buddydriveBy the way, thanks for this. It worked!
Anne
Forum: Plugins
In reply to: [BuddyDrive] Allow Admins to edit and upload to other users' buddydrives?I think what would be ideal if ever possible, is for Admins to be able to change the owner on the backend of any given document. We have a situation where Admins need to be able to upload files to other users drives. So if they created the file from their own buddydrives, from the backend they could then go and change the owner to the desired user after creating the document. Possible somehow! Thanks so much for any advice you may be able to give.
Anne
Forum: Plugins
In reply to: [BuddyDrive] Allow Admins to edit and upload to other users' buddydrives?Hello!
Thanks for including this feature in this last update to Buddydrive. I’ve updated and now Admins can view other users files. But I’m not seeing an option for them to ‘edit’ or ‘upload’ files to other users’ buddydrives. Is there a setting somewhere for that or is it still not possible?
Thanks,
Anne
Thanks impeka! That did the trick. All is well now.
Anne
These feeds are from a Google apps account (we’re using the non-profit/ education edition). Here is one where there is still an event showing:
https://www.operaontap.org/colorado/Any ideas?
Thanks,
Anne
Thanks Nick,
Here is a link to a page where it is not working (there should be an event showing on April 7th):
https://www.operaontap.org/a2y/Here is a link to a feed that still is working:
https://www.operaontap.org/seattle/I checked to make sure both of these feeds have the exact same settings.
Anne
Forum: Plugins
In reply to: [BP Group Documents] Upload notification on member's notifications tabHello,
Still seeing if there is a way I can add upload notifications to each group member’s Notifications tab in buddypress. Also, I’m wondering if there is a function to add an email notification when a non-member of the group uploads a document to a group.
Thanks for your help,
Anne
Forum: Plugins
In reply to: [BuddyDrive] Allow Admins to edit and upload to other users' buddydrives?I appreciate it. We are really loving how Buddydrive is working for us on this project already. Thanks for creating it!
Forum: Plugins
In reply to: [BP Group Documents] Display group document count in groups loop?Works perfectly, thank you!
Anne