Uridium Posted September 7, 2008 Share Posted September 7, 2008 Sorry TONKA ive had to remove your part of the script there was errors. UPDATE >> YOU CAN NOW VIEW YOUR UPLOADED PICS IN THE SHOPS AND NOW IN YOUR INVENTORY Create a folder on your FTP called itmpics this is where you Images will be stored,,, The first script will allow you to upload Item Pics to your server so they can be used when you add pics to the INFO page. this UPLOAD script was by Isomerizer found here http://criminalexistence.com/ceforums/index.php?topic=10319.0 The second script which was for adding pics to the INFO page will allow you to Add a Description to your picture when youve uploaded it UIsing the script above the ITMPICS script was by TwiztedFake and can be found here http://criminalexistence.com/ceforums/index.php?topic=18505.0 First of all the easy part.. This will probably be in two section.. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. For the UPLOAD ITEM PIC Create a file called uploaditmpic.php << NEWER VERSION NOW KEEPS TRACKS OF PICS AND DESCRIPTION You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now open smenu.php and Add this line to the Items Section > Upload Item Pic Thats it for ISOMERIZERS edit The next part if for displaying the Images so i'll post this one first and do the next on another post.. DO THE POST BELOW BEFORE THIS PART ADDING PICS TO SHOPS... open SHOPS.php and find this line You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. under it overwrite with this line You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. now open INVENTORY.PHP << DEPENDING ON IF YOU HAVENT CHANGE THE INVENTORY SCRIPT find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Under it add <td class=\"h\">Item Pic</td> now find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and under it add this line 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...
Uridium Posted September 7, 2008 Author Share Posted September 7, 2008 Re: {MOD} Upload Item Pics Via admin panel + Create Description.. PART 2 this will display the pics youve upload and let you give a description Original Script by script was by TwiztedFake Open up staff_items.php Find: Code: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. After add: Code: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Replace with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Scroll down a bit on same file find Find: Code: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. After Add: Code: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find: Code: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And Overwrite with this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now open up iteminfo.php find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Overwrite the entire TWO lines with this one You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. so the line below the above should just be if($id['itmbuyprice']) And thats it you should be good top go.... Quote Link to comment Share on other sites More sharing options...
mentaljason Posted September 7, 2008 Share Posted September 7, 2008 Re: {MOD} Upload Item Pics Via admin panel + Create Description.. Parse error: syntax error, unexpected ';' in /HOTEL/*******/DIR_NAME/uploaditmpic.php on line 150 As far as my counting goes... Line 150: 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...
mentaljason Posted September 7, 2008 Share Posted September 7, 2008 Re: {MOD} Upload Item Pics Via admin panel + Create Description.. The error seems to be with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I think it is You have , instead of ;???? i didnt have a proper look so im proby wrong. Quote Link to comment Share on other sites More sharing options...
mentaljason Posted September 7, 2008 Share Posted September 7, 2008 Re: {MOD} Upload Item Pics Via admin panel + Create Description.. The error is mysql_real_escape_string($_POST['itmid'])); ; shouldnt be on the end...... Quote Link to comment Share on other sites More sharing options...
Uridium Posted September 7, 2008 Author Share Posted September 7, 2008 Re: {MOD} Upload Item Pics Via admin panel + Create Description.. The error is mysql_real_escape_string($_POST['itmid'])); ; shouldnt be on the end...... My original post didnt have that Edition it was introduced later. My origiinal post was..... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Under the function at top of page and.. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Near the bottom of page Hope that helps Quote Link to comment Share on other sites More sharing options...
mentaljason Posted September 7, 2008 Share Posted September 7, 2008 Re: {MOD} Upload Item Pics Via admin panel + Create Description.. Whitch function Quote Link to comment Share on other sites More sharing options...
mentaljason Posted September 7, 2008 Share Posted September 7, 2008 Re: {MOD} Upload Item Pics Via admin panel + Create Description.. Yea that works so the working one is 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...
Tonka Posted September 7, 2008 Share Posted September 7, 2008 Re: {MOD} Upload Item Pics Via admin panel + Create Description.. here's the correct function You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. when i was helping illusions, i missed a few beackets Quote Link to comment Share on other sites More sharing options...
mentaljason Posted September 7, 2008 Share Posted September 7, 2008 Re: {MOD} Upload Item Pics Via admin panel + Create Description.. Still the image doesnt show Quote Link to comment Share on other sites More sharing options...
jds137 Posted September 8, 2008 Share Posted September 8, 2008 Re: {MOD} Upload Item Pics Via admin panel + Create Description.. I followed it step by step, and do not see the pic. Heres a screen shot of what I get: Quote Link to comment Share on other sites More sharing options...
Uridium Posted September 8, 2008 Author Share Posted September 8, 2008 Re: {MOD} UPGRADED upload pics add pics to shops, Items, Inventory for those not being able to view the pics once uploaded ive corrected the problem with the uploaditmpic.php above so use that from the first post.. also fixed able to edit pics and pic name that was also having errors on the staff panel. added ability to view pics in shops and in your inventory... Quote Link to comment Share on other sites More sharing options...
Guest Sniko` Posted September 27, 2008 Share Posted September 27, 2008 Re: {MOD} UPGRADED upload pics add pics to shops, Items, Inventory Thanks ! +1 Quote Link to comment Share on other sites More sharing options...
Uridium Posted September 28, 2008 Author Share Posted September 28, 2008 Re: {MOD} UPGRADED upload pics add pics everywhere [RECODED] Recoded this due to ITMPICNAME issuses so ive removed that option and now the Item Description can be calle for by the usual ITMDESC command... ISSUE was when inserting a new pic it worked fine. But when you came to edit the Picture the ITMPICNAME sql would Conflict with ITMPIC.... That has now been Resolved.. Quote Link to comment Share on other sites More sharing options...
Newbie Posted October 4, 2011 Share Posted October 4, 2011 PART 2 this will display the pics youve upload and let you give a description Original Script by script was by TwiztedFake Open up staff_items.php Find: Code: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. After add: Code: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Replace with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Scroll down a bit on same file find Find: Code: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. After Add: Code: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find: Code: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And Overwrite with this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now open up iteminfo.php find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Overwrite the entire TWO lines with this one You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. so the line below the above should just be if($id['itmbuyprice']) And thats it you should be good top go.... i get this on item info Parse error: syntax error, unexpected '<' in /home/mobst611/public_html/iteminfo.php on line 21 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...
Smokey Posted October 4, 2011 Share Posted October 4, 2011 Try this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Or You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. The 2nd should work but you'll have to make sure your pics are jpg format. Quote Link to comment Share on other sites More sharing options...
Tysoon Posted January 15, 2012 Share Posted January 15, 2012 could someone please post there iteminfo.php, ive had constant errors. Quote Link to comment Share on other sites More sharing options...
boots Posted February 15, 2012 Share Posted February 15, 2012 Parse error: syntax error, unexpected '/', expecting '}' in /home/bootson/public_html/mafia/inventory.php on line 134 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...
sniko Posted February 16, 2012 Share Posted February 16, 2012 @Boots. Have you even looked at line 134...Does it even look correct? (Sorry if the forum software mucked up the code...) But, this might fix it 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.