adrianlittee
Forum Replies Created
-
Forum: Plugins
In reply to: [Gravity PDF] Resending PDF'sThis worked perfectly. I had the order mixed up when I was trying. thank you very much!
Forum: Plugins
In reply to: [Gravity PDF] Resending PDF'sApologies for being a bit thick but does the below code go in the function you specified?
global $gfpdf; if(!is_object($gfpdf)) { $gfpdf = new GFPDF_Core(); }
If so then I am getting this error:
PHP Fatal error: Call to undefined method stdClass::assign_index()
Forum: Plugins
In reply to: [Gravity PDF] Resending PDF'sWhen I use the above code I get the following error:
PHP Fatal error: Class ‘GFPDF_Core_Model’ not found in /var/www/wordpress/wp-content/plugins/gravity-forms-pdf-extended/pdf.php on line 180
Forum: Plugins
In reply to: [Active Directory Integration] More than 1000 usersTo be honest I haven’t noticed any differences between the versions except the bulk import feature.
Forum: Plugins
In reply to: [Active Directory Integration] More than 1000 usersFound the error, it was occuring because I was using Simple LDAP Login at the same time and ADI was redeclaring an already used class.
I disabled Simple LDAP and ADI works fine now.
Forum: Plugins
In reply to: [Active Directory Integration] More than 1000 usersI found the answer here. Which ultimately links to a newer version of ADI, here. This is version 1.1.5dev which was never released.
It works but it seems to periodically crash my site. I’m not sure why either because I am using an IIS server and can’t figure out how to enable php error logging or know where to find it. Also installed on a Linux Machine with no troubles, so far.
I have the same problem….
My pages do not work anymore either.Forum: Reviews
In reply to: [Active Directory SSO] 4 stars for ideaHow did it work? I have it setup but how can I tell if it is working. When I type https://myurl.com/wp-admin/ it just forwards me to the login screen and doesn’t sign me in automatically.
Here is what I used and forgive me if it is rough and not using WP standards but I threw it together pretty quickly for work.
My Query is using user meta which we are importing from an active directory server so it may not me in your system. Hopefully it will be at least a start for anyone wondering how to get it working.
//Employee Results echo '<div id="employee-results">'; echo '<h1 class="page-title">'; echo __( 'Employee Results', BSEARCH_LOCAL_NAME ); echo '</h1>'; $min = 0; $max = 1; //query info $user_tab = 'wp_usermeta'; $user_query = "SELECT * FROM $user_tab WHERE meta_value LIKE '%$s%' AND (meta_key = 'adi_displayname' OR meta_key = 'title')"; $user_sql = mysql_query($user_query); $count_emp = mysql_num_rows($user_sql); //displaying the query and employee results if($count_emp > $min){ while($user = mysql_fetch_array($user_sql)){ $user_id = $user['user_id']; $meta_table = 'wp_usermeta'; $meta = get_user_meta($user_id); $author = $meta['first_name'][$min].'-'.$meta['last_name'][$min]; echo '<div class="employee_results post-entry">'; echo '<h2><strong><a href="https://mydomain.com/author/'.$author.'">'.$meta['adi_displayname'][$min].'</strong></a> - '.$meta['title'][$min].'</h2>'; echo '<a href="https://mydomain.com/author/'.$author.'">'.get_avatar($user_id, 32).'</a>'; echo '</div>'; } } else { echo 'There are no employee results for: '.$s; } echo '</div>';
I inserted the code into the better-search.php page. I spit the page in two so it would display employee results on one side and better-search results on the other side. Hope this helped ??
Forum: Plugins
In reply to: [Better Search - Relevant search results for WordPress] Welcome Not foundThanks Ajay. I probably should have known that, sorry for the time waster
I have integrated this functionality into the Plugin myself. It was surprisingly easy if you have a moderate knowledge of PHP and MySQL.
Cool thanks for the speedy reply, I’ll keep my eye out for it in upcoming versions ??
Forum: Plugins
In reply to: [Search in Place] No attachment ?Is it possible to make this a selectable option in a future iteration of the plugin so every time I update the plugin I don’t have to find where to comment out?
Forum: Plugins
In reply to: [Frontier Post] Discussion on frontendadded this to frontier_form.php on line 230
<td> <?php _e("Comment Status", "frontier-post"); ?>:? <select id="comment_status" name="comment_status"> <option value="open">Allow Comments</option> <option value="closed">Closed Comments</option> </select> </td>
added this to frontier-post.php on line 63
if(isset($_POST['comment_status'])) $comment_status = $_POST['comment_status']; else $comment_status = 'open';
added this to frontier-post.php on line 116
'comment_status' => $comment_status,
Forum: Plugins
In reply to: [User Role Editor] All Subscribers in Author drop down list