I would explain all of this stuff but to be honest I don't really understand a lot of it myself. I'm not a programmer, I'm more of a front-end guy.
I'm trying to replace banners.zip with $var7 but don't know how.
I can't echo within an echo and am not sure even where to begin looking beyond that.
And just so you know, everything else works fine, the code works great just like this but I need banners.zip to be replaced with $var7.
This code is in a WordPress theme I'm developing. s1_s2filename is a filename that user enters in admin area of WordPress.
I'm using some special code from the s2member plugin that allows you to protect files and create expiring keys for downloads.
Code: Select all
<?php $var7 = get_option('s1_s2filename'); ?>
<a href="<?php bloginfo( 'home' ); ?>/?s2member_file_download=<?php echo $var7; ?>&s2member_file_download_key=<?php echo s2member_file_download_key('banners.zip'); ?>">
<h2>CLICK HERE TO DOWNLOAD YOUR FILE</h2></a>