Winstrol Posted October 20, 2022 Share Posted October 20, 2022 (edited) Hey i have Gangster Legends v2 with jail and shoutbox module i wanna ask how to combine them ? I mean how to add the shoutbox to the jail page how to include it ? Edited October 20, 2022 by Winstrol Quote Link to comment Share on other sites More sharing options...
SwiftGameR Posted October 21, 2022 Share Posted October 21, 2022 If its anything like Dave's Ajax chat the file is usually included in the bottom of your template file. I don't actually own the module so i can't really say for sure but you will need to add a check in there for hospital and prob create a new chat field for hospital (could be wrong) If you are willing to post some snippets or since its paid module private message it and ill have a look for you but without any code or that i can't really answer it anymore. Quote Link to comment Share on other sites More sharing options...
tom39 Posted October 21, 2022 Share Posted October 21, 2022 or you use the version of Dayo , https://makewebgames.io/topic/28432-new-theme-with-shoutbox/ 1 Quote Link to comment Share on other sites More sharing options...
SwiftGameR Posted October 22, 2022 Share Posted October 22, 2022 16 hours ago, tom39 said: or you use the version of Dayo , https://makewebgames.io/topic/28432-new-theme-with-shoutbox/ Nice point out there did not even know Dayo converted it to work with GL Engine pretty neat thanks 🙂 Quote Link to comment Share on other sites More sharing options...
big_mike Posted October 22, 2022 Share Posted October 22, 2022 If im correct i think the OP wants it so its like a jail wall feature people leave comments on the jail page alone so slightly different to standard shoutbox, thats what ive taken from this post anyway. Quote Link to comment Share on other sites More sharing options...
AlizHarb Posted October 22, 2022 Share Posted October 22, 2022 you simply can use new Hook("alterModuleTemplate", function ($template) { to implement the shoutbox mod inside the jail page 😉 Quote Link to comment Share on other sites More sharing options...
WarMad Posted October 23, 2022 Share Posted October 23, 2022 Could I do something link this and implement the items page onto the home page? Or by implement do you mean it will put a link to it in there? 12 hours ago, AlizHarb said: you simply can use new Hook("alterModuleTemplate", function ($template) { to implement the shoutbox mod inside the jail page 😉 Quote Link to comment Share on other sites More sharing options...
AlizHarb Posted October 23, 2022 Share Posted October 23, 2022 19 minutes ago, WarMad said: Could I do something link this and implement the items page onto the home page? Or by implement do you mean it will put a link to it in there? i think its possible, here i write example how you can call add html code in any module in GL using hooks new Hook("alterModuleTemplate", function ($template) { global $page; if ($page->loadedModule["id"] == "jail") { $template["html"] = $template['html'].' Here you can implement whatever you wish, just add it '; } return $template; }); 1 Quote Link to comment Share on other sites More sharing options...
WarMad Posted October 24, 2022 Share Posted October 24, 2022 🤙🏻 thanks Quote Link to comment Share on other sites More sharing options...
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.