Zan Posted December 22, 2010 Share Posted December 22, 2010 Wat is the name of this Sql?..i have added this mod but not working..so i deleted it..and coz of that now im not able to create a new item...So temme wats the name of this SQL..i wanna delete it Quote Link to comment Share on other sites More sharing options...
Dominion Posted December 22, 2010 Share Posted December 22, 2010 Wat is the name of this Sql?..i have added this mod but not working..so i deleted it..and coz of that now im not able to create a new item...So temme wats the name of this SQL..i wanna delete it " itmpic " In the " Items " table... Quote Link to comment Share on other sites More sharing options...
uzux Posted January 21, 2011 Share Posted January 21, 2011 ok inventory.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
Zan Posted January 26, 2011 Share Posted January 26, 2011 Can some one post this entire working copy of this plzz? ;) Quote Link to comment Share on other sites More sharing options...
SilvaTungDevil Posted January 26, 2011 Share Posted January 26, 2011 Uzuk your going to need to more than just post your code.. Give us something to work with such as an error or something. Quote Link to comment Share on other sites More sharing options...
S.Cosmin Posted April 28, 2011 Share Posted April 28, 2011 (edited) I become this error whe i prees the button INFO You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And that my iteminfo.php, can anyone to fix that? You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Edited April 28, 2011 by Djkanna <br /> issue. Quote Link to comment Share on other sites More sharing options...
Uridium Posted April 28, 2011 Share Posted April 28, 2011 looking at line 21 id say you have an extra " but im not sure if the Post was corrupted when posted but the img tags shouldnt be there $itmpic = "<tr style='background: gray;'><td colspan='2' style='text-align: center;'><img src='itmpics/$id'></td></tr>"; } Quote Link to comment Share on other sites More sharing options...
S.Cosmin Posted April 28, 2011 Share Posted April 28, 2011 I have to do what you say and replace with that, it's work, i dontbecome error but i dont see tha picture...Any solution? Something rong on my code? You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
josh-j-c Posted August 28, 2011 Share Posted August 28, 2011 i cant get this nore any other mod on this site to work with my script, its only since i did a fresh restart the begining of this summer holiday and its really starting to do my head in, has anyone got this mod to work on there game because its doing nothing to mine just changing the layout.. do the images need to be a specific file type, in the database does the file have to be called 1.jpg or does its need a <img src='1.jpg'> ive tried everything now and nothings working for me is really starting to put me off all this (N) Quote Link to comment Share on other sites More sharing options...
lynm77 Posted February 20, 2012 Share Posted February 20, 2012 items pic mod problem Can any one please help me with the following problem im having please. I'm getting the following error when trying to add the following mod on line 14 Parse error: syntax error, unexpected '[', expecting ']' in /home/swisou/public_html/iteminfo.php on line 14 Here is my iteminfo.php Thanks You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted February 20, 2012 Share Posted February 20, 2012 (edited) this is what i use to actually place the images in there the bbcode version didnt work for me so i just converted it to html You're unable to view this code. Viewing code within this forum requires registration, you can register here for free.  its line 35 here in my code and i just resized the images here so i dont have to do it manually i guess im lazy haha so i hope this helps people that have problems using the img tags "" Edited February 20, 2012 by KyleMassacre added info Quote Link to comment Share on other sites More sharing options...
sixsens Posted September 10, 2012 Share Posted September 10, 2012 (edited) Hi, nice mod! I thought I could lend a hand with the item pics in inventory. find in inventory You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Replace with this; You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then Find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. replace with this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. save and upload :wink: Its seem that the code is missing some html... can you repost theoriginal code please. i have problem with this line You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Edited September 10, 2012 by sixsens Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted September 10, 2012 Share Posted September 10, 2012 Its seem that the code is missing some html... can you repost theoriginal code please. i have problem with this line You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Read my post I made right above yours Quote Link to comment Share on other sites More sharing options...
sixsens Posted September 10, 2012 Share Posted September 10, 2012 (edited) thanks its ok now good work what about iteminfo.php did you find a way to show the image there too? Edited September 10, 2012 by sixsens Quote Link to comment Share on other sites More sharing options...
Melkrow Posted October 2, 2012 Share Posted October 2, 2012 Would this work with 2.5 version? Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted October 2, 2012 Share Posted October 2, 2012 thanks its ok now good work what about iteminfo.php did you find a way to show the image there too? Its php not magic! Why would it be different getting the info from the database from one file to Another? Quote Link to comment Share on other sites More sharing options...
Melkrow Posted October 4, 2012 Share Posted October 4, 2012 Would this work with 2.5 version? So yeah it works but takes some heavy work haha (for me!!!!!...took about 8 hours to implement lol) I hope this helps somebody. Seems like most people are having issues with iteminfo.php, so here's my copy. I don't know how it works, but it does. so yeah. My "EDIT" of new items is still broken, and I'm too tired to try and tackle it. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted October 4, 2012 Share Posted October 4, 2012 Wow 8 hours to create a new column in the items table and reference that in a query? Quote Link to comment Share on other sites More sharing options...
Melkrow Posted October 4, 2012 Share Posted October 4, 2012 (edited) Wow 8 hours to create a new column in the items table and reference that in a query? When you put it that way, yeah :(. At least I got it working (partially lol). Some people never got it working tho :P Can somebody help me with this tho. However I try to do it... I get query error. This is when trying to edit the item (posting new item works fine) I'm supposed to update itmpic in the items table with the rest of that stuff down there... seems simple enough..except I can't do it. So how do I put this text box You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. into this query? You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. P.S. Just checked your game rulerofzu, it's awesome!! I'm pretty jelly. Edited October 4, 2012 by Melkrow Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted October 4, 2012 Share Posted October 4, 2012 Dont use $_POST in a query. Secure your $_POST and then use the var. If you do not know how to do that look up filter, filter_var, mysql_real_escape_string (or use $db->escape in mc2) , int, abs etc and learn the differences between integers and strings. I do not see itmpic or any reference to what could be the column for a picture in that update. You cant update something if its not included in the query. Quote Link to comment Share on other sites More sharing options...
Melkrow Posted October 4, 2012 Share Posted October 4, 2012 That's what I'm trying to do, to include it in the query so it would update. So basically, when creating a new item, I have it able to insert itmpic into the table as such (see the last part in the query). You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. So that works fine, the image is stored and I can display it on my site. The problem is when I go to "edit" that item, I don't know how to make it so that it 'saves' the changes i make to itmpic (in case I want to use different image or add an image if there wasn't one already when the item was created first). I hope that makes sense. Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted October 4, 2012 Share Posted October 4, 2012 Ask yourself why is it any different. If you can insert then you can update yes? So what occurs when you try to update. You get an error message which says? Quote Link to comment Share on other sites More sharing options...
Melkrow Posted October 4, 2012 Share Posted October 4, 2012 Well right now nothing occurs, just the changes I make to "Item Picture" don't update, everything else does. So if I accidentally put the wrong img name, I can't change it, or the items that I made before this mod, I can't update them to add an image. I'm basically trying to do step 2 in this post by the author of the mod http://makewebgames.io/showthread.php/23914-mccode-v2-Items-Pic-mod?p=153675&viewfull=1#post153675 And to answer your question lol.... because in the link above and in the first "insert" part, the whole code is in one line, and in v2.5.6b, the 'update' part is like I posted it, broken up in a lot of line, and I can't wrap my head around it lol. Please understand that before today I've never done any PHP or SQL. Will be reading some basic tutorials here soon. Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted October 4, 2012 Share Posted October 4, 2012 Well as I stated previously the update code you posted didnt mention any pic column so it wont update even if you have a form field for it your not passing the info in the query. Quote Link to comment Share on other sites More sharing options...
Melkrow Posted October 4, 2012 Share Posted October 4, 2012 Well as I stated previously the update code you posted didnt mention any pic column so it wont update even if you have a form field for it your not passing the info in the query. Can you help me put that in there? Whenever I try to plug in $_POST['itmpic'] into that update query, it gives me a query error when i try to edit (that's why I completely removed it for now until i figure out how to make it work). 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.