Jump to content

CitationCJ

Members
  • Posts

    21
  • Joined

  • Last visited

Posts posted by CitationCJ

  1. Works exactly like it is supposed to, thanks! B)

    Now I only need to change sunday to monday (i.e. 7->0 in php).

    I tried using the code that already comes with phpvms, however the results still show up on the wrong days.

    $route->daysofweek = str_replace('7', '0', $route->daysofweek);
    

    Best,

    Pierre

  2. Hey CitationCJ,

    I managed to find this somewhere on these massive forums a while back

    <tr>
     <?php
     // We are gonna loop each day of the week
     for($dayofweek = 0; $dayofweek < 7; $dayofweek++)
     {
    		 // echo our column opening
    		 echo '<td>';
    
    		 // Check if $i (the current day of week) exists
    		 if(substr_count($route->daysofweek, $dayofweek) > 0)
    		 {
    				 // there is a flight for sunday , so echo that plane icon out
    				 echo 'imagehere';
    		 }
    
    		 // Close that column
    		 echo '</td>';
    
     }
     ?>
    </tr>
    

    Feel free to edit the code as required (e.g. removing <td>/<tr> is not in table, etc.)

    Pseudo code I believe

    Thank you!

    I will give this one a try when I get back home.

    Cheers,

    Pierre

  3. Thanks simpilot for the answer.

    What I am trying to do is having a table showing MON-SUN and if the route is flown on Monday (1) only, an image will appear in the respective field under MON and the rest of the table will show nothing.

    So if a route is flown on MON and TUE, the image will appear under MON and TUE only :)

    Thanks in advance

    Pierre

  4. Hey guys

    I tried using this code to display an image on the day the flight is flown:

    <?php  if($route->daysofweek == 1)
    {
    echo'imagehere' ;
    }
    ?>
    

    Now, if I want to display a empty entry if there is no flight on that day, I will use this:

    <?php  if($route->daysofweek == 1)
    {
    echo'imagehere' ;
    }
    else
    {
    echo'';
    }
    ?>
    

    For some reasons, this isnt working and its either showing nothing or the image shows up even though there is no flight on Day 1.

    Does anyone have a quick fix for this?

    Thanks in advance and have a good sunday.

    Pierre

  5. Hmm, I don't have any other good suggestions. Maybe have a look at your .htaccess file? Also, have you recently installed a plugin? Try deleting all contents of frontpage_main.tpl and load the homepage without anything on there.

    Thank you!

    I haven't installed any plugin recently. In fact, it worked and when I tried to check the site again a few days ago, I stumbled across the problems.

    I will try to upload phpvms in a different folder later and give it a second go. The first try didn't load the install.php .

    Best,

    Pierre

  6. I see the other pages work: http://www.jetluxemb...index.php/login

    Open up frontpage_main.tpl and that's where your problem will be. Maybe you recently added a code that was a little wrong. My suggestion is to just override with the default frontpage_main.tpl, and rebuild from there(Unless you have a functional backup)

    Thanks guys for the replies!

    The thing is, I haven't touched the code in a few months I guess.

    When I try to access the admin site in the browser, it gives me a blank site as well. I can login, but it then refers to a blank side.

    I uploaded a fresh download to a new folder on my server. The check function works and shows all documents are fine, however the install.php also gives me a blank page. I believe it has to do with my server then?

    Thanks and cheers,

    Pierre

  7. Hey everyone,

    I did exactly what Iain said, but it won't display the image in the background.

    Here is some code:

    <style>
    /* Some integrated styles here, for the popup */
    .boardingpass {
    font-family: Tahoma, Verdana;
    font-size: 14px;
    background-image: url(images/boardingpass.png)
    }
    

    I put the image in the.boardingpass class and also moved the template file into my skins folder.

    Does anyone has a solution?

    Thanks in advance :)

  8. Done that. It was a faulty .htaccess file. I guess my webhosting does only allow a few rules in the .htaccess.

    I got it installed and now I get this error message in the admin panel:

    Notice: The template file "/is/htdocs/wp11069230_GOH1PQF13E/www/base//admin/lib/layout/header.php" doesn't exist in /is/htdocs/wp11069230_GOH1PQF13E/www/base/core/classes/TemplateSet.class.php on line 231

    The pilot panel looks just fine though and everything seems to work.

  9. Hey everyone,

    I just uploaded phpVMS onto my server, granted all permissions, set up the database. When I want to enter the install/directory, it gives me this error:

    The script could not be executed correctly.

    Common causes might be that the file was uploaded in a non-ASCII format or the path to the interpreter (e.g.: #!/usr/bin/perl) is missing or set incorrectly.

    I am using paid hosting, uploaded the files via Dreamweaver and FileZille to check but still get the error.

    Can someone help me please?

    On a second thought, I am missing the local.config file?

    Thanks in advance and have a great day!

    Pierre

×
×
  • Create New...