Damagedcity.com Posted August 29, 2011 Share Posted August 29, 2011 (edited) Ok..Basically all the free item pics mod we have in MWG requires fields in items tables... But My Mod Does not ..here it goes.. Sql : none Setup :make new folder and name it itemimg and then upload the item image according to item id imagine if bazooka is item id 1 then name bazooka's Image 1.png /1.jpg/1.gif or wateva then where ever yu want the item image to be displayed add this img code You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. ~Thanks~ Edited August 29, 2011 by Damagedcity.com Quote Link to comment Share on other sites More sharing options...
chicka Posted August 29, 2011 Share Posted August 29, 2011 is it just me or is this not going to work? How is item id no 1 supposed to know what image to pull up or item id 2 and so on?? Looks to me like your pulling an entire folder up for itemid instead of a single image for that specific item? or am I wrong? Quote Link to comment Share on other sites More sharing options...
Lithium Posted August 29, 2011 Share Posted August 29, 2011 Despite that i seriously doubt item id's are XX.jpg or XX.gif and chicka got a point... as it is explained, it's pointing to a dir not a file (or on the other hand... to a file with no extension). Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted August 29, 2011 Share Posted August 29, 2011 Its not gonna work like that. Quote Link to comment Share on other sites More sharing options...
Uridium Posted August 29, 2011 Share Posted August 29, 2011 Yep not gonna work like that you may get the itemid or is it itmid i cant remember im sure its itmid though so for now im gonna use that to explain <img src='itemimg/{$itmid['itmid']}.jpg' size=70 width=70> <<< WILL WORK <img src='itemimg/{$itmid['itmid']}' size=70 width=70> <<< wont wont So your images can be only one format choose then stick to that format... But have to say very nice though DamagedCity :) Yep tested it and it worked ok :) Quote Link to comment Share on other sites More sharing options...
Anonymous Posted August 29, 2011 Share Posted August 29, 2011 <img src='itemimg/{$itmid['itmid']}.jpg' size=70 width=70>Surely, you mean You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I don't remember HTML having a size attribute after all and AFAIK, the ALT attribute is mandatory. Quote Link to comment Share on other sites More sharing options...
Lithium Posted August 29, 2011 Share Posted August 29, 2011 Surely, you mean You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I don't remember HTML having a size attribute after all and AFAIK, the ALT attribute is mandatory. honestly... and taking you a little down of your high horse, a few HTML tags DO HAVE a size attribute, img does not indeed. Also the ALT attribute is NOT mandatory, as the name says its an ALTernative meant to be used if the image is missing. Quote Link to comment Share on other sites More sharing options...
Uridium Posted August 29, 2011 Share Posted August 29, 2011 Surely, you mean You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I don't remember HTML having a size attribute after all and AFAIK, the ALT attribute is mandatory. Its the same bloody principal. are you trying to make me look stupid... Quote Link to comment Share on other sites More sharing options...
Lithium Posted August 29, 2011 Share Posted August 29, 2011 Go here: http://validator.w3.org/check And use this text: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You are faced with 1 error: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I do know validators throw error as of HTML 4 though ALT attribute is mandatory ONLY as of HTML 5 :) Quote Link to comment Share on other sites More sharing options...
Anonymous Posted August 29, 2011 Share Posted August 29, 2011 are you trying to make me look stupid...Nope, you managed that all by yourself. W3C's HTML Validation service clearly states: An img element must have an alt attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images. Attribute size not allowed on element img at this point. W3C HTML Reference Documentation -- Objects, Images, and Applets in HTML documents States equally clearly that the ALT tag is mandatory. Is there perhaps some part of this you fail to comprehend? or shall I speak more slowly and use smaller words next time? Quote Link to comment Share on other sites More sharing options...
chicka Posted August 29, 2011 Share Posted August 29, 2011 Nope, you managed that all by yourself. W3C's HTML Validation service clearly states: W3C HTML Reference Documentation -- Objects, Images, and Applets in HTML documents States equally clearly that the ALT tag is mandatory. Is there perhaps some part of this you fail to comprehend? or shall I speak more slowly and use smaller words next time? WOW!!!! I have never in my almost 3 year of being a member of these forums seen any one disrespect illusions and any of his opinions or posts. Illusions is a very well known and a very well respected programmer and member of these forums No reason for a Noob like Anonymous to come on here and start disrespecting. <--- if you need me to post this in small words that you can understand please let me know Quote Link to comment Share on other sites More sharing options...
josh-j-c Posted August 29, 2011 Share Posted August 29, 2011 Another off topic arguement, the guy gave users a mod that was simple and pretty straight foward for people to follow and arguements spew over again, thank you damagedcity but its the same as i tried the other day it seems my codes just dont like mods ive tried atleast 5 - 6 mods and everytime i install a mod it throws errors at me so im stuck trying to build my own (N) Thank you though :) Jc. Quote Link to comment Share on other sites More sharing options...
Damagedcity.com Posted August 30, 2011 Author Share Posted August 30, 2011 Is the argue going about my mod or about your selves??? XD 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.