Jump to content
MakeWebGames

How to combine jail module with shoutbox module?


Winstrol

Recommended Posts

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.

Link to comment
Share on other sites

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 😉

 

Link to comment
Share on other sites

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;
});
  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...