HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Basic Theme Modifications - Part 3

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#52310 (In Topic #11415)
Avatar

Community saint

Follow a simple method to apply dramatic changes to your Theme

Basic Theme Modifications - Part 3

This tutorial will show how, with a few simple changes to the glogal.css file, the front page can be dramatically changed to suit your style.

I have also played with one of the features of CSS 3, in particular with the RGBA color which still has limited support, but is worth looking at to add a bit of funkiness to your site. RGBA lets you specify a color as being translucent (partially transparent).

Using Photoshop or some utilities on the Internet, it is easy to find RGB values for the original hexadecimal #e3e9f2 value used in this example. Here the values are Red 227, Green 233, Blue 242.

CSS 3 adds a new syntax, which allows alpha to be specified as well, such as rgba(227,233,242,0.5); this will set the alpha channel to 50% translucency. Note the "a" and "0.5" in the code.

At the time of writing, browser support for RGBA is pretty weak. Of the major browsers; IE does not support RGBA (including IE8), Firefox 3 and newer do, Safari 3.2.1 and Chrome do. IE8, will ignore the alpha channel and give full transparency. So it is up to you to decide after experimentation if your background can work well for all browsers. I am sure a solution will be found in the near future.

Preview the result: Visit this Test Site

Have fun and follow the numbers; it is easier than it looks!

Code you'll need to Paste:

Code

.re_body, #htmlarea {
margin: 0;
padding: 0 !important;
font-size: 0.8em;
font-family: 'Verdana', 'Arial', 'Helvetica', sans-serif;
}

.re_body {
color: #000000; /* */
background-image: url('{$IMG,CB}');
width: 100%;
height: 100%;
position: relative;
margin: 0 auto 0 auto;
padding: 0 !important;
font-size: 0.8em;
font-family: 'Verdana', 'Arial', 'Helvetica', sans-serif;
}
Middle Transparency code:

Code

.global_middle, .fake_middle_continuation {
background-color: transparent;
}
RGBA Code:

Code

.standardbox_classic {
background-color: rgba(227, 233, 242, 0.5);
/*background-color: #e3e9f2; */
margin: 0;
}

Back to the top
 
Posted
Rating:
#52313
Avatar

Hallowed customer

You and these Tutorials could be very beneficial to the site I want to bring back.

Good job and keep up the good work.

I run Otaku Play Ground and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#52315
Avatar

ocStaff (admin)

Thanks for sharing Jean - much appreciated :thumbs:

Back to the top
 
Posted
Rating:
#52318
Avatar

Hallowed customer

Allen said

Thanks for sharing Jean - much appreciated :thumbs:
Indeed she did a good job.

I run Otaku Play Ground and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#52324
Avatar

Hallowed customer

amichan said

Indeed she did a good job.

HE, Amy. Honest!

Ask HIM.


@Jean

Good work on all three.

I've seen a couple on your site previously, but somehow they seem to have a bigger impact here!

Take my advice. I'm not using it!
View my working ocPortal site at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#52326
Avatar

Hallowed customer

OOps sorry Jean is usually a girls name.

I run Otaku Play Ground and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#52360
Avatar

Community saint

Thanks for the kind comments!

I hope newcomers will find them easy enough to experiment with, and be able to quickly transform their front pages to something that suits each personality without knowing much about the deepest details of the program. My thinking is that once someone feels at home on his site, he starts to like working with it, and will eventually attract a crowd.

