Title: thomas_n's Replies | WordPress.org

---

# thomas_n

  [  ](https://wordpress.org/support/users/thomas_n/)

 *   [Profile](https://wordpress.org/support/users/thomas_n/)
 *   [Topics Started](https://wordpress.org/support/users/thomas_n/topics/)
 *   [Replies Created](https://wordpress.org/support/users/thomas_n/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/thomas_n/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/thomas_n/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/thomas_n/engagements/)
 *   [Favorites](https://wordpress.org/support/users/thomas_n/favorites/)

 Search replies:

## Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)

 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Amazon S3 for WordPress with CloudFront] INFECTED w/ VIRUS](https://wordpress.org/support/topic/infected-w-virus/)
 *  [thomas_n](https://wordpress.org/support/users/thomas_n/)
 * (@thomas_n)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/infected-w-virus/#post-7775422)
 * Can anyone confirm / deny this claim? Can’t find in the sourcecode where this
   should be coming from…
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [External login page](https://wordpress.org/support/topic/external-login-page-1/)
 *  Thread Starter [thomas_n](https://wordpress.org/support/users/thomas_n/)
 * (@thomas_n)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/external-login-page-1/#post-1843410)
 * Nevermind. Found the solution. Add this to functions.php in your theme:
 *     ```
       function external_login() {
       	if (!is_user_logged_in() && !$_POST['username'])
       	{
       		echo '<script language="JavaScript">
       		<!--
       			 window.location="http://your.url/";
       		//-->
       		</script>';
       	}
   
       }
   
       add_action('login_head', 'external_login');
       ```
   
 * Basically this checks if the user is logged in and/or the ‘username’ field is
   set. If neither is true, then it inserts some javascript that redirects the user
   to an external login page. On this page you can construct your own login form.
 * (ps. now why would I want to do this? I redirect all of my users for their applications
   to my central hosting pages so I can use these to inform them on changes in infrastructure
   and so forth. Yes, you could call it ‘marketing’.)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin Request] vCard generator (both .vcf and QR code)](https://wordpress.org/support/topic/plugin-request-vcard-generator-both-vcf-and-qr-code/)
 *  [thomas_n](https://wordpress.org/support/users/thomas_n/)
 * (@thomas_n)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-request-vcard-generator-both-vcf-and-qr-code/#post-1651268)
 * You can find a few hints on how to solve this outside of wordpress on our website:
   [Culture Crew](http://www.culturecrew.be/creative-code)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin Request] vCard generator (both .vcf and QR code)](https://wordpress.org/support/topic/plugin-request-vcard-generator-both-vcf-and-qr-code/)
 *  [thomas_n](https://wordpress.org/support/users/thomas_n/)
 * (@thomas_n)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-request-vcard-generator-both-vcf-and-qr-code/#post-1651267)
 * I did (more or less) what you want, with a different approach. See [this example](http://qr.culturecrew.be/vcard/thomas_nagels).
 * Basically I created a microsite with Code Igniter that displays a digital version
   of our business cards with links to mail and website. Below the card are links
   to downolad or mail the vCard (mail because Safari Mobile does not support vCard
   download).
 * The WordPress database is the source of all the information on the card. (That’s
   what you wanted I guess) You could put the download link on your WordPress site
   as well. (Ok, I admit, not the most elegant of solutions)
 * I would strongly advise against using QR-vCards: there are compatibility issues.
   So, as an alternative we use a QR-code on our printed cards that links to the
   microsite (as described above). Also, some people will not want to add your data
   to their computer but just use it once, the microsite allows them to use the 
   links without downloading the card. And finally, as a bonus, if you do it this
   way, you don’t have to reprint your cards anytime some info changes; it’s a lot
   more dynamic.
 * If anyone is interested, I’m willing to post the code somewhere, but don’t expect
   it to work out of the box; it wasn’t written to be portable.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AutoNav] using sort_column parameter to display random order](https://wordpress.org/support/topic/autonav-using-sort_column-parameter-to-display-random-order/)
 *  [thomas_n](https://wordpress.org/support/users/thomas_n/)
 * (@thomas_n)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/autonav-using-sort_column-parameter-to-display-random-order/#post-1748755)
 * No idea, I currently have 9 child pages and all of them are loading fine.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AutoNav] using sort_column parameter to display random order](https://wordpress.org/support/topic/autonav-using-sort_column-parameter-to-display-random-order/)
 *  [thomas_n](https://wordpress.org/support/users/thomas_n/)
 * (@thomas_n)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/autonav-using-sort_column-parameter-to-display-random-order/#post-1748752)
 * thomaspayne asked me:
 * > doesn’t seem to be working for me. is there anything else i need to set as 
   > well?
 * Well, not that I know of. I use the following shortcode in the page:
 *     ```
       [autonav display="images" pics_only="1" order="rand"]
       ```
   
 * This page changes the order each time it loads. Other pages (without the order
   parameter) show the pages in the defined fixed order.
    This works for me, can’t
   show it (yet) because the site is not open to the public (yet).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AutoNav] using sort_column parameter to display random order](https://wordpress.org/support/topic/autonav-using-sort_column-parameter-to-display-random-order/)
 *  [thomas_n](https://wordpress.org/support/users/thomas_n/)
 * (@thomas_n)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/autonav-using-sort_column-parameter-to-display-random-order/#post-1748749)
 * It’s really easy.
 * In the plugin code, look for the function
 *     ```
       function get_subpages ($attr)
       ```
   
 * Then near the end of the function add this:
 *     ```
       // Existing code ...
       if (count($pages) == 0) {
           return;
         }
       // Add this
         if ($attr['order']=='rand')
         {
       	shuffle($pages);
         }
       // Rest of existing code
         return get_pics_info($attr, $pages);
       ```
   
 * Did the trick for me (for exactly the same application 😉

Viewing 7 replies - 1 through 7 (of 7 total)