Cruisey Posted August 26, 2007 Share Posted August 26, 2007 Re: [mccode] jail/hosp shoutbox lol. then what i have done is make it so all users can see the chat even if not in jail. well that's kind of a good thing for my game as i have a chat on every page thingy and they all flood it with bail requests as i have a bail mod that was made for me. this way the other users that are not in jail can still visit the jail shout and see who is offering what for bail. it's a great mod seany and my users love it. it works like a charm and i also added color to the user name, it looks great. thanks for posting it seany. :mrgreen: Quote Link to comment Share on other sites More sharing options...
seanybob Posted August 26, 2007 Author Share Posted August 26, 2007 Re: [mccode] jail/hosp shoutbox ah I see now, well then Good idea m8 ;) (was a tad confused previously) Quote Link to comment Share on other sites More sharing options...
Cruisey Posted August 26, 2007 Share Posted August 26, 2007 Re: [mccode] jail/hosp shoutbox yea i was a bit confusing :P what i did was make it so users can't use the main chat if in jail or hospital so we would stop being flooded with bail requests. as the users were often in a convo with someone that had just gone to jail i thought that allowing all users to be able to talk in both chats was a good thing so they could carry on their convo while at the same time stopping the jailed users from having access to the main chat. pheww, u gotta kinda be there to get what i'm rambling about. :-) :mrgreen: ps, i mailed you my server details seany. Quote Link to comment Share on other sites More sharing options...
seanybob Posted August 26, 2007 Author Share Posted August 26, 2007 Re: [mccode] jail/hosp shoutbox mailed ya back, fixed it (explanation in email) Quote Link to comment Share on other sites More sharing options...
Cruisey Posted August 26, 2007 Share Posted August 26, 2007 Re: [mccode] jail/hosp shoutbox thanks seany. by the way do i need to add a refresh link to that jailshout or does it refresh automaticly? Quote Link to comment Share on other sites More sharing options...
Absolute Zero Posted September 16, 2007 Share Posted September 16, 2007 Re: [mccode] jail/hosp shoutbox Hey I was wondering, since the shoutbox would keep going on forever until it's cleared. Would there be a way to show only the most recent 10 or 5? This would be of a great help! Thanks. Quote Link to comment Share on other sites More sharing options...
hamster01 Posted September 16, 2007 Share Posted September 16, 2007 Re: [mccode] jail/hosp shoutbox Well, try this. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. It removes the need for the cron, and it reverses the output, and limits the comments to then. Let me know if it works. Ferdi Quote Link to comment Share on other sites More sharing options...
Absolute Zero Posted September 16, 2007 Share Posted September 16, 2007 Re: [mccode] jail/hosp shoutbox Warning: fwrite(): supplied argument is not a valid stream resource in /home2/battlefi/public_html/jailshout.php on line 15 Warning: fclose(): supplied argument is not a valid stream resource in /home2/battlefi/public_html/jailshout.php on line 16 Comment Added! Thats what I get. :-( I tried chmod 777 Quote Link to comment Share on other sites More sharing options...
hamster01 Posted September 16, 2007 Share Posted September 16, 2007 Re: [mccode] jail/hosp shoutbox You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
Absolute Zero Posted September 16, 2007 Share Posted September 16, 2007 Re: [mccode] jail/hosp shoutbox Works great thanks 8-) But wouldn't there still be a need for a cron? To dump it out every so often? :wink: Quote Link to comment Share on other sites More sharing options...
hamster01 Posted September 17, 2007 Share Posted September 17, 2007 Re: [mccode] jail/hosp shoutbox Works great thanks 8-) But wouldn't there still be a need for a cron? To dump it out every so often? :wink: uhmm, Why? It's a log of what people chatted about, so if a spammer goes on, you can quickly see what they said. Quote Link to comment Share on other sites More sharing options...
Absolute Zero Posted September 17, 2007 Share Posted September 17, 2007 Re: [mccode] jail/hosp shoutbox Works great thanks 8-) But wouldn't there still be a need for a cron? To dump it out every so often? :wink: uhmm, Why? It's a log of what people chatted about, so if a spammer goes on, you can quickly see what they said. Sorry I get it now, thanks Ferdi for all the help! Quote Link to comment Share on other sites More sharing options...
Klikoka Posted September 21, 2007 Share Posted September 21, 2007 Re: [mccode] jail/hosp shoutbox Nice mod Quote Link to comment Share on other sites More sharing options...
Joel Posted March 13, 2008 Share Posted March 13, 2008 Re: [mccode] jail/hosp shoutbox Thanx for that works perfect :) +1 Quote Link to comment Share on other sites More sharing options...
Jameo Posted March 27, 2008 Share Posted March 27, 2008 Re: [mccode] jail/hosp shoutbox Can u convert to v2 Please ? Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted April 15, 2008 Share Posted April 15, 2008 Re: [mccode] jail/hosp shoutbox It works for both versions.. But it is still hackable.. You are able to use an HTML injection in that.. I can't remember how it was fixed. But Nyna knows as she provided me with the anti-hack Quote Link to comment Share on other sites More sharing options...
~Spooky~ Posted May 1, 2008 Share Posted May 1, 2008 Re: [mccode] jail/hosp shoutbox If anyone wants a better shoutbox NOT RUN on TEXT files, but wants it in Database with an ADMIN Panel just let me know. I have a shout box not run on TEXT files and its only one file and one table for shouts. If you want me to post mine let me know I will, this is used for both V1 and V2 with no CONVERTING for all you noob coders. Very very easy to install and dose limit the shouts to 5 to 50 however many you want. Just admin panel keeps all chats till you delete them, but only posts 20 at time. I have mine at 20 but you can put in main menu and limit to 5 very easy to do. Anyone want it just MSN me and I will send it and tell you how to set it up. Quote Link to comment Share on other sites More sharing options...
~Spooky~ Posted May 1, 2008 Share Posted May 1, 2008 Re: [mccode] jail/hosp shoutbox Oh and no cron to set and I also have this in my bar file so players can chat there when they at the bar. Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted May 2, 2008 Share Posted May 2, 2008 Re: [mccode] jail/hosp shoutbox That sounds good! I'd like to have a look at this please! Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted May 4, 2008 Share Posted May 4, 2008 Re: [mccode] jail/hosp shoutbox It works for both versions.. But it is still hackable.. You are able to use an HTML injection in that.. I can't remember how it was fixed. But Nyna knows as she provided me with the anti-hack HTML can be injected? hows that work? could someone mail me the method so i can protect my site from such attacks Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted May 4, 2008 Share Posted May 4, 2008 Re: [mccode] jail/hosp shoutbox HTML injection is simple and often forgotten... For example: inject.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now run that up, and enter into the text box the following: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and press submit... Imagine a user popping that exact into a chat box ... Dam my site would be well seen :D ... Or perhaps he could put a link into a dangerous site: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. WARNING: DO NOT RUN THIS ON A LIVE SERVER Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted May 4, 2008 Share Posted May 4, 2008 Re: [mccode] jail/hosp shoutbox whats the gain from html injections? Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted May 4, 2008 Share Posted May 4, 2008 Re: [mccode] jail/hosp shoutbox Carefully crafted (X)HTML injection can a) Break the rendering of the current page for yourself .. and others b) Display malicious links masquerading as useful hints etc but pointing to malware/porn etc c) Gain access to session data and cookie data from any user d) Allow running if scripts outside of the current context e) Directly redirect users to third party sites f) Install key/mouse loggers into a users browser g) Be a royal pain in the ass Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted May 4, 2008 Share Posted May 4, 2008 Re: [mccode] jail/hosp shoutbox wow i need to read up on (x)HTML then you know any good places? (Please someone don't reply with google it) Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted May 4, 2008 Share Posted May 4, 2008 Re: [mccode] jail/hosp shoutbox Best I could find in a hurry... ;) 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.