| Re: Darkness Theme with Profile Control Panel Hack. ^ Yeah i'm sure i editied all the files correctly. I have gone over and done it loadsa times, and also i have installed PC on a fair few other templates in the past also.
Like i said earlier, the template was fine with "modifications" to the tpl files as long as i didnt use the modified functions.php page.
There is one thing however, it asks to make some modifications to the overall header. I noticed that the darkness theme doesnt have any css in the overall header which is unlike subsilver and a few other themes. I tried testing PCP with darkness without adding the css code into overall header, and also with copying the CSS from the darkness.css file into overall_header.tpl so that i could add the CSS in from the code below, but niether idea worked.
Here is the overall_header.tpl modifications, as you can see its only CSS thats being added and a javascript popup.
[code:1:fa1c26c4e0]
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------------
#
# at top of the file
#
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
<!-- mod : profile cp -->
#
#-----[ FIND ]------------------------------------------------
#
.helpline { background-color: {T_TR_COLOR2}; border-style: none; }
#
#-----[ AFTER, ADD ]------------------------------------------
#
/*-- mod : profile cp --*/
.foundercolor, a.foundercolor, a.foundercolor:link, a.foundercolor:active, a.foundercolor:visited {
color: #FE00FE;
font-weight: bold;
}
a.foundercolor:hover {
color: #FF0000;
text-decoration: underline;
}
.admincolor, a.admincolor, a.admincolor:link, a.admincolor:active, a.admincolor:visited {
color: {T_FONTCOLOR3};
font-weight: bold;
}
a.admincolor:hover {
color: {T_BODY_HLINK};
text-decoration: underline;
}
.modcolor, a.modcolor, a.modcolor:link, a.modcolor:active, a.modcolor:visited {
color: {T_FONTCOLOR2};
font-weight: bold;
}
a.modcolor:hover {
color: {T_BODY_HLINK};
text-decoration: underline;
}
.usercolor, a.usercolor, a.usercolor:link, a.usercolor:active, a.usercolor:visited {
color : {T_BODY_LINK};
font-weight: bold;
}
a.usercolor:hover {
color: {T_BODY_HLINK};
text-decoration: underline;
}
/*-- fin mod : profile cp --*/
#
#-----[ FIND ]------------------------------------------------
#
<!-- END switch_enable_pm_popup -->
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- BEGIN birthday_popup -->
<script language="Javascript" type="text/javascript">
<!--
window.open('{birthday_popup.U_BIRTHDAY_POPUP}', '_phpbbbirthday', 'HEIGHT=225,resizable=yes,WIDTH=400');
//-->
</script>
<!-- END birthday_popup -->
[/code:1:fa1c26c4e0]
Thanx again for reading. |