Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted January 7, 20187 yr I have a home page that I made with pages app. It uses IPB wrapper and mostly functions as a collection of site updates. I have a more pretty home page that is a totally different page designed for selling sign ups to guests. Is there a way that same link can be different page for logged in vs logged out? Home = page1 (logged in) Home = page2 (logged out) Is this possible? Thank you
January 7, 20187 yr Community Expert No, you can’t have a different homepage based on the member group. But using the permission settings for the blocks you put on that page, you can still basically get the same result. Just set the guest content to “Guests only” and the member stuff to “not visible to guests”.
January 7, 20187 yr Author No, you can’t have a different homepage based on the member group. But using the permission settings for the blocks you put on that page, you can still basically get the same result. Just set the guest content to “Guests only” and the member stuff to “not visible to guests”. Problem is my layout is totally different for guest page
January 7, 20187 yr Maybe you can add a small code who check if a cookie member exist and change your css style.
January 7, 20187 yr Problem is my layout is totally different for guest page Try this -> place this code at the beginning of your home page {{if !member.member_id}} <META http-equiv="REFRESH" content="0; url=https://yoursite/homepage guests"> {{endif}}
January 7, 20187 yr Author Try this -> place this code at the beginning of your home page {{if !member.member_id}} <META http-equiv="REFRESH" content="0; url=https://yoursite/homepage guests"> {{endif}} That’s awesome! Will it confuse google bots and rank spiders?
January 7, 20187 yr Community Expert Yes. Its slow and against Google‘s best practises recommendations. As I said: do it on one page. If necessary, you can wrap the entire page content with the member group query.
January 7, 20187 yr That’s awesome! Will it confuse google bots and rank spiders? bots and ranked spiders will have a home page - not 403
January 7, 20187 yr You can also use reverse logic - Make guest home page default and this code for logged-in members {{if member.member_id}} <META http-equiv="REFRESH" content="0; url=https://yoursite/homepage login"> {{endif}
January 21, 20187 yr Author so my main home page is two column but the new thing I want to add is 1 column. How can I have my new block span across two columns? New block across the top as shown in my image.
January 21, 20187 yr Community Expert Can’t be done with a normal Page Builder page. You would have to manually code that into the global template and only let it output something on a specific page.
January 21, 20187 yr I agree with @opentype, use blocks based on permission levels as long as your header and footer are the same you can quite easily achieve this but you will have to manually create your pages without page builder if you want to have different column layouts for each. I can tell you that I originally tried to do the same and wanted one page completely different for guests and one page for members and it never really worked for me. Might be a good feature request. I'm not a huge fan of http redirects unless absolutely no other way. I have one page I use as my index and just work it from there by adding html, block tags, etc., to that page. {{if !member.member_id}} Guest page content, blocks, etc {{endif}} {{if member.member_id}} Member page content, blocks, etc {{endif}}
January 21, 20187 yr Author I agree with @opentype, use blocks based on permission levels as long as your header and footer are the same you can quite easily achieve this but you will have to manually create your pages without page builder if you want to have different column layouts for each. I can tell you that I originally tried to do the same and wanted one page completely different for guests and one page for members and it never really worked for me. Might be a good feature request. I'm not a huge fan of http redirects unless absolutely no other way. I have one page I use as my index and just work it from there by adding html, block tags, etc., to that page. {{if !member.member_id}} Guest page content, blocks, etc {{endif}} {{if member.member_id}} Member page content, blocks, etc {{endif}} I am trying to do exactly this but the issue is that GUEST part needs single column and MEMBER part needs 2 columns. It's causing this to be near impossible to pull off.
January 21, 20187 yr I am trying to do exactly this but the issue is that GUEST part needs single column and MEMBER part needs 2 columns. It's causing this to be near impossible to pull off. Couldn't you just put your 1 column layout html within the guest tags and your 2 column html layout within your member tags? You could also incorporate bootstrap if you add the js and css into your page templates and include with your new page. There's some coding and conflict checks involved but I don't see why you shouldn't be able to accomplish something like what you are looking for.
January 21, 20187 yr Couldn't you just put your 1 column layout html within the guest tags and your 2 column html layout within your member tags? Yep, that's your solution. You've already got the code to separate content out by whether the user is logged in or not. So create single-column content in one, and two-column content in the other.
January 21, 20187 yr Author Yep, that's your solution. You've already got the code to separate content out by whether the user is logged in or not. So create single-column content in one, and two-column content in the other. this might be a dumb question but where to a find the basic ipb framework for 1 column and 2 column layouts?
January 21, 20187 yr Community Expert Depends. It is a Pages page or what app is used for the homepage?
January 21, 20187 yr this might be a dumb question but where to a find the basic ipb framework for 1 column and 2 column layouts? There are alternatives, such as including a CSS file for Bootstrap etc and coding to use its classes. Depends. It is a Pages page or what app is used for the homepage? I have a home page that I made with pages app.
January 21, 20187 yr Community Expert The Page Builder columns are defined here: ACP → Pages → Templates → Page Templates → Page Builder There you find the stock versions with 1 to 3 columns and you can create your own, customize it and assign it to your homepage. But keep in mind that this only affects the area of the 1 to 3 center columns in the main content area. You can’t make any changes there to the global layout, like putting something above the sidebar for example.
January 21, 20187 yr Author You can’t make any changes there to the global layout, like putting something above the sidebar for example. Are you saying the redbox in the image below won't happen without global layout edits?
January 21, 20187 yr Community Expert Are you saying the redbox in the image below won't happen without global layout edits? Yes, I answered that before.
January 21, 20187 yr Author Yes, I answered that before. Yes, I realized you had said it before, which is exactly why I was clarifying. I am finding that the template is not forcing side bar so I am a little confused.
January 21, 20187 yr Community Expert The sidebar is a page setting. I’s independent from changing those column templates.
January 21, 20187 yr Are you saying the redbox in the image below won't happen without global layout edits? In this task you want, it is best to use one such idea - Create a copy of your theme - In this copy theme, only available to guests - remove Guest access to your main theme - In this copy theme use the logo you want for an image in this area. - In the code homepage , use the Meta redirection I wrote above to Guest homepage.
Archived
This topic is now archived and is closed to further replies.