How to set flag size?
The default looked like 16×16 which is too small?
Hello and thank you for your plugin,
However, I have a little problem.
When writing an article, there are no worries, the small displays and allows me to see the different flags. However, none are clickable and I have to insert through the code, which is a bit annoying. Is this normal and if not, how to fix this trouble?
Regards,
]]>Hello,
here can you see it. The flag is to big, but where can I optimize it:
https://www.we-need-a-ho.me/dog/mischo/
You can see it on the left side of the content below the title “current location”.
thank you
Klaus
]]>I have added the code on my website manually but it doesn’t seem to be working: https://www.traveltoeastafrica.com/biz-directory.html/biz_category/travel-guides
I have tried automatically but there are no flags showing
What is the problem?
]]>Hello, I’m getting the following PHP warning on a page displaying a flag and I had to set error_reporting(0); in my wp-config.php
Warning: Missing argument 2 for wpdb::prepare(), called in /home/xxxxxx/public_html/wp-content/plugins/world-flags/includes/functions.php on line 53 and defined in /home/costburn/public_html/wp-includes/wp-db.php on line 99
FYI: I am using Insert Method: Script (Writes the HTML using a tiny javascript)as jquery did not work – Does this plugin install jquery as the error message I was getting is shown in this screen-capture … https://gyazo.com/0e0878040bbf380774173246524a5ce7
]]>This is a feature request.
1. Is it possible to display the country name in text next to the flag? I’d like to show the Flag then the name of the country
Been adding using the TinyMCE editor and NOT using the short code.
2. Is it possible to set alignment of the flags? Using the shortcode or TinyMce, all the flags are always offset and not vertically centered with my text.
]]>Hi,
Could you add support for positional arguments in the shortcode? That way it’s much easier to write, e.g. [flag lt]
. Naming the attribute is fine, but for such a small thing as a flag it would be convenient to use the short form, too.
Tadas
]]>Hi, today i install this plugin in my site but when i go to New Post and click on the button on my UltimateTwice i get a popup sreen with this Code `<?php
$root = __FILE__;
require_once(‘../../countries.php’);
asort($ar_countries);
for ($i = 0; $i < 6; $i++) $root = dirname($root);
if (!defined(‘DS’)) { define(‘DS’, DIRECTORY_SEPARATOR); }
require_once($root . DS . ‘wp-config.php’);
require_once(ABSPATH . ‘wp-admin’ . DS . ‘admin-functions.php’);
if(!current_user_can(‘edit_posts’)) die;
do_action(‘admin_init’);
global $wpdb;
?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html xmlns=”https://www.w3.org/1999/xhtml”>
<head>
<title>Insert Country Flag</title>
<link type=”text/css” rel=”stylesheet” href=”<?php echo $wpdb->worldflag_plugin_dir; ?>assets/flags.css”/>
<script language=”javascript” type=”text/javascript” src=”<?php echo site_url(); ?>/wp-includes/js/jquery/jquery.js”></script>
<script language=”javascript” type=”text/javascript” src=”<?php echo site_url(); ?>/wp-includes/js/tinymce/tiny_mce_popup.js”></script>
<script language=”javascript” type=”text/javascript” src=”<?php echo site_url(); ?>/wp-includes/js/tinymce/utils/mctabs.js”></script>
<script language=”javascript” type=”text/javascript” src=”<?php echo site_url(); ?>/wp-includes/js/tinymce/utils/form_utils.js”></script>
<script language=”javascript” type=”text/javascript” src=”<?php echo site_url(); ?>/wp-includes/js/tinymce/utils/form_utils.js”></script>
<script language=”javascript” type=”text/javascript”>
jQuery(document).ready(function($){
var _self = tinyMCEPopup;
$(‘#wpwrap .country’).live(‘click’,function(e){
e.preventDefault();
var country=$(this).attr(‘data-cid’);
var tag='[flag country=”‘+country+'”]’;
if(window.tinyMCE) {
window.tinyMCE.execInstanceCommand(‘content’, ‘mceInsertContent’, false, tag);
tinyMCEPopup.editor.execCommand(‘mceRepaint’);
tinyMCEPopup.close();
}
});
$(‘#closeMCE’).click(function(e){
e.preventDefault();
tinyMCEPopup.close();
})
});
</script>
<style type=”text/css”>
.countries-wrap { background:#EEE; }
.countries-wrap .country { width:45%; float:left; padding:3px; cursor:pointer; -moz-border-radius: 2px; -webkit-border-radius: 2px; -ms-border-radius: 2px; border-radius: 2px; }
.countries-wrap .country:hover { background:#DDD; }
.countries-wraps:after { content:””; clear:both; display:block; width:100%; }
</style>
</head>
<body>
<div id=”wpwrap”>
<div class=”countries-wrap”>
<?php foreach($ar_countries as $code=>$name){ ?>
<div class=”country country-<?php strtolower($code); ?>” data-cid=”<?php echo strtolower($code); ?>”><img src=”<?php echo $wpdb->worldflag_plugin_dir; ?>assets/blank.gif” class=”flag flag-<?php echo strtolower($code); ?>” /> <?php echo ucwords(strtolower($name)); ?></div>
<?php } ?>
</div>
</div>
</body>
</html>` Please help me