yk11
Forum Replies Created
-
I seem to be having a similar issue where login using social media has stopped working (using the Social Login extension). After clicking any of the social media buttons the page reverts to the home page with a redirect to oauth of whatever plugin was used.
Forum: Plugins
In reply to: [Simple Staff List] Custom CSS no longer being appliedI understand. I’m glad you were able to track down the issue and resolve it.
Forum: Plugins
In reply to: [Simple Staff List] Custom CSS no longer being appliedI was able to temporarily resolve the issue by unchecking the “Write to external CSS file” option.
Forum: Plugins
In reply to: [Simple Staff List] Custom CSS no longer being appliedYes. The test site is here: http://passedpawnadvisors.a2hosted.com/our-leadership/
The prod site (using version 1.16) is here: http://www.passedpawnadvisors.com/our-leadership/
I would suggest you create a shortcode for current_user_display_name, which could be used together with shortcodes for detecting if the user is logged in or not.
This will provide you with flexibility of displaying different content depending on the login state.
If you are already using Shortcodes Ultimate, then the shortcodes are already available to you (su_members, su_guests, su_user).
You can always add your own shortcode using the functions.php file.
Example (my own shortcode for logged in state):
function logged_in_func($atts, $content) { extract(shortcode_atts(array('override' => false,), $atts)); $html = ''; if (is_user_logged_in() || $override == true) { $html = do_shortcode($content); } return $html; } add_shortcode('logged_in', 'logged_in_func');peteratomic,
While you wait for the official UM shortcodes, you can build a custom display using the “Shortcode Exec PHP” plugin. It lets you create your own shortcodes using php.
Quick outline would be (using ‘role’ as that’s what I use):
extract(shortcode_atts(array( 'role' => 'Subscriber', ), $atts)); // The Query $user_query = new WP_User_Query(array('role' => $role)); $html = ''; if (!empty($user_query->results)) { $html .= '<table>'; // add table header row to html string // Loop on users foreach ($user_query->results as $user) { $user_meta = get_user_meta($user->id); $html .= '<tr>'; $html .= '<td>' . $user->id . '</td>'; $html .= '<td>' . $user->user_login . '</td>'; $html .= '<td>' . $user->display_name . '</td>'; // add user metadata to html string $html .= '</tr>'; } $html .= '</table>'; } else { $html = 'No users found.'; } return $html;If you have complex fields (checkbox or dropdown) with multiple values, you need to unserialize them and loop on the values:
$html2 = ''; $serial_str = $user_meta['custom_field_name'][0]; if (is_serialized($serial_str)) { $count = 0; foreach (unserialize($serial_str) as $choice) { if ($count > 0) { $html2 .= "<br />"; } $html2 .= $choice; $count++; } } $html .= '<td>' . $html2 . '</td>';Hope this helps.
You can find the info on the plugin’s github page
Did you add the fields to both the Registration and Profile forms?
Forum: Plugins
In reply to: [Fast Secure Contact Form] Google conversion codeThanks for looking into it.
I disabled all plugins and still got the problem.
After some more research, it turns out to be a known WordPress issue where it has code to explicitly convert ‘]]>’ to ‘]]& gt;’ (space intentionally added) in wp-includes/post-template.php.
Commenting out the offending line resolved the issue.
Forum: Plugins
In reply to: [Shortcodes Ultimate - Content Elements] font awesome outdatedI ran into the same issue.
Manual workaround is to modify …/wp-content/plugins/shortcodes-ultimate/inc/core/assets.php:55 and change the two occurrences of 4.1 to 4.3.
I just ran into the same issue (on a test site of course…).
Thank you for the detailed explanation of the issue, as it makes it clear what is going on in the plugins interaction.
I would also like to suggest that you implement a change to resolve this conflict, if nothing else to be one of the “we fully support JetPack” plugins.
Regards,
yk11Forum: Plugins
In reply to: [WP Fastest Cache - WordPress Cache Plugin] Rebuild existing cacheThe bash script is a back-end process which I run under cron.
The script iterates through the pages I want to refresh and performs the following actions:
– Remove page:rm ~/www/wp-content/cache/all/<page name>
– Forces a reload by reading the page:wget -qO- -T 30 http://www.<domain>.com/<page name> > /dev/nullForum: Plugins
In reply to: [SlimStat Analytics] Fatal error: undefined function download_urlMay I suggest adding an admin option to specify an absolute path to the file? This would allow sharing a single file instance across multiple wordpress installs.
Forum: Plugins
In reply to: [SlimStat Analytics] Fatal error: undefined function download_urlYou should not lose anything due to the error. SlimStats’s logs are in the database, so they are not deleted due to a simple error.
If you replace the line with the code I included the error should go away.