Tips & tricks & hacks: PHP-Fusion v7 Saturday, 20 July 2024 @ 11:08:55 Am

My changes to Krelli's stock PHP-Fusion v7, to tweak it to suit my needs

(these are just notes to myself)

Although the below changes/hacks work for me, I make no guarantees as to your results... any disasters that occur are not my fault. Use at your own risk... do a backup before making changes to your own files.

 Hack #   Purpose (more-or-less in alphabetical order)   File   Change   Contributor 

 

1

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['siteemail'])."
                 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:    $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['siteemail'])."
                                   </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

 

2

Footer

To add my own Footer, below the 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

 

3

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

HTML Entities Encoder/Decoder website used to encode & decode the above HTML-code to text

This page was last modified (timestamped): Monday, 10th June 2024 @ 23:25:07 EDT (America/Toronto) / UTC -04:00
Tuesday, 11th June 2024 @ 03:25:07 GMT (UTC)
4F261DF1E62D63FA1C85D5033B58557337C35159
582 unique visits

NitroWings.me © Copyright 2019-2024 by John Mark Motyer, CD [8.3.8]