Jump to content
MakeWebGames

[mccode v2] UPGRADED upload pics add pics everywhere [RECODED]


Recommended Posts

Posted

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

shops.png

inventory.png

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.

Posted

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....

Posted

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.

Posted

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.

Posted

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

Posted

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

Posted

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...

  • 3 weeks later...
Posted

Re: {MOD} UPGRADED upload pics add pics to shops, Items, Inventory

Thanks !

+1

Posted

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..

  • 3 years later...
Posted
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.

Posted

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.

  • 3 months later...
  • 1 month later...
Posted

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.

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...