Jump to content

QR Code


cip6791

Recommended Posts

Hi,

 

The below code displays a qr code depending on what page of a wordpress blog you are on. I need a little help with a little feature that I want. I want each qr code to be saved in a folder when it is generated, then it should be displayed in the widget from the folder, and it shouldn't be generated every time. And one last thing, I want to put them in an array and display the codes.

 

Thank you for your help.

 

function qrcode_show() {	

	echo "<!-- START Create QR code -->\n";

	echo "<div class=\"qrcode\">\n";

	echo '<img class="qr" src="'.get_bloginfo('siteurl').'/wp-content/plugins/'.dirname(plugin_basename(__FILE__)).'/scripts/php/qr_img.php?d='."";

	echo ''.the_permalink().'&e='.get_option('correction').'&s='.get_option('size').'&t=J"/>'."\n";

	echo "</div>\n";

	echo "<!-- END Create QR code -->\n";

}

Link to comment
https://forums.phpfreaks.com/topic/207805-qr-code/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.