Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Popup script when franchise owner visits site
habman
post Aug 20 2007, 03:34 PM
Post #1


Veteran
***

Group: Members
Posts: 1948
Joined: 29-August 05
From: Leamington ON, Canada
Member No.: 3058

2009 MFL: 31589 , 24836


I am working on a new script that will popup a window when an owner visits the site.

It's still in beta but seems to be working. No longer beta.

If you would like to test it out then here is the script. You should put it as your footer so that it will popup on any page that you are on not just the home page.

Updated September 2

Copy the following code to a home page message (preferably a home page message that has been set up as the footer)

CODE
<script language="JavaScript" type="text/javascript" src="http://www.habman.com/mfl/apps/js/jsvisitorpopup.js"></script>





--------------------
My MFL scripts . . . . . . . . http://www.habman.com/mfl/
Go to the top of the page
 
+Quote Post
nffcl
post Aug 22 2007, 10:07 PM
Post #2


Veteran
***

Group: Members
Posts: 1194
Joined: 1-March 04
From: AZ USA
Member No.: 189



will give it a shot when i get caught up. looks cool.
Go to the top of the page
 
+Quote Post
norm
post Aug 23 2007, 06:42 AM
Post #3


Veteran
***

Group: Members
Posts: 692
Joined: 21-May 06
From: Massachusetts
Member No.: 4357

2009 MFL: 43438


QUOTE (nffcl @ Aug 22 2007, 10:07 PM) *
will give it a shot when i get caught up. looks cool.

ok i copy n pasted the code and set it in 1 of my homepage messages and checked off ...in footer on all pages ..and than i logged back into thge site and nothing happened ...am i doing something wrong?
Go to the top of the page
 
+Quote Post
habman
post Aug 23 2007, 09:17 AM
Post #4


Veteran
***

Group: Members
Posts: 1948
Joined: 29-August 05
From: Leamington ON, Canada
Member No.: 3058

2009 MFL: 31589 , 24836


QUOTE (norm @ Aug 23 2007, 08:42 AM) *
QUOTE (nffcl @ Aug 22 2007, 10:07 PM) *

will give it a shot when i get caught up. looks cool.

ok i copy n pasted the code and set it in 1 of my homepage messages and checked off ...in footer on all pages ..and than i logged back into thge site and nothing happened ...am i doing something wrong?


No you aren't doing anything wrong. I have the pop set so as not to diplay your own logins.

If you want to test it out login as the commissioner on IE then login as another franchise on Firefox.

You should see a popup on the IE screen within 30 seconds.

EDITED TO ADD

You need to use two different browsers for this test like IE, Firefox, Opera etc.
In case you didn't know you can log into any franchise using the commissioner password.


--------------------
My MFL scripts . . . . . . . . http://www.habman.com/mfl/
Go to the top of the page
 
+Quote Post
PhillyCommish
post Oct 1 2007, 08:13 AM
Post #5


Veteran
***

Group: Members
Posts: 139
Joined: 18-July 04
From: South Jersey
Member No.: 766

2009 MFL: 28197
2010 MFL: 40359


League ID 18883
Can you help me add this code I tried and it doesn't seem to work
Go to the top of the page
 
+Quote Post
habman
post Oct 2 2007, 01:11 AM
Post #6


Veteran
***

Group: Members
Posts: 1948
Joined: 29-August 05
From: Leamington ON, Canada
Member No.: 3058

2009 MFL: 31589 , 24836


QUOTE (PhillyCommish @ Oct 1 2007, 10:13 AM) *
League ID 18883
Can you help me add this code I tried and it doesn't seem to work



When I check out your site I see alot of "&amp&amp" in the code. This happens when you re-enter a home page message that has javascript and save it. All "&" become "&amp" which causes the code to fail.

Just use the first version of the code posted to avoid this issue.
ie


CODE
<script language="JavaScript" type="text/javascript" src="http://www.habman.com/mfl/apps/js/jsvisitorpopup.js"></script>


