thomas_n
Forum Replies Created
-
Forum: Reviews
In reply to: [Amazon S3 for WordPress with CloudFront] INFECTED w/ VIRUSCan anyone confirm / deny this claim? Can’t find in the sourcecode where this should be coming from…
Forum: Hacks
In reply to: External login pageNevermind. 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="https://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
In reply to: [Plugin Request] vCard generator (both .vcf and QR code)You can find a few hints on how to solve this outside of wordpress on our website: Culture Crew
Forum: Plugins
In reply to: [Plugin Request] vCard generator (both .vcf and QR code)I did (more or less) what you want, with a different approach. See this example.
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
In reply to: [AutoNav] using sort_column parameter to display random orderNo idea, I currently have 9 child pages and all of them are loading fine.
Forum: Plugins
In reply to: [AutoNav] using sort_column parameter to display random orderthomaspayne 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
In reply to: [AutoNav] using sort_column parameter to display random orderIt’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 ??