Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.220
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ? This s...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriously...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - Background image no repeat code in theme.css
Background image no repeat code in theme.css
Goto page 1, 2  Next

19 Replies / 1008 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » PhpNuke Theme Questions

View previous topic :: View next topic


odawgg
Reputation: 8.1 Add RepSubtract Rep
Local time: 5:45 PM

blank.gif

OMG
OMG

0.20 posts per day
Medals: 0

Joined: Jul 01, 2010
Last Visit: 04 Mar 2012
Posts: 142
Points: 5245 

Post Background image no repeat code in theme.css Posted: Fri Jul 23, 2010 10:59 pm

I've asked this question before, but no one has answered me %100, now that I have the themes I want for my site, all I need to know is where in th theme.css do I add the code for my background image, not only do I need to know where, I need to know what the code is suppose to be, i'm pretty sure it's a link to my background image if i'm not mistaken, also, how do I make it where my background wont repeat itself, I have my background at 1024 x 768 which is the standard size of a website, so it'll fit perfectly, also, is the theme.css where I add the background image? Just double checking Angel
 

 
View user's profileSend private messageVisit poster's website Reply with quote

DreAdeDcoRpSE
Reputation: 2572.3 Add RepSubtract Rep
votes: 28
Local time: 8:45 PM
Location: Back of your Mind
usa.gif

Site Admin
Site Admin

