Vaping Laws around the World

As we all know, the world of vaping is ever changing. Like with many other laws on many other topics, there is very little consensus on the topic of vaping and whether or not it should be allowed. This can make things more than a little difficult for travelling vapers – where in one country you can vape freely, you might be given a substantial fine in the next. Here’s the most important rules and regulations you need to know from around the globe.

The EU

EU wide regulation introduced in 2014 outlaws advertising for e-cigarettes, sets a limit on the amount of nicotine in e-liquids, and requires sellers to package products in child and tamper-proof packaging amongst a whole load of other complicated rules and regulations. Despite the arrival of these rules, there are still discrepancies from country to country. In France, for instance, e-liquids are considered medical products – something that is not generally in place in other member states – and, in the United Kingdom, advertising of e-cigarette paraphernalia has been allowed since 2014.

North America

I’m sure we’re all familiar with the ever-changing regulations in the United States, but what about Canada? If you’re planning a trip across the border, there’s good news – vaping is largely unregulated in Canada. While the technicalities of Canadian law mean that selling e-cigarettes is illegal, the reality of the situation is that this is rarely enforced properly. When it comes to actually vaping, several cities have enforced different rules – in Toronto, for example, it’s against the rules to vape in the workplace and Vancouver has extended their smoking ban in public places to vaping.

Central and South America

After a ban on tobacco products was overturned in 2015, e-cigarettes are now legal again in Mexico. However, in places like Uruguay and Argentina vaping is completely banned. In addition, Brazilian law completely forbids ‘the sale, importation, and advertising’ of any electronic cigarettes. This is because Brazil’s health and sanitation federal agency, known as Anvisa, found the current health and safety assessments about e-cigarettes unsatisfactory to allow them in the country.

Australia and New Zealand

As vaping remains a relatively new phenomenon, Australia is still in the midst of developing their vaping regulations. Often the rules from state to state vary (and, in some cases, they actually conflict – which is nice and confusing for travellers!). But, on the whole, there is no regulation completely outlawing e-cigarettes.

In New Zealand, things are a little more straightforward. As long as your e-cigarettes don’t contain nicotine, sale is permitted to people over the age of 18. If you want e-juices containing nicotine, they must be imported from overseas and can only be used for personal use. Advertising of e-cigarettes is not allowed, however, which can cause trouble for manufacturers.

Asia

Japan took the decision to ban e-cigarettes containing nicotine in 2010, but there’s currently no regulation for e-cigarettes and vaping devices that don’t contain nicotine – so both adults and minors can vape those to their heart’s content. Similarly, in the Philippines, e-cigarettes remain completely unregulated, which means anyone of any age can buy them. However, the Philippine Medical Association is recommending that the ban on cigarettes in public places be extended to vaping.

In the modern-day home of vaping, China, the import and export, sale, and use of e-cigarettes is completely legal – but new rules are being imposed in certain places. In Shanghai, for example, the use of e-cigarettes is banned in no smoking areas.

The Middle East

Many countries in the Middle East take an even harder line against vaping. The UAE, Qatar, and Jordan have all completely banned vaping devices. Brunei goes one step further in their vaping rules, slapping anyone found vaping in a non-smoking zone with a $500 fine, and selling or importing e-cigarettes could cost you $10,000. If you’re planning to visit any time soon, we’d recommend you follow the rules!

It’s important to remember that vaping regulations are always changing. Public opinion on vaping is always evolving, as are the thoughts of people in power. If you’re an avid vaper planning to travel over the next few weeks, we’d definitely recommend that you check up on the regulations in your destination – after all, it’s better to give up your e-cigs for a little while then end up with a hefty fine (or jail time!).

Injeksi Manual Keyword: Add-ons/extension plugin SEO SearchTerms Tagging 2

Meskipun plugin SEO SearchTerms Tagging 2 ini sudah tidak pernah lagi di-update sejak tahun 2011, tetap saja masih banyak blogger yang masih menggunakannya, dengan tujuan untuk melipatgandakan trafik kunjungan ke situs, dan bagi yang hobi coding, tidak sedikit juga yang melakukan oprek kecil-kecilan terhadap plugin ini.

Berbicara tentang oprek, ini ada permintaan sobat blogger untuk ngoprek sedikit plugin ini agar ada fitur untuk injeksi manual keyword ke dalam database. Oprek ini tidak secara langsung saya terapkan ke dalam plugin STT2, akan tetapi melalui plugin tambahan (add-ons/extension) yang harus diinstall. Jadi, core plugin STT2 tidak terganggu sama sekali dan tidak ada yang perlu dioprek.

Nama pluginnya STT2 Extension Add Terms, silahkan download di repository github Jevuska https://github.com/Jevuska/stt2-extension-add-terms, lalu upload di WordPress Anda, install dan aktifkan.

STT2 Extension Add Terms plugin telah tersedia di WordPress.

Screenshot plugin

General Settings
Manual Input Tool
Widget STT2EXTAT

Script Feature

  • jQuery
  • jQuery UI
  • Ajax
  • Plugin Search Excerpt by Scott Yang
  • Google Suggest by haochi

STT2EXTAT v1.2

  • Setting admin plugin tersedia
  • Kata kunci bisa didapatkan melalui referrer
  • Kata kunci di tambahkan sebagai postmeta private _stt2extat dalam table database wp
  • Karakter kata kunci yang lebih baik
  • Pada wp_head, menyisipkan rel canonical jika ada pos di halaman pencarian dan meta no robots jika tidak ada
  • Tersedia shortcode
    [stt2extat]
    untuk menampilkan list terms.
  • Tersedia multiple widget untuk menampilkan list terms di sidebar.
  • Tersedia tool untuk migrasi search terms dari plugin STT2 terdahulu.
  • Disyaratkan menggunakan minimal WordPress 4.4 dan PHP 7.0.
  • Tersedia berbagai hook action atau filter untuk memodifikasi plugin ini, jadi core plugin tidak perlu diganggu.

Hook function

Hanya di halaman single post

add_filter( 'stt2extat_is_single', 'is_single' );

Menampilkan post count dengan menggantikan jumlah hits

add_filter( 'stt2extat_term_count', 'stt2extat_count_posts', 1, 2 );

Non aktifkan referer melalui wp_head

add_action( 'wp_head', 'stt2extat_add_meta_origin_referer' );

Khusus referer, terms yang tidak relevan dapat ditambahkan

remove_filter( 'stt2extat_ignore_relevant', '__return_false' );

Filter judul, khusus di halaman pencarian

add_filter( 'document_title_parts', 'stt2extat_search_page_title' );

Filter tanda pemisah antara judul halaman search dan judul situs ( separator)

add_filter( 'document_title_separator', 'stt2extat_search_page_title_separator' );

Filter untuk mengizinkan localhost sebagai referrer (for testing)

add_filter( 'stt2extat_allow_localhost', '__return_true' );

Fitur manual injeksi keyword ini akan tampil di area setting plugin STT2 langsung. Masih versi 1.0, mohon reportnya for any thing such as bugs, security, or vulnerability issue.

For Dev: Filters

stt2exat_excerpt_option( $args )
delete_terms_schedules( $schedules )
stt2extat_email_regexp( $regexp_email_pattern )
stt2extat_data( array $data )
stt2extat_sanitize( $array, $additional )
stt2extat_default_setting( array $data )
stt2extat_interval_hit_time ( $strtotime )
stt2extat_stopwords_filter_method( $func, $stopwords, $term )
stt2extat_sep_terms_list( $sep )
stt2extat_args_search_post_query( $args )
stt2extat_domain_regexp( $regexp_domain_pattern )
stt2extat_convert_case( $term_name )
stt2extat_post_type( array $post_type )
stt2extat_if_no_result( $query )
stt2extat_tag_cloud_args( $args )

Last but not least.. are*****7[at]g****.com thanks for your PP donate, I really appreciate it.

UPDATE: 23-04-2016

Download STT2EXTAT plugin v1.2 via WordPress
https://wordpress.org/plugins/stt2-extension-add-terms/

NOTE:
SEO SearchTerms Tagging 2 plugin not required any more and no longer supported by this plugin. Use the latest WP version (min 4.4), and upgrade your PHP server into PHP 7.0 ( twice as fast as PHP 5 ).

UNDEVELOPMENT VERSION:
STT2EXAT v1.1.5-undev - min PHP 5.4 - WP 4.4. Download via my GitHub
stt2-extension-add-terms.1.1.5-undev.zip

Membuat parameter baru search query WordPress

Parameter query search result WordPress basic-nya menggunakan "?s=", tapi bagaimana jika kita ingin membuat parameter baru lainnya berdasarkan hasil pencarian WordPress.

Misalnya, kita ingin membuat parameter query seperti ini (Demo):
https://www.jevuska.com/?p=list&q;=injeksi+manual+keyword

Di file functions.php theme WordPress Anda, tambahkan kode function berikut:

function _jv_add_query_vars_filter( $vars ){
//create 'q' as query parameter
	$vars[] = "q";
	return $vars;
}
add_filter( 'query_vars', '_jv_add_query_vars_filter' );
function _jv_custom_search_query( $query ) {
//pre get post loop p and q parameter base on s parameter
    if ( isset( $_GET['p'] ) && sanitize_key( $_GET['p'] ) == "list" && get_query_var('q') != "") {
		$query->set('post_status', 'publish');
		$query->set('post_type', 'post');
		$query->set( 's', sanitize_text_field( $query->query_vars['q'] ) );
//add filter to wp_title base on q parameter
//WP 4.4 use 'document_title_parts'
		add_filter('wp_title',function(){
			$title = ucwords( get_search_query() );
			return $title;
		},10,2);
    };
	return $query;
}
add_filter( 'pre_get_posts', '_jv_custom_search_query');
//optional - add custome search form
function _jv_search_form( $form ) {
	$form = '<form role="search" method="get" id="searchform" class="searchform" action="' . home_url( '/' ) . '" >
	<div><label class="screen-reader-text" for="s">' . __( 'Search for:' ) . '</label>
	<input type="hidden" value="list" name="p"/>
	<input type="text" value="' . get_search_query() . '" name="q" id="s" />
	</div>
	</form>';
	return $form;
}
add_filter( 'get_search_form', '_jv_search_form' );

Function ini akan meng-generate post di halaman front page theme WP Anda (index.php atau home.php), jadi hasilnya akan sangat tergantung pada theme yang digunakan, juga plugin tambahan yang menfilter wp_title, contohnya plugin Yoast WordPress SEO.

PS: post ini adalah hasil request sobat blogger.

Update 04-02-2016:
Sanitize code.