02. Februar 2023 - 02:37:14
Navigation
Mitglieder Online
· Gäste Online: 1

· Mitglieder Online: 0

· Mitglieder insgesamt: 26
· Neuestes Mitglied: Shadowmaster
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://fusionwings.com/viewpage.php?page_id=14
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://fusionwings.com/viewpage.php?page_id=14
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.

Chrome
27.08.2022 um 15:12
Das wünsche ich dir bzw. euch auch

Thomas
27.08.2022 um 13:15
Wünsche euch allen ein ruhiges Wochenende

Chrome
28.12.2021 um 20:00
Danke, das wünsche ich dir nachträglich auch

SpinXO
26.12.2021 um 11:49
Frohe Weihnachten und schöne Feiertage Grin

Chrome
13.12.2021 um 21:12
kein problem. immer gerne

678,169 eindeutige Besuche