Uridium Posted August 28, 2010 Posted August 28, 2010 Couldnt think of any other name for the subject other than usernames.. How many links like these do you think are scattered around your scripts You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and when your viewing your userlist everyones name is the same colour which kinda makes it hard to decipher whos who... Insert the code below into your global_func.php file and you can now make like easier for yourself You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now when you come across a statement like You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. change it to You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. It will also colour co-ordinate the user so other users can see whos an ADMIN, SEC, MOD, or NPC and those that have donator days you can change the colours as you wish.. Quote
Uridium Posted August 28, 2010 Author Posted August 28, 2010 as ive never had the need for a SEC or MOD on my test site im not sure what the actual user_level is so if someone could post up the user_level numbers with what they are for it would be great,,, i know 0 = NPC 1 = User 2 = ADMIN not sure about rest Quote
Wazam Posted August 28, 2010 Posted August 28, 2010 I like it alot. Great work here Illusions. :thumbup: Quote
Jordan Palmer Posted August 28, 2010 Posted August 28, 2010 For what your doing I think this is way too much code, Very nice though Quote
Uridium Posted August 28, 2010 Author Posted August 28, 2010 Not really jordan you have to concider how many files link back to a users profile this method will insert the url for the user in one move ". finduser($r[userid]) ." so when ever you have a mention of say $username by adding the above it will instantly become a link Quote
Jordan Palmer Posted August 28, 2010 Posted August 28, 2010 I do the same, but with a different method, Although yours is good, I just think its way too big for such a small thing really Quote
Djkanna Posted August 28, 2010 Posted August 28, 2010 This is a nice idea, I'd use something along these lines though, You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. *Forgive any error, half asleep but you get the idea. You could also add Gang Tag support within it too :/ Anyway nice one Illusions. Quote
sniko Posted August 28, 2010 Posted August 28, 2010 Just a general question; What is quicker, the switch function (found in illusions post) or the array (found in DJK's) -sniko Quote
Uridium Posted August 29, 2010 Author Posted August 29, 2010 I think the only difference with mine apart from DJ's is if a users account gets deleted from the system instead of an error for that user appearing it will class his/her link as Invalid User and their name becomes unclickable without the need of an if statement in any pages that try to locate users. just cleans things up a bit more and saves hassle later on, Quote
fuzzyDCR Posted March 18, 2011 Posted March 18, 2011 I would love to use this...but I can't get it to work...any help? Quote
Danny696 Posted March 19, 2011 Posted March 19, 2011 You think? Mcc doesnt have irc, so how does it :P Quote
Dominion Posted March 19, 2011 Posted March 19, 2011 You think? Mcc doesnt have irc, so how does it :P There is an "irc mod" user_level :whistling: Quote
Danny696 Posted March 19, 2011 Posted March 19, 2011 Look in staff list, nothing about irc mods, no irc, why would it have irc mods then :S Quote
Dominion Posted March 19, 2011 Posted March 19, 2011 Look in staff list, nothing about irc mods, no irc, why would it have irc mods then :S From staff_special.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I have no idea why... Quote
Danny696 Posted March 19, 2011 Posted March 19, 2011 Wow, mcc really is Messed up xD I use a function like this on my engine, altough it doesnt have colours, but that could easily be added if requested. Quote
Paul Evans Posted March 19, 2011 Posted March 19, 2011 LMAO danny you actually though 4 was just nothing? Don't think anyone would of thought it wasn't used... IRC op/Mod i've known that since i started working with mc because i familiarised myself with the script and functions immediately... Nice work dom;) Love your version DJK similar to mine on CG Quote
Danny696 Posted March 19, 2011 Posted March 19, 2011 I too familerized myself with mccodes, but were not all gods like you are we paul -.- Also, I knew it was something, just seems pointless. even games with an irc wont use the userlevel 4. Quote
Paul Evans Posted March 19, 2011 Posted March 19, 2011 Gods... :P nice thanks lol well user_level 4 would only notify people on game that the user is a irc mod in irc... pointless really because they would only have authority in irc chat but still it's there get over it :) Quote
Dominion Posted March 19, 2011 Posted March 19, 2011 Mccodes is full of pointless things like there being an event_log insert in the class file, ummm what's the point? Anyway I assume most pointless stuff is now gone. :| Quote
Paul Evans Posted March 19, 2011 Posted March 19, 2011 There is afew things in Class which isn't used ie: microtime, start_clock, stop clock, unhtmlize, nohtml, easy_insert and afew more but they could be used if people actually looked at it some of the functions could be good Quote
Dominion Posted March 19, 2011 Posted March 19, 2011 Yes, true. Then again some could not e.g. the class event_add. ;) Btw - I like the mod, sorry for going off topic. Quote
Djkanna Posted March 20, 2011 Posted March 20, 2011 Love your version DJK similar to mine on CG I think it's like something I use on mine too but I cannot remember, nor be assed to check. 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.