• Resolved Chris

    (@curbano1972)


    Hello,

    Great plugin! I was just curious if there was a way to move the location of the actual drop down list “Show currencies in ‘US Dollar USD'” that appears at the bottom of the page. I would like to place it above the tables that it will be used for so that they can be changed before reviewing the data.
    Thank you very much for this plugin!!

    https://www.ads-software.com/plugins/localcurrency/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Stephen Cronin

    (@stephencronin)

    Hi Chris,

    Hmm, there is not a way to do this at the moment, but I think that would be a worthwhile addition. I have a lot on right now, so I can’t promise it will be added quickly, but I’ll try to take a look into it over the next week or two.

    Cheers,
    Stephen

    Thread Starter Chris

    (@curbano1972)

    That would be great! Also, just to let you know, there are some errors in the Settings under the Usage. All of the examples are like this:

    <–LCSTART–>$10<–LCEND–>

    When it should be:

    <!–LCSTART–>$10<!–LCEND–>

    That could cause some people to say that the plugin doesn’t work…

    Thanks, again!

    Plugin Author Stephen Cronin

    (@stephencronin)

    Hi Chris,

    Sorry about the slow response – Unfortunately I’ve had something come up and I’m going to have to put this on hold for 2 weeks while I deal with that. After 2 weeks, I should be back to normal.

    Thanks for pointing out the code errors, I’ll fix them soon.

    Cheers,
    Stephen

    Plugin Author Stephen Cronin

    (@stephencronin)

    Hi Chris,

    Sorry it’s taken so long, but I released a workaround a couple of weeks ago:

    Okay, here is a workaround using JavaScript. You need to put the following HTML wherever you want the select box to show up:

    <div id="lc-selection"></div>

    You then need to drop the following code in functions.php (make a back up of it first!):

    function lc_move_select() {
    ?>
    	<script type="text/javascript">
    		var lcSelectForm = '';
    		var lcSelectTarget = '';
    		var lcAllForms = document.getElementsByTagName('form');
    		for (var i=0; i<lcAllForms.length; i++) {
    			if (lcAllForms[i].id.indexOf('lc_change')==0) {
    				// move it.
    				lcSelectForm = lcAllForms[i];
    				lcSelectTarget = document.getElementById('lc-selection');
    				lcSelectTarget.innerHTML = lcSelectForm.innerHTML;
    			}
    		}
    		lcSelectForm.parentNode.removeChild(lcSelectForm);
    	</script>
    <?php
    }
    add_action( 'wp_footer', 'lc_move_select' );

    That should move the select box to where you want it to go. Note that the select box may flash up at the bottom of the post before it disappears and then reappears in the desired location. Not sure if I can do anything about that, but let me know if it’s a problem and I’ll see.

    I’ll come up with a more permanent solution when I rewrite the plugin, but that could be a few months away depending on a whole heap of other factors.

    Cheers,
    Stephen

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Location of "Show currencies in…"’ is closed to new replies.