djgringoboy2003 Posted January 30, 2009 Posted January 30, 2009 Hi, This is the first post i have made on these forums although I have been reading for a some time now. I have been searching these forums for: Edit crystals, Edit names, Edit Brave Rename crystals, etc All I can find is how to add another currency. So what i am looking for is some help to change the names of: crystals, will, brave Thanks :wink: Quote
Lithium Posted January 30, 2009 Posted January 30, 2009 Re: change names... crystals, will, brave, ect well... you don't really have to change them... what you need (and correct me if i'm wrong) is to show those "objects" with another name to the players. So if that is what you are looking for, just edit the files to display, whatever you need to call each "object", the name you want users to see. Quote
djgringoboy2003 Posted January 30, 2009 Author Posted January 30, 2009 Re: change names... crystals, will, brave, ect Yeah thats what i am looking to do. So I would need to edit all files that contain the object name and change it to what I want it to be? Quote
Shivski Posted January 30, 2009 Posted January 30, 2009 Re: change names... crystals, will, brave, ect Best thing to do is go through each page and edit it by using CTRL-F, find the thing u want to change, edit it, then repeat for each thing :) Quote
djgringoboy2003 Posted January 30, 2009 Author Posted January 30, 2009 Re: change names... crystals, will, brave, ect I thought thats what i might need to do..... thought there may have been a quick way around it though! Thanks for your help :wink: Quote
Lithium Posted January 30, 2009 Posted January 30, 2009 Re: change names... crystals, will, brave, ect Best thing to do is go through each page and edit it by using CTRL-F, find the thing u want to change, edit it, then repeat for each thing :) with caution though. unless you want to change $vars as well, and it seems to me that djgringoboy2003 is not comfortable enough to change also vars and db matching fields. @ djgringoboy2003: you can use the CTRL F but as i said... with caution, try not to change $var names like $ir['crystals'] or whatsoever. Avoiding changing these, you should be just fine :) Quote
djgringoboy2003 Posted January 30, 2009 Author Posted January 30, 2009 Re: change names... crystals, will, brave, ect Thanks Quote
POG1 Posted January 30, 2009 Posted January 30, 2009 Re: change names... crystals, will, brave, ect to change the currency just edit the money_formatter function... Quote
Guest Anonymous Posted January 31, 2009 Posted January 31, 2009 Re: change names... crystals, will, brave, ect sed -I .bak 's/crystals/rubies/' *php Would change crystals to rubies ... and even keep backups for you ;) Quote
Haunted Dawg Posted January 31, 2009 Posted January 31, 2009 Re: change names... crystals, will, brave, ect Nyna.. the above.. how would i go on by running it? wanting to change alot of stuff within alot of file's lol. Quote
Guest Anonymous Posted January 31, 2009 Posted January 31, 2009 Re: change names... crystals, will, brave, ect From bash, or sh -- ie. at command prompt level from *nix. It's not ideal, but assuming you can form regular expressions and understand the ramifications of this, it works nicely. Quote
Lithium Posted January 31, 2009 Posted January 31, 2009 Re: change names... crystals, will, brave, ect From bash, or sh -- ie. at command prompt level from *nix. It's not ideal, but assuming you can form regular expressions and understand the ramifications of this, it works nicely. bash is evil!!! korn shell is better! lol (me and bash don't get along too well) Quote
Guest Anonymous Posted January 31, 2009 Posted January 31, 2009 Re: change names... crystals, will, brave, ect When I say bash or sh, I mean from nigh on all shells .. bash being the choice of most sysops I've encountered and sh the fallback when things go boobs up. Quote
Shivski Posted February 1, 2009 Posted February 1, 2009 Re: change names... crystals, will, brave, ect to change the currency just edit the money_formatter function... Where is this? Im looking at changing my currency from dollars to pounds :) Quote
Karlos Posted February 1, 2009 Posted February 1, 2009 Re: change names... crystals, will, brave, ect global_func.php Quote
Shivski Posted February 1, 2009 Posted February 1, 2009 Re: change names... crystals, will, brave, ect Which parts of the standard MCCode V2 would I need to change in the global functions? Im not sure what to look out for to change the default currency and don't wanna mess it up. Im guessing its more then 1 simple change. Quote
Haunted Dawg Posted February 1, 2009 Posted February 1, 2009 Re: change names... crystals, will, brave, ect Look at the very second line: function money_formatter($muny,$symb='$') { Make that function money_formatter($muny,$symb = 'GBP') { Quote
Lithium Posted February 2, 2009 Posted February 2, 2009 Re: change names... crystals, will, brave, ect What killah said, ought to be enough, though a lot of files do not use the money_formatter() function, and the currency is echoed, which means you will need to go over the files making the needed changes as well! Quote
Shivski Posted February 2, 2009 Posted February 2, 2009 Re: change names... crystals, will, brave, ect Cheers guys. I changed it to '?' and it didn't work, so I left it lol. Wil give it a go. yeh I noticed before alot of pages don't use the currency, they just have a dollar sign in the text. Will have top go through each page and change lol. Fun :-P Quote
Lithium Posted February 2, 2009 Posted February 2, 2009 Re: change names... crystals, will, brave, ect As of, i don't use the money_formatter() function as i don't use currency symbols. you could try number_format() and echo the currency symbol just as seen on most of the files. Quote
Shivski Posted February 2, 2009 Posted February 2, 2009 Re: change names... crystals, will, brave, ect All sorted on most of my pages now. Thanks for the help. Just going to let at the item pages now and see how easy they are. Quote
John99 Posted February 2, 2009 Posted February 2, 2009 Re: change names... crystals, will, brave, ect I have all diffrent functions to do diffrent stuff in global_func.php Quote
Haunted Dawg Posted February 2, 2009 Posted February 2, 2009 Re: change names... crystals, will, brave, ect I have all diffrent functions to do diffrent stuff in global_func.php uhhh... ok? 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.