graemebryson5
Forum Replies Created
-
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Display message if no rows foundThanks Tobias – that’s a huge help. I’ll try to post a snippet here for anyone else in the future.
Hi Tobias,
Okay, understood on the CSS for responsive tables.
Apologies, but I’m still really struggling with the code for the buttons – I’ve combed through the plugin folder, but can’t see anything that resembles initialization. Could you possibly point me in the right direction?
Thanks again for your help so far, it’s massively appreciated.
Hey Tobias,
Apologies for the delayed response on this. I’m still struggling a little with these buttons, and it seems like the responsive table extension also fails with the following method of building the shortcode:
$output .= tablepress_get_table( array( 'id' => '1', 'filter' => $selected_provider, 'datatables_buttons' => 'excel, pdf, print', // 'responsive' => 'scroll', ) ); wp_send_json(array('status' => 'success', 'html' => $output));I’m not too clear on why this is the case – I’m essentially replacing an existing table shortcode with a new one, and the desired table loads. Why would the buttons behave any differently from a normal page reload when the new table loads as expected?
Hi Tobias,
I’ve created a quick gist outlining the PHP/AJAX process here: https://gist.github.com/graemebryson/43b26a53cbf1db1ac384b1b7dee7a561
The buttons will be the same three regardless of the table being displayed: ‘Excel’, ‘PDF’ and ‘Print’ – it’s only the filter keyword that changes when new tables are being generated.
Thanks,
GraemeForum: Plugins
In reply to: [Force Login] Custom login page issueThanks Kevin,
The redirect now works perfectly. I’m sending visitors to a frontend login form, but when I input the credentials it stays on the login page instead of redirecting them to the homepage. I’m using the following to redirect on sucessful login:
function my_forcelogin_redirect() { return site_url( '/home/' ); } add_filter('v_forcelogin_redirect', 'my_forcelogin_redirect', 10, 1);Is this an issue you’re familiar with?
Thanks again for your help, I really appreciate it.
GraemeAwesome, thanks for your help Bill. Thanks again for the plugin, too!
Hi Bangbay,
Thanks for your help, it’s working perfectly now!
Forum: Hacks
In reply to: Custom Avatar ShortcodeHi bcworks,
Seriously, thank you. I had just copied over the line with the parameters from the Codex – I’ve literally just started out with PHP so didn’t know any better aha! I really appreciate your help, have a great weekend!
Forum: Hacks
In reply to: Shortcode QueryWorked it out – here’s the code for anyone who needs it in the future! Just use the
current-usernameshortcode to use it.add_shortcode( 'current-username' , 'ss_get_current_username' ); function ss_get_current_username(){ $user = wp_get_current_user(); return $user->user_firstname; }Forum: Plugins
In reply to: Searching for a User PluginHi Allen,
Thanks for taking the time to reply – that’s awesome. As it stood, I was looking at using ‘Membership’ from wpmudev, but it seems a bit clunky and dated.
I’m already looking into your suggestion now, and I’m pretty certain it’ll work out.
Thanks again!
Graeme
Forum: Installing WordPress
In reply to: Failed InstallationURL??
I’ve sent an email to the address on your site with the URL. Hopefully that is OK.
Forum: Installing WordPress
In reply to: Failed InstallationDesperate bump!