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