Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
jjmusicpro
Involved
Involved



Joined: Jul 12, 2005
Posts: 283

PostPosted: Sun Mar 30, 2008 10:17 am Reply with quote

I made a new 1 page module, i did the opentable() to make me a table, however its just the white background, how can i make the background of that a picture or different color?

_________________
- JJMUSICPRO
Myspacetoolbelt.com || RankBook.com || GamerBomb.com || MyspaceJar.com 
View user's profile Send private message Visit poster's website
Dawg
RavenNuke(tm) Development Team



Joined: Nov 07, 2003
Posts: 928

PostPosted: Sun Mar 30, 2008 11:04 am Reply with quote

The issue is do you want ALL things that use opentable() to have that same BG? If so then change the function. If I recall it is in /themes/yourthemename/theme.php

If not then you can do 2 things....
1. Create a new function say opentable2() in theme.php
or
2. Create a table after the opentable() call in your module index.php and put the BG in there. This is the easiest thing to do.

Dawg
 
View user's profile Send private message
jjmusicpro







PostPosted: Sun Mar 30, 2008 11:44 am Reply with quote

i dont want to have the same background for each of these modules i make, i want to be able to put in whatever background i want for that table.

so where do i do this? in theme.php?

or opentable() in my index.php file of my module, and do what?
 
Dawg







PostPosted: Sun Mar 30, 2008 11:51 am Reply with quote

So you do not want the same background for each....

I would recommend that you when you call your opentable() in the index.php of your module you just open a new regular table.....

Code:
<center>

  <table width="100%" border="5" cellpadding="0" cellspacing="0" bgcolor="#0000FF">
    <tr>
      <td>YOUR CONTENT GOES HERE</td>
    </tr>
  </table>
</center>


You cannot use straight HTML in a php file like this you have to echo it....but I assume you already know this...

What you will get from this is your regular opentable() with a Table inside of it with a blue background.

If you want the opentable() background differnet then you will have to make a new function in theme.php called opentable2() or whatever....and call it in your index instead of opentable().

Dawg



Dawg
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Sun Mar 30, 2008 4:18 pm Reply with quote

Or
Code:


OpenTable();
<div class="mybgcolor">
your code here
</div>
CloseTable();

Then in your style sheet you can add
Code:


.mybgcolor {
background=color: #FFFFFF;
}

Or if you wanted to stretch a small image over the background
Code:


.mybgcolor {
background-image: (url='path/to/image.gif');
background-repeat: repeat;
}
 
View user's profile Send private message Send e-mail
Dawg







PostPosted: Sun Mar 30, 2008 4:26 pm Reply with quote

YA.....What he said....LOL!
Smile

Dawg
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©