Jump to content


Photo

Mini Chat 2


13 replies to this topic

#1 habman

habman

    Veteran

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

  • 2017 MFL: 55681
  • , 18835

Posted 06 September 2018 - 02:48 PM

This chat builds off of MFL's default chat.

 

It will stick to the bottom right of all pages 

 

It is completely compatible with MFL's default chat and the 2017 MFL Chat Addon.

 

It will require jQuery in your header if it is not already installed

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> 

 

Paste the code below in a home page message and mark it as footer (alternatively if you already have a home page message that is being used as a footer then just include it there)

 

Edit the style as needed.

<style>
#minichat2_wrapper {background-color:#fff;border:1px solid #555;}
#minichat2_caption {background-color:#000;}
#minichat2_container tr {background-color:#000}
#minichat2_container tr.oddtablerow {background-color:#000}
.minichat2_blink {color:white;background-color:red!important}
.minichat2_blinkText {}
#minichat2_chatTable tr.oddtablerow {background-color:#1c1c1c!important}
#minichat2_chatTable{font-size:smaller}
#minichat2_chatTable img {height:20px; width:auto;}
#minichat2_chatTable .minichat2_icon {}
#minichat2_chatTable .minichat2_logo {}
.minichat2_time{font-size:xx-small;font-style:italic;color:#999}

#minichat2_privateMessageWrapper span {font-size:smaller;}
#minichat2_privateMessageWrapper select {font-size:smaller;}

#minichat2_onlineTitle {font-size:smaller}
#minichat2_onlineList {font-size:smaller}
</style>
<script>
//USER SETTINGS
var minichat2_displayMessages = 8;

var minichat2_useIcon = true; //If all options set to false then Franchise Name will be displayed
var minichat2_useLogo = true; //otherwise any of the options which are set to true and are not empty
var minichat2_useNick = true; //will be used with priority of Icon, Logo and lastly Nick.

var minichat2_bottomUp = true;

var minichat2_includeTime = true;
var minichat2_includePrivateMessage = true;
var minichat2_includeUsersOnline = true;

var minichat2_enableSmartRead = true; //Since chat will be on every page this, if enabled, will reduce xml requests if there is no chat activity
</script>

<script src="//www.habman.com/mfl/apps/js/minichat2.js"></script>

 

 

I will repost a link TOS's site for the js file when available.

 

Here is a working example (see bottom right of page) http://www81.myfanta...2018/home/40006


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

#2 Screaming Eagle

Screaming Eagle

    Veteran

  • Members
  • PipPipPip
  • 321 posts
  • Gender:Male
  • Location:Denver

Posted 06 September 2018 - 05:11 PM

Nice!
Gridiron Tavern, the best IDP league available.

#3 Bishopmish

Bishopmish

    Veteran

  • Members
  • PipPipPip
  • 132 posts
  • Gender:Male

Posted 07 September 2018 - 08:49 AM

Thanks again for bringing this back.


One step at a time...

#4 Screaming Eagle

Screaming Eagle

    Veteran

  • Members
  • PipPipPip
  • 321 posts
  • Gender:Male
  • Location:Denver

Posted 19 September 2018 - 11:06 AM

www.habman.com/mfl/app/js/minichat2.js

 

 

Not Found

The requested URL /mfl/app/js/minichat2.js was not found on this server.


Gridiron Tavern, the best IDP league available.

#5 Screaming Eagle

Screaming Eagle

    Veteran

  • Members
  • PipPipPip
  • 321 posts
  • Gender:Male
  • Location:Denver

Posted 19 September 2018 - 11:24 AM

I tried the link from the nitro server and this app is only populating the chat on the homepage.

 

http://www68.myfanta..._ls?L=36134&W=2


Gridiron Tavern, the best IDP league available.

#6 habman

habman

    Veteran

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

  • 2017 MFL: 55681
  • , 18835

Posted 19 September 2018 - 02:43 PM

www.habman.com/mfl/app/js/minichat2.js

 

 

Not Found

The requested URL /mfl/app/js/minichat2.js was not found on this server.

 

 

It's "apps" not "app" which was my mistake


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

#7 habman

habman

    Veteran

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

  • 2017 MFL: 55681
  • , 18835

Posted 19 September 2018 - 02:49 PM

I tried the link from the nitro server and this app is only populating the chat on the homepage.

 

http://www68.myfanta..._ls?L=36134&W=2

 

You have a javascript error that appears on all your pages. "setupLu is not defined".  That may be the issue.  If you are not seeing the error then maybe it is only an error when visiting as a guest.

 

As far as it working on the home page and not the other pages it could be attributed to this error because the script first checks if the chat is present on the page and if it is then use the id's from there to trigger the chat events.  This error may be killing the script on pages where chat is not present.


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

#8 Screaming Eagle

Screaming Eagle

    Veteran

  • Members
  • PipPipPip
  • 321 posts
  • Gender:Male
  • Location:Denver

Posted 20 September 2018 - 08:28 AM

I removed that error. I also tried removing each piece of custom coding on the site, but I still have the same result. 


Gridiron Tavern, the best IDP league available.

#9 habman

habman

    Veteran

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

  • 2017 MFL: 55681
  • , 18835

Posted 20 September 2018 - 11:48 AM

I removed that error. I also tried removing each piece of custom coding on the site, but I still have the same result. 

Okay please re-link to my script "apps" not "app" and I will add some error checking to see if I can pinpoint where it is failing


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

#10 Screaming Eagle

Screaming Eagle

    Veteran

  • Members
  • PipPipPip
  • 321 posts
  • Gender:Male
  • Location:Denver

Posted 20 September 2018 - 04:15 PM


I removed that error. I also tried removing each piece of custom coding on the site, but I still have the same result. 

Okay please re-link to my script "apps" not "app" and I will add some error checking to see if I can pinpoint where it is failing

Done
Gridiron Tavern, the best IDP league available.

#11 habman

habman

    Veteran

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

  • 2017 MFL: 55681
  • , 18835

Posted 20 September 2018 - 08:54 PM

 


I removed that error. I also tried removing each piece of custom coding on the site, but I still have the same result. 

Okay please re-link to my script "apps" not "app" and I will add some error checking to see if I can pinpoint where it is failing

Done

Okay do a CTRL-F5 and you should be good.

 

I will send TOS the fix so he can update his site.

 

Once it has been updated on his server you can re-link.  He or I will post here when that happens.

 

Thanks.


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

#12 Screaming Eagle

Screaming Eagle

    Veteran

  • Members
  • PipPipPip
  • 321 posts
  • Gender:Male
  • Location:Denver

Posted 20 September 2018 - 10:25 PM


 



I removed that error. I also tried removing each piece of custom coding on the site, but I still have the same result. 

Okay please re-link to my script "apps" not "app" and I will add some error checking to see if I can pinpoint where it is failing
Done
Okay do a CTRL-F5 and you should be good.
 
I will send TOS the fix so he can update his site.
 
Once it has been updated on his server you can re-link.  He or I will post here when that happens.
 
Thanks.

Awesome work, thank you!
Gridiron Tavern, the best IDP league available.

#13 habman

habman

    Veteran

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

  • 2017 MFL: 55681
  • , 18835

Posted 22 September 2018 - 11:43 AM

TOS has now updated his site with the fix.


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

#14 Bishopmish

Bishopmish

    Veteran

  • Members
  • PipPipPip
  • 132 posts
  • Gender:Male

Posted 27 September 2018 - 07:53 PM

Thanks


One step at a time...



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users