Author Topic: Modify current theme issue  (Read 3741 times)

Marshall

  • Newbie
  • *
  • Posts: 2
    • View Profile
Modify current theme issue
« on: May 27, 2013, 12:41:32 pm »
Hi,

As creative as I was, I tried adding a few extra menu buttons and afterwards i figured i really didnt needed the top-players menu option,

so i deleted this into the modify current theme admin options, in the html footer section.

Now this was a bad idea.. apparently I'm lacking program skills and my menu had disappeared.

I don't know what to do to fix this.

I'd be very thankful if someone could help me out.

Here is the broken html footer;





                     </td>
                     <td class='right-table'></td>
                  </tr>
                  <tr>
                     <td class='bottom-left-table'></td>
                     <td class='bottom-table'></td>
                     <td class='bottom-right-table'></td>
                  </tr>
               </table>
            </td>
            <td class='mainSiteRight' valign='top'>
               <div class='navMenuContainer'>
      
                  <div class='navMenuTop'></div>
                  <div class='navMenuCenter'>
                     <div class='navMenuTitle'>
                        <img src='<?php echo $MAIN_ROOT; ?>themes/<?php echo $THEME; ?>/images/layout/menu/menu.png'>
                     </div>
                     <b></b> <a href='<?php echo $MAIN_ROOT; ?>'>Home</a><br>
                     <b></b> <a href='<?php echo $MAIN_ROOT; ?>news'>News</a><br>
                     <b></b> <a href='<?php echo $MAIN_ROOT; ?>members.php'>Members</a><br>
                     <b></b> <a href='<?php echo $MAIN_ROOT; ?>ranks.php'>Ranks</a><br>                     
                     <b></b> <a href='<?php echo $MAIN_ROOT; ?>tournaments'>Tournaments</a><br>
                     <b></b> <a href='<?php echo $MAIN_ROOT; ?>events'>Events</a><br>
                     <b></b> <a href='<?php echo $MAIN_ROOT; ?>medals.php'>Medals</a><br>
                     <b></b> <a href='<?php echo $MAIN_ROOT; ?>diplomacy'>Diplomacy</a><br>
                     <b></b> <a href='<?php echo $MAIN_ROOT; ?>diplomacy/request.php'>Diplomacy Request</a><br>
                     <b></b> <a href='<?php echo $MAIN_ROOT; ?>custompage.php?pID=11'>Main website</a><br>
                     <b></b> <a href='http://www.thomasvandyck.be/forumkmc' target="_BLANK">Forum</a><br>
                                                        <b></b> <a href='<?php echo $MAIN_ROOT; ?>custompage.php?pID=14'>Join us!</a><br>
                     <b></b> <a href='<?php echo $MAIN_ROOT; ?>squads'>Games</a><br>
                     




                        
                        <?php
                           if($websiteInfo['memberregistration'] == 0 && constant('LOGGED_IN') != true) {
                              echo "<b></b> <a href='".$MAIN_ROOT."signup.php'>Sign Up</a><br>";
                           }
                        ?>
                     <br>
                     <div class='navMenuTitle'>
                        <img       </div>
                     <b></b> <a
                     <?php
                        $hpGameObj = new Game($mysqli);
                        $arrGames = $hpGameObj->getGameList();
                        foreach($arrGames as $gameID) {
                           $hpGameObj->select($gameID);
                           echo "<b></b> <a href='".$MAIN_ROOT."top-players/game.php?gID=".$gameID."'>".$hpGameObj->get_info_filtered("name")."</a><br>";                        }

