PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
Pride
Regular
Regular


Joined: Oct 22, 2003
Posts: 59

PostPosted: Mon Feb 23, 2004 7:45 am Reply with quote Back to top

In custom blocks that are added to the front page Center Up area... where is the code located that changes the color of the Block Title?

(Not the blocks along the side)
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message
chatserv
The Mouse Is Extension Of Arm


Joined: May 02, 2003
Posts: 1396
Location: Puerto Rico

PostPosted: Mon Feb 23, 2004 11:11 am Reply with quote Back to top

In mainfile.php under function themecenterbox
View user's profile Send private message Visit poster's website
Pride
Regular
Regular


Joined: Oct 22, 2003
Posts: 59

PostPosted: Mon Feb 23, 2004 11:24 am Reply with quote Back to top

Code:


function themecenterbox($title, $content) {
    OpenTable();
    echo "<center><font color=\"FFFFFF\" class=\"option\"><b>$title</b></font></center><br>"
   ."$content";
    CloseTable();
    echo "<br>";
}



I did this, and it didnt change it.
View user's profile Send private message
Pride
Regular
Regular


Joined: Oct 22, 2003
Posts: 59

PostPosted: Wed Mar 03, 2004 11:25 am Reply with quote Back to top

Any other ideas?
View user's profile Send private message
dezina
Theme Guru


Joined: Dec 26, 2002
Posts: 57
Location: UK

PostPosted: Wed Mar 03, 2004 11:52 am Reply with quote Back to top

Try coding it into style.css
You have specified a colour in your code, but the class as "option".
Depends what colour "option" is set at in style.css of theme currently in use.
View user's profile Send private message Visit poster's website
Pride
Regular
Regular


Joined: Oct 22, 2003
Posts: 59

PostPosted: Wed Mar 03, 2004 11:58 am Reply with quote Back to top

Here is my mainfile.php

Code:

function themecenterbox($titlecenterbox, $content) {
    OpenTable();
    echo "<center><font class=\"titleblock\"><b>$titlecenterbox</b></font></center><br>"
   ."$content";
    CloseTable();
    echo "<br>";
View user's profile Send private message
Pride
Regular
Regular


Joined: Oct 22, 2003
Posts: 59

PostPosted: Wed Mar 03, 2004 11:59 am Reply with quote Back to top

Here is my style.css

Code:

TD      {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 10px}
BODY   {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 10px}
P      {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 10px}
DIV      {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 10px}

body {scrollbar-3dlight-color : #FF9900; scrollbar-arrow-color : #FF9900; scrollbar-base-color : #222222; scrollbar-darkshadow-color : #FF9900; scrollbar-face-color : #222222; scrollbar-highlight-color : #FF9900; scrollbar-shadow-color : #FF9900; scrollbar-track-color : #222222; }

FORM        {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 10px}
A:link       {BACKGROUND: none; COLOR: #FF9900; FONT-SIZE: 10px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
A:active     {BACKGROUND: none; COLOR: #FFFFFF; FONT-SIZE: 10px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
A:visited    {BACKGROUND: none; COLOR: #FF9900; FONT-SIZE: 10px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
A:hover      {BACKGROUND: none; COLOR: #FFFFFF; FONT-SIZE: 10px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.title        {BACKGROUND: none; COLOR: #FFFFFF; FONT-SIZE: 14px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.content     {BACKGROUND: none; COLOR: #FFFFFF; FONT-SIZE: 10px; FONT-FAMILY: Verdana, Helvetica}
.titlecenterbox {BACKGROUND: none; COLOR: #FF0000; FONT-SIZE: 10px; FONT-FAMILY: Verdana, Helvetica}
.storytitle  {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 12px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.storycat    {BACKGROUND: none; COLOR: #FFFFFF; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
.boxtitle     {BACKGROUND: none; COLOR: #FFFFFF; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.boxcontent  {BACKGROUND: none; COLOR: #222222; FONT-SIZE: 10px; FONT-FAMILY: Verdana, Helvetica}
.option     {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.titleblock    {BACKGROUND: none; COLOR: #FFFFFF; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.tiny       {BACKGROUND: none; COLOR: #FFFFFF; FONT-SIZE: 10px; FONT-WEIGHT: normal; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.small       {BACKGROUND: none; COLOR: #FFFFFF; FONT-SIZE: 9px; FONT-WEIGHT: normal; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.texte       {font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #FF0000}

select { background-color : #222222; color : #FFFFFF; font: normal 11px Verdana, Arial, Helvetica, sans-serif; border:  0px solid #FF9900; border-color : #FF9900; }

input { background-color : #555555; color : #FFFFFF; font: normal 11px Verdana, Arial, Helvetica, sans-serif; border:  1px solid #000000; border-color : #000000; }

textarea { background-color : #555555; color : #FFFFFF; font: normal 11px Verdana, Arial, Helvetica, sans-serif; border:  1px solid #000000; border-color : #000000; }

input.post, textarea.post, select { background-color : #555555; }

input { text-indent : 2px; }

input.button { background-color : #222222; color : #FF9900; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; border:  0px solid #000000; }

input.radio {background-color: #222222;}

input.mainoption { background-color : #000000;    font-weight : bold; }

input.liteoption { background-color : #555555; font-weight : normal; }
View user's profile Send private message
Pride
Regular
Regular


Joined: Oct 22, 2003
Posts: 59

PostPosted: Wed Mar 03, 2004 12:01 pm Reply with quote Back to top

So what am I doing wrong?
View user's profile Send private message
dezina
Theme Guru


Joined: Dec 26, 2002
Posts: 57
Location: UK

PostPosted: Wed Mar 03, 2004 12:08 pm Reply with quote Back to top

Code:
.option     {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 10px;

In style.css, "option" class colour is set as black, so introduce another class in your style.css called "option1", code the colour as white i.e. #FFFFFF, and then code your center block to class "option1".
View user's profile Send private message Visit poster's website
Pride
Regular
Regular


Joined: Oct 22, 2003
Posts: 59

PostPosted: Wed Mar 03, 2004 12:32 pm Reply with quote Back to top

I am sorry, I am just not getting this.

mainfile.php
Code:

function themecenterbox($option1, $content) {
    OpenTable();
    echo "<center><font class=\"title\"><b>$option1</b></font></center><br>"
   ."$content";
    CloseTable();
    echo "<br>";


style.css
Code:

.boxcontent  {BACKGROUND: none; COLOR: #222222; FONT-SIZE: 10px; FONT-FAMILY: Verdana, Helvetica}
.option      {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.option1     {BACKGROUND: none; COLOR: #FFFFFF; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.titleblock  {BACKGROUND: none; COLOR: #FFFFFF; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}


Am I editing the right files? Am I forgetting a variable?
View user's profile Send private message
dezina
Theme Guru


Joined: Dec 26, 2002
Posts: 57
Location: UK

PostPosted: Wed Mar 03, 2004 1:09 pm Reply with quote Back to top

Should be
Code:

function themecenterbox($title, $content) {
    OpenTable();
    echo "<center><font class=\"option1\"><b>$title</b></font></center><br>"
   ."$content";
    CloseTable();
    echo "<br>";

Remember to clear cookies/refresh browser often, or you will not see changes made.
If you change themes on your site, or offer change of themes to your users/members, this recoding may not work, depending on themes used. Wink
View user's profile Send private message Visit poster's website
Pride
Regular
Regular


Joined: Oct 22, 2003
Posts: 59

PostPosted: Wed Mar 03, 2004 2:12 pm Reply with quote Back to top

I updated using the above code change....

Still didnt make a change. I force the use of this single theme, and I have refreshed half a dozen times.
View user's profile Send private message
dezina
Theme Guru


Joined: Dec 26, 2002
Posts: 57
Location: UK

PostPosted: Thu Mar 04, 2004 2:36 am Reply with quote Back to top

Without having a copy of actual theme you are using, to test, regret cannot help you further on this Sad
View user's profile Send private message Visit poster's website
Pride
Regular
Regular


Joined: Oct 22, 2003
Posts: 59

PostPosted: Thu Mar 04, 2004 6:50 am Reply with quote Back to top

Its ok, I tore the code apart last night, and found that the class=option call is being referred to somewhere else in the code, in another file perhaps. I band-aided it, so it is ok.

I appreciate your help, and wish I could have provided enough info for you to help me out.

Have a great day!
View user's profile Send private message
dezina
Theme Guru


Joined: Dec 26, 2002
Posts: 57
Location: UK

PostPosted: Thu Mar 04, 2004 6:55 am Reply with quote Back to top

At least you stuck at it...well done for trying Very Happy
View user's profile Send private message Visit poster's website
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum