Faz` Posted April 13, 2009 Posted April 13, 2009 Ok I've finally got it finished. You may have seen from another topic I made that I posted info about it. It is a tag mod, you are playing the game and you randomly get a tag. You can trade tags for different things and also sell them on a market.I hope you enjoy it. I couldn't do the tag market from scratch, sorry. So I took the crystal market and changed the values and stuff. Its not secure, I tell you that now. I'm currently reading up on security and will learn how to secure queries etc. Once I have done a secure market, I'll post it. Run this SQL: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I am not sure how to write the SQL for this one, but go into your database. There are features there that allow you to create rows. Its pretty simple.. In the table `settings` create 7 rows. tt_strengthpertag tt_agilitypertag tt_moneypertag tt_cryspertag tt_guardpertag tt_labourpertag tt_IQpertag. Now open up staff.php. Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Underneath it add: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. That allows you to set the price and values gained at the tag trader. The tag market SQL: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Faz` Posted April 13, 2009 Author Posted April 13, 2009 Re: [mccode v2] Tag Mod (Complete) Now make a file called tagtrader.php and add this code to it. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now make one called tagmarket.php and add this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now open up header.php and underneath the voting links, add: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Thats it, credits to BlueDevil23 who taught me loads whilst in the process of making this, such as how to write proper HTML etc. Its not as easy as you think :P.Thanks to Templar also for helping me out with an error also. Thank you and hope you enjoy the mod Quote
yaz123 Posted April 13, 2009 Posted April 13, 2009 Re: [mccode v2] Tag Mod (Complete) What the hell is this? :? Quote
BlueDevil23 Posted April 13, 2009 Posted April 13, 2009 Re: [mccode v2] Tag Mod (Complete) It looks like the forum parsed the tagtrader.php code incorrectly. I would repost it if I were you. Quote
DELETE ME NOW! Posted April 13, 2009 Posted April 13, 2009 Re: [mccode v2] Tag Mod (Complete) I just looked at tagmarket.php code it looks like its cmarket.php, so that might be exploitable :) xD Quote
Faz` Posted April 13, 2009 Author Posted April 13, 2009 Re: [mccode v2] Tag Mod (Complete) Yeah, people could always use yours and change it a bit :P Quote
SaMz Posted April 13, 2009 Posted April 13, 2009 Re: [mccode v2] Tag Mod (Complete) atleast he tried +1 Quote
Faz` Posted April 13, 2009 Author Posted April 13, 2009 Re: [mccode v2] Tag Mod (Complete) atleast he tried +1 Thanks _SaMz_. I try, at least I think I do. Luckily I have a few awesome people to help me out when I am in difficulty. I suppose I'm learning, I'm not as good as some people, but I try. Thanks anyway for that comment. Quote
DELETE ME NOW! Posted April 13, 2009 Posted April 13, 2009 Re: [mccode v2] Tag Mod (Complete) Yeah :) Quote
Faz` Posted April 14, 2009 Author Posted April 14, 2009 Re: [mccode v2] Tag Mod (Complete) Ok, well I was talking to BlueDevil23, he taught me a bit about security. So he is a secure version of the Tag Trader, simply replace the current one with this. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
POG1 Posted April 14, 2009 Posted April 14, 2009 Re: [mccode v2] Tag Mod (Complete) i don't quite understand what the mod does and i looked at the "secured" script and it is not much different. Why do i keep seeing is_string? it is pointless! You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Use ctype_aplha, ctype_aplnum or ctype_digit Quote
(((TOLK))) Posted April 14, 2009 Posted April 14, 2009 Re: [mccode v2] Tag Mod (Complete) Great Mod +1 Quote
.: Reaper :. Posted April 14, 2009 Posted April 14, 2009 Re: [mccode v2] Tag Mod (Complete) Run this SQL: Code: [select]UPDATE `users` ADD `HDTags` BIGINT(50) NOT NULL default '0'; didnt work 4 me m8 so i used You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Faz` Posted April 14, 2009 Author Posted April 14, 2009 Re: [mccode v2] Tag Mod (Complete) Oh yeah, I thought I'd made an error somewhere :| Thanks for that, will make it easier for a for new people. Quote
BlueDevil23 Posted April 14, 2009 Posted April 14, 2009 Re: [mccode v2] Tag Mod (Complete) Why do i keep seeing is_string? it is pointless! How is is_string() pointless? It checks to see if the supplied argument, is a.... string. Therefore, it has a purpose. You are right though, ctype_alpha() could have been used, and performed the same task... Quote
BlueDevil23 Posted April 21, 2009 Posted April 21, 2009 Re: [mccode v2] Tag Mod (Complete) tagmarket.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
ryzzo123 Posted April 21, 2009 Posted April 21, 2009 Re: [mccode v2] Tag Mod (Complete) Hey ppl iv just added the mod but ders one lil problem and its the sqll it wont let me ad it because its the rong one can someone post the right one Quote
zbirc3 Posted April 22, 2009 Posted April 22, 2009 Re: [mccode v2] Tag Mod (Complete) @ryzzo123 1. Try using correct grammar and spelling, please. It does not help you if you cannot help us understand what is going on. 2. ALTER TABLE `users` ADD `HDTags` BIGINT(50) NOT NULL DEFAULT '0'; Quote
ryzzo123 Posted April 22, 2009 Posted April 22, 2009 Re: [mccode v2] Tag Mod (Complete) oh yeah thats fine m8 and i didnt mean that sql i meant the one for the market ????? Quote
Djkanna Posted April 24, 2009 Posted April 24, 2009 Re: [mccode v2] Tag Mod (Complete) @ryzzo123 1. Try using correct grammar and spelling, please. It does not help you if you cannot help us understand what is going on. 2. ALTER TABLE `users` ADD `HDTags` BIGINT(50) NOT NULL DEFAULT '0'; I could understand him :P Hey people I've just added the mod but there's one little problem and its the sql it won't let me add it in because its the wrong one can someone post the right one (please - should be there ) I know it was a pointless post , Though I'd make my presence known. Nice mod seems like a cool idea Quote
Faz` Posted April 24, 2009 Author Posted April 24, 2009 Re: [mccode v2] Tag Mod (Complete) Yeah I know, it was a stupid mistake, it was late at night when I was making this, lol. And I was reading up on securing queries, and there were a few UPDATE `users` so I guess being the goob I am posted that. Thanks for edits and corrections also people, and many thanks to BlueDevil23 for the security in the secured version he posted. Quote
ryzzo123 Posted April 24, 2009 Posted April 24, 2009 Re: [mccode v2] Tag Mod (Complete) Well what about the working sql for the market bit people Quote
Danny696 Posted April 24, 2009 Posted April 24, 2009 Re: [mccode v2] Tag Mod (Complete) dopes anybody know the sql for the one he siply just didnt do? :mrgreen: Quote
Faz` Posted April 24, 2009 Author Posted April 24, 2009 Re: [mccode v2] Tag Mod (Complete) Bah, forgot to do that. Well run this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. This should work, I'm not too good with SQL's though, I use the tools on it that do it for you lol. Quote
ryzzo123 Posted April 24, 2009 Posted April 24, 2009 Re: [mccode v2] Tag Mod (Complete) Thank you for that faz and great mod m8 +1 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.