Jump to content

Karamellwuerfel

Members
  • Posts

    91
  • Joined

  • Last visited

  • Days Won

    7

Karamellwuerfel last won the day on February 11 2020

Karamellwuerfel had the most liked content!

4 Followers

Profile Information

  • Gender
    Male
  • Location
    Germany

Recent Profile Visitors

2994 profile views

Karamellwuerfel's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In Rare

Recent Badges

16

Reputation

  1. Hey, does anyone know how to add external Classes to phpvms? I tried to add the folder to the core/common/ folder so it looks like this: Now I want to use this Classes and files in - for example "edit_profile". I added the required files with "require" like this: require __DIR__.'/../../../core/common/elephant.io/Client.php'; require __DIR__.'/../../../core/common/elephant.io/Engine/SocketIO/Version2X.php'; Now, if I refresh the page I got an 500 error (HTTP ERROR 500). How do I include and use the files correctly? Thank you
  2. Hey! I guess you have to do it in a WP plugin instead. This is a phpVMS module and is (I think) not compatible with WordPress. Kind regards, Philipp
  3. Hello, is it possible to create own CodonEvents and then add Listeners to this created event? For example the existing event "bid_added". I want to create a new one "updated_flight". Is there anywhere a Codon documentation? I can't find one. I tried to just Dispatch an event and listen to it but this doesn't work for me... CodonEvent::Dispatch('updated_flight', 'ACARSData', $flight_info); public function __construct() { CodonEvent::addListener('Test', array('bid_added', 'updated_flight')); } public function EventListener($eventinfo) { if($eventinfo[0] == 'bid_added') { //something } if($eventinfo[0] == 'updated_flight') { TestData::test($eventinfo[2]); } } Thanks!
  4. Hello @miniarma, programmically there is always a way to do something Yes. But it's not implemented in this module. Regards.
  5. Hi @Lausitzaircargo, just try the github repo. There is also a documentation in the readme https://github.com/Karamellwuerfel/InstantWeather Have a nice day
  6. Hi @djtiger76, you can use the option to show the weather on a special airport. Get the pilot's hub and insert it in the function. logged in pilot's hub: Auth::$pilot->hub If you guys give me features you like fo this module, I can write a version 2.0 in the next days and give it to you with that requests :-) features (?): display the weather on specific airport display weather on hub of pilot display weather inline, not only on specific url anything else? Thanks! :)
  7. Hey, there's no SSL Certificate on this page I guess - or something else:
  8. I tried with cacars free, smartCARS and kacars. ususally we use smartCARS
  9. Is there a way to increase the interval of updating the acars data on phpvms? I think the current intervall is 15 seconds. Thank you all!
  10. @FSVKenny It's also important not to use the absolute path to the file written by yourself. You can use the magic constants from php to solve this. __DIR__ for example points to the directory of the file you're using this constant. In map_in.php it will be something like include(__DIR__.'/FSV_phpvms/core/codon.config.php'); With this you have a dynamic absolute path.
  11. Wow, thanks for this awesome long explanation! :) I'll try it at home. jQuery says: So I think (in my admin theme I use jquery 3.x) I just have to replace the .live() function? Also I had problems with the "modal" funtion phpvms uses. There are some errors with '.fpq' or something like that. I'll check it later. Thanks again!
  12. Okay - so now after a week no reply. I have done a workaround. got all links from $MODULE_NAV_INC and explode them with PHP into an array on the "<li>" element. create a empty array for save my results loop all $links (first "link" is empty - so check if empty and jump over empty links) for each link I strip the tags and save it as name; and save the link as url I save this array in my result array Now I can loop the result array and use the links and names The code (not the right way I think, but I don't know how to do it in phpvms...): <?php $links = explode("<li>", $MODULE_NAV_INC); $result_array = array(); foreach ($links as $link) { if(empty($link)) continue; preg_match_all('#\bhttps?://[^,\s()<>]+(?:\([\w\d]+\)|([^,[:punct:]\s]|/))#', $link, $match); $res = array( "name" => strip_tags($link), "url" => $match[0][0] ); $result_array[] = $res; } ?> Thanks.
×
×
  • Create New...