DigiDocs
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [Simple Lightbox] Odd behaviour in WordPress 3.8I have a similar problem. The description and “image x of x” appears under the activity bar on the screen. When scrolling down, the next pictures moves down i bit so the description, once again, is hidden.
I have cleared both browser and theme catch, but with the same results.(WP 3.8.1 and updated plugin)
Forum: Plugins
In reply to: [Access Areas for WordPress] Login page when no accessI have a solution for that.
You could add a 404.php page (or modify existing) to the theme templates.In that file, either redirect to wp default login page or to your url to user login page or you could add a shortcode for a plugin login form.
You would use an else if statement:
<?php $opid1 = of_get_option('myoptionsid1'); $opid2 = of_get_option('myoptionsid2'); /* And so on to call more optionfields*/ ?> <?php if (empty($opid1)) { ?> /* Choise what to do if field $opid1 IS empty */ <?php echo ''; ?> /* Displays whatever is between the '', in this case nothing */ <?php } else if { ?> /* First choise what to do if field $opid1 NOT empty */ <a href="<?php echo ($opid1); ?>"> /* myoptionsid1 are in this case an URL to wherever i want to link*/ <img src="<?php echo ($opid2); ?>" /> /* myoptionsid2 are in this case an URL to an image*/ </a> <?php } else if { ?> /* Second choise what to do if field $opid1 NOT empty. And so on... */ <?php } else { ?> /* Last choise what to do if field $opid1 NOT empty */ <?php }; ?>For more if else statements: http://codex.wordpress.org/Conditional_Tags
Viewing 3 replies - 1 through 3 (of 3 total)