Dave Posted May 1, 2020 Author Posted May 1, 2020 I've just released version 1.2.0, a small incremental update to ensure this mod continues to work with new versions of GLv2: Ensure module archive is named correctly so installation errors don't occur Implement new profileLink hook to show "Chat" link on profile 2 Quote
KyleMassacre Posted May 1, 2020 Posted May 1, 2020 8 hours ago, Dave said: I've just released version 1.2.0, a small incremental update to ensure this mod continues to work with new versions of GLv2: Ensure module archive is named correctly so installation errors don't occur Implement new profileLink hook to show "Chat" link on profile No chat hook? Quote
Dave Posted May 1, 2020 Author Posted May 1, 2020 3 minutes ago, KyleMassacre said: No chat hook? There's a chat hook? Or are you wanting a chat hook in the mod itself? Quote
KyleMassacre Posted May 2, 2020 Posted May 2, 2020 You should add one. I’m not sure if you can make it from the “system” for example Quote
Dave Posted May 2, 2020 Author Posted May 2, 2020 13 hours ago, KyleMassacre said: You should add one. I’m not sure if you can make it from the “system” for example What would you like said hook to do? Happy to add it but a bit confused on it's purpose 🙂 Quote
KyleMassacre Posted May 2, 2020 Posted May 2, 2020 1 hour ago, Dave said: What would you like said hook to do? Happy to add it but a bit confused on it's purpose 🙂 Lets just say for example a player kills another player, you can add a hook to insert a chat line saying "So and so just killed player so and so". It would just be like kind of "Global Events" Quote
Dave Posted May 2, 2020 Author Posted May 2, 2020 1 minute ago, KyleMassacre said: Lets just say for example a player kills another player, you can add a hook to insert a chat line saying "So and so just killed player so and so". It would just be like kind of "Global Events" Ah okay I get you 🙂 yeah I’ll think about adding it Quote
Paulvanegmond Posted May 12, 2020 Posted May 12, 2020 On 5/2/2020 at 6:13 PM, KyleMassacre said: Lets just say for example a player kills another player, you can add a hook to insert a chat line saying "So and so just killed player so and so". It would just be like kind of "Global Events" Like the last words from heaven? Haha 😅 Quote
SaMz Posted May 12, 2020 Posted May 12, 2020 I've seen a few mods on the marketplace that has renewal price. Does that need to be paid to keep using the mods? Quote
Dave Posted May 13, 2020 Author Posted May 13, 2020 4 hours ago, SaMz said: I've seen a few mods on the marketplace that has renewal price. Does that need to be paid to keep using the mods? Nope, it just means you have to pay for any new updates. Honestly it doesn't really make sense, I'll remove the renewal price from this mod 🙂 Quote
AinzOoalGown Posted January 10, 2021 Posted January 10, 2021 Hey, great mod! This might be a stupid question but how do I enable or add emoji's to the chat system? Thanks Quote
URBANZ Posted January 10, 2021 Posted January 10, 2021 (edited) 1 hour ago, AinzOoalGown said: Hey, great mod! This might be a stupid question but how do I enable or add emoji's to the chat system? Thanks you could use an emoji library i personally like to use Twemoji or just enable utf8mb4 in the database this allow html emojis to be used. Edited January 10, 2021 by URBANZ 2 Quote
AinzOoalGown Posted January 10, 2021 Posted January 10, 2021 5 minutes ago, URBANZ said: you could use an emoji library i personally like to use Twemoji or just enable utf8mb4 in the database this allow html emojis to be used. Thanks for the reply. Do you mean setting the collation in chat database to "utf8mb4_general_ci"? I would love to use twemoji but I dont have the knowledge on how to add it haha 1 Quote
URBANZ Posted January 11, 2021 Posted January 11, 2021 (edited) 4 hours ago, AinzOoalGown said: Thanks for the reply. Do you mean setting the collation in chat database to "utf8mb4_general_ci"? I would love to use twemoji but I dont have the knowledge on how to add it haha yes thats exactly what i mean should have been more specific lol, you dont have to change the whole database collation just the fields that will be storing the emojis in. you can also change the PDO connection like below. so in dbconn.php change $db = NEW glPDO("mysql:host=" . $config["db"]["host"] . ";dbname=" . $config["db"]["database"], $config["db"]["user"], $config["db"]["pass"]); to $db = NEW glPDO("mysql:host=" . $config["db"]["host"] . ";dbname=" . $config["db"]["database"], $config["db"]["user"], $config["db"]["pass"], array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8mb4")); Edited January 11, 2021 by URBANZ Quote
AinzOoalGown Posted January 11, 2021 Posted January 11, 2021 (edited) Thanks @URBANZ I changed what you said but it doesn't seem to be working. I changed the dbconn.php, as well as changed "CH_text" in chat db to utf8mb4_general_ci but emoji's still wont show in chat messages. Anything Im doing wrong? EDIT: Just noticed that when I add a message its not "chat>CH_text" that updates, it creates a BLOB in "CM_messages"... Edited January 11, 2021 by AinzOoalGown Quote
Dave Posted January 11, 2021 Author Posted January 11, 2021 23 hours ago, AinzOoalGown said: Hey, great mod! This might be a stupid question but how do I enable or add emoji's to the chat system? Thanks You can to use your OS's default Emoji system, this is activated on Mac via CTRL + CMD + SPACE and it looks like this: 1 Quote
AinzOoalGown Posted January 11, 2021 Posted January 11, 2021 3 hours ago, Dave said: You can to use your OS's default Emoji system, this is activated on Mac via CTRL + CMD + SPACE and it looks like this: Thanks, oh yeah works on mobile. I mainly use my windows PC so dont have emotes like that 😛 Thanks tho Quote
Br3ttb Posted August 12, 2023 Posted August 12, 2023 Did you ever add a hook for x player killed x player ? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.