Jump to content
MakeWebGames

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


Uridium
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 3 weeks later...

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

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.

 Share

×
×
  • Create New...