Jump to content


Photo

2017 MFL Chat Addon


57 replies to this topic

#1 theeohiostate

theeohiostate

    Veteran

  • Members
  • PipPipPip
  • 3,358 posts
  • Gender:Male
  • Location:O-H-I-O

Posted 30 May 2017 - 09:04 AM

Habmans 2017 revised chat 
 
This revised version replaces this script here - http://forums.myfant...showtopic=35385
 
The script also replaces the REPLACE TEXT WITH ICONS - LEAGUE CHAT  script mentioned here - http://forums.myfant...showtopic=33332
 
If you have either of the above installed , please remove them before installing the new chat
 
 
MFL Chat Script 
 
Key features :
1) Insert Image , Insert Link , Insert Emoji popup boxes
2) Show team icons instead of text
3) In pvt conversations , show both owner icons
4) Reorder chat messages from newest to oldest or visa versa
5) MFL popup windows now will display the new custom chat module (img in chat caption and main menu chat link)
6) More Messages - click to show more messages then the listed 10 default
 
 
Install the following script into any header homepage message , be sure to have a jQuery library installed prior to the script
 
<!-- MFL CHAT -->
<script src="//nitrografixx.com/MFL-Chat/mflChat.js"></script>


<script>
///////////////////////////////////////////////////////////////////////////////////////
//NOTES:
// - This addon requires jQuery library 
// - This addon needs to be placed in a home page message marked as header
// - MFL's regular chat module must appear on the home page for this addon to function
///////////////////////////////////////////////////////////////////////////////////////


///////////////////////////
// CUSTOM SETTINGS
//////////////////////////
var chatAddonInsertImage = true;
var chatAddonInsertLink = true;
var chatAddonCustomEmoji = true;
var chatHideVideoLink = false;
var chatBottomUp = true;
var chatShowLapsedTime = true;
var chatShowMore = true;
var chatDefaultDisplayMessages = 10;
var chatUseFranchiseIcons = true;
var chatFranchiseIconHeight = 20;
var chatImageMaxHeight = 50;
var chatImageMaxWidth = 200;
var chatElapsedTimeColor = "#888";
var chatPopupWidth = 425;
var chatPopupHeight = 450;


var chatImagePath = '//nitrografixx.com/MFL-Chat/';
var chatEmojiPath = '//nitrografixx.com/MFL-Chat/';
var chatEmojiList = ({'bowtie':'bowtie.png','smile':'smile.png','laughing':'laughing.png','blush':'blush.png','smiley':'smiley.png','relaxed':'relaxed.png','smirk':'smirk.png','heart_eyes':'heart_eyes.png','kissing_heart':'kissing_heart.png','kissing_closed_eyes':'kissing_closed_eyes.png','flushed':'flushed.png','relieved':'relieved.png','satisfied':'satisfied.png','grin':'grin.png','wink':'wink.png','stuck_out_tongue_winking_eye':'stuck_out_tongue_winking_eye.png','stuck_out_tongue_closed_eyes':'stuck_out_tongue_closed_eyes.png','grinning':'grinning.png','kissing':'kissing.png','kissing_smiling_eyes':'kissing_smiling_eyes.png','stuck_out_tongue':'stuck_out_tongue.png','sleeping':'sleeping.png','worried':'worried.png','frowning':'frowning.png','anguished':'anguished.png','_open_mouth':'open_mouth.png','grimacing':'grimacing.png','confused':'confused.png','hushed':'hushed.png','expressionless':'expressionless.png','unamused':'unamused.png','sweat_smile':'sweat_smile.png','sweat':'sweat.png','weary':'weary.png','_pensive':'pensive.png','disappointed':'disappointed.png','confounded':'confounded.png','fearful':'fearful.png','cold_sweat':'cold_sweat.png','_persevere':'persevere.png','joy':'joy.png','astonished':'astonished.png','scream':'scream.png','neckbeard':'neckbeard.png','tired_face':'tired_face.png','angry':'angry.png','rage':'rage.png','triumph':'triumph.png','sleepy':'sleepy.png','yum':'yum.png','mask':'mask.png','sunglasses':'sunglasses.png','dizzy_face':'dizzy_face.png','imp':'imp.png','smiling_imp':'smiling_imp.png','neutral_face':'neutral_face.png','no_mouth':'no_mouth.png','innocent':'innocent.png','alien':'alien.png','ari':'ari.png','atl':'atl.png','bal':'bal.png','buf':'buf.png','car':'car.png','chi':'chi.png','cin':'cin.png','cle':'cle.png','dal':'dal.png','den':'den.png','det':'det.png','gbp':'gbp.png','hou':'hou.png','ind':'ind.png','jac':'jac.png','kcc':'kcc.png','lac':'lac.png','mia':'mia.png','min':'min.png','nep':'nep.png','nos':'nos.png','nyg':'nyg.png','nyj':'nyj.png','_oak':'oak.png','_phi':'phi.png','_pit':'pit.png','lar':'lar.png','sea':'sea.png','sfo':'sfo.png','tbb':'tbb.png','ten':'ten.png','was':'was.png','broken_heart':'broken_heart.png','boom':'boom.png','exclamation':'exclamation.png','question':'question.png','zzz':'zzz.png','fire':'fire.png','shit':'shit.png','thumbsup':'thumbsup.png','thumbsdown':'thumbsdown.png','_ok_hand':'ok_hand.png','facepunch':'facepunch.png','fist':'fist.png','v':'v.png','_pray':'pray.png','eyes':'eyes.png','speech_balloon':'speech_balloon.png','thought_balloon':'thought_balloon.png','sunny':'sunny.png','umbrella':'umbrella.png','cloud':'cloud.png','snowflake':'snowflake.png','snowman':'snowman.png','zap':'zap.png','four_leaf_clover':'four_leaf_clover.png','maple_leaf':'maple_leaf.png','jack_o_lantern':'jack_o_lantern.png','ghost':'ghost.png','santa':'santa.png','christmas_tree':'christmas_tree.png','bell':'bell.png','loudspeaker':'loudspeaker.png','hourglass':'hourglass.png','toilet':'toilet.png','hammer':'hammer.png','moneybag':'moneybag.png','football':'football.png','basketball':'basketball.png','soccer':'soccer.png','baseball':'baseball.png','tennis':'tennis.png','8ball':'8ball.png','rugby_football':'rugby_football.png','bowling':'bowling.png','golf':'golf.png','trophy':'trophy.png'});
</script>

 

 


FREE Player Cuts Collection
http://www.nitrograf...nfl-playercuts/

#2 theeohiostate

theeohiostate

    Veteran

  • Members
  • PipPipPip
  • 3,358 posts
  • Gender:Male
  • Location:O-H-I-O

Posted 30 May 2017 - 09:19 AM

If you commissioner icon is not being displayed , its because the icon is being stored on a previous years server on MFL , reload the icon , or link it in the var settings


FREE Player Cuts Collection
http://www.nitrograf...nfl-playercuts/

#3 DA-G-GURU

DA-G-GURU

    Veteran

  • Members
  • PipPipPip
  • 1,125 posts
  • Gender:Male
  • Location:DAGrafixDesigns.com

Posted 30 May 2017 - 01:13 PM

So the chat shows the title commissioner above the commish icon?


Simply The Best in Grafix and CSS webdesign since 2005

www.dagrafixdesigns.com

---------------
Twitter @DA_Sticks

#4 theeohiostate

theeohiostate

    Veteran

  • Members
  • PipPipPip
  • 3,358 posts
  • Gender:Male
  • Location:O-H-I-O

Posted 30 May 2017 - 01:14 PM

So the chat shows the title commissioner above the commish icon?


No
FREE Player Cuts Collection
http://www.nitrograf...nfl-playercuts/

#5 DA-G-GURU

DA-G-GURU

    Veteran

  • Members
  • PipPipPip
  • 1,125 posts
  • Gender:Male
  • Location:DAGrafixDesigns.com

Posted 30 May 2017 - 01:16 PM

so if your linking a commish icon (not through MFL) buy my server.....do I have to add the path to the VAR or does it grab it??

 

http://www51.myfanta...17/home/24837#0

 

as of basic setup it is not seeing it i guess


Simply The Best in Grafix and CSS webdesign since 2005

www.dagrafixdesigns.com

---------------
Twitter @DA_Sticks

#6 theeohiostate

theeohiostate

    Veteran

  • Members
  • PipPipPip
  • 3,358 posts
  • Gender:Male
  • Location:O-H-I-O

Posted 30 May 2017 - 01:33 PM

var grabs the icon that is uploaded to MFL , if linking  , then you have to set var to linked icon
 
var chatCommishIcon = "URLOFIMG";
FREE Player Cuts Collection
http://www.nitrograf...nfl-playercuts/

#7 DA-G-GURU

DA-G-GURU

    Veteran

  • Members
  • PipPipPip
  • 1,125 posts
  • Gender:Male
  • Location:DAGrafixDesigns.com

