The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I have chat on my site. Chat sits on an entirely different server, different domain. I've embedded an iframe in the page so that people who are in chat will show up as being "online" in the "who's online" feature of the site. The iframe refers to server/domain where VB is, to a file called chat_in.php which I created and then created a custom template for. This iframe is hidden at the bottom of the page, and doesn't display anything to the end user.
It works. My users show up as "in chat" and in the who's online on the forum homepage. But here's the problem. If any member bookmarks or goes directly (types in the address) to any of the chat pages, it bipasses the VB login. I have login for chat and it's synced with the VB login info so that they can only get into chat if they are registered through my bulletin board. But of course, the iframe they can't see is showing a "no permission" page, so for all intent and purposes, as far as "who's online" they come up as a guest in chat getting a login error. SOOOO... How do I create a javascript redirect based on history. It would do this... if they came directly to chat from any place OTHER than the entire subdomain my forums sit on (either "no referrer" or "any place other than forums.mydomain.com/+any page") they are redirected to my chat login page? OR if they come in to chat from any place on the entire subdomain my forums sit on ("any place other than forums.mydomain.com/+any page") they get directly in, but referred from anywhere else takes them to the chat login page? I know it can be done with javascript, I just haven't been able to put it together. Help? Thanks. ps. I've thought about embedding the chats the other way around... make a VB page with the chat embedded in an iframe. Here's the problem... the drop-down menus in the navigation end up falling BEHIND the java applet, and I've done a ton of research to find a resolution and can find one. Seems no matter what you do (even setting z-index through CSS) has no effect and the java applet ALWAYS appears above everything else. |
#2
|
||||
|
||||
![]()
Hmm in your chat file put something like this:
PHP Code:
![]() Also bare in mind referrers can be spoofed very easily, so this isn't really a reliable method. You might want to look at investing in a chat facility that does have actual vB integration. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|