[SOLVED] Change the background of the IP message in CTRACKER

Support for IntegraMOD 141

Moderator: Integra Moderator

[SOLVED] Change the background of the IP message in CTRACKER

PostAuthor: geoff1 » Wed Apr 18, 2007 12:38 am

Your phpBB Version: 2.0.
phpBB Type: Integramod 141
MODs: No
Your knowledge: Basic Knowledge
Board URL: [url]http://[/url]

PHP Version:
MySQL Version:


What was done before the problem appeared?



What was done to try to solve the problem?




De.scription and Message

Hi folks, I realise this is a kind of weird question, but is there a way to change the background (or font colour) of the IP different warning box on the main index page?

I've got LCARS as a theme and white text on pink background is... ewww :lol: I don't really want to alter the main font colour, so changing the background of the CTRACKER IP warning box would be my preferred alteration. Its ok in the other themes, just LCARS.

Here's the LCARS.css

Code: Select all
 /* Based on the original Style Sheet for the fisubsilver v2 Theme for phpBB version 2+Edited by Daz  - [url=http]http://www.forumimages.com[/url] - last updated 26-06-03 *//* The content of the posts (body of text) */body{background:#000000;     color:#000000;     font:12px Verdana,Arial,Helvetica,sans-serif;     margin:0px;     padding:0;     scrollbar-3dlight-color: #CC99CC;     scrollbar-arrow-color: #CC6666;     scrollbar-darkshadow-color: #9999cc;     scrollbar-face-color: #ff9900;     scrollbar-highlight-color: #CC6666;     scrollbar-shadow-color: #CC6666;     scrollbar-track-color: #CC6666;}  body, table {     font-family: Verdana;      font-size: 10px;      color: #EBEBEB;     font-weight:bold}  /* General font families for common tags */  font,th,td,p {font-family: Verdana, Helvetica; color: #EBEBEB}  /* General text */.gensmall{font-size:10px}.copyright{font-size:10px}td.genmed,.genmed{font-size:11px}.explaintitle{font-size:11px;font-weight:bold;color:#FFFFFF}  /* General page style */a:link,a:active,a:visited,a.postlink{color:#FFFFFF;text-decoration:none;font-weight : bold;}a:hover{color:#FF9900;text-decoration:none;font-weight : bold;}  /* titles for the topics:could specify viewed link color too */.topictitle{text-decoration: none;font-weight: bold;font-size: 11px;color: #FFFFFF;font-family: Verdana, Helvetica}a.topictitle:visited{text-decoration: none;font-weight: bold;font-size: 11px;color: #FFFFFF;font-family: Verdana, Helvetica}a.topictitle:hover{text-decoration: underline;font-weight: bold;font-size: 11px;color: #FF9900;font-family: Verdana, Helvetica;font-weight: bold;}  /* Name of poster in viewmsg.php and viewtopic.php and other places */.name{font-size:11px;font-weight: bold}  hr{border: 1px solid #000000;border-top-width:1px;height:0px}  /* Category gradients*/td.cat{font-weight:bold;letter-spacing:1px;color:#000000;background:#9999CC;height:29px;text-indent:4px}  /* Main table cell colors and backgrounds */.row1{background:#222222}.row2,.helpline{background:#202020}.row3{background:#202020}td.spacerow{background:#000000}  /* This is for the table cell above the Topics,Post & Last posts on the index.php */td.rowpic{background:#9999CC}  /* Table Header cells */  th{background:#FF9900;color:#000000;font-size:11px;font-weight:bold;height:27px;white-space:nowrap;text-align:center;padding-left:8px;padding-right:8px}  /* This is the border line & background color round the entire page */  .bodyline{background:#000000}  /* This is the outline round the main forum tables */.forumline{background:#000000;border:1px solid #000000}  /* The largest text used in the index page title and toptic title etc. */.maintitle,h1{font:bold 20px/120% "Trebuchet MS",Verdana,Arial,Helvetica,sans-serif;text-decoration:none;color:#FFFFFF}.subtitle,h2{font:bold 18px/180% "Trebuchet MS",Verdana,Arial,Helvetica,sans-serif;text-decoration:none}  /* Used for the navigation text,(Page 1,2,3 etc) and the navigation bar when in a forum */.nav{font-size:11px;font-weight:bold}.postbody{font-size:12px;line-height:125%}  /* Location,number of posts,post date etc */.postdetails{font-size:10px;color:#FFFFFF}  /* Quote blocks */.quotetitle,.quote {color:#000000;font-size:11px;border: 1px solid #696969;padding:2px 2px 3px 3px}.quotetitle {background:#FF9900;text-indent:2px;font-weight:bold;margin:10px 20px 0 20px}.quote {background:#fafafa;border-top-width:0;color:#cc6633;font-size:11px;margin:0 20px 10px 20px}.quote {overflow:auto;height:40px}  /* Code blocks */.codetitle,.code {border:1px solid #696969;padding:2px 2px 3px 3px}.codetitle {font-size:11px;background: #FF9900;text-indent:2px;font-weight:bold;margin:10px 20px 0 20px}.code {background:#fafafa;border-top-width:0;color:#555;font:13px Courier,'Courier New',sans-serif;margin:0 20px 0 20px;line-height:110%}.code {overflow:auto;height:40px}.code {color:#060}  /* PHP blocks */.phptitle,.php {border:1px solid #696969;padding:2px 2px 3px 3px}.phptitle {font-size:11px;background: #FF9900;text-indent:2px;font-weight:bold;margin:10px 20px 0 20px}.php {background:#fafafa;border-top-width:0;color:#555;font:13px Courier,'Courier New',sans-serif;margin:0 20px 0 20px;line-height:110%}.php {overflow:auto;height:40px}.php {color:#060}  /* This is for the error messages that pop up */.errorline{background:#add8e6;border:1px solid #000000}  /* Form elements */form{display:inline}  input,select,textarea{color : FFFFFF;background-color: #454545;font-family : Verdana, Helvetica, E58C00, Helvetica, sans-serif;font-size : 10px;}input.post,textarea.post,select{background: #454545; border: solid 1px #636363;font:11px Verdana,Arial,Helvetica,sans-serif;padding-bottom:2px;padding-left:2px}input.button,input.liteoption,.fakebut{border:1px solid #696969;background:#454545;font-size:11px    border-top-width : 1px;      border-right-width : 1px;      border-bottom-width : 1px;      border-left-width : 1px;}  input.catbutton{border:1px solid #696969;background:#454545;font-size:10px}input.mainoption{border:1px solid #696969;background:#454545;font-size:11px;font-weight:bold}a.but,a.but:hover,a.but:visited{color:#000000;text-decoration:none}  /* This is the line in the posting page which shows the rolloverhelp line. Color value in row2 */.helpline{border:0 solid;font-size:10px}  /*-- mod : profile cp --*/.foundercolor, a.foundercolor, a.foundercolor:link, a.foundercolor:active, a.foundercolor:visited {     color: #FF0000;     font-weight: bold;}a.foundercolor:hover {     color:   #FF0000;     text-decoration: underline;}.jadmincolor, a.jadmincolor, a.jadmincolor:link, a.jadmincolor:active, a.jadmincolor:visited {     color: #129DED;     font-weight: bold;}a.jadmincolor:hover {     color:   #129DED;     text-decoration: underline;}.admincolor, a.admincolor, a.admincolor:link, a.admincolor:active, a.admincolor:visited {     color: #FFA34F;     font-weight: bold;}a.admincolor:hover {         color:   #FF0000;     text-decoration: underline;}.modcolor, a.modcolor, a.modcolor:link, a.modcolor:active, a.modcolor:visited {     color: #FFD200;     font-weight: bold;}a.modcolor:hover {     color:   #FF8A00;     text-decoration: underline;}.usercolor, a.usercolor, a.usercolor:link, a.usercolor:active, a.usercolor:visited {     color : #FFFFFF;     font-weight: bold;}a.usercolor:hover {     color: #DD6900;     text-decoration: underline;}/*-- fin mod : profile cp --*/  /* This is the gradient background at the top of the page */.topbkg{background: #000000 repeat-x}.topnav{font-size:11px;background: #9999CC repeat-x;white-space:nowrap;}  /* Admin & Moderator Colors MODification */.admin,.mod{font-size:11px;font-weight:bold}.admin,a.admin,a.admin:visited{color:#ff0000}.mod,a.mod,a.mod:visited{color:#FFD200}a.admin:hover,a.mod:hover{color:#839fbc}  /* Specify the space around images */.imgtopic,.imgicon{margin-left:3px}.imgspace{margin-left:1px;margin-right:2px}.imgfolder{margin:1px 4px 1px 4px}  /* Gets rid of the need for border="0" on hyperlinked images */img{border:0 solid}  abbr, acronym {     font-weight: bold;     text-decoration: overline;     cursor: help;}  .acronym{background:#FFFFCC}  .alert{color:#FF3300}  /* Background images for tables */.tbl{border-collapse:collapse;height:4px;width:100%}.tbll{background: #000000 no-repeat;width:8px}.tblbot{background: #000000 repeat-x;width:100%}.tblr{background: #000000  no-repeat;width:8px}  .catLeft {background:#000000}.mainmenu { color: #000000; font-size: 11px; font-family: Verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular }a.mainmenu { color: #000000; font-family: Verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular; text-decoration: none }a.mainmenu:visited   { color: #000000; font-family: Verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular; text-decoration: none }a.mainmenu:hover   { color: #FFFFFF; font-family: Verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular; text-decoration: none }.cattitle           { color: #000000; font-weight: bold; font-size: 13px; text-decoration: none; letter-spacing: 1px }a.cattitle         { color: #000000; text-decoration: none }a.cattitle:visited  { color: #000000; text-decoration: none }a.cattitle:hover  { color: #ff9900; text-decoration: none; font-size: 13px }  /* Mighty Gorgon - Full Album Pack - BEGIN */  .forumline_left { background-color: #ff9900; border-bottom: 2px {T_TH_COLOR2} solid; border-left: 2px {T_TH_COLOR2} solid; }  .tab_links, a.tab_links:hover, a.tab_links:link, a.tab_links:active, a.tab_links:visited { font-size: 11px; color: #FF8866; text-decoration: none; }  .tab_links_unsel, a.tab_links_unsel:hover, a.tab_links_unsel:link, a.tab_links_unsel:active, a.tab_links_unsel:visited { font-size: 11px; color: #FFFFAA; text-decoration: none; }  a.tab_links:hover, a.tab_links_unsel:hover { text-decoration: underline; }  .tab_headers, th.tab_headers { color: #FF8866; font-size: 11px; font-weight : bold; padding-left: 4px; padding-right: 8px; border: #003366; border-style: solid; border-width: 1px 1px 0px 1px; background-color: #006699; }  .tab_headers_unsel, th.tab_headers_unsel { color: #FFFFAA; font-size: 11px; font-weight : bold; padding-left: 4px; padding-right: 8px; border: #336699; border-style: solid; border-width: 1px 1px 0px 1px; background-color: #6699AA; }  .tab_border { background-color: #888888; border: 1px; }  .filler, th.filler { background-color:#000000; background-image:none; }  .picframe{ display: block; background-color: #000000; border: 1px solid #555555; padding: 2px 6px 2px 6px; position: relative; bottom: 2px; right: 2px; }  .picshadow{ background-color: #888888; color: inherit; margin-left: 4px; margin-top: 4px; } /* Mighty Gorgon - Full Album Pack - END */  


Thanks in advance <img>
Last edited by geoff1 on Fri Apr 20, 2007 6:41 am, edited 1 time in total.
Geoff 'Lonewolf' Upton

'miracle worker extroardinaire'

Insanity is a state of mind... your mad to think otherwise!
User avatar
geoff1
Members
Members
 
Posts: 97
Likes: 0 post
Liked in: 0 post
Joined: Mon Jul 10, 2006 1:09 pm
Cash on hand: 0.00

Re: Change the background of the IP message in CTRACKER

PostAuthor: Whisky » Fri Apr 20, 2007 12:11 am

I had the same problem, there's no specific class for ctracker messages in the standard css, here's the procedure to add one by your own:

OPEN /templates/yourtheme/yourtheme.css

AT END, ADD]
[code]/* Cracker Tracker messages text -  Add by Whisky */.ctracker{font-size]
Adapt the color code with whatever you want of course


