Zero2Cool
2013-08-05T02:07:23Z
On my YAF site that's contained in an ASP.net environment, I'd like to have a page dedicated to the ShoutBox only for members to use as a chat.


This code is returning the error below.









Edit, ideal situation would be to have "forum/popup.aspx?g=shoutbox" displayed within my Site.Master and throw a video player below/above it. I'm using a Java Applet for chat now, but it's flaky as heck for some users and the ShoutBox works so much better.






Sponsor
tha_watcha
2013-08-05T11:05:51Z
I tried it too, but the problem is that there a many things that didn't work outside of yaf. I don't think it will work with the current code.

Quote:

Edit, ideal situation would be to have "forum/popup.aspx?g=shoutbox" displayed within my Site.Master and throw a video player below/above it.



Why not use an iframe!?!

<iframe src="forum/popup.aspx?g=shoutbox" width="800" height="500" frameborder="0"></iframe>

UserPostedImage
Zero2Cool
2013-08-05T16:56:43Z
Originally Posted by: tha_watcha 

I tried it too, but the problem is that there a many things that didn't work outside of yaf. I don't think it will work with the current code.

Quote:

Edit, ideal situation would be to have "forum/popup.aspx?g=shoutbox" displayed within my Site.Master and throw a video player below/above it.



Why not use an iframe!?!

<iframe src="forum/popup.aspx?g=shoutbox" width="800" height="500" frameborder="0"></iframe>



bahhhahahahaha that's awesome, works great!!

I do notice something though, and I noticed this when you use Fly Out... the top/bottom has a large unused space that increases/decreases when resizing the fly out window.
Zero2Cool attached the following image(s):
Zero2Cool
2013-08-05T18:30:21Z
Using "inspect element" on Chrome I can edit the attribute shown below and it looks great as the "red" wasted space areas are non-exsistent.

<div class="post" id="shoutBoxChatArea" style="height: 99%;">




However, when I use 99% in the forum.css the same "red" wasted space areas are still visible.

.PopupBody {
    margin: 0;
    padding: 0;
}

    .PopupBody .ShoutBoxPanel .content {
		position:absolute;
		top: 5px;
		bottom:0px;
		right:0px;
		left:5px;
		height:50%; /*     default 98% */
		width:99%;
		min-height:120px;
    }

#shoutBoxChatArea {
    overflow-y: auto;
    height: 110px;
    min-width: 500px;
    width: 99%;
    padding: 0;
    margin: 0;
}



Edit .... within forum.css



and that has eliminated the weird top/bottom red wasted space portions.
Zero2Cool
2013-08-18T01:17:26Z
Originally Posted by: tha_watcha 

I tried it too, but the problem is that there a many things that didn't work outside of yaf. I don't think it will work with the current code.

Quote:

Edit, ideal situation would be to have "forum/popup.aspx?g=shoutbox" displayed within my Site.Master and throw a video player below/above it.



Why not use an iframe!?!

<iframe src="forum/popup.aspx?g=shoutbox" width="800" height="500" frameborder="0"></iframe>



Is it possible to stop the page from resetting to the top after submitting a shout into the shoutbox?
Zero2Cool
2013-08-30T00:15:57Z
I've been trying to figure out how to keep the page where it's at after submitting a Shout into the ShoutBox. Any ideas?
Zero2Cool
2013-09-06T20:06:56Z
Anyway to avoid having the page jump when a Shout is submitted?
squirrel
2013-09-07T17:54:22Z
Originally Posted by: Zero2Cool 

Anyway to avoid having the page jump when a Shout is submitted?



I know you're working with a YAF solution - but thought this might interest you with your particular needs --

http://www.estreamchat.com/features.aspx 
(asp.net/open-source/html5+jquery) -- sounds pretty slick - haven't played with it yet though --
If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
Zero2Cool
2013-09-07T17:56:29Z
Originally Posted by: squirrel 

Originally Posted by: Zero2Cool 

Anyway to avoid having the page jump when a Shout is submitted?



I know you're working with a YAF solution - but thought this might interest you with your particular needs --

http://www.estreamchat.com/features.aspx 
(asp.net/open-source/html5+jquery) -- sounds pretty slick - haven't played with it yet though --



IF I could plug that into an ASPX page with my video player, as well as throw in the YAF UserName, I'd be down. Looks pretyt nice.
squirrel
2013-09-07T18:06:39Z
It's in c# - I'm willing to bet it's modular. It provides a method for authentication passthru from the main site without having to write a custom provider or hook it to YAF's providers. You can authorize it in the manner you were thinking of. I'll download it and see what it looks like under the hood, but I am willing to bet you'd be quicker at that :)

If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
Zero2Cool
2013-09-07T18:08:38Z
I downloaded it have it running locally right now. It is pretty nice. Hopefully ti doesn't do that damn jump around though when I make it smaller lol
squirrel
2013-09-07T18:14:04Z
Being jQuery, I'm betting there's no postback issues with it -- looks like it operates through jQuery and a WebService -- so you might be in luck.

In the chatroom.aspx page there's some markup referencing a video box already - might be for webcam support though -- but don't see a reason why you can't insert your own markup with it and modify CSS as needed :)

If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
Zero2Cool
2013-09-07T18:16:03Z
I think YAF should switch to jQuery 🙂


Yes, the video is webcam, not video player from like justin.tv or something.
Zero2Cool
2013-09-07T18:36:48Z
Actually, that won't work. It is nice, but its quite a lot of overhead. I just need a simple chat/shout that doesn't postback and reposition the page. I've been looking into just creating one myself. I can do all of it no issues, except implementing the jQuery stuff or heck even using jQuery for that matter.
squirrel
2013-09-08T00:14:37Z
Let me see if there's something else I can dig up for ya bro --

On the other one is it just too much completely or just certain parts? Ripping apart someone else's code might not be as hard as putting it together from scratch ;)

If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved