se7enet purgatorio

Page 1 of 3 123>
Topic Options
Rate This Topic
#17769 - 07/06/08 04:35 PM body background in the middle panel
Evilman
Grape Nuts


Registered: 06/15/08
Posts: 46

Offline
How do you add a background image to the middle panel, specifically in the town_buy1.php

I tried doing the pasting <body background="picture.gif"> inside the town_buy1.php file but it doesn't display the the background picture.



Edited by Evilman (07/06/08 04:43 PM)

Top
#17772 - 07/06/08 08:43 PM Re: body background in the middle panel [Re: Evilman]
Fayt
Crunchberries
***

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

Offline
Post the code. I don't use DS so I need to see the code to help you.
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#17773 - 07/06/08 09:51 PM Re: body background in the middle panel [Re: Fayt]
Evilman
Grape Nuts


Registered: 06/15/08
Posts: 46

Offline
<?php

// Dragon Scourge
//
// Program authors: Jamin Blount
// Copyright (C) 2007 by renderse7en
// Script Version 1.0 Beta 5 Build 20

// You may not distribute this program in any manner, modified or
// otherwise, without the express, written consent from
// renderse7en.
//
// You may make modifications, but only for your own use and
// within the confines of the Dragon Scourge License Agreement
// (see our website for that).

$template = <<<END
<body background="/game/images/armory.jpg">
Buying weapons will increase your Attack Power<br>Buying armor, shields and other items will increase your Defense Power.<br /><br />
<div class="big"><b>The stats for your current items are:</b></div>
{{olditems}}<br />
<div class="big"><b>The following items are available in this town:</b></b></div>
{{itemtable}}
<br />
If you've changed your mind, you may also return to <a href="index.php">town</a>.
END;

?>

Top
#17774 - 07/06/08 09:51 PM Re: body background in the middle panel [Re: Evilman]
Evilman
Grape Nuts


Registered: 06/15/08
Posts: 46

Offline
Here's the code above. Thanks masterofollies \:\)
Top
#17775 - 07/07/08 08:34 AM Re: body background in the middle panel [Re: Evilman]
Fayt
Crunchberries
***

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

Offline
Hmm...

It seems to be an html template.

Go to the very top of the script before <?php and put this in.


<style type="text/css">
<!--
body {
background-image: url('images/blah.jpg');
}
-->
</style>


Point the url to whatever image your using. Then it should work. If it doesn't then put

body2 {
background-image: url('images/blah.jpg');
}

in your primary template and call on it in this script.
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#17776 - 07/07/08 05:52 PM Re: body background in the middle panel [Re: Fayt]
Evilman
Grape Nuts


Registered: 06/15/08
Posts: 46

Offline
Hi Masterofollies

I tried it both ways and still nothing shows up \:\(

On the other hand, if I pasted this html code below in town_buy1.php , the background image shows up but of course, it shows up very undesirably messing up the whole page \:\/

<td align=left background="/game/images/armory.jpg">

Any ideas? \:\/


Edited by Evilman (07/07/08 05:53 PM)

Top
#17777 - 07/07/08 05:55 PM Re: body background in the middle panel [Re: Evilman]
Fayt
Crunchberries
***

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

Offline
<td> means your putting it in a table and not the page its self.
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#17778 - 07/07/08 05:57 PM Re: body background in the middle panel [Re: Fayt]
Evilman
Grape Nuts


Registered: 06/15/08
Posts: 46

Offline
I know but I was experimenting to see why the normal background wouldn't show up \:\(
Top
#17779 - 07/07/08 06:25 PM Re: body background in the middle panel [Re: Evilman]
Evilman
Grape Nuts


Registered: 06/15/08
Posts: 46

Offline
Any suggestions masterofollies? \:\(

Just to confirm, if I tried the second method you suggested and put the code below in the primary.php file

body2 {
background-image: url('images/blah.jpg');
}

what is the exact code I would need to paste to call on the background and where do I place the code in the town.buy1.php?

\:\)

Top
#17780 - 07/07/08 08:21 PM Re: body background in the middle panel [Re: Evilman]
Fayt
Crunchberries
***

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

Offline
Use either <div> or <img> to call it.
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#17781 - 07/08/08 08:45 AM Re: body background in the middle panel [Re: Fayt]
Fayt
Crunchberries
***

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

Offline
By the way (post 2) you could just use background image in the html body tag, but wanted to do an easier way, and this way if you wanted it on other pages you could call it very simple.
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#17787 - 07/09/08 06:33 AM Re: body background in the middle panel [Re: Fayt]
AnmanIndustries
Cookie Crisp
*****

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

Offline
This wont work.

And is not possible for individual tables. Youd have to re write code to do this. Or, you can make it so ALL your tables have the same background picture.

But for what you have asked for, its not normally possible.
_________________________
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
#17788 - 07/09/08 08:29 AM Re: body background in the middle panel [Re: AnmanIndustries]
Fayt
Crunchberries
***

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

Offline
If you do a seperate CSS body background image on each script, then yes it is possible. I do it.
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#17790 - 07/09/08 08:58 PM Re: body background in the middle panel [Re: Fayt]
Evilman
Grape Nuts


Registered: 06/15/08
Posts: 46

Offline
I tried it so many different ways including masterofollies's suggestions and no luck \:\( Anman is right, it's not possible to have different backgrounds for each panel \:\/
If I wanted, I could only have one background for all panels \:\(

Sad really, I thought DS was more dynamic than that \:\(


Edited by Evilman (07/09/08 08:58 PM)

Top
#17793 - 07/09/08 10:07 PM Re: body background in the middle panel [Re: Evilman]
AnmanIndustries
Cookie Crisp
*****

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

Offline
You CAN do it. Just thinking off the top of my head I know of a way to do it, and follies is right, with css and shit would be the easiest. But you would have to code all that shit into all the functions and shit. If template = so and so use div so and so. But normally, with a plain install of DS there is no EASY way to do it.
_________________________
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
Page 1 of 3 123>


Hop to:

se7enet

Barack Obama Logo