Jump to content
MakeWebGames

[Both]Easier Item Image Mod


Damagedcity.com

Recommended Posts

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 by Damagedcity.com
Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...