<div class='navMenuTitle'>
                        <img src='<?php echo $MAIN_ROOT; ?>themes/<?php echo $THEME; ?>/images/layout/menu/shoutbox.png'>
                     </div>         
                     <?php echo $mainShoutboxObj->dispShoutbox(); ?>
                  </div>
                  <div class='navMenuBottom'></div>
               </div>
            
            </td>
         </tr>
      </table>
      
   
      
      
   

   
   
   
   
      <div style='position: absolute; top: 0px; left: 0px; width: 100%; min-width: 990px'>
         <div id='centerKnightBG'></div>
         <div id='leftKnightBG'></div>
         <div id='acBG'></div>
         <div class='layoutLine'></div>
         <div class='bloodLeftBG'></div>
                        <div class='shieldBG'></div>         
         <div class='rightBarBG'></div>
      </div>
      
      <div class='loginBar'>
         <?php echo $dispLoginBox; ?>
      </div>
   
      <div class='logoDiv'>
         <a href='<?php echo $MAIN_ROOT; ?>'><img src='<?php echo $MAIN_ROOT; ?>themes/<?php echo $THEME; ?>/images/logo.png'></a>
      </div>


   
   
   
   
   <div class='push'></div>
   </div>
   <div class='footerDiv'>
      Powered By: <a href='http://www.bluethrust.com' target='_blank'>Bluethrust Clan Scripts v4</a><br>
       Copyright <?php echo date("Y"); ?> <?php echo $websiteInfo['clanname']; ?>
   </div>
   

   <div id='notificationDiv'></div>
   <div id='notificationContainer'></div>

   <script type='text/javascript'>

      
   
      $(document).ready(function() {
   
         $('#mainShoutbox').animate({
            scrollTop:$('#mainShoutbox')[0].scrollHeight
         }, 1000);
         
         var intScrollTop;
         var intNewTopValue = 0;
         var strNewTopValue = "";
         $(window).scroll(function() {
            intScrollTop = $(document).scrollTop();
            intNewTopValue = 50-intScrollTop;
            if(intNewTopValue < 0) {
               intNewTopValue = 0;
            }

            strNewTopValue = intNewTopValue+"px";
            
            $('#centerKnightBG').css('top', strNewTopValue);
            $('#leftKnightBG').css('top', strNewTopValue);
            $('#acBG').css('top', strNewTopValue);
         });


         $(window).scroll();
         
      });

   </script>
      <?php
      
         if(constant('LOGGED_IN')) {
            
            $memberObj = new Member($mysqli);
            $memberObj->select($_SESSION['btUsername']);
            $memberInfo = $memberObj->get_info();
            
            echo "
               <audio id='notificationSound'>
            ";
            if($memberInfo['notifications'] == 0) {
               echo "
                  <source src='".$MAIN_ROOT."themes/".$THEME."/notification.mp3'></source>
                  <source src='".$MAIN_ROOT."themes/".$THEME."/notification.ogg'></source>
               ";
            }
            
            echo "
               </audio>
               ";
            
            if($memberInfo['notifications'] == 0 || $memberInfo['notifications'] == 1) {
               echo "
         
               <script type='text/javascript'>
                  var intCountNotificationCheck = 0;
            
                  function checkForNotification() {
            
                     $(document).ready(function() {
            
                        $.post('".$MAIN_ROOT."members/include/_notificationcheck.php', { }, function(data) {
            
                           $('#notificationContainer').html(data);
                           
                        });
            
                     });
            
                     if(intCountNotificationCheck < 5) {
                        setTimeout(\"checkForNotification()\", 120000);
                     }
                     
                     intCountNotificationCheck++;
                  }
                  
                  checkForNotification();
               </script>
            ";
               
            }
         }
         
               
      ?>

      
      <script type='text/javascript'>


         function reloadShoutbox() {
            $(document).ready(function() {

               var strUpdateDiv = "#<?php echo $mainShoutboxObj->strDivID; ?>";

               
               $.post("<?php echo $MAIN_ROOT; ?>members/include/news/include/reloadshoutbox.php", { }, function(data) {

                  $(strUpdateDiv).html(data);

               });
   
            });

            setTimeout("reloadShoutbox()", 20000);
         }


         setTimeout("reloadShoutbox()", 20000);
      </script>
      

</body>
</html>
« Last Edit: May 27, 2013, 12:43:13 pm by Marshall »

Bluethrust

  • Administrator
  • Hero Member
  • *****
  • Posts: 1110
    • View Profile
Re: Modify current theme issue
« Reply #1 on: May 27, 2013, 05:24:16 pm »
This should work.  No more Top Players section.


Code: [Select]
</td>
                     <td class='right-table'></td>
                  </tr>
                  <tr>
                     <td class='bottom-left-table'></td>
                     <td class='bottom-table'></td>
                     <td class='bottom-right-table'></td>
                  </tr>
               </table>
            </td>
            <td class='mainSiteRight' valign='top'>
               <div class='navMenuContainer'>
     
                  <div class='navMenuTop'></div>
                  <div class='navMenuCenter'>
                     <div class='navMenuTitle'>
                        <img src='<?php echo $MAIN_ROOT?>themes/<?php echo $THEME?>/images/layout/menu/menu.png'>
                     </div>
                     <b></b> <a href='<?php echo $MAIN_ROOT?>'>Home</a><br>
                     <b></b> <a href='<?php echo $MAIN_ROOT?>news'>News</a><br>
                     <b></b> <a href='<?php echo $MAIN_ROOT?>members.php'>Members</a><br>
                     <b></b> <a href='<?php echo $MAIN_ROOT?>ranks.php'>Ranks</a><br>                     
                     <b></b> <a href='<?php echo $MAIN_ROOT?>tournaments'>Tournaments</a><br>
                     <b></b> <a href='<?php echo $MAIN_ROOT?>events'>Events</a><br>
                     <b></b> <a href='<?php echo $MAIN_ROOT?>medals.php'>Medals</a><br>
                     <b></b> <a href='<?php echo $MAIN_ROOT?>diplomacy'>Diplomacy</a><br>
                     <b></b> <a href='<?php echo $MAIN_ROOT?>diplomacy/request.php'>Diplomacy Request</a><br>
                     <b></b> <a href='<?php echo $MAIN_ROOT?>custompage.php?pID=11'>Main website</a><br>
                     <b></b> <a href='http://www.thomasvandyck.be/forumkmc' target="_BLANK">Forum</a><br>
                                                        <b></b> <a href='<?php echo $MAIN_ROOT?>custompage.php?pID=14'>Join us!</a><br>
                     <b></b> <a href='<?php echo $MAIN_ROOT?>squads'>Games</a><br>
                     




                       
                        <?php
                           
if($websiteInfo['memberregistration'] == && constant('LOGGED_IN') != true) {
                              echo 
"<b></b> <a href='".$MAIN_ROOT."signup.php'>Sign Up</a><br>";
                           }
                        
?>

                     <br>
                   
<div class='navMenuTitle'>
                        <img src='<?php echo $MAIN_ROOT?>themes/<?php echo $THEME?>/images/layout/menu/shoutbox.png'>
                     </div>         
                     <?php echo $mainShoutboxObj->dispShoutbox(); ?>
                  </div>
                  <div class='navMenuBottom'></div>
               </div>
           
            </td>
         </tr>
      </table>
     
   
     
     
   

   
   
   
   
      <div style='position: absolute; top: 0px; left: 0px; width: 100%; min-width: 990px'>
         <div id='centerKnightBG'></div>
         <div id='leftKnightBG'></div>
         <div id='acBG'></div>
         <div class='layoutLine'></div>
         <div class='bloodLeftBG'></div>
                        <div class='shieldBG'></div>         
         <div class='rightBarBG'></div>
      </div>
     
      <div class='loginBar'>
         <?php echo $dispLoginBox?>
      </div>
   
      <div class='logoDiv'>
         <a href='<?php echo $MAIN_ROOT?>'><img src='<?php echo $MAIN_ROOT?>themes/<?php echo $THEME?>/images/logo.png'></a>
      </div>


   
   
   
   
   <div class='push'></div>
   </div>
   <div class='footerDiv'>
      Powered By: <a href='http://www.bluethrust.com' target='_blank'>Bluethrust Clan Scripts v4</a><br>
      Copyright <?php echo date("Y"); ?> <?php echo $websiteInfo['clanname']; ?>
   </div>
   

   <div id='notificationDiv'></div>
   <div id='notificationContainer'></div>

   <script type='text/javascript'>

     
   
      $(document).ready(function() {
   
         $('#mainShoutbox').animate({
            scrollTop:$('#mainShoutbox')[0].scrollHeight
         }, 1000);
         
         var intScrollTop;
         var intNewTopValue = 0;
         var strNewTopValue = "";
         $(window).scroll(function() {
            intScrollTop = $(document).scrollTop();
            intNewTopValue = 50-intScrollTop;
            if(intNewTopValue < 0) {
               intNewTopValue = 0;
            }

            strNewTopValue = intNewTopValue+"px";
           
            $('#centerKnightBG').css('top', strNewTopValue);
            $('#leftKnightBG').css('top', strNewTopValue);
            $('#acBG').css('top', strNewTopValue);
         });


         $(window).scroll();
         
      });

   </script>
      <?php
      
         
if(constant('LOGGED_IN')) {
            
            
$memberObj = new Member($mysqli);
            
$memberObj->select($_SESSION['btUsername']);
            
$memberInfo $memberObj->get_info();
            
            echo 
"
               <audio id='notificationSound'>
            "
;
            if(
$memberInfo['notifications'] == 0) {
               echo 
"
                  <source src='"
.$MAIN_ROOT."themes/".$THEME."/notification.mp3'></source>
                  <source src='"
.$MAIN_ROOT."themes/".$THEME."/notification.ogg'></source>
               "
;
            }
            
            echo 
"
               </audio>
               "
;
            
            if(
$memberInfo['notifications'] == || $memberInfo['notifications'] == 1) {
               echo 
"
         
               <script type='text/javascript'>
                  var intCountNotificationCheck = 0;
            
                  function checkForNotification() {
            
                     $(document).ready(function() {
            
                        $.post('"
.$MAIN_ROOT."members/include/_notificationcheck.php', { }, function(data) {
            
                           $('#notificationContainer').html(data);
                           
                        });
            
                     });
            
                     if(intCountNotificationCheck < 5) {
                        setTimeout(\"checkForNotification()\", 120000);
                     }
                     
                     intCountNotificationCheck++;
                  }
                  
                  checkForNotification();
               </script>
            "
;
               
            }
         }
         
               
      
?>


     
      <script type='text/javascript'>


         function reloadShoutbox() {
            $(document).ready(function() {

               var strUpdateDiv = "#<?php echo $mainShoutboxObj->strDivID?>";

               
               $.post("<?php echo $MAIN_ROOT?>members/include/news/include/reloadshoutbox.php", { }, function(data) {

                  $(strUpdateDiv).html(data);

               });
   
            });

            setTimeout("reloadShoutbox()", 20000);
         }


         setTimeout("reloadShoutbox()", 20000);
      </script>
     

</body>
</html>

Marshall

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Modify current theme issue
« Reply #2 on: May 27, 2013, 06:06:27 pm »
100% fix!

Thank you so much!

Something else has been bothering me too. its seems whenever players add their birthday in edit profile. Its been set afterwards a day back in time. for example 01/12/1988 will be 30/11/1988.
I figured it had something to do with the timezone as also the time wasnt correct, after some research i found out that that I needed to add Timezone ('Europe/Brussels') somewhere, but I looked hard and was unable to find it in phpmyadmin nor through dreamweaver. I was looking for replacing america/denver as i saw somewhere in another topic in here.
Sorry for going off-topic.

Best regards and thank you again!

PickleKillz

  • Developer
  • Administrator
  • Full Member
  • *****
  • Posts: 110
    • View Profile
Re: Modify current theme issue
« Reply #3 on: May 28, 2013, 07:16:22 pm »
The timezone options such as 'Europe/Brussels' are options in the PHP's primary config file called php.ini.

If you have root access to the server and can edit the php.ini, then open the php.ini and use notepad to search for:
Code: [Select]
date.timezone it will have a default value such as:
Code: [Select]
date.timezone = "Europe/London"
If you need to set it to Europe/Brussels then make the line read:
Code: [Select]
date.timezone = "Europe/Brussels"
Now save the php.ini and restart the server. If the line date.timezone doesn't exist, then simply add it at the top under the starting [PHP] tag.

If you're on shared hosting or have no access to php.ini then you can contact your hosting provider to ask if they are able to edit it for you or if you have a setting for it.

Last resort you can open CS4's _setup.php file and post this:
Code: [Select]
ini_set('date.timezone', 'Europe/Brussels');Directly underneath this:
Code: [Select]
ini_set('error_reporting', 'E_ALL & ~E_NOTICE & ~E_WARNING');

Nuker_Viper

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 456
  • I'll Kill You!
    • View Profile
    • Global Moderator
Re: Modify current theme issue
« Reply #4 on: May 30, 2013, 10:19:29 pm »
I wish there was a way a member timezone would be selected in the profile options. In addition all the posts, pms, and messages would in their timezone.
Bluethrust
Rank: Global Moderator
Website: www.bluethrust.com

LadyWildLife's Endangered Wildlife Website
Rank: Website php/html5 coder
Website: www.ladywildlife.org (R&D)
Website: www.ladywildlife.com (current)

Actcher

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Modify current theme issue
« Reply #5 on: June 22, 2015, 05:04:47 am »
I want to excel in everything I have trained very hard.