Posted 30 May 2017 - 01:51 PM

you have to manually enter the URL to the linked commish icon each time per site? If you are not using the upload option??


Simply The Best in Grafix and CSS webdesign since 2005

www.dagrafixdesigns.com

---------------
Twitter @DA_Sticks

#8 theeohiostate

theeohiostate

    Veteran

  • Members
  • PipPipPip
  • 3,358 posts
  • Gender:Male
  • Location:O-H-I-O

Posted 30 May 2017 - 01:55 PM

you have to manually enter the URL to the linked commish icon each time per site? If you are not using the upload option??

 

 

yep , MFL does not provide the commish icon for us to use , so has to be linked

 

I'd never link a css file or icon , use MFL upload , so it loads on their server and is stored


FREE Player Cuts Collection
http://www.nitrograf...nfl-playercuts/

#9 habman

habman

    Veteran

  • Members
  • PipPipPip
  • 2,703 posts
  • Gender:Male
  • Location:Leamington ON, Canada

  • 2017 MFL: 55681
  • , 18835

Posted 30 May 2017 - 01:55 PM

you have to manually enter the URL to the linked commish icon each time per site? If you are not using the upload option??

 

The commissioner icon/avatar is not available in the API or as one of the few javascript vars that MFL includes in the source code so it has to be applied manually.  I think TOS made a request to MFL to have this included somewhere.


My MFL scripts . . . . . . . . http://www.habman.com/mfl/

#10 DA-G-GURU

DA-G-GURU

    Veteran

  • Members
  • PipPipPip
  • 1,125 posts
  • Gender:Male
  • Location:DAGrafixDesigns.com

Posted 30 May 2017 - 02:04 PM

No worries man, I always link my CSS and art, because one day MFL lost my CSS file that was uploaded and could NOT find it.... never again... I control it
Simply The Best in Grafix and CSS webdesign since 2005

www.dagrafixdesigns.com

---------------
Twitter @DA_Sticks

#11 theeohiostate

theeohiostate

    Veteran

  • Members
  • PipPipPip
  • 3,358 posts
  • Gender:Male
  • Location:O-H-I-O

Posted 30 May 2017 - 02:04 PM

Request sent to MFL to add commish icon along with all team icons when

 

 var franchiseDatabase  is created for each league  , or at least make accessible in leagueJson 


FREE Player Cuts Collection
http://www.nitrograf...nfl-playercuts/

#12 dejesusofnazareth

dejesusofnazareth

    Veteran

  • Members
  • PipPipPip
  • 171 posts
  • Gender:Male
  • Location:DynastyOGs

Posted 30 May 2017 - 02:59 PM

Cool add.  Hey my Eagles emoji becomes a Hi smiley face emoji.  Quite the opposite of what an Eagles fan would say....  Are links for some mixed up?  The poop worked though.



#13 theeohiostate

theeohiostate

    Veteran

  • Members
  • PipPipPip
  • 3,358 posts
  • Gender:Male
  • Location:O-H-I-O

Posted 30 May 2017 - 03:14 PM

recopy full script from post 1  - just fixed error

 

emoji with a "p" or "o"  , needs and "_" in front of them so MFL default emoji are not used , this effected Oakland , Philly and Pit

 

 

or just change this :

'oak':'oak.png','phi':'phi.png','pit':'pit.png'  

 

to this:

'_oak':'oak.png','_phi':'phi.png','_pit':'pit.png' 

FREE Player Cuts Collection
http://www.nitrograf...nfl-playercuts/

#14 bonscott

bonscott

    Veteran

  • Members
  • PipPipPip
  • 7,786 posts
  • Gender:Male

Posted 31 May 2017 - 06:56 AM

Pretty cool!  I actually loaded this one up (I am trying to stay as "pure" MFL as possible but the chat is in serious need of updating).

 

Quick tip...my commish icon was a JPG instead of a PNG for some reason so be sure to check the commish icon extension in the script and change as needed.  You'll save yourself a lot of time trying to figure out why the commish icon won't show up.  LOL   :ph34r:



 


#15 theeohiostate

theeohiostate

    Veteran

  • Members
  • PipPipPip
  • 3,358 posts
  • Gender:Male
  • Location:O-H-I-O

Posted 31 May 2017 - 07:31 AM

New var setting added 

var chatDefaultDisplayMessages = 10; 

 

now commish can decide how many chat messages are displayed when chat is loaded


FREE Player Cuts Collection
http://www.nitrograf...nfl-playercuts/



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users