Cronwerks MCCode/MCCodes Forums

Please login or register.

Login with username, password and session length

News:

After purchasing with us the download link will be delivered to your forum message box.


This forum is now closed and has moved to a new location! Click here to find out why.
Pages: 1 [2]

AuthorTopic: Items with Images mod.  (Read 1677 times)

Storytella

  • Basic Member
  • *
  • Reputation Power: 23
  • Storytella has no influence.
  • Offline Offline
  • Posts: 13
    • View Profile
    • Email
Re: Items with Images mod.
« Reply #15 on: April 14, 2010, 02:13:46 PM »
dave you have done it again!! ;D thanks allot for the help. all i gotta do now is get the size under control and all will be good.
Logged
Lifes a garden, dig it!!!

Danny696

  • Senior Member
  • ****
  • Reputation Power: 317
  • Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.
  • Offline Offline
  • Posts: 540
    • View Profile
    • WWW
Re: Items with Images mod.
« Reply #16 on: April 15, 2010, 09:51:18 AM »
meh, could and should be alot simpler.
Logged
Project Choosen - 10%
Daniel - Hanson . Com

winfidel

  • Basic Member
  • *
  • Reputation Power: 8
  • winfidel has no influence.
  • Offline Offline
  • Posts: 16
    • View Profile
Fixed it
« Reply #17 on: December 10, 2010, 07:37:48 AM »
Thank You this is exactly what I have been searching for!

QUERY ERROR: Column count doesn't match value count at row 1
Query was INSERT INTO inventory VALUES('',36,1,1,0,0) 

I somehow had those two zeros in staff_jobs give item insert code... Thanks to you guys helping me out on other things I spotted this error...
« Last Edit: December 25, 2010, 01:16:41 PM by winfidel »
Logged

winfidel

  • Basic Member
  • *
  • Reputation Power: 8
  • winfidel has no influence.
  • Offline Offline
  • Posts: 16
    • View Profile
Re: Items with Images mod.
« Reply #18 on: December 23, 2010, 04:02:10 PM »
In my dream I was told to change socks to 2 and put a 1 before dumbass
« Last Edit: December 24, 2010, 03:49:47 PM by winfidel »
Logged

Danny696

  • Senior Member
  • ****
  • Reputation Power: 317
  • Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.
  • Offline Offline
  • Posts: 540
    • View Profile
    • WWW
Re: Items with Images mod.
« Reply #19 on: December 24, 2010, 11:40:25 AM »
Can you please wrap the code in [code] and [/code] tags please
Logged
Project Choosen - 10%
Daniel - Hanson . Com

JoshuaDams

  • Active Member
  • **
  • Reputation Power: 129
  • JoshuaDams is working their way up.JoshuaDams is working their way up.JoshuaDams is working their way up.
  • Offline Offline
  • Posts: 240
    • MSN Messenger - immortalthug4ever@hotmail.com
    • View Profile
    • WWW
Re: Items with Images mod.
« Reply #20 on: January 06, 2011, 07:45:25 PM »
A much simpler way to do this is add an itempic table to your SQL database.

Then add the Form to UPLOAD the itemimage from your staff panel.

When the image is Uploaded it is given a name, that is inserted into the database for that type of item.

Then where you display it just run the $db->query to fetch the URL for signed image.

Saves a lot of coding and is much much neater.

Danny696

  • Senior Member
  • ****
  • Reputation Power: 317
  • Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.
  • Offline Offline
  • Posts: 540
    • View Profile
    • WWW
Re: Items with Images mod.
« Reply #21 on: January 07, 2011, 09:38:35 AM »
An even simpler way than that josh would be to just use the item id :)

Much neater, less db space used, and simpler.
Logged
Project Choosen - 10%
Daniel - Hanson . Com

JoshuaDams

  • Active Member
  • **
  • Reputation Power: 129
  • JoshuaDams is working their way up.JoshuaDams is working their way up.JoshuaDams is working their way up.
  • Offline Offline
  • Posts: 240
    • MSN Messenger - immortalthug4ever@hotmail.com
    • View Profile
    • WWW
Re: Items with Images mod.
« Reply #22 on: January 07, 2011, 10:22:54 AM »
That's kind of the object isnt it?

Upon New item creation there is an upload picture form and in the same table insert the link for the image with the item

then on the output just do the itempic call.

Simple, straighforward and very little database strain
Pages: 1 [2]
« previous next »
 


This forum is now closed and has moved to a new location! Click here to find out why.