I am trying to use the achievements punchtab option.

When I add the code in the custom code section it works fine but even when the user hasn't clicked the badges button ( bottom left ) the chat is still unclickable. When the badges button is clicked the chat is covered. I can't see how the code can be altered. I have tried adding the code to a div and changing the z-index but with no success.

This is the punchtab code - 

<script type="text/javascript" charset="utf-8">
var _btq = _btq || [];
var _punchtab_settings_badges = {
position: {x: "left", y: "bottom"},
key: "82d0f2*****360744e42a4***********"
};

(function() {
var pt = document.createElement('script'); pt.type = 'text/javascript'; pt.async = true;
pt.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'static.punchtab.com/js/pb.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(pt, s);
})();
</script>

This is the screenshot of the problem -

Any help would be great. Thanks

Tags: punchtab, z-index

Views: 350

Reply to This

Replies to This Discussion

I had the same issue. You can either move the tab to the top or get rid of badges. I deleted it off of my site because it was killing the load time.

I can't move it to the top because I've stuck my users menu there but thanks for letting me know about the load time.

so far I've only Figured out one option To fix this. Raise the chat bar up 20 pixels.

here's the code I wrote

Placed this in NC custom code box.

<style>
.xg_bottomBar{
    background: url(http://static.ning.com/socialnetworkmain/widgets/chat/gfx/chat.png?...) repeat-x 0 0;
    border: 1px solid #B7B7B7;
    position: absolute;
    bottom: 0px!important;
    width: 100%;
    z-index: 999;
}
.xg_chat.chatFooter #mainChatContainer{
    width: 300px;bottom: 20px!important;}
.xg_chat.chatFooter #userListContainer{
    margin-right: 20px;bottom: 20px!important;
}
</style>

just yell at me if you don't like my idea lol

I will try to come up with a better fix. No guarantees.. lol

I like it, how you make it with them sexy round edges?

here's the code that I used for the chat bar and the main chat. :)

<style>

.xg_chat .xg_titleBar{background-color:#036!important;color:#E9F8FE;}
.xg_chatWindow{background:none repeat scroll 0 0 #fff!important;border:1px solid #B7B7B7;color:#036!important;}
.xg_chatWindow img{border:solid 1px #CCC;-moz-box-shadow:1px 1px 3px #999;-webkit-box-shadow:1px 1px 3px #999;box-shadow:1px 1px 3px #999;}
.xg_chat.chatModule .xg_userList.chatTabs > li.active,.xg_chat .xg_titleBar,.xg_chat.chatModule .xg_info.xg_activeConversations,div#xg.xg_widget_chat div.xg_chat div#userListContainer.xg_chatWindow div.xg_theme-ningbar-bc p.chatTitle{background-color:#333;border:3px outset;}
.xg_chat.chatModule .xg_userList.chatTabs li.active:hover{background-color:#666;}
.xg_chat.chatModule .xg_chatWindow .xg_messageListHeading,.xg_messageListFooter{color:#fff;background-color:#333!important;}
.xg_chatWindow li.message:hover,.xg_chatWindow ul.xg_userList li.userEntry:hover{background-color:#E9F8FE;}
.xg_chat.chatModule .xg_chatWindow ul.xg_messageList{border:10px solid #333!important;}
.xg_chat.chatModule .xg_chatWindow .xg_messageListHeading{top:13px!important;}
.xg_chat.chatFooter .xg_bottomBar{border-radius:10px;}

</style>

also added this code to make the chat windows raised too.

.xg_chatWindow{
bottom: 20px!important;}

sorry I missed that lol

Nah it's great help George. I raised it to 30px because that's how large punchtab is. I tried to alter the z-index but with no luck.

I knew the punchtab was around 30 pixels high but I figured you could still get to it even set at 20px.. just trying to save a whole 10 pixels worth of room. lol

I'm glad we worked around your problem with punchtab.  You have a great day Josh :-)

found a lil problem :/

If you open a private chat then minimize it, it goes to the bottom, can't find the css rule to stop this.

Here you go all Fixed :)

just change the 20 to 30 if you like that height better
<style>


.xg_bottomBar{
    background: url(http://static.ning.com/socialnetworkmain/widgets/chat/gfx/chat.png?...) repeat-x 0 0;
    border: 1px solid #B7B7B7;
    position: absolute;
    bottom: 0px!important;
    width: 100%;
    z-index: 999;
}
.xg_chat.chatFooter{font-size: 11px;line-height: 21px;bottom: 20;}
.xg_chat.chatFooter #mainChatContainer{
    width: 300px;bottom: 20px!important;}
.xg_chat.chatFooter #userListContainer{
    margin-right: 20px;bottom: 20px!important;}
.xg_chatWindow{
        bottom: 20px!important;}


</style>

Still does the same as the screenshot I showed you before? Dunno if it's something I'm doing but I did just C/P :/

RSS

Latest Activity

Lady Panter favorited Rafael's group Ning Networks en español
1 hour ago
Dustin Craig replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'
"Thanks!"
3 hours ago
Dustin Craig replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'
"Let me send you a friend request so I can message you rather than take this thread more off-topic."
3 hours ago
Paul Corona replied to Suzie Nielsen's discussion 'Watching Cultivating videos- have questions!'
"So many folks were asking the same questions that I thought actually showing them the basics of the…"
4 hours ago
Chris replied to JFarrow's discussion 'Ning Emails Going to Spam?'
"Nope, had all the answers: "it's not a bug", "it is a bug and has been…"
5 hours ago
Larry Matthews replied to Larry Matthews's discussion 'Photos'
"www.dismyhood.com I need to enlarge images on mouseover, on the activity feeds. There is a feed for…"
6 hours ago
Fabio replied to Phil McCluskey's discussion 'Site Manager Updates for Ning 3.0 Networks'
"F A N T A S T I C !!!!! well done guys"
6 hours ago

NC for Hire
Jen replied to Jen's discussion 'Jen's Running List - Updated 4/6/2013' in the group The Sandbox
"Hi Allison, I have a Client who needs the Search feature. Any updates? I don't see any Search…"
6 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service