Welcome Guest ( Log In | Register )

2 Pages V   1 2 >  
Reply to this topicStart new topic
> New Private Message Popup
habman
post Sep 24 2008, 01:17 AM
Post #1


Veteran
***

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

2009 MFL: 31589 , 24836


MFL has recently added a new javascript variable to the "5 Newest Message Board Posts" Home Page module that has allowed coders to create a "New Private Message" Popup.


The only criteria to get this to work are that you need to have the "5 Newest Message Board Posts" Home Page module somewhere on your home page and you need to have the following script in your footer.

Here is the code that must be placed in your footer:


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

//FREQUENCY; 0=always, 1=once per browser session; 2=once per day; 3=once per week
var popupMessageFrequency = 1;

//POPUP COLOUR SETTING; use either color names (black) or code (#000000)
var popupMessageBGColor = 'black';  
var popupMessageBorder  = '2px solid red';

//POPUP POSITIONING;
//1=left/top;     4=center/top;      6=right/top;
//2=left/center;  0=center/center;   7=right/center;
//3=left/bottom;  5=center/bottom;   8=right/bottom;
var popupMessagePositioning = 0;

// -->
</script>

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


With this code when an owner visits the and they have a new private message a popup will appear notifying them as such.

Let me know of any issues.


--------------------
My MFL scripts . . . . . . . . http://www.habman.com/mfl/
Go to the top of the page
 
+Quote Post
FFTL
post Sep 24 2008, 05:03 AM
Post #2


Veteran
***

Group: Members
Posts: 170
Joined: 15-August 08
From: Baltimore
Member No.: 6812

2009 MFL: 20271
2010 MFL: 40665 , 23392


QUOTE (habman @ Sep 24 2008, 03:17 AM) *
MFL has recently added a new javascript variable to the "Message Board" Home Page module that has allowed coders to create a "New Private Message" Popup.


The only criteria to get this to work are that you need to have the "Message Board" Home Page module somewhere on your home page and you need to have the following script in your footer.

Here is the code that must be placed in your footer:


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

//FREQUENCY; 0=always, 1=once per browser session; 2=once per day; 3=once per week
var popupMessageFrequency = 1;

//POPUP COLOUR SETTING; use either color names (black) or code (#000000)
var popupMessageBGColor = 'black';  
var popupMessageBorder  = '2px solid red';

//POPUP POSITIONING;
//1=left/top;     4=center/top;      6=right/top;
//2=left/center;  0=center/center;   7=right/center;
//3=left/bottom;  5=center/bottom;   8=right/bottom;
var popupMessagePositioning = 0;

// -->
</script>

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


With this code when an owner visits the and they have a new private message a popup will appear notifying them as such.

Let me know of any issues.


Habman, can I post this code under my trade pop code that I use of yours?


--------------------
Damien Clark
rosterdoc.com
Go to the top of the page
 
+Quote Post
habman
post Sep 24 2008, 05:46 AM
Post #3


Veteran
***

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

2009 MFL: 31589 , 24836


QUOTE (FFTL @ Sep 24 2008, 07:03 AM) *
QUOTE (habman @ Sep 24 2008, 03:17 AM) *
MFL has recently added a new javascript variable to the "Message Board" Home Page module that has allowed coders to create a "New Private Message" Popup.


The only criteria to get this to work are that you need to have the "Message Board" Home Page module somewhere on your home page and you need to have the following script in your footer.

Here is the code that must be placed in your footer:


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

//FREQUENCY; 0=always, 1=once per browser session; 2=once per day; 3=once per week
var popupMessageFrequency = 1;

//POPUP COLOUR SETTING; use either color names (black) or code (#000000)
var popupMessageBGColor = 'black';  
var popupMessageBorder  = '2px solid red';

//POPUP POSITIONING;
//1=left/top;     4=center/top;      6=right/top;
//2=left/center;  0=center/center;   7=right/center;
//3=left/bottom;  5=center/bottom;   8=right/bottom;
var popupMessagePositioning = 0;

// -->
</script>

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


With this code when an owner visits the and they have a new private message a popup will appear notifying them as such.

Let me know of any issues.


Habman, can I post this code under my trade pop code that I use of yours?

Yes.


--------------------
My MFL scripts . . . . . . . . http://www.habman.com/mfl/
Go to the top of the page
 
+Quote Post
Ogre
post Sep 24 2008, 09:48 AM
Post #4


Veteran
***

Group: Members
Posts: 179
Joined: 27-April 08
From: PA
Member No.: 6387



habman, I don't see the "message board" in the list of modules. I do see "% newest message board topics". Any ideas?
Go to the top of the page
 
+Quote Post
habman
post Sep 24 2008, 10:02 AM
Post #5


Veteran
***

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

2009 MFL: 31589 , 24836


QUOTE (Ogre @ Sep 24 2008, 11:48 AM) *
habman, I don't see the "message board" in the list of modules. I do see "% newest message board topics". Any ideas?


That's the one. Sorry about that. I corrected my initial post to account for this oversight on my part.


--------------------
My MFL scripts . . . . . . . . http://www.habman.com/mfl/
Go to the top of the page
 
+Quote Post
commishkeg
post Sep 24 2008, 01:40 PM
Post #6


Veteran
***

Group: Members
Posts: 280
Joined: 25-July 07
From: on the road somewhere
Member No.: 5370



you are THE BEST Habman ... it amazes me how much you do for free (i for one would be happy to pay extra if MFL put you on staff) ... i remember making a donation for your bandwidth fees last year , do u still have that and where did i do it ?


