se7enet purgatorio

Page 1 of 2 12>
Topic Options
Rate This Topic
#16715 - 02/18/08 08:30 AM Item Image
Metacat
Malt-o-Meal


Registered: 09/16/07
Posts: 9

Offline
I need some help. I want to add diferent images to the items but i dont know where to look. I try something similar to DK but ..is not working. Please tell me the file where to look. Thanks!!
Top
#16717 - 02/18/08 09:45 AM Re: Item Image [Re: Metacat]
AAT
Malt-o-Meal


Registered: 01/30/08
Posts: 18

Offline
You may add an extra colum in your MySQL for the image url... Then 'play' a bit with the town.php and the templates.....
_________________________

Top
#16718 - 02/18/08 10:00 AM Re: Item Image [Re: AAT]
Metacat
Malt-o-Meal


Registered: 09/16/07
Posts: 9

Offline
Aaaa ok. So in town.php like in DK. Thanks!!!
Top
#16725 - 02/19/08 11:57 AM Re: Item Image [Re: Metacat]
Metacat
Malt-o-Meal


Registered: 09/16/07
Posts: 9

Offline
OK. Done. You've got many options
1) - If you don't have the admin panel

OPEN lib2.php
Find:

 PHP:
$baseitem["image"] = "<img src=\"images/items/".$baseitem["slotnumber"].$acctrow["imageformat"]."\" alt=\"".$baseitem["name"]."\" title=\"".$baseitem["name"]."\" />";


Relace with:
 PHP:
$baseitem["image"] = "<img src=\"images/weapons/".$baseitem["id"].$acctrow["imageformat"]."\" alt=\"".$baseitem["name"]."\" title=\"".$baseitem["name"]."\" />";


2) Open your database with phpmyadmin or something and switch in control table showitemimages field from 1 to 2

3) If you've got the admin panel go to admin panel > setings> find > Show Item Images: 1 switch with 2

And this is it. No modifing and no brain melting. BYE !!!

Top
#17457 - 06/15/08 05:52 PM Re: Item Image [Re: Metacat]
Evilman
Grape Nuts


Registered: 06/15/08
Posts: 46

Offline
Ok but once you change the "Show Item Images" switch from 1 with 2,

Then where do we go to upload our custom image for each item?

ps. Wished we could upload the image in Sephiroth's Admin Panel when we are adding items ;\)

Top
#17469 - 06/16/08 04:39 AM Re: Item Image [Re: Evilman]
Sephiroth
Cheerios
*****

Registered: 11/20/07
Posts: 131
Loc: The Lifestream

Offline
Are you hinting at something? :P

I'll add it to my to-do list.

Top
#17488 - 06/16/08 11:13 PM Re: Item Image [Re: Sephiroth]
Evilman
Grape Nuts


Registered: 06/15/08
Posts: 46

Offline
It was a subtle hint ;\)

Btw your Admin Panel is to die for \:\)

Top
#17490 - 06/17/08 01:54 AM Re: Item Image [Re: Evilman]
AnmanIndustries
Cookie Crisp
*****

Registered: 03/21/05
Posts: 2876
Loc: Planet Stupid, AKA Earth

Offline
SQLYOG
SQLYOG
SQLYOG
SQLYOG
SQLYOG

Do you people EVER listen to me?
_________________________
If you want me to punch you in the nuts go to:
http://www.AnmanIndustries.com

I'll do it for free too. Enjoy.

Top
#17493 - 06/17/08 03:38 AM Re: Item Image [Re: AnmanIndustries]
Evilman
Grape Nuts


Registered: 06/15/08
Posts: 46

Offline
Ummm you lost me there Anman. What's SQL YOG. I know what SQL is but YOG left me scratching my head \:\/
Top
#17495 - 06/17/08 07:16 AM Re: Item Image [Re: Evilman]
AnmanIndustries
Cookie Crisp
*****

Registered: 03/21/05
Posts: 2876
Loc: Planet Stupid, AKA Earth

Offline
SQLYOG!

DOES IT HAVE A FUCKING SPACE IN IT!?

GOOGLE IT!

WHY DO I PUT UP WITH YOU IDIOTS!?

*faces wall while gnawing on a candle silently*
_________________________
If you want me to punch you in the nuts go to:
http://www.AnmanIndustries.com

I'll do it for free too. Enjoy.

Top
#17499 - 06/17/08 10:40 AM Re: Item Image [Re: AnmanIndustries]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
$file = $itemrow["id"];

Set it up like <img src="$file.jpg">

Then name your items 1.jpg, 2.jpg, etc.
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#17504 - 06/17/08 07:21 PM Re: Item Image [Re: Fayt]
AnmanIndustries
Cookie Crisp
*****

Registered: 03/21/05
Posts: 2876
Loc: Planet Stupid, AKA Earth

Offline
or you could have just done:

<img src=\"".$itemrow["id"].".jpg\">
_________________________
If you want me to punch you in the nuts go to:
http://www.AnmanIndustries.com

I'll do it for free too. Enjoy.

Top
#17509 - 06/18/08 09:04 AM Re: Item Image [Re: AnmanIndustries]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
Yes either way works the same exact code
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#17523 - 06/19/08 02:56 AM Re: Item Image [Re: Fayt]
AnmanIndustries
Cookie Crisp
*****

Registered: 03/21/05
Posts: 2876
Loc: Planet Stupid, AKA Earth

Offline
I try to minimise the amount of code needed.
_________________________
If you want me to punch you in the nuts go to:
http://www.AnmanIndustries.com

I'll do it for free too. Enjoy.

Top
#17534 - 06/19/08 08:37 AM Re: Item Image [Re: AnmanIndustries]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
I like to make mine neat
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
Page 1 of 2 12>


Hop to:

se7enet

Barack Obama Logo