--------------------
My MFL scripts . . . . . . . . http://www.habman.com/mfl/
Go to the top of the page
 
+Quote Post
UCanCallMeMitch
post Dec 22 2007, 08:53 AM
Post #7


Veteran
***

Group: Members
Posts: 1924
Joined: 23-February 04
From: Colorado
Member No.: 45

2009 MFL: 74918 , 40646
2010 MFL: 20796 , 32189


This works great, but what's the chances of adding a notification of "visitors" to the site. If not a major coding nightmare possibly showing their Sideline Forum User Name or if a not a member, just a pop-up showing an unknown visitor (IP Address) is currently on site.

Another long shot - a small bit of code to show how many are currently viewing the site. Add it as a MFL Message?

Just thinking aloud - Thanx


--------------------
"Pain Heals. Chicks Dig Scars. Glory Lasts Forever."
Go to the top of the page
 
+Quote Post
sackdaddy
post Jan 8 2008, 06:59 PM
Post #8


Member
**

Group: Members
Posts: 13
Joined: 25-February 07
Member No.: 5109



something I'm curious about. Could this be used to work as a sort of "breaking news" alert?

My managers and I like to have "news stories" to announce new acquisitions, as well as 'coaching hires' and whatnot. I was thinking that we could start using the bulletin board for this, but could something pop up like this for a new post on the bulletin board?

If not... any other ideas, or cool ways this could be done? Thanks in advance!
Go to the top of the page
 
+Quote Post
Russ
post Sep 8 2008, 02:25 PM
Post #9


Veteran
***

Group: Members
Posts: 90
Joined: 4-May 07
Member No.: 5149



When the pop-up window appears on my site it is a white box with white lettering.. I can't read what it is saying. Is there a way to change the font color? I did use one home page message for the 'alert' app and the 'pop-up' app.. Is this legal? Here is the code;

CODE
<script language="JavaScript" type="text/javascript" src="http://www.habman.com/mfl/apps/js/jsvisitorpopup.js"></script>

<script language="JavaScript" type="text/javascript" src="http://www.habman.com/mfl/apps/js/habchatfooter.js"></script>

<script language="Javascript" type="text/javascript">
<!--

if (alertActive==undefined) { var alertActive='false' }
if (alertActive=='false') {
var chatAlertServerTime = currentServerTime
var chatAlertTimer=0
clearInterval(chatAlertTimer)
readMessagesForAlert(true)
}

// -->
</script>


Thanks guys..
Go to the top of the page
 
+Quote Post
habman
post Sep 8 2008, 02:58 PM
Post #10


Veteran
***

Group: Members
Posts: 1948
Joined: 29-August 05
From: Leamington ON, Canada
Member No.: 3058

2009 MFL: 31589 , 24836


QUOTE (Russ @ Sep 8 2008, 04:25 PM) *
When the pop-up window appears on my site it is a white box with white lettering.. I can't read what it is saying. Is there a way to change the font color? I did use one home page message for the 'alert' app and the 'pop-up' app.. Is this legal? Here is the code;

CODE
<script language="JavaScript" type="text/javascript" src="http://www.habman.com/mfl/apps/js/jsvisitorpopup.js"></script>

<script language="JavaScript" type="text/javascript" src="http://www.habman.com/mfl/apps/js/habchatfooter.js"></script>

<script language="Javascript" type="text/javascript">
<!--

if (alertActive==undefined) { var alertActive='false' }
if (alertActive=='false') {
var chatAlertServerTime = currentServerTime
var chatAlertTimer=0
clearInterval(chatAlertTimer)
readMessagesForAlert(true)
}

// -->
</script>


Thanks guys..

Try doing a CTRL-F5 then the next time someone logs in the font should be black.


--------------------
My MFL scripts . . . . . . . . http://www.habman.com/mfl/
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 3rd September 2010 - 11:24 PM