Andrew Rockwell
Forum Replies Created
-
Forum: Plugins
In reply to: [Automatic Responsive Tables] Conflict with Tables in Business DirectoryHi, it looks like that table doesn’t need to be handled at all by my plugin since the formatting would be the same either way.
So you can add that table to the plugin’s list to be excluded and that will fix your problem.
Forum: Plugins
In reply to: [LinkedIn Company Updates] Silent access token refreshI believe LinkedIn requires you to visit their website yourself while logged in, which happens via redirects when you click that button, so I can’t have it auto update the access token. When I have time I’ll certainly check to see if things have changed and whether or not I can automate that part ??
Forum: Plugins
In reply to: [ACF: Image Hotspots Field] RepeaterRefer to the jsfiddle:
https://jsfiddle.net/2pg1x4yg/First of course you need to add the html for the title & description.
Then all you need to do is add javascript so that:
– on button click -> the data stored in that button ( data-title && data-info ) is transferred to the title & description html tags.Forum: Plugins
In reply to: [ACF: Image Hotspots Field] RepeaterHi,
Sorry for the late reply, didn’t check off the box for email notifications.
I converted that PHP from javascript, so where you combine the <button> string, it should be
.
to the left & right of coords, not+
Forum: Plugins
In reply to: [ACF: Image Hotspots Field] RepeaterHi bramroos,
Here’s a jsfiddle I made to demonstrate one way to use the coordinates:
https://jsfiddle.net/2pg1x4yg/And I’ll paste here the simplified version of the PHP loop I’m using for the coordinates:
$count = 0; while ( have_rows('main_features') ) { the_row(); $coords = explode( ',', get_sub_field('coordinates') ); $title = get_sub_field('title'); $desc = get_sub_field('description'); echo '<button class="feature" style="left:' + $coords[0] + ';top:' + $coords[1] + ';" data-title="' . $title . '" data-info="' . $desc . '">' . $count++ . '</button>' }
Let me know if you have any questions,
AndrewForum: Plugins
In reply to: [ACF: Image Hotspots Field] Script for frontend displayHi Mozdt,
In it’s current state, the plugin is not very non-developer friendly. (not sure how knowledgeable you are with coding) Since there’s so many different ways to use the coordinates I didn’t want to pigeonhole it. But here’s a basic version of what I’m doing with them, pretty simple:
$count = 0; while ( have_rows('main_features') ) { the_row(); $coords = explode( ',', get_sub_field('coordinates') ); $title = get_sub_field('title'); $desc = get_sub_field('description'); echo '<button class="feature" style="left:' + $coords[0] + ';top:' + $coords[1] + ';" data-title="' . $title . '" data-info="' . $desc . '">' . $count++ . '</button>' }
So each button is positioned absolutely, inside a relative positioned container which also holds the image these coordinates were mapped from.
Then I have a single extra coordinates field so my client can click to choose where the description lies.
I’ve made a simple jsfiddle demonstration:
https://jsfiddle.net/2pg1x4yg/Hope you get it working!
Andrew- This reply was modified 7 years, 8 months ago by Andrew Rockwell.
@oppidumbv
Yes, “post” = “update”. You should be able to access that page now, sorry about that.Do you have a company ID specified in the plugin?
Forum: Plugins
In reply to: [LinkedIn Company Updates] Styling@nbeharrytt Sorry about that, you should be able to access it now.
Forum: Plugins
In reply to: [Automatic Responsive Tables] How to get the Plugin to work?What PHP version are you using? This plugin works on all supported PHP versions but I know at least 1 thing I use prevents it from running on pre 5.3 versions
Forum: Plugins
In reply to: [Automatic Responsive Tables] How to get the Plugin to work?Have you saved the settings with the “Activate for all Tables” option checked?
@a4jpcom are you still experiencing this issue?
@cindyscinto, @a4jpcom
The breakpoint will be blank (and thus not work) if you save the settings without adding a breakpoint, oversight on my part. In the next update I’m going to have it default to a number if not set. For now though if you just make sure to enter a number in there it should work.@johndeluxe
Make sure you either have “Activate for all Tables” checked, or specify the element selectors of which you’d like converted into responsive tables. If you provide a link to your site I’ll take a look.Forum: Plugins
In reply to: [LinkedIn Company Updates] Trouble AuthenticatingHi hawortde,
You can find the company id under the “Shortcode Info” meta box. After you authenticate, the “Find Your Company ID :” select field will fill with all companies you are an admin of. In the next update I’ll have it auto fill your default company ID, seems to be alot of trouble coming from that.
Error 1: This comes from the linkedin app. Every time I’ve seen this error it has been connected to the “Redirect URL”
Error 2: This comes from the plugin, which occurs when the request for the access code is successful, but the access token isn’t set for some reason.
Let me know if you’re still having trouble.
Thanks,
AndrewThank you.
Forum: Plugins
In reply to: [LinkedIn Company Updates] Can’t generate access tokenYeah that would be on LinkedIn. I just tested right now and was able to create a new app no problem.