Jump to content

BBuchanan

Members
  • Posts

    96
  • Joined

  • Last visited

Posts posted by BBuchanan

  1. I'm running a combination of things.

    Not to bad mouth Dafsim, but...

    He used the same software base as vatsim and ivao. Developed a poor gui for it and pushed it out the door. Once people realized how bad it was, they dropped it faster than Vabase (joking of course). But it was bad. If you look at the forums for dafsim, no one knows how to use it, and the poor soul that does, get bombed with emails and questions.

    I'm just like SimPilot. I've had better luck running a setup from Apollo III. But I've had luck with Dafsim as well. I prefer the stuff from Apollo III because its more of a community of people asking and getting help. Those of us that have had success are sharing what we know.

  2. This will show the news on any page you place this code. If you want to show more or less than 5 at a time, just change the number to any one you want.

    <?php
    
    
    
    // Show the News module, call the function ShowNewsFront
    
    //	This is in the modules/Frontpage folder
    
    
    
    MainController::Run('News', 'ShowNewsFront', 5);
    
    ?>

    Thanks Jeff!

  3. Seriously!!!!!

    Please check your facts before posting rubbish.

    There is nothing wrong with kACARS and windows XP, Vista or 7, i have loads of users running it fine.

    The most common problem encountered is that they do not run the application as administrator. If you don't do that it will give you an error.

    This post wasn't meant as a start to an argument. If you wish to speak to me in regards to how I treat software, then pm or email me. By replying to my post, you have since flamed me over a choice. I expected professionals on these forums.

  4. Hey guys,

    I'm not a big skinner, nor a coder. I needed something basic for my website, however, I felt that someone else out there might want to have some fun with it. Screen shots will follow.

    Most of the style editing had to be done in the layout file (told you I'm not a coder). When you unzip it, there's an added folder called extras. You'll find a blank logo png and psd. Also, please edit the layout at the very bottom (this way the footer is correct for your site).

    Edit: Thanks to Roger over at FSPaintShop, I was able to put in the pilot center from his ObsessBlue skin. Thanks Roger.

    Edit the Edit: Corrected to FSPaintShop. Sorry about the typo.

    Pre-Login

    prelogin.png

    Previous-Login

    postlogin.png

    New Post-Login:

    new_post.png

    Gotta add a link to get it:

    bigredone v1.2

  5. Haha, found that this works (yes, I stripped it)

    removed:

    <li></li>
    

    this way I could see only the php coding, then my outcome to get it arranged:

    <a href="<?php echo url('/'); ?>">home</a>
    <a href="<?php echo url('/acars') ?>">Live Map</a>
    <?php echo $MODULE_NAV_INC;?>
    <?php
    if(!Auth::LoggedIn())
    {
    // Show these if they haven't logged in yet
    ?>
    <a href="<?php echo url('/login'); ?>">Login</a>
    <a href="<?php echo url('/registration'); ?>">Register</a>
    <?php
    }
    else
    {
    // Show these items only if they are logged in
    ?>
    <a href="<?php echo url('/profile'); ?>">Pilot Center</a>
    
    <?php
    }
    ?>
    <?php
    if(Auth::LoggedIn())
    {
    if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN))
    {
    	echo '<a href="'.fileurl('/admin').'">Admin Center</a>';
    }
    ?>
    
    
    <a href="<?php echo url('/logout'); ?>">Log Out</a>
    <?php
    }
    ?>
    

  6. Would someone be kind enough, to help me out. All my tries to move:

    <?php
    if(!Auth::LoggedIn())
    {
    // Show these if they haven't logged in yet
    ?>
    <a href="<?php echo url('/login'); ?>">Login</a>
    <a href="<?php echo url('/registration'); ?>">Register</a>
    

    has all ended up the same way. I even checked the documents and started with a blank layout.tpl file (the example listed there). This way I'd know that it wasn't another file that might have been causing it. Well, at least not from the layout.

    What I'm looking to do, is have the navigation as:

    Home

    Pilots

    Live Map

    (space for skin)

    Login (or if already logged in, the other stuff)

    Register

  7. Everytime I try to move the

    <?php
    if(!Auth::LoggedIn())
    {
    // Show these if they haven't logged in yet
    ?>
    <li><a href="<?php echo url('/login'); ?>">Login</a></li>
    <li><a href="<?php echo url('/registration'); ?>">Register</a></li>
    <?php
    }
    else
    {
    // Show these items only if they are logged in
    ?>
    <li><a href="<?php echo url('/profile'); ?>">Pilot Center</a></li>
    
    <?php
    }
    ?>

    I get:

    Parse error: parse error in .....\core_navigation.tpl on line 113

    which is

    <?php
    }
    ?>

    Which, if I remove said line, I get it at line 111, which of course is the end of the file.

    I want to move it below the main navigation, ie. Home, Pilots, Live Map, etc

  8. Considering it's a year and a half old, I wouldn't expect it to still be up...

    The original site isn't, however, the skin is still here ( removed from the forums).

  9. Download that and you'll see why I pasted what I pasted.

    Ok, I see why you had me look at that. And I appreciate the help that I'm getting :-)

    That sql code, can it be put into a class file? Or should it just be labeled whatever.class.php or .tpl?

  10. For the fleet page I use this: http://forum.phpvms.net/topic/1522-fleet-table/ , with a query like this:

    $sql = 'SELECT a.*, a.name AS aircraft,
    				   COUNT(p.pirepid) AS routesflown,
    				   SUM(p.distance) AS distance,
    				   SEC_TO_TIME(SUM(p.flighttime*60*60)) AS totaltime,
    				   AVG(p.distance) AS averagedistance,
    				   AVG(p.flighttime) as averagetime
    				  FROM   '.TABLE_PREFIX.'aircraft a
    					LEFT OUTER JOIN '.TABLE_PREFIX.'pireps p ON (p.aircraft = a.id)
    				  GROUP BY a.icao ORDER BY a.registration';

    in the php page.

    Modules are either on the admin panel or pilot/public side, not both at the same time. You will need to create a separate module for the admin panel.

    Ok, is the .tpl files the seperation?

    Edit: Is there a class or function that's cleaner than pulling direct sql?

  11. I'm not one to do scripting, so if I could get some help, would be great. I'll ask questions regarding what I'm doing in this post.

    First off, how is a module created that shows up in the admin area as well as frontpage? Next, how can I show only 1 of each of the aicraft in the fleet on a page?

    edit: All this is going to be in the same module

  12. He said several months that he is quiting future support due to RW issues.

    http://forum.phpvms.net/topic/3469-no-further-support-from-me/page__p__23709#entry23709

    I suggested this post be removed because the code itself was never released. So, as far as phpvms forums goes, since there's nothing here other than talk about it, this post is just empty space. I don't mean to be rude about it, but why have a post in releases if nothing was released.

    I'm saying delete, so that no one else stumbles along and thinks that someone other than the dev might have it, get their hopes up and waste their time searching for, in all truth, nothing.

  13. sry for my bad english skills..

    mates, unfortunately i'm new in this php thing and I just need a little help. Is there any script that we can use to add more registrations in one aircraft? my va will operate a lot of airlines and its kinda hard to add 20x777's, 56x737's, etc. Someone said to me in this forum I have to add in the database but I dont want mess up the database so how can I do that? does someone have a script to add only registrations for the same type of a/c?

    thanks for your support - take care all - cheers!

    If you have access to phpmyadmin, do this ->

    Ensure you have at least 1 of each of the aircraft you want

    Goto the phpvms_aircraft table

    Select export

    it should download a file called phpvms_aircraft.sql

    Open it with Notepad (I prefer Notepad++)

    Should look similar to:

    
    CREATE TABLE IF NOT EXISTS `phpvms_aircraft` (
     `id` int(11) NOT NULL auto_increment,
     `icao` varchar(4) NOT NULL default '',
     `name` varchar(12) NOT NULL default '',
     `fullname` varchar(50) NOT NULL default '',
     `registration` varchar(30) NOT NULL,
     `downloadlink` text NOT NULL,
     `imagelink` text NOT NULL,
     `range` varchar(15) NOT NULL default '0',
     `weight` varchar(15) NOT NULL default '0',
     `cruise` varchar(15) NOT NULL default '0',
     `maxpax` float NOT NULL default '0',
     `maxcargo` float NOT NULL default '0',
     `minrank` int(11) NOT NULL default '0',
     `ranklevel` int(11) NOT NULL default '0',
     `enabled` smallint(6) NOT NULL default '1',
     PRIMARY KEY  (`id`)
    ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=75 ;
    
    --
    -- Dumping data for table `phpvms_aircraft`
    --
    
    INSERT INTO `phpvms_aircraft` (`id`, `icao`, `name`, `fullname`, `registration`, `downloadlink`, `imagelink`, `range`, `weight`, `cruise`, `maxpax`, `maxcargo`, `minrank`, `ranklevel`, `enabled`) VALUES
    (1, 'H500', 'AH-6F', 'MD Little Bird', '444', '', '', '232 nm', '1591 lbs', '135 kn', 6, 1509, 9, 4, 1),
    (2, 'B06', 'KIOWA OH-58', 'Bell Kiowa OH-58', '31010', '', '', '481 km', '1583', '102', 2, 1500, 9, 4, 1);
    

    Mind you I've edited some of the code for sanity reasons...

    Copy the first line, paste it below the second line. Make sure you paste it enough times to ensure you have enough of that aircraft

    So, if I wanted 3 H500's

    INSERT INTO `phpvms_aircraft` (`id`, `icao`, `name`, `fullname`, `registration`, `downloadlink`, `imagelink`, `range`, `weight`, `cruise`, `maxpax`, `maxcargo`, `minrank`, `ranklevel`, `enabled`) VALUES
    (1, 'H500', 'AH-6F', 'MD Little Bird', '444', '', '', '232 nm', '1591 lbs', '135 kn', 6, 1509, 9, 4, 1),
    (2, 'B06', 'KIOWA OH-58', 'Bell Kiowa OH-58', '31010', '', '', '481 km', '1583', '102', 2, 1500, 9, 4, 1);
    (1, 'H500', 'AH-6F', 'MD Little Bird', '444', '', '', '232 nm', '1591 lbs', '135 kn', 6, 1509, 9, 4, 1),
    (1, 'H500', 'AH-6F', 'MD Little Bird', '444', '', '', '232 nm', '1591 lbs', '135 kn', 6, 1509, 9, 4, 1),
    

    Make sure to change the extra 1's or you'll get an error. Also, change the registration (in my case 444)

    INSERT INTO `phpvms_aircraft` (`id`, `icao`, `name`, `fullname`, `registration`, `downloadlink`, `imagelink`, `range`, `weight`, `cruise`, `maxpax`, `maxcargo`, `minrank`, `ranklevel`, `enabled`) VALUES
    (1, 'H500', 'AH-6F', 'MD Little Bird', '444', '', '', '232 nm', '1591 lbs', '135 kn', 6, 1509, 9, 4, 1),
    (2, 'B06', 'KIOWA OH-58', 'Bell Kiowa OH-58', '31010', '', '', '481 km', '1583', '102', 2, 1500, 9, 4, 1);
    (3, 'H500', 'AH-6F', 'MD Little Bird', '434', '', '', '232 nm', '1591 lbs', '135 kn', 6, 1509, 9, 4, 1),
    (4, 'H500', 'AH-6F', 'MD Little Bird', '424', '', '', '232 nm', '1591 lbs', '135 kn', 6, 1509, 9, 4, 1),
    

    Now, do the same with the second aircraft.

    lastly, make sure the last line has ; after the ) otherwise it could cause problems.

    Also make sure to start where your database leaves off, so if the last aircraft in the database is 70, then

    INSERT INTO `phpvms_aircraft` (`id`, `icao`, `name`, `fullname`, `registration`, `downloadlink`, `imagelink`, `range`, `weight`, `cruise`, `maxpax`, `maxcargo`, `minrank`, `ranklevel`, `enabled`) VALUES
    (71, 'H500', 'AH-6F', 'MD Little Bird', '444', '', '', '232 nm', '1591 lbs', '135 kn', 6, 1509, 9, 4, 1),
    (72, 'B06', 'KIOWA OH-58', 'Bell Kiowa OH-58', '31010', '', '', '481 km', '1583', '102', 2, 1500, 9, 4, 1),
    (73, 'H500', 'AH-6F', 'MD Little Bird', '434', '', '', '232 nm', '1591 lbs', '135 kn', 6, 1509, 9, 4, 1),
    (74, 'H500', 'AH-6F', 'MD Little Bird', '424', '', '', '232 nm', '1591 lbs', '135 kn', 6, 1509, 9, 4, 1);
    

    Go back to phpmyadmin, select the phpvms_aircraft table, then the SQL tab, copy from INSERT all the way to ;

    Click go, and it'll tell you either error or success.

    Good luck, hope it helps.

  14. I post this to everyone, especially virtual airline operators (I'm not asking to company secrets):

    What method is used for training? Do you have documentation with flights? Or is there some hidden training secret that no one's supposed to know?

    Also, related to training:

    Is there a module or feature that can track training ops? Like a group inside of phpvms specifically for training?

    I don't want to make a new thread for this:

    Is it possible to strip phpvms down to just the code? No skin, just plain simple files to include into a website? Example:

    create a website that calls the functions of phpvms?

  15. Ok, so in the main. tab via admin, you'll find this:

    php -f /home/.../public_html/admin/maintenance.php

    (... for my sanity)

    Cpanel cron setup:

    Minute Hour Day Month Weekday

    02:00 * * *

    Except one final part:

    Cron field not formatted correctly.

    So, learning from my mistakes, I went in search of that it meant. For those that aren't tech savy, the minute place must have something there. Can't be blank. Just thought I'd share.

  16. I know I know, someone's sure to say I'm asking too many questions :-P

    Anyhow, is there a way to integrate or add in the SMF forums ssi? I'd rather post news in the forums and have them show up on the website (instead of the built in news). I've tried and I get a ssi error. Go ahead and yell at me for it, but I added the require ssi.php to the htmlhead.tpl and the code for the board on the frontpagemain.tpl .

    I'm not going to run it, cause as I said, it throws an error and I'd really like my website up instead of the error.

    Thanks ya'll.

  17. You can add then as group names like i have,

    So all event awards start with Events all flight awards start Flight all exams start Exams etc then all you need to do is order the output in the awards.dataclass.php file.

     /**
        * Get all awards
        *
        * @return mixed array of objects
        *
        */
       public static function GetAllAwards() {
           $sql = 'SELECT * FROM ' . TABLE_PREFIX . 'awards ORDER BY name ASC';
           return DB::get_results($sql);
       }
    

    Thank you.

  18. Hi,

    since the "Table-View" for my fleet did not look as I expected, I wrote another template.

    Maybe someone can get use of it.

    fleet_table.jpg

    If someone asks for aid, sorry guys. I'm also just an average programmer ;-)

    I will help as much as I can.

    Overwrite existing file in /core/templates

    Regards and Happy landings.

    I just noticed that no one said thanks to this person for uploading his template for us to use or modify. Thank you bud.

    • Like 1
  19. Greetings,

    I was kinda upset that I didn't get to join the original Virtual Army. So, I decided to open a group, similar, but highly different.

    Features:

    Pirep - Automatic via IVAO or Vatsim

    Kacars, FSAcars, FSFK compatible

    Forums

    Knowledge Base documentation

    Wings/Division (Historic with updated airframes)

    Pilot Pay

    Ranks / Medals

    more to come....

    I'd like to invite everyone interested.

    US Army Virtual Website

    Add:

    Ranks match real-world counterpart (also, ranks are not earned based on hours, but actual effort)

    Airline code matchs real-world counterpart

    Charter flights register as Mil Flights

    Exam Center

    Pilot Shop

×
×
  • Create New...