1.36 posts per day
Medals: 3 (View more...)
Super Dedicated User (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Sep 22, 2007
Last Visit: 25 May 2012
Posts: 2331
Points: 136107 

Post Re: Background image no repeat code in theme.css Posted: Sat Jul 24, 2010 6:06 am

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0 ·  · Modern Warfare 3 Xtreme Theme

First, it should not be called theme.css, should be the style.css. That file is found in the public_html/themes/Your-Theme/style/ folder.

Secondly, it would go into the "Body" section. The code you would use is something like,

Code:
background-image:url(../../../themes/YOUR-THEME/images/BACKGROUND-IMAGE.jpg);
background-position:center;
background-repeat:no-repeat;
background-attachment:fixed;


You will need to edit the location to where the image is, its best to put it into your public_html/themes/YOUR-THEME/images folder then edit the line of the css coding that I have all caps to match your theme name and the name of the image.

I added the background attachment tag to keep the background image from moving.

You may want to do some reading up on .css,

http://www.w3schools.com/css/css_background.asp

That should also help you a bit on it.

Lastly, the image size might be standard for you, but it is not standard for websites, There is no absolute for people run different resolutions so it may be stretched for some, or not as big. Me, when I used to do themes for a website called vampirefreaks.com, I used to make my background images 2048PX wide just for those running really high resolution. But everyone is different.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

odawgg
Reputation: 8.1 Add RepSubtract Rep
Local time: 5:45 PM

blank.gif

OMG
OMG

0.20 posts per day
Medals: 0

Joined: Jul 01, 2010
Last Visit: 04 Mar 2012
Posts: 142
Points: 5245 

Post Background image no repeat code in theme.css Posted: Sat Jul 24, 2010 6:21 pm

There's 2 codes I think might be it:

/*This is site background, left, right, top and bottom spacing */
BODY {FONT-FAMILY: Verdana, Helvetica;FONT-SIZE: 10px;margin-left: 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;background-color: #000000;}

I think this one at the bottom is the code for sure though

td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { background-image: none;
background-color:#7a7978; background-image: url(../forums/images/topc.gif); background-repeat: repeat-x; border: #7a7978; border-style: solid; height: 28px;

if it's the second 1, all I do is where it says background-image url, I place the url to the image, which I have uploaded to my new photobucket account?
 

 
View user's profileSend private messageVisit poster's website Reply with quote


DreAdeDcoRpSE
Reputation: 2572.3 Add RepSubtract Rep
votes: 28
Local time: 8:45 PM
Location: Back of your Mind
usa.gif

Site Admin
Site Admin

1.36 posts per day
Medals: 3 (View more...)
Super Dedicated User (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Sep 22, 2007
Last Visit: 25 May 2012
Posts: 2331
Points: 136107 

Post Re: Background image no repeat code in theme.css Posted: Sat Jul 24, 2010 7:49 pm

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0 ·  · Modern Warfare 3 Xtreme Theme

The first one is the body, where the second one is more and likley going to be in the blocks/modules/everywhere but the body.

You can try this,

Code:
*This is site background, left, right, top and bottom spacing */
BODY {FONT-FAMILY: Verdana, Helvetica;
FONT-SIZE: 10px;margin-left: 0px;
background-image:url(../../../themes/YOUR-THEME/images/BACKGROUND-IMAGE.jpg);
background-position:center;
background-repeat:no-repeat;
background-attachment:fixed;
background-color: #000000;}


And edit the name of your theme and the name of the file and do the rest as I said in my other post. but that code should work.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

odawgg
Reputation: 8.1 Add RepSubtract Rep
Local time: 5:45 PM

blank.gif

OMG
OMG

0.20 posts per day
Medals: 0

Joined: Jul 01, 2010
Last Visit: 04 Mar 2012
Posts: 142
Points: 5245 

Post Background image no repeat code in theme.css Posted: Sun Jul 25, 2010 2:25 pm

Before I do this, I don't want to ruin anything, does this look right? If so, I place it where I found the first code? Sorry, I jsut want to get this right the first time:

*This is site background, left, right, top and bottom spacing */
BODY {FONT-FAMILY: Verdana, Helvetica;
FONT-SIZE: 10px;margin-left: 0px;
background-image:url(http://gi142.photobucket.com/groups/r110/PNP5IIP18A/I-ChromeThemeMetallicBackgroundImage.jpg;
background-position:center;
background-repeat:no-repeat;
background-attachment:fixed;
background-color: #000000;}
 

 
View user's profileSend private messageVisit poster's website Reply with quote

DreAdeDcoRpSE
Reputation: 2572.3 Add RepSubtract Rep
votes: 28
Local time: 8:45 PM
Location: Back of your Mind
usa.gif

Site Admin
Site Admin

1.36 posts per day
Medals: 3 (View more...)
Site Supporter (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Sep 22, 2007
Last Visit: 25 May 2012
Posts: 2331
Points: 136107 

Post Re: Background image no repeat code in theme.css Posted: Sun Jul 25, 2010 2:48 pm

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0 ·  · Modern Warfare 3 Xtreme Theme

how about you attach your style.css to here and I will do it for you. before you do any edits, you should always make backups of all files. Safty first. When you go to attach it to here, zip the file or put it into a rar file.
 

 
View user's profileSend private messageVisit poster's website Reply with quote


odawgg
Reputation: 8.1 Add RepSubtract Rep
Local time: 5:45 PM

blank.gif

OMG
OMG

0.20 posts per day
Medals: 0

Joined: Jul 01, 2010
Last Visit: 04 Mar 2012
Posts: 142
Points: 5245 

Post Background image no repeat code in theme.css Posted: Sun Jul 25, 2010 8:02 pm

http://www.mediafire.com/?4zwllou9zyd6o6u, there's a link to the I-Chrome theme style.css sheet. thanks for your help, here's the URL to the photo http://gi142.photobucket.com/groups/r110/PNP5IIP18A/I-ChromeThemeMetallicBackgroundImage.jpg
 

 
View user's profileSend private messageVisit poster's website Reply with quote

DreAdeDcoRpSE
Reputation: 2572.3 Add RepSubtract Rep
votes: 28
Local time: 8:45 PM
Location: Back of your Mind
usa.gif

Site Admin
Site Admin

1.36 posts per day
Medals: 3 (View more...)
Dedication (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Sep 22, 2007
Last Visit: 25 May 2012
Posts: 2331
Points: 136107 

Post Re: Background image no repeat code in theme.css Posted: Mon Jul 26, 2010 2:25 am

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0 ·  · Modern Warfare 3 Xtreme Theme

can seem to DL it. None of there servers currently have the file available. I will try later. Your best bet would to click the "Post Reply" button, then attach it here for I wont have this issue.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

DreAdeDcoRpSE
Reputation: 2572.3 Add RepSubtract Rep
votes: 28
Local time: 8:45 PM
Location: Back of your Mind
usa.gif

Site Admin
Site Admin

1.36 posts per day
Medals: 3 (View more...)
Dedication (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Sep 22, 2007
Last Visit: 25 May 2012
Posts: 2331
Points: 136107 

Post Re: Background image no repeat code in theme.css Posted: Mon Jul 26, 2010 10:07 pm

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0 ·  · Modern Warfare 3 Xtreme Theme

Nope, I can't seem to get the file from there, it keeps saying,

Quote:
NOTICE: No servers are currently available with the requested data on them. Please retry your request in a moment.
.
 

 
View user's profileSend private messageVisit poster's website Reply with quote


odawgg
Reputation: 8.1 Add RepSubtract Rep
Local time: 5:45 PM

blank.gif

OMG
OMG

0.20 posts per day
Medals: 0

Joined: Jul 01, 2010
Last Visit: 04 Mar 2012
Posts: 142
Points: 5245 

Post Background image no repeat code in theme.css Posted: Tue Jul 27, 2010 2:34 am

http://www.megaupload.com/?d=HP5339SU, I really hate the attachment thing, when I post the attachment, I can't find out where it went and if it successfully posted.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

DreAdeDcoRpSE
Reputation: 2572.3 Add RepSubtract Rep
votes: 28
Local time: 8:45 PM
Location: Back of your Mind
usa.gif

Site Admin
Site Admin

1.36 posts per day
Medals: 3 (View more...)
Dedication (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Sep 22, 2007
Last Visit: 25 May 2012
Posts: 2331
Points: 136107 

Post Re: Background image no repeat code in theme.css Posted: Tue Jul 27, 2010 12:03 pm

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0 ·  · Modern Warfare 3 Xtreme Theme

What is the name of your theme and the background name, for I will be telling you where to upload the image, and no, we will not use a site like photobucket to host the image, we will be putting it into your;

ROOT/themes/THEME NAME/image/

that's why I need the name of the folder of the theme that is found on your site. not the name of it where you downloaded it. Just the folder name found in your themes folder.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

odawgg
Reputation: 8.1 Add RepSubtract Rep
Local time: 5:45 PM

blank.gif

OMG
OMG

0.20 posts per day
Medals: 0

Joined: Jul 01, 2010
Last Visit: 04 Mar 2012
Posts: 142
Points: 5245 

Post Background image no repeat code in theme.css Posted: Wed Jul 28, 2010 12:42 pm

The name of the theme is I-Chrome, the name of the back ground image is Metallic
 

 
View user's profileSend private messageVisit poster's website Reply with quote

Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » PhpNuke Theme Questions


 
19 Replies / 1008 Views
Page 1 of 2
All times are GMT
Goto page 1, 2  Next
Display posts from previous:   
 
Jump to:  
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 cannot attach files in this forum
You can download files in this forum