[b]OPEN /templates/yourtheme/overall_header.tpl


FIND
[code]<BEGIN><br><div><table>     <tr>         <td align="center" style="background-color]
REPLACE WITH]
[code]<BEGIN><br><div><table>     <tr>         <td align="center" style="background-color]


[b]SAVE AND CLOSE


Done. <img>

Btw, message to admins: it would be nice to add this hack in the next IM version because not everybody uses a light background.
Last edited by Whisky on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
I am the Lizard King, I can do anything

Whisky
Sr Integra Member
Sr Integra Member
 
Posts: 256
Likes: 0 post
Liked in: 0 post
Joined: Thu May 18, 2006 1:28 am
Cash on hand: 0.00
Location: Brussels

Re: Change the background of the IP message in CTRACKER

PostAuthor: Helter » Fri Apr 20, 2007 12:34 am

great idea whisky. Added to svn
Last edited by Helter on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4168
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 187.60
Location: Seattle Wa
IntegraMOD version: IM 3

Re: Change the background of the IP message in CTRACKER

PostAuthor: geoff1 » Fri Apr 20, 2007 6:40 am

That is so excellent Whisky! Thank you very much, you made my day! 8) Seems to be working nicely... ace work <img>
Last edited by geoff1 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Geoff 'Lonewolf' Upton

'miracle worker extroardinaire'

Insanity is a state of mind... your mad to think otherwise!
User avatar
geoff1
Members
Members
 
Posts: 97
Likes: 0 post
Liked in: 0 post
Joined: Mon Jul 10, 2006 1:09 pm
Cash on hand: 0.00

Re: [SOLVED] Change the background of the IP message in CTRA

PostAuthor: CaNNon » Sun Sep 30, 2007 7:31 am

I've played with this a little Whisky, it works like a charm.

Could you change the "/templates/yourtheme/yourtheme.css" modding please?
You have allowed a little more that you noticed. <img>

Code: Select all
ctracker{     font-size:11px;     font-weight:bold;     color:#000000;               /* color is message text only */     background-color:#6C6D6D;    /* background-color is around text only (won't change whole box background ) */  


Thanks.
Last edited by CaNNon on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 11:15 am
Cash on hand: 0.00

Re: [SOLVED] Change the background of the IP message in CTRA

PostAuthor: MWE_001 » Sun May 11, 2008 5:30 pm

Ok Im glad I found this I use the dark red template and yuck....

So waht Im after is, how do I change the background and font colors for both. The ip tracker message AND the Global Message. Thanks in advance

Ray
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

Re: [SOLVED] Change the background of the IP message in CTRA

PostAuthor: CaNNon » Mon May 12, 2008 5:55 am

Look at the files, a lot of it is html. I looked them over but I don't remember the file names.
Also I knew of no way to make that work with what Whisky had done. <img>
Last edited by CaNNon on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 11:15 am
Cash on hand: 0.00

Re: [SOLVED] Change the background of the IP message in CTRA

PostAuthor: MWE_001 » Mon May 12, 2008 10:01 am

yeah I tried it every way possible in the css file for dark red and it was a no go. I can find in the tpl file where it calls for the color, but I cant find the file that the colors are defined in. I searched lastnight in my files for almost 2 hours and searched here through the threads at Integramod as well and came up with this one.

If I figure it out, I'll let ya know. Because as it is, I would never EVER use the global message system with the Dark templates and Im half tempted to disable the pretty pink IP box as well until I get it figured out. <img>
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

Re: [SOLVED] Change the background of the IP message in CTRA

PostAuthor: CaNNon » Mon May 12, 2008 10:37 am

Don't get me wrong you can do this, I didn't get back to working on it but Everything is defined in the html parts and it looked like simple edits would work. <img>
Last edited by CaNNon on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 11:15 am
Cash on hand: 0.00

Re: [SOLVED] Change the background of the IP message in CTRA

PostAuthor: CaNNon » Mon May 12, 2008 10:50 am

here is a example from: /ctracker/engines/ct_security.php

[code]$htmloutput =<<<EOM   <html>                      <head>                        <title>CBACK CrackerTracker ]
you will have to play a little with the color codes though as they will not return what you would think they should (not sure as to why though). Hope its of some help. <img>
Last edited by CaNNon on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 11:15 am
Cash on hand: 0.00

Re: [SOLVED] Change the background of the IP message in CTRA

PostAuthor: MWE_001 » Tue May 13, 2008 10:58 am

DOH! Thats the one file I didnt check into. <img> I really need to stop workingon websites with only an hour of sleep in 2 days.
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois


Return to IntegraMOD 141

Who is online

Registered users: Google [Bot], Majestic-12 [Bot]

cron