Hack # |
Purpose (more-or-less in alphabetical order) |
File |
Change |
Contributor |
1 |
Copyright
To change the Copyright slightly:
|
/includes/theme_functions_include.php
|
|
|
Find this section:
|
|
function showcopyright($class = "", $nobreak = false) {
|
|
1.)
|
|
Find line:
|
|
$res = "Powered by <a href='http://chrome-fusion.de'".$link_class.">
Chrome-Fusion
</a>copyright © 2016 - ".date("Y")." by Patrick Kruse.<br />"
;
• This line is shown here as being wrapped (to conserve space), but in the file it is NOT wrapped... it is all on 1 single line
|
|
Replace/add the red:
|
|
$res = "Powered by <a href='http://chrome-fusion.de'".$link_class.">
<span style='color:blue;'><b>Chrome-Fusion</b></span>
</a>copyright © 2016-".date("Y")." by Patrick Kruse<br />
and hosted on <a href='https://aprelium.com/'".$link_class.">
<span style='color:blue;'><b>Abyss Web Server</b></span></a>
copyright © 2001-".date("Y")." by Aprelium<br />"
;
• This line is shown here as being wrapped (to conserve space), but in the file it is NOT wrapped... it is all on 1 single line
|
|
2.)
|
|
Find line:
|
|
$res .= "Powered by <a href='http://www.php-fusion.co.uk'".$link_class.">
PHP-Fusion</a> copyright © 2002 - ".date("Y")." by Nick Jones.";
• This line is shown here as being wrapped (to conserve space), but in the file it is NOT wrapped... it is all on 1 single line
|
|
Remove the spaces:
|
|
$res .= "Powered by <a href='http://www.php-fusion.co.uk'".$link_class.">
PHP-Fusion</a> copyright © 2002-".date("Y")." by Nick Jones.";
• This line is shown here as being wrapped (to conserve space), but in the file it is NOT wrapped... it is all on 1 single line
|
|
|
|
Figured it out
by myself
|
2 |
Deluxe DropDown Menu
When using Deluxe DropDown Menu
• To display the date & time in the main window
(instead of on the default Chrome-Fusion sub-header menu bar)
|
/themes/Gillette/themes.php
|
|
Add the red line:
|
|
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain-left'></td>\n";
echo "<echo "<td class='capmain'>".$title."</td>\n";
echo "<td align='right' class='sub-header'>".showsubdate()."</td>\n";
echo "<td class='capmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
echo "<td class='main-body'>\n";
}
|
|
|
Patrick
|
3 |
Deluxe DropDown Menu
When using Deluxe DropDown Menu
• To remove the entire default Chrome-Fusion sub-header menu bar
|
/themes/Gillette/themes.php
|
|
Comment out the following lines in red with //:
|
|
// Header
// echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
// echo "<td class='sub-header-left'></td>\n";
// echo "<td class='sub-header'>".showsublinks(" ".THEME_BULLET." ", "white")."</td>\n";
// echo "<td align='right' class='sub-header'>".showsubdate()."</td>\n";
// echo "<td class='sub-header-right'></td>\n";
// echo "</tr>\n</table>\n";
|
|
|
Patrick
|
4 |
Email
To change the Email instructions text:
|
/locale/English/contact.php
|
Change from:
|
|
//SITEADMINEMAIL START
$locale['401'] =
"
There are several ways you can contact me:
You can email me directly at
".hide_email($settings['siteadminemail'])."
If you are a Member you can send me a
<a href='messages.php?msg_send=1'>Private Message</a>
Alternatively, you can fill in the form on this page which sends your message to me via Email.
";
//SITEADMINEMAIL END
• The above $locale['401'] is shown here as being wrapped (to fit on the page), but in the file it is NOT wrapped... it is all on 1 single line
|
|
Change to:
|
|
//SITEADMINEMAIL START
$locale['401'] =
"
<center>
There are several ways that you can contact me:
<br>
• You can email me directly at
<span style='color:blue;'>
<b>
".hide_email($settings['siteadminemail'])."
</b>
</span>
<br>
• If you are a Member and are Logged In, you can send me a
<span style='color:blue;'>
<b>
<a href='messages.php?msg_send=1'>Private Message</a>
</b>
</span>
<br>
• Alternatively, you can fill in the form on this page,
which
will send
your message to me via Email.
</center>
";
//SITEADMINEMAIL END
|
|
Figured it out
by myself
|
5 |
Footer
To add my own Footer, below that stock Chrome-Fusion footer:
|
/themes/templates/footer.php
|
Find the following text (at the end of the file):
|
|
dbclose();
?>
|
|
Add the lines in red:
|
|
dbclose();
?>
<?php
if
($_SERVER['REMOTE_ADDR'] == "192.168.2.1") {
include 'D:\Web\_common\_globals\jmm_global_footer.php';
echo '<br>';
include 'D:\Web\_common\_globals\jmm_global_banner_hosting.php';
include 'D:\Web\_common\_globals\jmm_global_tracker_phpwebstats.php';
} elseif
($_SERVER['REMOTE_ADDR'] != "192.168.2.1") {
include "/home/panauro1/public_html/common/_globals/jmm_global_footer.php";
echo '<br>';
include "/home/panauro1/public_html/common/_globals/jmm_global_banner_hosting.php";
include "/home/panauro1/public_html/common/_globals/jmm_global_tracker_phpwebstats.php";
echo '<br>';
?>
|
|
Figured it out
by myself
|
6 |
Tracking (phpWebStat)
Track website access using phpWebStat
|
/themes/templates/footer.php
|
Already added here in red at the end of the footer file (above):
|
|
dbclose();
?>
<?php
if
($_SERVER['REMOTE_ADDR'] == "192.168.2.1") {
include 'D:\Web\_common\_globals\jmm_global_footer.php';
echo '<br>';
include 'D:\Web\_common\_globals\jmm_global_banner_hosting.php';
include 'D:\Web\_common\_globals\jmm_global_tracker_phpwebstats.php';
} elseif
($_SERVER['REMOTE_ADDR'] != "192.168.2.1") {
include "/home/panauro1/public_html/common/_globals/jmm_global_footer.php";
echo '<br>';
include "/home/panauro1/public_html/common/_globals/jmm_global_banner_hosting.php";
include "/home/panauro1/public_html/common/_globals/jmm_global_tracker_phpwebstats.php";
echo '<br>';
?>
|
|
Figured it out
by myself
|