WebSite X5Help Center

 
Skip W.
Skip W.
User

Protecting a blog?  en

Autor: Skip W.
Visitado 1784, Seguidores 1, Compartilhado 0  
Tags: blog,lock

How can I protect (or lock) the blog page so it can only be accessed by login? On the site map, the lock page button is greyed out for the blog page. I only want logged in users to be able to read the blog.

Thanks

Publicado em
11 RESPOSTAS
Skip W.
Skip W.
User
Autor

After reading some of the older post on this subject, it seems that there is no way to protect the blog. In every solution suggested, it is still possible to get the blog page url and enter that with no login at all. 

Skip

Ler mais
Publicado em de Skip W.
Chris S.
Chris S.
User

Perhaps you can protect the blog page through your hosting admin tools.

Ler mais
Publicado em de Chris S.
Anthony A.
Anthony A.
User

I think its a wonderful Idea to be able to lock your blog so would be visible only to your members.

I suggest you to open an Idea post and let incomedia know about it.

if this post is the correct answer, please mark this answer as correct answer.

------------------------------------------------------------

Good Luck

http://www.wdesigners.us

http://www.usx5.com (coming soon)(Sign up to be notified when we launch!)

Ler mais
Publicado em de Anthony A.
Anthony A.
Anthony A.
User

Yes kees, but that is not an option within web x5.

if this post is the correct answer, please mark this answer as correct answer.

------------------------------------------------------------

Good Luck

http://www.wdesigners.us

http://www.usx5.com (coming soon)(Sign up to be notified when we launch!)

Ler mais
Publicado em de Anthony A.
Skip W.
Skip W.
User
Autor

It really needs to be done in x5 as part of the Access Management facility!

I only want my users to sign in one time and then be able to access all of the locked pages as well as the blog.  I don't want them to have to sign in once for the locked pages and another time (htaccess) for the blog. Double work for me keeping two files of user ids and passwords, plus it looks very unprofessional.

Thanks for all of the replys, however!

Ler mais
Publicado em de Skip W.
Skip W.
Skip W.
User
Autor

I would even go so far as editing the final blog webpage source and putting some 'secret' code on the page to check for access login if it were possible and Incomedia would supply the 'secret' code to do this <g>. 

Skip

Ler mais
Publicado em de Skip W.
Anthony A.
Anthony A.
User

I think there is a way to it, but I didn't test it yet, you need to create a array first, then add that group with array inside your server. res/access.inc.php

many of these setting are depend on your website setting, then you should add a code like

<?php
require_once("res/x5engine.php");
imCheckAccess('x');
?>

inside your page, before html tag. + possible code for inside x5engine


I need to test it in a project to be able to give you exact codes. I have 3 project in my hand, so I am unable to do it at this moment.

if this post is the correct answer, please mark this answer as correct answer.

------------------------------------------------------------

Good Luck

http://www.wdesigners.us

http://www.usx5.com (coming soon)(Sign up to be notified when we launch!)

Ler mais
Publicado em de Anthony A.
Skip W.
Skip W.
User
Autor

Thanks Anthony,

I am getting closer.  Because the blog php and html are in its own directory, it is having problem finding some of the stuff in the other directorys, I think. Them naming the blob html "Index" doesn't help either<g>.

I am getting an error return code of -3 and "Input file not found" but I am encouraged.

Skip

Ler mais
Publicado em de Skip W.
Kees W.
Kees W.
User

I have.htaccesssuccessfully used inmy website.
The directoryBlogisprotected by a usernameandpassword.

regards,
Kees

Ler mais
Publicado em de Kees W.
Skip W.
Skip W.
User
Autor

Hi Anthony,

Adding "imCheckAccess('x');" between

<?php include "../res/x5engine.php";
imCheckAccess('9');   <--------------------------
$blog = new imBlog();?>

at the beginning of ../blog/index.php seems to work well. Now I just have to remember to make the change each time index.php is regenerated.

The blog seems to work fine with this in and logged in, but if you copy and paste the blog url and try and get in that way when not logged in, it fails.  Exactly what I wanted.

Thanks

Skip

Ler mais
Publicado em de Skip W.