Didn’t test this, but it should work.
PHP 5 and above only.
<?php $iterator = new DirectoryIterator(dirname(__FILE__) . "/images");
$images_array = array();
foreach ($iterator as $file) {
if (preg_match('/.*(?:\.jpg|\.gif)$/im', $file?>getFilename())) {
$images_array[] = $file->getFilename();
}
}
shuffle($images_array);
foreach($images_array as $image){
echo "<pic>" . "<image>images/$image</image>" . "</pic>";
}
?>
Congrats.
If you want to create a random string, use this.
function randomStr($length = 20) {
$characters = "0123456789abcdefghijklmnopqrstuvwxyz";
$string = "";
for ($p = 0; $p < $length; $p++) {
$string .= $characters[mt_rand(0, strlen($characters)-1)];
}
return $string;
}
Take a look at my profile.
(Shameless self-promotion, I know.)
http://codecanyon.net/item/boutique-carousel/113093 is the closest to your description that I could find, but it’s not a WP plugin.
Thanks Envato.
Btw, my earnings page says I’m at the max rate, too.
I’m not sure whether this is the right section for this thread, but was wondering why authors who write articles for NetTuts (and other tutsplus sites) only have PayPal as an option to receive their payment.
I think it would help a lot if there was a option to get paid to a user’s Envato Marketplace Balance, and through that, a Payoneer Card. This would be especially useful to users in countries where Paypal is not supported (such as my own).
Comments?
1st Goal set: Be number #1 author on Envato for as long as possible – check!
2st Goal set: Get every other author to hate you – check!![]()
Whoa, nice paw.
Instead of making a whole new site, maybe just add in a “Photos” section to Graphicriver?
I’d say Codecanyon, but you should probably wait for a staff member to answer.