--------------------


Go to the top of the page
 
+Quote Post
carlangas
post Sep 25 2008, 10:01 AM
Post #7


Veteran
***

Group: Members
Posts: 42
Joined: 19-March 08
Member No.: 6358



when you say in the "footer" you mean in a new homepage module and make it a footer on all pages, correct?
Go to the top of the page
 
+Quote Post
habman
post Sep 25 2008, 10:22 AM
Post #8


Veteran
***

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

2009 MFL: 31589 , 24836


QUOTE (carlangas @ Sep 25 2008, 12:01 PM) *
when you say in the "footer" you mean in a new homepage module and make it a footer on all pages, correct?

Yes.

If you are already using a home page module as the footer then you can just add it to that one.


--------------------
My MFL scripts . . . . . . . . http://www.habman.com/mfl/
Go to the top of the page
 
+Quote Post
carlangas
post Sep 25 2008, 11:12 AM
Post #9


Veteran
***

Group: Members
Posts: 42
Joined: 19-March 08
Member No.: 6358



QUOTE (habman @ Sep 25 2008, 10:22 AM) *
QUOTE (carlangas @ Sep 25 2008, 12:01 PM) *
when you say in the "footer" you mean in a new homepage module and make it a footer on all pages, correct?

Yes.

If you are already using a home page module as the footer then you can just add it to that one.


Thanks for all you do man....it's really appreciated
Go to the top of the page
 
+Quote Post
YardDog
post Sep 27 2008, 02:26 PM
Post #10


Veteran
***

Group: Members
Posts: 47
Joined: 31-July 08
From: Central, PA
Member No.: 6681

2009 MFL: 26735


So I just copy the code above and paste it to a home page message and click footer? Is that it?

Thanks.


--------------------
league 49416
Go to the top of the page
 
+Quote Post
joe.commish
post Sep 27 2008, 02:56 PM
Post #11


Veteran
***

Group: Members
Posts: 919
Joined: 20-May 05
From: SE Wisconsin
Member No.: 2473

2009 MFL: 12852


QUOTE (YardDog @ Sep 27 2008, 03:26 PM) *
So I just copy the code above and paste it to a home page message and click footer? Is that it?

Thanks.


Yep, that's it.


--------------------
Codes, Applications and CSS tweaks -- http://forums.myfantasyleague.com/forums/index.php?showtopic=23490
Go to the top of the page
 
+Quote Post
YardDog
post Sep 27 2008, 06:14 PM
Post #12


Veteran
***

Group: Members
Posts: 47
Joined: 31-July 08
From: Central, PA
Member No.: 6681

2009 MFL: 26735


I did that and the trade pop up is working for the guys in the league and when I sign on as commissioner, but it does NOT work for my own team? What am I missing?


--------------------
league 49416
Go to the top of the page
 
+Quote Post
habman
post Sep 27 2008, 06:46 PM
Post #13


Veteran
***

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

2009 MFL: 31589 , 24836


QUOTE (YardDog @ Sep 27 2008, 08:14 PM) *
I did that and the trade pop up is working for the guys in the league and when I sign on as commissioner, but it does NOT work for my own team? What am I missing?

It should work for your team as well.

Log in as your own team and then view the source code of the home page. Check to see if the popup code is included on the home page. Just wondering if it is possible that you have created your own customized page for your own team that does not include this script.


--------------------
My MFL scripts . . . . . . . . http://www.habman.com/mfl/
Go to the top of the page
 
+Quote Post
YardDog
post Sep 27 2008, 07:48 PM
Post #14


Veteran
***

Group: Members
Posts: 47
Joined: 31-July 08
From: Central, PA
Member No.: 6681

2009 MFL: 26735


habman,

Under owner abilities set up I have given myself permission to customize my own page. After spending time getting everything on the site earlier in the year, I hated to change things around for the rest of the guys in the league because they were comfortable with it. But I did make changes to my own page. I like my own set up much better. Does this mean I will not be able to receive the pop up for trades? I know the sound isn't working for me either in the chat but it does work for others.

I'm not sure how to check the things you mentioned earlier. I went into set up and removed it because I remembered you saying it wasn't needed if we had it listed as a footer. Is that correct? Can you help me out?

Thanks.


--------------------
league 49416
Go to the top of the page
 
+Quote Post
habman
post Sep 28 2008, 01:53 AM
Post #15


Veteran
***

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

2009 MFL: 31589 , 24836


QUOTE (YardDog @ Sep 27 2008, 09:48 PM) *
habman,

Under owner abilities set up I have given myself permission to customize my own page. After spending time getting everything on the site earlier in the year, I hated to change things around for the rest of the guys in the league because they were comfortable with it. But I did make changes to my own page. I like my own set up much better. Does this mean I will not be able to receive the pop up for trades? I know the sound isn't working for me either in the chat but it does work for others.

I'm not sure how to check the things you mentioned earlier. I went into set up and removed it because I remembered you saying it wasn't needed if we had it listed as a footer. Is that correct? Can you help me out?

Thanks.

I don't allow owners to customize their page on my site so I am not sure of all the particulars involved.

However I did set up a test league and it seems that any "Footer" set up by the commissioner is still included in all the pages where the owner can customize their site so it should be working for you.

In your custom page do you have the "5 Newest Message Board Posts" home page module included. That must be included in order for the popup to work.

The only other thing that I can think of is that in your custom page you have added something that has created a javascript error that is causing my apps to break.


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

2 Pages V   1 2 >
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:25 PM