Jump to content

Jeff

Members
  • Posts

    1307
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Jeff

  1. That code works fine on my site. I don't use that template, so cannot explain the reason it is showing the error. Is there a frontpage_main.tpl or is it just the layout.tpl?
  2. Not too hard, unless the Pilot Manager is nowhere near an internet connection. Sorry, had to throw some humor in these forums.
  3. It doesn't matter to me which to use.
  4. I could never get the pagination installed in my schedule_results.tpl. If there is someone willing to hep me get this installed and working, I am willing to create custom schedule pages. Please PM me if interested. Thanks
  5. Tom is correct. The "a" in this case, is pointing to a link (<a href="www.mylink.com"></a>). The HTML reading the css for "a" will be using what is in the css. You can only use functions that are recognized as Tom posted above. What you could do is create another css rule so a different link can follow it. I would recommend that you place this in a css file, and not your template.
  6. Place this where you want the news to show on your site (not in Admin) <?php // Show the News module, call the function ShowNewsFront // This is in the modules/Frontpage folder MainController::Run('News', 'ShowNewsFront', 5); ?>
  7. Jeff

    logo

    Eddie is correct. It can take a few days for it to work. You can try this I posted a while back. Favicon
  8. I was mainly talking about Chrome's "Inspect Element" function when you right-click. I haven't seen that before with Firefox or IE.
  9. I totally agree with you Joeri. I, personally don't mind if there is something on my site that people want. If they would just come up to me and ask for it, I'm sure there is something that could be done to give them something identical or similar. When I started One World Virtual 2 years ago, I didn't know squat about php, css, and HTML. As time progressed, I started to understand the way these functions work. There is still a lot more I can learn, but I know the basics. I learned my lesson earlier this year about copying other people's work (Phoenix VA). I accepted my wrong doing publicly in these forums (and PVA staff), and learned to do things myself. I am not a big fan of these web browsers allowing people to be able to see peoples' secure files. Isn't that the reason we have the .htaccess file in the first place? There has to be a way around being able to rip off people's designs, and mreo yet, scripts that are paid for by the original user. That's my two cents worth - back to designing. Jeff VirtualFlightZone.net
  10. That makes more since than the way I was trying to do it. Thanks Iain
  11. Thanks guys. Also, I'd like to say, "Please do not PM or ask me for the coding for my schedule_results and schedule_details templates, as I am not giving that info out. Everything you need to make yours similar to mine can be found in here and from Google". And finally, I will not be making anymore pages for anyone that won't try to do it themselves. I am always willing to help out in any way possible,as most of you all know, but I will no longer do it for you. If you are interested in knowing how I did something on my website, I can point you to the forum post or website that I got the information from. Other than that, please be considerate and try to do it yourself first before asking me. If you do ask, post in the SUPPORT section, so everyone can benefit from it. If it is something that I'd like to share, I'll post the answer. I will not give support via PM.
  12. Dave, I've never used anything like this before. Can you give me an example on how to pull data out and place it in a table. Say if I wanted to know the pilot, flight number, dep/arr airport, and altitude?
  13. I think I misunderstood you. I think you are wanting to show the pie chart of the pilot, correct? I don't think you can place that in the pilot_public_profile.tpl, as I could never get it to work for me. Unless someone else has an idea on how to achieve it.
  14. This is the original code for the pilot_public_profile.tpl see if it works now. <?php if(!$userinfo) { echo '<h3>This pilot does not exist!</h3>'; return; } ?> <h3>Profile For <?php echo $userinfo->firstname . ' ' . $userinfo->lastname?></h3> <table> <tr> <td align="center" valign="top"> <?php if(!file_exists(SITE_ROOT.AVATAR_PATH.'/'.$pilotcode.'.png')) { echo 'No avatar'; } else { echo '<img src="'.SITE_URL.AVATAR_PATH.'/'.$pilotcode.'.png'.'" alt="No Avatar" /> '; } ?> <br /><br /> <img src="<?php echo $userinfo->rankimage?>" alt="" /> </td> <td valign="top"> <ul> <li><strong>Pilot ID: </strong><?php echo $pilotcode ?></li> <li><strong>Rank: </strong><?php echo $userinfo->rank;?></li> <li><strong>Total Flights: </strong><?php echo $userinfo->totalflights?></li> <li><strong>Total Hours: </strong><?php echo Util::AddTime($userinfo->totalhours, $userinfo->transferhours); ?></li> <li><strong>Location: </strong> <img src="<?php echo Countries::getCountryImage($userinfo->location);?>" alt="<?php echo Countries::getCountryName($userinfo->location);?>" /> <?php echo Countries::getCountryName($userinfo->location);?> </li> <?php // Show the public fields if($allfields) { foreach($allfields as $field) { echo "<li><strong>$field->title: </strong>$field->value</li>"; } } ?> </ul> <p> <strong>Awards</strong> <?php if(is_array($allawards)) { ?> <ul> <?php foreach($allawards as $award) { /* To show the image: <img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" /> */ ?> <li><?php echo $award->name ?></li> <?php } ?> </ul> <?php } ?> </p> </td> </tr> </table> <?php /* Added in 2.0! */ $chart_width = '800'; $chart_height = '250'; /* Don't need to change anything below this here */ ?> <div align="center" style="width: 100%;"> <div align="center" id="pireps_chart"></div> </div> <script type="text/javascript" src="<?php echo fileurl('/lib/js/ofc/js/swfobject.js')?>"></script> <script type="text/javascript"> swfobject.embedSWF("<?php echo fileurl('/lib/js/ofc/open-flash-chart.swf');?>", "pireps_chart", "<?php echo $chart_width;?>", "<?php echo $chart_height;?>", "9.0.0", "expressInstall.swf", {"data-file":"<?php echo actionurl('/pilots/statsdaysdata/'.$userinfo->pilotid);?>"}); </script>
  15. The other code goes in the pilot_public_profile.tpl Then you should be able to see the awards for other pilots. There are two templates that show stats for pilots. 1. profile main.tpl: This is what the member only sees. 2. pilot_public_profile.tpl: This is what non-members can see about a pilot.
  16. After 2 years, I thought I'd finally show off my site. www.virtualflightzone.net Don't forget to view the Link Removed The skin was made by: mseiwald
  17. You can do what I did, and create a page (from your Admin Center) called Videos. Then paste this code as your source. <table> <thead width="100%" align="center"> <th>Name of Video #1</th> <th>Name of Video #2</th> </thead> <tbody> <td><iframe width="455" height="300" src="youtubelink" frameborder="0" allowfullscreen></iframe></td> <td><iframe width="455" height="300" src="youtubelink" frameborder="0" allowfullscreen></iframe></td> </tbody> </table> <table> <thead width="100%" align="center"> <th>Name of Video #3</th> <th>Name of Video #4</th> </thead> <tbody> <td><iframe width="455" height="300" src="youtubelink" frameborder="0" allowfullscreen></iframe></td> <td><iframe width="455" height="300" src="youtubelink" frameborder="0" allowfullscreen></iframe></td> </tbody> </table> Find the video you want to post and paste the link to the video to where it says "youtubelink" in the code. Change the Title name for the video you are posting. Change the video size to fit your template. There you go.
  18. You should be able to do that. I would think that you would need to know what pulls the PC in Brilliance (code, css, and java) and integrate that in your other template.
  19. I would go with "The Gaffer's" comment, as I think this would be the best way around it. It could be categorized by the following: Under 25 members 25 - 50 members 50 - 100 members 100 - 200 members 200+ members
  20. Actually, everything looks okay on your site, except one thing. It looks like you placed the "Passenger and Freight Service" information in the layout.tpl You should place this in the frontpage_main.tpl That way all your pages won't show that information. You Live Map needs to be shrunk in order to fit the page. To do that, open the local.config.cfg file and change the dimensions of the Acars map to fit your template.
  21. DOMINICAN - You have three posts in three different Skin topics TODAY. It is going to be real hard for us to help you, if you can't make up your mind.
  22. core_navigation.tpl or in your layout.tpl
  23. I'm going to butt in here since we are on the same subject. I am having a slight problem getting a space between my menu and the body of my site. It is like this for the whole site. anyone have any suggestions on what to add after the menu to have the rest of the Body to be normal again? Nevermind, I got it resolved. I just added a few <br/>'s in there.
×
×
  • Create New...