We are wanting to make the Homepage footer only appear for logged-in members, and be invisible to visitors.
What would be the easiest way to go about this?
--Thanks
We are wanting to make the Homepage footer only appear for logged-in members, and be invisible to visitors. What would be the easiest way to go about this? --Thanks |
go to the CSS file and make add after the display: none. I dont know exact path but you maybe able to figure out or someone else will help you. |
The footer is inserted by a key, correct? If so, you need to go to the key and add a check for if the ID is > 0. Guests have ID of 0 Geeks, making the world a better place |
The footer is inserted by a key, correct? If so, you need to go to the key and add a check for if the ID is > 0. Guests have ID of 0 Thanks Luclonely and GG for your response.... To clarify.... "inserted by a key" ....does that refer to bx_injection....an injection key? How do I add a check for ID > 0 ? Is there a specific place where I can see an example of this? |
I was not awake enough last night to give a proper answer. Let me go look at this and I will return and if someone else has not given some information I will post what I find. Yes, the footer is added by a bx_injection. Geeks, making the world a better place |
So you are not going to have the contact us, and about us, etc? Those are things that you might want a guest that might be interested in joining your site to see. Geeks, making the world a better place |
This will hide the links but the division will still be there; for me it just shows the copyright notice to guests. In BxDolTemplates.php in the inc/classes find the following: case 'bottom_links': and change to this: case 'bottom_links': What this does is to check to see if a member is logged on and if so, go out and fetch the links that should be displayed in the footer division. If a member is not logged on, it does not fetch the links for the footer. Geeks, making the world a better place |
Your code works perfectly for the base templates- UNI and Alt Now I need to figure out where to do that for a 3rd-Party Template. |
That code is in /inc/classes and not in the template directory. I would think it would applied to a third party template as well. You will have to contact the template developer and ask them. Geeks, making the world a better place |
I would have thought that would apply to 3rd-Party template as well.... The more I think of it- What we're wanting here is more of a Splash-Page with the nice banner/splash elements that come with the template. Never-the-less GG- Much Thanks! |
I did not even bother to go in and look at the builders. The solution I gave you can be done by just using the guest and members checkboxes in the builders; so it is really worthless. Geeks, making the world a better place |
There are ways to get a simple splash page for your guests without rewriting URLs and using splash.php, or paying for templates. What you do is to hide navigational elements, using the built in guest and member checkboxes on the menus. We did this on our site because splash redirects will prevent the sharing of public content. We wanted to be able to share public content but limit what a guest can see and do on the site. The Page Access Control module comes into play as well. You hide all the blocks on the index page from guests that you don't want them to see. Most of this is done by the built in checkboxes. Click on the title of the block in the builders and hide them from guest viewing. Then you use the built in Promo Block in general settings for your splash content. I rewrote the template so that it uses a different designbox so that I could have it as wide as I needed with no borders, etc, so that it would not change any other blocks. Now you don't need to buy any splash or sliders because there are plenty on the internet for free; all you have to do is to leave in the notice in the javascript file (it does not show on the site) of who created it. I found a nice slider that will allow you to include text overlays, videos, etc. and it is free to use on commercial sites. You can have a nice jquery splash page with images and text and videos and have the join and login links available to either join the site or login.
Edit: I told you wrong on the Promo Block, I created a new template for the Promo Block and pointed the promo code to use it. It is a simple edit in the promo function. Geeks, making the world a better place |
There are ways to get a simple splash page for your guests without rewriting URLs and using splash.php, or paying for templates. What you do is to hide navigational elements, using the built in guest and member checkboxes on the menus. We did this on our site because splash redirects will prevent the sharing of public content. We wanted to be able to share public content but limit what a guest can see and do on the site. The Page Access Control module comes into play as well. You hide all the blocks on the index page from guests that you don't want them to see. Most of this is done by the built in checkboxes. Click on the title of the block in the builders and hide them from guest viewing. Then you use the built in Promo Block in general settings for your splash content. I rewrote the template so that it uses a different designbox so that I could have it as wide as I needed with no borders, etc, so that it would not change any other blocks. Now you don't need to buy any splash or sliders because there are plenty on the internet for free; all you have to do is to leave in the notice in the javascript file (it does not show on the site) of who created it. I found a nice slider that will allow you to include text overlays, videos, etc. and it is free to use on commercial sites. You can have a nice jquery splash page with images and text and videos and have the join and login links available to either join the site or login.
Edit: I told you wrong on the Promo Block, I created a new template for the Promo Block and pointed the promo code to use it. It is a simple edit in the promo function. OK, so based on what you're saying here, we were headed on the right track (pretty much everything you did on you're project is how this project has been done- hiding blocks and menus from guests and using custom splash image and config in the promo section, while using the nice splash/banner supplied by the 3rd-Party template which resides just beneath promo section) ....AND- I was not aware of the "splash redirects will prevent the sharing of public content" thing, so perhaps a splash page is not in our best interest. Things being as they are, it's just that 3rd-Party footer with all the links inside we need to hide, and it doesn't have a block in the builders so as to allow us to simply un-check visibility for guests. (I've heard the term "hard-coded pages" used occasionally...that comes to mind now...and wonder if this is the same or similar idea) We've considered using PAC, still on the fence, a last resort I guess... Much thanks for the help though |
To hide the complete footer block, not just the links, requires digging in the code a bit more to find where the block is generated. Or in the database. Once you find that code, you can put a condition that if a guest is viewing to not generate the block. I did not dig deep enough. Geeks, making the world a better place |