talia
Forum Replies Created
-
Forum: Plugins
In reply to: Members only sectionsOn another note: I think I’m having a stupid moment, but I’m having some difficulty seeing how creating a ‘page’ to create a virtual directory would work to protect your posts, since the posts/categories aren’t actually protected.
What I thought was that as the goldmembers is a “page” that when they click that tab at the top on the navigation menu it would stop them from seeing the posts because the page is protected at a higher level. Obviously just wishful thinking
Forum: Plugins
In reply to: Members only sectionsThanks mosey
Back to the drawing boardI need to explore those ones you’ve suggested and see which ones have login prompts. A goldmembers category sounds the quickest and easiest way to do it but I will explore the others too.
I was also considering the ones that assign users role and restrict content. I haven’t checked it out yet but I assume that applies at post level
Forum: Plugins
In reply to: Members only sectionssorry the slight change is to the you must be logged in message
Forum: Plugins
In reply to: Members only sectionsHmmm I don’t know why it’s not working
Are you guys testing this on pages or posts? I’m trying to protect all the posts within the page goldmembers
I copied Dr C’s code except for a slight change at the end
I’ve called it members.phpI made the page goldmembers run off that template
and then I re-saved 2 of the posts that run off that goldmembers and I can see both when I log out even after clearing the cache.My methodology
- Create a page and call it goldmembers
- Under settings permalinks have the structure /goldmembers/%year%/%monthnum%/%postname%/
<?php /* Template Name: Members */ ?> <?php get_header(); ?> <div id="content"> <?php if (is_user_logged_in()) { ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <h2><?php the_title(); ?></h2> <div class="contenttext"> <?php the_content(); ?> </div> <?php endwhile; ?> <?php endif; ?> <? } else { ?> <h3>Sorry But You Must Be Logged in to View This Page</h3> <div class="post"> Sorry, but this area is only for registered, logged-in users. If you are a registered user, please login to the site. <a href="https://whydietsdontworkclubmembers.com/1-trial-offer/">You can register for only $1 for the 30 days</a>. <form name='loginform' id='loginform' action='<?php echo get_bloginfo('wpurl');?>/wp-login.php' method='post'> <label>Username <input type='text' name='log' id='log' value='' size='20' tabindex='1' /> </label> <label>Password <input type='password' name='pwd' id='pwd' value='' size='20' tabindex='2' /> </label> <label> <input name='rememberme' type='checkbox' id='rememberme' value='forever' tabindex='3' /> Remember Me</label> <p class='submit'> <input type='submit' name='submit' id='submit' value='Login »' tabindex='4' /> <?php //use a hidden field to return them to the page they came from ?> <input type="hidden" name="redirect_to" value="<?php echo $_SERVER["REQUEST_URI"]; ?>" /> </form> </div> <!-- /post --> <?php } ?> </div><!-- /content --> <?php get_sidebar(); ?> <?php get_footer(); ?>
The website is at https://whydietsdontworkclubmembers.com and I want to protect the goldmembers virtual directory but allow people to view all the static pages. Make sense?
Forum: Plugins
In reply to: Members only sectionsThanks for that mosey
I thought about it overnight and decided I’d go back to trying that code that was outlined in an earlier post and tinker until I get it right.
I emailed the developer and he was very helpful. He said he hopes to add more features and has a to do list for future development which will address some of my questions.
Forum: Installing WordPress
In reply to: Can I run multiple blogs off one WP installationHmmm I just looked in mu and it says
You should have a good foundation with: Php; Mysql, and not just PhpMyAdmin, but command line as well; HTML; CSS; Server Administration and configuration, Note that the download page says APACHE, the ability to use tools like the error_log in Apache, other error logs (mail, etc), and be able to look up common error messages through google
I’m non techie so I’m not sure it’s a good plan for me to use mu
Forum: Installing WordPress
In reply to: Can I run multiple blogs off one WP installationThanks LesBessant
A couple more questions!
- If I use mu will it recognise my existing installation of the first blog?
- I installed using Fantastico and it doesn’t seem to want to instal a second lot of the software. To install a second time should I copy and paste all the wordpress files to a new directory or would that not work?
Thanks for your help. I’ll decide what to do next after I get the answers to these.
CheersForum: Plugins
In reply to: Members only sectionsby the way did you notice he referenced the post levels plug in?
https://fortes.com/projects/wordpress/postlevels/Forum: Plugins
In reply to: Members only sectionsI tried the plugin
If you’re logged in then on the sidebar for recent posts it shows the post but puts Private: in front of it.
If you’re not logged in then you can’t see the title post at all.
What I haven’t seen yet is anything prompting you to log in to see that post – because of course you don’t know it’s there if you’re not logged in. Make sense?
I will post that as a question or email the creator of the plugin and see what he has to say
Forum: Plugins
In reply to: Members only sectionsThanks Mosey that looks great! I’m going to give it a go.
There was also that list I posted above with various types of restrictions that I haven’t had a chance to explore yet.
Forum: Plugins
In reply to: Members only sectionsI was able to find a feed for the site, so it doesn’t seem to matter if the posts use a page template it still finds them. I’m guessing there is a way to stop feeds being created so I’ll go hunt for that
Forum: Plugins
In reply to: Members only sectionsVery funny!!! You made me chuckle. I’m just about to compare your code with mine and see if I can sort it out.
I am interested to know if this will also protect the feeds? Or do I need to stop the feeds being generated in order to prevent non-members from getting access?
Thanks
Forum: Plugins
In reply to: Members only sectionsHi again
I did do that with the members only template, although something obviously went wrong.
Having looked at your comments it seems like there may be an incompatibility with my current theme.
The one thing I’m not clear about is whether that code protects the feeds. Or is there maybe a workaround by stopping feeds from being created??? Otherwise non-members could get access by subscribing in a feed instead of visiting directly
I’ve also found this
https://codex.www.ads-software.com/User:MichaelH/Plugins/Restriction
which has several different options but haven’t had a chance to check each of them out. Maybe you guys have already looked at them?Dr C I’ll give your code a go over the weekend and see how it goes
Forum: Plugins
In reply to: Members only sectionsi cleared the cache and browsing history and posted the page but it is still showing to everyone
i copied and pasted the code joni provided and other people tested it so why doesn’t it work?
i’m getting desperate. i spent a lot of time mucking around with amember only to find it can’t protect virtual directories. now i have to try and get something else in place
Forum: Plugins
In reply to: Members only sectionsmosey – the changes are NOT working for me
i would really appreciate some help protecting the members only area
the website is visible to everyone unless my computer is caching it. but i have refreshed it several times