Indeed amichan, Jean in the French form is masculine;) and originates from the old French form of a Hebrew name Johanan, and very popular in French Canada where I come from, since parents used all the saints from the Bible to name their kids. Jean, Pierre and Joseph were at the top of the lot and represent John, Peter and Joseph. (sorry about this explanation, that's the teacher in me).

Ami, we could make a good team on your site to illustrate your Themes and get people to use them and make some more.:cool:

Back to the top
 
Posted
Rating:
#52361
Avatar

Community saint

I do. I just graduated college this past May and think I'll redo my entire personal site with ocPortal as my online portfolio like Allen did. And these tuts are really helping me… so thank you from me as well.

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#58969
Avatar

Fan in action

First i must say thanks for this awesome and easy to follow tutorial.

I have small problem, ive been trying all posible variations CSS search gave and i can't get image on center and no repeat.

I like to use only one image on center ( image resolution is: 856x643 ) and this is my last attempt:

Code

.re_body, #htmlarea {
margin: 0;
padding: 0 !important;
font-size: 0.8em;
font-family: 'Verdana', 'Arial', 'Helvetica', sans-serif;
}

.re_body {
color: #000000; /* */
background-image: url('{$IMG,CB}');
background-repeat:no-repeat;
background-position:top center;
}


Could you please quide me on right direction. I hope i was able to do this by myself, but im very beginner on this and sometimes what i read is so confusing :(

Back to the top
 
Posted
Rating:
#58981
Avatar

Community saint

Hello Dragons Files!

Try this code:

Code

background-repeat:no-repeat;
background-position:center center;
background-attachment:fixed;
/* Sets whether a background image is fixed or scrolls with the rest of the page */
Hope this can help.
Jean

Back to the top
 
Posted
Rating:
#58982
Avatar

Fan in action

Oh man, thanks big time!! :)
That would have take weeks to figure out, i give you half of my points left, thanks again :thumbs:

Next thing i need to figure out is how to move footer below that background image.





EDIT: The Hard Way solved footer prob :)


Last edit: by Dragons Files

Back to the top
 
Posted
Rating:
#58997
Avatar

Community saint

Dragons Files said

Oh man, thanks big time!! :)
That would have take weeks to figure out, i give you half of my points left, thanks again :thumbs:

Next thing i need to figure out is how to move footer below that background image.


EDIT: The Hard Way solved footer prob :)
Hey! Thanks!:):cool:
Glad I could help!
If you do not yet use "Firebug", it's worth the time to install this addon to Firefox and experiment with it. It will give you some pointers, as to what is going on on your page and you can even try some changes in virtual mode.
Back to the top
 
Posted
Rating:
#59130
Avatar

Fan in action

Hmm, after "re-install" everything looked OK, but them came new issue:

i can't get background image to show, no matter what. I did extreme solution and sadly deleted all and did complete fresh install, same issue.

I have no idea what is causing that.. It looks like this "issue" came after i have forums and members.

BTW: Firebug is awesome, i knew it exists, but i never remembered to install it. Now i have :)

Back to the top
 
Posted
Rating:
#59132
Avatar

Community saint

You've got several levels of "cache" that need to be flushed from your server to your computer to the Browser and the cookies. Some will be done automatically as time goes by, but your ocportal browser cookies should be deleted manually to eliminate any possibilities that the images are not viewed immediately. As, I understand it, the mapping of your images is not the same when "ocf" enabled, so there might be some code discrepancy if you paste old ones. Try simple tests, like creating a new codename and uploading a different image with the Theme image manager to see the result.

Back to the top
 
Posted
Rating:
#59133

Non-joined user

( i really need ve change my cryptic password to something like "password" so i can login as my user account while im at break from work )
I cleared cache in ocPortal, browser and deleted all temp/caches in server. I also created new set of codes/images with different names and transparency worked and logo worked. Not background image. I do one more fresh install in morning when im back home, hopefully server has "cooled down" if there were some odd stuff happening in server level.
Heh, my wifey laughed at me and told it should be Eternal Files instead of Dragons Files ( because site has been under maintenance technically for months   :lol:  )
Back to the top
 
Posted
Rating:
#59135
Avatar

Fan in action

I don't know what happened, but when i got back home i logged in my site and ithere were few pages of Google news o_O
( i didn't put any news )

I have solution for that problem im facing atm, sorry for extra trouble my question(s) have caused.

Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: