Monkey644 Posted April 29, 2010 Posted April 29, 2010 Hey guys, This my first little attempt at something like this. It's only small and basic, but can be very helpful. It give admins the chance to edit users donator days accordingly in the "Edit Users" area. So, give it a whirle and let me know what you think. :) Firstly, Open staff_users.php Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Replace with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And then, still in staff_users.php, find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And Replace with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then, still in the same file :), find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And Replace with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And your done :). Easy little mod, but can help alot :) Thanks, Monkey644 Quote
gurpreet Posted April 29, 2010 Posted April 29, 2010 Nice mod mate. Havent tsted but looks good. Also I'm not sure but I think echo is faster than print (I'm used to using it anyway). Nicely done. Quote
Nicholas Posted April 29, 2010 Posted April 29, 2010 Nice mod mate. Havent tsted but looks good. Also I'm not sure but I think echo is faster than print (I'm used to using it anyway). Nicely done. print and echo has no speed different, what ive heard is that apperently echo can be used with more with functions and its more of a PHP 6 thing. but also i think what you have done Monkey644 will work but it help if it wasnt all on 1 line so its easier to see/copy. Quote
Monkey644 Posted April 29, 2010 Author Posted April 29, 2010 Nice mod mate. Havent tsted but looks good. Also I'm not sure but I think echo is faster than print (I'm used to using it anyway). Nicely done. print and echo has no speed different, what ive heard is that apperently echo can be used with more with functions and its more of a PHP 6 thing. but also i think what you have done Monkey644 will work but it help if it wasnt all on 1 line so its easier to see/copy. My bad, i dont have a clue how to make it as paragraphs :S And thanks For feedback :) Quote
Renkia Posted May 1, 2010 Posted May 1, 2010 Nicholas is right, they have no difference. But using HTML tags are more efficient the using the echo() & print() in one go. But, echo() & print() are needed in these cases. :) Quote
Danny696 Posted May 1, 2010 Posted May 1, 2010 Shutup fool, echo is faster than print. The end. if you disagree, [...] and google it. Quote
Renkia Posted May 1, 2010 Posted May 1, 2010 1: It's exacly the same. Echo probs would be 0.00000000000001 seconds faster, WOW! 2: No need to tell me to F off, and call me a fool. Grow up. Quote
Dominion Posted May 1, 2010 Posted May 1, 2010 1: It's exacly the same. Echo probs would be 0.00000000000001 seconds faster, WOW! 2: No need to tell me to F off, and call me a fool. Grow up. its 20% faster on a large page thats more then 0.00000000000001 secs if you want to read up on it - http://www.learnphponline.com/php-basics/php-echo-vs-print Quote
Renkia Posted May 1, 2010 Posted May 1, 2010 I Have just talked to a firend. "Roy Bains" he knows alot about PHP & other languages. He said this: - [Administration Chaos] 9:12 pm: It has no difference apart from the coding speed. Use print is typing 5 chars using echo only 4. [Administration Chaos] 9:12 pm: There is no considerable performance gain. But what I would understand ECHO would be faster in cases like this. print' Poke</p>'; echo" mon</p>"; 2+ Echos will just continnuisly echo will be slower. But if yout PRINT() then ECHO(), It would be faster. Tested by myself ro the past 5 mins. Quote
Danny696 Posted May 1, 2010 Posted May 1, 2010 http://www.google.com/search?q=echo+faster+than+print&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-GB:official&client=firefox-a <<pritty sure that knows more than your 'friend' This Roy clearly needa to see that link. I could ask most people, they would agree with me. and for two echos, do this echo'blahh'.'hlahh2'; print wont do it because it sucks! Quote
Danny696 Posted May 1, 2010 Posted May 1, 2010 Tip: The echo() function is slightly faster than print(). From W3Schools, thay cant lie now can they -.- any more evidence you want. Quote
Monkey644 Posted May 1, 2010 Author Posted May 1, 2010 Ok, can we be bit nicer to each other please :) Its ment to a friendly community? Well i thought it was anyway... Anyone got any comments on my little mod? Quote
Danny696 Posted May 1, 2010 Posted May 1, 2010 I prefer the old CE days thf. Good old SMF, how me all miss it. Quote
Djkanna Posted May 2, 2010 Posted May 2, 2010 I Have just talked to a firend. "Roy Bains" he knows alot about PHP & other languages. He said this: - [Administration Chaos] 9:12 pm: It has no difference apart from the coding speed. Use print is typing 5 chars using echo only 4. [Administration Chaos] 9:12 pm: There is no considerable performance gain. But what I would understand ECHO would be faster in cases like this. print' Poke</p>'; echo" mon</p>"; 2+ Echos will just continnuisly echo will be slower. But if yout PRINT() then ECHO(), It would be faster. Tested by myself ro the past 5 mins. echo has a slight performance gain; Also different topic you're friend is the admin of some chaotic game (He told me off for mentioning McCodes -.-) As for your statement no comment! Actually one: Be consistent! Shutup fool, echo is faster than print. The end. if you disagree, fuck off and google it n00b Danny that was out of order! [warnbox]Keep it friendly, this applies to all![/warnbox] To the OP nice addition. Quote
Djkanna Posted May 2, 2010 Posted May 2, 2010 Tip: The echo() function is slightly faster than print(). From W3Schools, thay cant lie now can they -.- any more evidence you want. I think you mentioned it ;) Quote
CrazyT Posted May 2, 2010 Posted May 2, 2010 Wasnt my fault, blame W3Schools Yes it is your fault, your the one who copyed and pasted! xD Copy Paste = Evil Quote
Zero-Affect Posted May 13, 2010 Posted May 13, 2010 echo() is not actually a function (it is a language construct), so you are not required to use parentheses with it.Source: http://uk2.php.net/manual/en/function.echo.php Even though the link says function.echo and it's listed in functions lol it isn't actually a function. Quote
The Coder Posted September 10, 2012 Posted September 10, 2012 Administration Chaos, the name rings a bell, chaoticnation or wars I think? Quote
Raven1992 Posted September 10, 2012 Posted September 10, 2012 ok do we have any screenshots to see this mod works that would be great 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.