Jump to content
MakeWebGames

Recommended Posts

Posted

This mod will allow you to upload an image for the sole use that it will be displayed when someone clicks on Attack. You will see your Image + that of your Opponents very small has no real purpose but it brings fun to the game.

call this file attackimageuploader.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

Now open up Preferences.php

and add this line somewhere on the print preferences

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

Now open up attack.php

Scroll down to the bottom where the print"</table>"; and after it over write with this one

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

Create a Folder on your FTP called attpics then add this to your MSQL

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

I'll post a screenie its not brilliant but i hate tables but the pics show up at least..

test.png

Posted

Re: [MOD] V2 Add images when you attack

This is a very nice piece of work which im going to use for the time being when i have not many members signed up to my game...

But suppose you have 1000 people who all upload an image, your DB is gonna fill up unless you have a large plan. Would be better to use a URL instead of uploading, thats how i see it but i like it... :-)

Posted

Re: [mccode v2] Add images when you attack

Very Nice Illusions. And Note to all, It does work, Iv seen him test it, and iv tested it. Its a great mod to keep users into the game.

Posted

Re: [mccode v2] Add images when you attack

if you would prefer to use the display_pic rather than the attpics then use the script below for the attack.php you will need the display pic uploader already installed for this to work however,,,

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted

Re: [mccode v2] Add images when you attack

 

if you would prefer to use the display_pic rather than the attpics then use the script below for the attack.php you will need the display pic uploader already installed for this to work however,,,

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Much Better :-P

Posted

Re: [mccode v2] Add images when you attack

Just a small update for those using the attpics mod seeing as NPC's cant upload thier own image and it was driving me mental to find a cure..

Decepti0n kindly posted the fix for it

Upload a default.jpg to your attpics folder this will be used by the NPCS

goto your PHPMYADMIN and run this SQL

update users set attpics = 'default.jpg' where user_level = 0

And if your just nistalling this it would be wise also to give members a pic so upload a pic call it nomemb.jpg or what ever..

and run this SQL

update users set attpics = 'default.jpg' where user_level = 1

You can do the same for Staff if they dont have an image to share.

Posted

Re: [mccode v2] Add images when you attack

 

if you would prefer to use the display_pic rather than the attpics then use the script below for the attack.php you will need the display pic uploader already installed for this to work however,,,

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

This didnt work for me i thought i would post the one that worked for me

 

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

All i did was removed the displaypic/ from

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

And it worked

THanks guys

Posted

Re: [mccode v2] Add images when you attack

My host:

Disk Space: 750000 MB

Monthly Bandwidth: 7500000 MB

I'm definitely adding this. :D THANKS! :D

Put 750GB on your host. They will not be happy xD

Posted

Re: [mccode v2] Add images when you attack

Littlemouse the code has been Posted if your referring to my Image above thats something you wll have to accomlish yourself im just merely showing you what can be donew ith it.

Posted

Re: [mccode v2] Add images when you attack

Small update I noticed when Attacking that the wrong users health bar was depleating so heres the fix...

find

print "</table">;

add below

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Again if your using your Profile images and not the attck images then alter accordingly .

Posted

Re: [mccode v2] Add images when you attack

Disk Space Usage

931.89/? MB

Monthly Bandwidth Transfer

5147.15/1024000 MB

i like your bandwidth lol

nice mod illusion i've not worked with this type of coding so i may use this for learning some of the functions

Posted

Re: [mccode v2] Add images when you attack

this will be wicked but its hard to add in my preferences because it is a differrent design too the normal preferences.

  • 3 weeks later...
Posted

Re: [mccode v2] Add images when you attack

set me up a dummy account on your website matey and make me admin PM me the username and pass and i'll have a look for you

Posted

Re: [mccode v2] Add images when you attack

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '='default.jpg'' at line 1

Posted

Re: [mccode v2] Add images when you attack

ok maybe my SQL is wrong lol i placed mine in manually

click on your USERS table and add an extra field call it

attpics varchar 255 not null and leave default blank

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