Get rid of the right side column?
Kyle said there is a way to stop the right column from showing. We are using an iframe and I need to get rid of it. I do know a bit of css and am familiar with the display: none but what id or class do I assign that to? I see a big blank area to enter css but I'm lost.
Any help would be greatly appreciated!
Thanks,
Tom
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Nathan on 26 Feb, 2010 06:51 PM
Hi Tom,
Include this in your css area:
.two_column #content{background:transparent;} .two_column{background:#fff;} #left_column{float:left;width:100%;min-height:450px;height:auto !important;height:450px;} #right_column{display:none;}Nathan
Nathan resolved this discussion on 26 Feb, 2010 06:51 PM.
webmaster re-opened this discussion on 26 Feb, 2010 09:26 PM
3 Posted by webmaster on 26 Feb, 2010 09:26 PM
That is so awesome, thank you so much! Can I ask one more question? How can I make the width of the app smaller? I need it to be around 800px wide to fit into an iFrame...
Thank you so much for your help!
Tom
Support Staff 4 Posted by Nathan on 26 Feb, 2010 11:59 PM
Hi Tom,
I would suggest to make your content stretchable if possible. CustomerHub is made to stretch depending on the resolution used.
Are you putting an iframe within CustomerHub?.. or are you putting CustomerHub within an iframe?
Nathan
5 Posted by webmaster on 01 Mar, 2010 09:10 PM
Figured out the width issue. I have one last question. The css you gave me get rid of the right hand column for most of the app but if you go to register as a new member the right bar shows up again. And its a customer hub thing that is titled "CustomerHub Info". How can I get rid of ALL right column items?
To answer your question I am putting the customer hub app in an iFrame on our site. Not a frame in customer hub...
Support Staff 6 Posted by Nathan on 01 Mar, 2010 10:51 PM
Ok.. yeah, I'll have to update the register page to use the css. Right now, I'm not pulling it in. I should be able to fix that on our next update, which is scheduled to go out within a few days.
Nathan
Nathan resolved this discussion on 01 Mar, 2010 10:51 PM.
webmaster re-opened this discussion on 02 Mar, 2010 08:43 PM
7 Posted by webmaster on 02 Mar, 2010 08:43 PM
ok sounds good. I still can't get no scroll on the pages that do have the right side hidden. Could you look at the screen shot I've included? I have no idea why it still wants to show the standard width. I have a width set in my iFrame...
Support Staff 8 Posted by Nathan on 03 Mar, 2010 10:47 PM
It's hard to tell without actually looking at the code within that page. Do you have any widths specified within the page code?
Also, this Knowledge Base article may be helpful for iframes: http://support.customerhub.net/faqs/resources-2/custom-domain-work-...
9 Posted by webmaster on 05 Mar, 2010 06:21 PM
This is the code that Im using...it works it just shows the scroll as mentioned above... This is the last test I have to do before purchasing.
<iframe id="frame1" src="https://APPNAME.customerhub.net" width="760" frameborder="0" marginheight="0" marginwidth="0"></iframe>
<script type="text/javascript">
function resizeIframe() {
var height = document.documentElement.clientHeight;
height -= document.getElementById('frame1').offsetTop;
// not sure how to get this dynamically
height -= 0; /* whatever you set your body bottom margin/padding to be */
document.getElementById('frame1').style.height = height +"px";
};
document.getElementById('frame1').onload = resizeIframe;
window.onresize = resizeIframe;
</script>
10 Posted by webmaster on 05 Mar, 2010 06:33 PM
By the way I read the http://support.customerhub.net/faqs/resources-2/custom-domain-work-... and it did not work at all. I've also tried it without the JS for the height...
Support Staff 11 Posted by Nathan on 05 Mar, 2010 08:31 PM
Hmm.. I'll check it out.
I know the custom domain thing works. In fact, I have a test setup here: http://micamovement.com/ which pulls http://infused.customerhub.net
Nathan
12 Posted by webmaster on 05 Mar, 2010 09:00 PM
Thanks.
Support Staff 13 Posted by Nathan on 05 Mar, 2010 10:07 PM
Hey Tom,
Ok.. Here is the code I used to fix your scrollbar issue:
#container{width:100%;margin:0px auto;min-width:0px;max-width:1800px;} .two_column #content{background:transparent;} .two_column{background:#fff;} #left_column{width:100%;float:left;min-height:450px;height:auto !important;height:450px;} #right_column{display:none;} div.admin_navs_wrapper{display:none;}Not sure if this will work for you.
Also.. just an FYI - we're working on giving the ability to edit the layout of CustomerHub which would make this much easier for you in the future. In fact, you could make CustomerHub look exactly like your website. We probably will be doing this next quarter.
Also.. I'll see if I can get the IE thing fixed for this weekends patch.
Thanks again for your help,
Nathan
Support Staff 14 Posted by Nathan on 05 Mar, 2010 10:13 PM
Oh.. and also, the test link I sent you had some old code on it. I was testing the iframe thing by using the object tag.. not the iframe tag. IE and virus detectors don't like that.. haha. I did that before writing the article and forgot to change it to the version we have now.
I updated the code on micamovement.com.. so the link should be using the code from the article now. Sorry about that. Guess before sending you the example, I should have checked to see what code it was running.
Nathan
Support Staff 15 Posted by Nathan on 09 Mar, 2010 06:17 PM
Hey Tom,
I'm going to mark this ticket as resolved. If you have any other questions, let me know.
Also, we got the IE errors fixed.
Nathan
Nathan resolved this discussion on 09 Mar, 2010 06:17 PM.
webmaster re-opened this discussion on 11 Mar, 2010 10:44 PM
16 Posted by webmaster on 11 Mar, 2010 10:44 PM
No, it still is not working in IE. I took customer hub off my trusted sites list and im getting the same error in IE. Harsh dudes. If people running win7/IE can't access this thing it's a deal breaker and I will have wasted a crap load of time on this project.
Support Staff 17 Posted by Nathan on 12 Mar, 2010 04:22 PM
Hi Tom,
if you've logged in as an admin, then login as a client without killing the session (logout), you'll get this error. Can I have you verify that that isn't happening. I'm wondering if the sessions are being crossed somehow between admin and custer logins in your browser. You can also clear your cookies to verify that is the case.
Let me know what you find out. I'm also doing testing on my side as well.
Nathan
Support Staff 18 Posted by Nathan on 16 Mar, 2010 07:52 AM
Ok.. I made another update to the session store tonight. I also updated some of the error pages so they aren't so generic. Please let me know if you receive any of these complaints starting tomorrow.
Thanks for your help and patience with this.
Nathan
Nathan resolved this discussion on 16 Mar, 2010 07:52 AM.