21. November 2024 - 23:39:44
Navigation
Mitglieder Online
· Gäste Online: 1

· Mitglieder Online: 0

· Mitglieder insgesamt: 29
· Neuestes Mitglied: Murdock
Thema ansehen
 Thema drucken
Any PHP experts able to help me modify Gillette theme?
JMM
Hello, everyone.

I am hoping that one of you members or visitors has experience with PHP, and who can help me with 2 small modifications to the default theme that comes with Chrome-Fusion, the Gillette theme.

I am using the DeLuxe Dropdown Menu on my site, which adds a menu bar at the top of my page, above everything that comes with Chrome-Fusion.

Please click on the below images to enlarge them for viewing.

In the below picture, below the DeLuxe Dropdown Menu is the standard Gillette menu bar, with the clock in the right corner of that menu bar. As you can see, I have moved all menu items up to the DeLuxe Dropdown Menu, so only the clock remains on the Chrome-Fusion menu bar:

www.fusionwings.com/JMM/site-attachments/Master.png

As this is a waste of vertical space having an entire bar take up the width of my page with just the clock on it, I would like to move the clock to the bar below it, the bar that shows on the left the title of each page (such as Welcome on my home page, etc.), as shown in the next picture (which is NOT a screenshot, just a cut & paste of the date & time):

www.fusionwings.com/JMM/site-attachments/MoveClockDown.png

In my /includes folder is a file called theme_functions_include.php, and in that file is the following code related to displaying the date & time on the Chrome-Fusion menu bar:


function showsubdate() {
   global $settings;
   return ucwords(showdate($settings['subheaderdate'], time()));
}


The line that does the actual display of the date & time in the menu bar is the following line:


return ucwords(showdate($settings['subheaderdate'], time()));


So my 2 questions are:

Question # 1: Where can I insert that line of code, so that the date & time show up in the bar below the Chrome-Fusion menu bar, the bar that shows on the left the title of each page (such as Welcome on my home page, etc.)? Again, this is NOT a screenshot, just a cut & paste of the date & time :)

www.fusionwings.com/JMM/site-attachments/MoveClockDown.png

Question # 2: Once I have the date & time displayed on the page-title bar, how can I remove that default Chrome-Fusion menu bar entirely, so I end up with just 2 bars instead of 3 bars? Likewise, this is NOT a screenshot, just a cut & paste to remove the Chrome-Fusion menu bar :)

www.fusionwings.com/JMM/site-attachments/RemoveMenuBar.png

Hopefully the above 2 mods would be something very simple, and hopefully someone with PHP experience can guide me in the right direction.

Thank you, everyone, for having viewed this post, and thank you in advance for any suggestion.

Regards & have a great day,

John
 
https://www.fusionwings.com
Chrome
Thanks for your questions. i take a look at the code and try to help you.
 
http://chrome-fusion.de
Chrome
answere question 1:

add the following line in the theme.php of the theme (example Gilette theme):


echo "<td class='capmain' align='right'>".showsubdate()."</td>\n";


after this code:


function opentable($title) {

   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='capmain-left'></td>\n";
   echo "<td class='capmain'>".$title."</td>\n";



To remove the default navigation bar in question 2 you need to comment out these lines in theme.php with a # (for example Gilette theme):



   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";
 
http://chrome-fusion.de
JMM
It works perfectly, Patrick, thank you. Sorry that I did not notice your reply & suggestions from 3 weeks ago.

The only thing that I changed today from your suggestion was the following (in red), so that the font of the date/time is smaller & not bold:


function opentable($title) {

   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='capmain-left'></td>\n";
   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";

}

Thank you for taking the time to help with this theme mod.

Have yourself a great day, and be safe.

Regards,
John
 
https://www.fusionwings.com
Springe ins Forum:
Login
Benutzername

Passwort



Noch kein Mitglied?
Klicke hier um dich zu registrieren

Passwort vergessen?
Um ein neues Passwort anzufordern klicke hier.
Shoutbox
Du musst dich einloggen um eine Nachricht zu senden.

SpinXO
15.05.2024 - 18:34
Huhu. Wünsche euch einen schönen Abend

SpinXO
12.05.2024 - 21:37
Wünsche ein schönen Abend Smile

SpinXO
12.05.2024 - 12:12
Grin Chrome

Chrome
12.05.2024 - 12:02
moin spinXO

SpinXO
12.05.2024 - 11:44
Guten morgen zusammen

913,649 eindeutige Besuche