Statistics: Posted by Cristián Lávaque — April 21st, 2011, 10:05 pm
Statistics: Posted by zerotosran — April 21st, 2011, 9:48 pm
zerotosran wrote:so, i've used alternative protection option because it was the solution that i was looking for. it doesn't work
Statistics: Posted by zerotosran — April 21st, 2011, 5:57 pm
Statistics: Posted by Cristián Lávaque — April 21st, 2011, 1:52 pm
<?php if(is_user_logged_in()){ ?>
<?php get_header(); ?>
<?php dynamic_sidebar(1); ?>
<?php if(get_option("ocmx_home_page_layout") == "widget") :
if (function_exists('dynamic_sidebar') && is_active_sidebar(2)) : ?>
<div id="widget-block" class="clearfix">
<ul class="widget-list">
<?php dynamic_sidebar(2); ?>
</ul>
</div>
<?php endif;
else : ?>
<ul class="double-cloumn clearfix">
<li id="left-column">
<ul class="blog-main-post-container">
<?php if (have_posts()) :
global $show_author;
$show_author = 1;
while (have_posts()) : the_post(); setup_postdata($post);
include(TEMPLATEPATH."/functions/fetch-list.php");
endwhile;
else :
ocmx_no_posts();
endif; ?>
</ul>
<?php motionpic_pagination("clearfix", "pagination clearfix"); ?>
</li>
<?php get_sidebar(); ?>
</ul>
<?php endif; ?>
<?php get_footer(); ?>
<?php } else { ?>
<?php get_header(); ?>
<form name="loginform" id="loginform" action="http://www.site.com/wp-login.php" method="post">
<p>
<label>Username *<br />
<input type="text" name="log" id="user_login" class="input" value="" size="20" tabindex="10" /></label>
</p>
<p>
<label>Password *<br />
<input type="password" name="pwd" id="user_pass" class="input" value="" size="20" tabindex="20" /></label>
</p>
<p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90" /> Remember Me</label></p>
<p class="submit">
<input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="Log In" tabindex="100" />
<input type="hidden" name="redirect_to" value="http://www.site.com/wp-admin/" />
<input type="hidden" name="testcookie" value="1" />
</p>
</form>
<?php get_footer(); ?>
<?php } ?>
<?php /* Template Name: Widgetized Page */
get_header();
$widget_title = $post->post_title;
dynamic_sidebar($widget_title." Slider Widget");
if (function_exists('dynamic_sidebar') && is_active_sidebar($widget_title." 3 Column")) : ?>
<div id="widget-block" class="clearfix">
<ul class="widget-list">
<?php dynamic_sidebar($widget_title." 3 Column"); ?>
</ul>
</div>
<?php endif;
get_footer(); ?>
Statistics: Posted by zerotosran — April 16th, 2011, 2:51 pm
<ul class="blog-main-post-container">
<?php if (have_posts()) :
global $show_author;
$show_author = 1;
while (have_posts()) : the_post(); setup_postdata($post);
include(TEMPLATEPATH."/functions/fetch-list.php");
endwhile;
else :
ocmx_no_posts();
endif; ?>
</ul>
<?php if (user_is_logged_in()) { ?>
<ul class="blog-main-post-container">
<?php if (have_posts()) :
global $show_author;
$show_author = 1;
while (have_posts()) : the_post(); setup_postdata($post);
include(TEMPLATEPATH."/functions/fetch-list.php");
endwhile;
else :
ocmx_no_posts();
endif; ?>
</ul>
<?php } else { ?>
Here goes the message you want to give to those who aren't logged in.
<?php } ?>
Statistics: Posted by Cristián Lávaque — April 15th, 2011, 1:59 am
<?php if(is_user_logged_in()){ ?>
<?php get_header(); ?>
<?php dynamic_sidebar(1); ?>
<?php if(get_option("ocmx_home_page_layout") == "widget") :
if (function_exists('dynamic_sidebar') && is_active_sidebar(2)) : ?>
<div id="widget-block" class="clearfix">
<ul class="widget-list">
<?php dynamic_sidebar(2); ?>
</ul>
</div>
<?php endif;
else : ?>
<ul class="double-cloumn clearfix">
<li id="left-column">
<ul class="blog-main-post-container">
<?php if (have_posts()) :
global $show_author;
$show_author = 1;
while (have_posts()) : the_post(); setup_postdata($post);
include(TEMPLATEPATH."/functions/fetch-list.php");
endwhile;
else :
ocmx_no_posts();
endif; ?>
</ul>
<?php motionpic_pagination("clearfix", "pagination clearfix"); ?>
</li>
<?php get_sidebar(); ?>
</ul>
<?php endif; ?>
<?php get_footer(); ?>
<?php } else { ?>
<?php get_header(); ?>
<form name="loginform" id="loginform" action="http://www.site.com/wp-login.php" method="post">
<p>
<label>Username *<br />
<input type="text" name="log" id="user_login" class="input" value="" size="20" tabindex="10" /></label>
</p>
<p>
<label>Password *<br />
<input type="password" name="pwd" id="user_pass" class="input" value="" size="20" tabindex="20" /></label>
</p>
<p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90" /> Remember Me</label></p>
<p class="submit">
<input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="Log In" tabindex="100" />
<input type="hidden" name="redirect_to" value="http://www.site.com/wp-admin/" />
<input type="hidden" name="testcookie" value="1" />
</p>
</form>
<?php get_footer(); ?>
<?php } ?>
Statistics: Posted by drbyte — April 14th, 2011, 5:12 pm
<?php get_header(); ?>
<?php dynamic_sidebar(1); ?>
<?php if(get_option("ocmx_home_page_layout") == "widget") :
if (function_exists('dynamic_sidebar') && is_active_sidebar(2)) : ?>
<div id="widget-block" class="clearfix">
<ul class="widget-list">
<?php dynamic_sidebar(2); ?>
</ul>
</div>
<?php endif;
else : ?>
<ul class="double-cloumn clearfix">
<li id="left-column">
<ul class="blog-main-post-container">
<?php if (have_posts()) :
global $show_author;
$show_author = 1;
while (have_posts()) : the_post(); setup_postdata($post);
include(TEMPLATEPATH."/functions/fetch-list.php");
endwhile;
else :
ocmx_no_posts();
endif; ?>
</ul>
<?php motionpic_pagination("clearfix", "pagination clearfix"); ?>
</li>
<?php get_sidebar(); ?>
</ul>
<?php endif; ?>
<?php get_footer(); ?>
<?php if(is_user_logged_in()){ ?>
Content for anyone that is logged in, regardless of their Membership Level.
<?php } else { ?>
Some public content.
<?php } ?>
Statistics: Posted by zerotosran — April 14th, 2011, 12:08 pm
Options +FollowSymLinks
RewriteEngine on
# index.php to /wp-login.php
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php\ HTTP/
RewriteRule ^(.*)index\.php$ /$1 [R=301,L]
<form name="loginform" id="loginform" action="http://www.site.com/wp-login.php" method="post">
<p>
<label>Username *<br />
<input type="text" name="log" id="user_login" class="input" value="" size="20" tabindex="10" /></label>
</p>
<p>
<label>Password *<br />
<input type="password" name="pwd" id="user_pass" class="input" value="" size="20" tabindex="20" /></label>
</p>
<p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90" /> Remember Me</label></p>
<p class="submit">
<input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="Log In" tabindex="100" />
<input type="hidden" name="redirect_to" value="http://www.site.com/wp-admin/" />
<input type="hidden" name="testcookie" value="1" />
</p>
</form>
Statistics: Posted by drbyte — April 14th, 2011, 3:00 am
Statistics: Posted by Cristián Lávaque — April 14th, 2011, 2:05 am
Statistics: Posted by zerotosran — April 14th, 2011, 12:50 am
Statistics: Posted by Cristián Lávaque — April 14th, 2011, 12:22 am