Code Snippets
Pieces of code you can use around your site
314 topics in this forum
-
- 1 reply
- 1.6k views
Anyone have the code or know how I can add like something showing our Team Speak Server?
Last reply by servetas, -
- 0 replies
- 1.6k views
I'm sure you've noticed that when you click on an aircraft on the ACARS map the dialog box will disappear when a position update occurs, is there a way to prevent this and simply update the data shown on the box instead?
Last reply by freshJet, -
- 1 reply
- 1.5k views
Does anyone know the code or what I have to do to be able to add notes to the pilot center for the pilots to see?
Last reply by Parkho, -
- 2 replies
- 1.5k views
Hey folks, This is the code for showing the money on your PROFILE page: <?php echo FinanceData::FormatMoney($userinfo->totalpay) ?> I was wondering what is the code for the MAIN PAGE... It is not the same code!
Last reply by Royzzzz, -
- 0 replies
- 1.5k views
I've come up with this little script code for calling outside pages, and/or scripts. There is no Need to fill up the Admin pages section in phpvms anymore. You can create any html page, php, or even a graphic with this little script. Its very simple, fast an doesn't bog down the layout.php page what so ever. I use it hardcore for calling my own custom html or php files within my sites. For those who are even just a little advanced, there is NO limit to what you can create, I use a sub-directory "pages", and/or whatever you decide to call your custom files. As long as the directory is within the folder where your phpvms lives, then again, there is no limit. You do not ha…
Last reply by Heritage1, -
- 0 replies
- 1.5k views
Hello I was digging around in phpvms today and came across the functions for url, actionurl, adminurl etc. So I started thinking, it'd be really handy to have something similar for the skin url. So instead of href="<?php echo SITE_URL?>/lib/skins/crystal/styles.css" you would go href="<?php echo url('styles.css'); ?>" that's much shorter, and also if for some reason you'd want to change the folder of your skin you don't need to recode everything. so I wrote that little function, here it is: function skinurl($path="") { if($path[0] != '/') $path='/'.$path; return SITE_URL.'/lib/skins/'.CURRENT_SKIN.$path; } all you n…
Last reply by mischka, -
- 0 replies
- 1.5k views
How can i make it that the search schedules on the site .../pireps/routesmap on several undersides are indicated. Any help would be great... Regards from Germany
Last reply by AEUfly, -
- 0 replies
- 1.5k views
Hello, with the release 5.5 the ranks are calculated with the totalhours is possible calculate the ranks by totalhours + transferhours? If i put on Dbase the number of totalhours + transferhours when recalculate the ranks the system put only the totalhours Thanks
Last reply by Tato123, -
- 0 replies
- 1.5k views
OK, so I posted a thing about a Login PopUp a while ago, but now I'm stuck. I found this: http://docs.jquery.com/UI/Dialog What the hell do I do? I want it to show after the user has logged in and is being redirected to the profile_main.tpl. What parts of the code on the jQuery tutorial do I need, and where do I put them? Also, I only want this to show once.
Last reply by freshJet, -
- 1 reply
- 1.5k views
Hello, I want to manual submit pilot ranks So I have changed off the rank_auto_calculate to off. No I am wondering if there is a script that will warn all admins when a pilot is reaching the hours needed for promotion. Any help would be appreciated. Rick
Last reply by Heritage1, -
- 1 reply
- 1.5k views
Hello, if i have the function: <?php echo date(DATE_FORMAT.' ', strtotime($data->date)); ?> How is possible show only the Day and not the complete date? Thanks
Last reply by servetas, -
- 0 replies
- 1.5k views
Hi, How would I go about creating a page in the Admin panel of PHPVMS? I understand about adding the link in the nav on the left, but I can't link it up etc. If anybody could help, would be great. Thanks Daniel
Last reply by PlumbBum, -
- 0 replies
- 1.3k views
is it possible to show the vaCentrlal Live Map instead the acars map? i cannot find any code for the vacentral llive map...
Last reply by Melli, -
- 3 replies
- 1.1k views
Hello, I have been searching the forums but I cannot find anything similar to what I am looking for. I was wondering if there may be a bit of code to check if flight bids are currently being flown. Im trying to display a flight status under the bids that are in progress such as "Departed", or "Scheduled Departure" Thanks!
Last reply by ProAvia,