Jump to content

Nabeel

Administrators
  • Posts

    8149
  • Joined

  • Last visited

  • Days Won

    39

Everything posted by Nabeel

  1. That means there was an error... if you view source on the page, then goto the bottom-ish, you'll see: {"data-file":" And URL after it - just load both those URLs in the browser... there will be some errors, if you can paste those
  2. Hmm, are any files changing? What's the last changed date? Did they ever work?
  3. 775 or 777. I think under maintenance options, there's a link to reset signatures
  4. Just import the SQL file. I'll have more instructions soon.
  5. Nabeel

    phpVMS Logo

    I like it! Needs a sexier font though, but I definitely like the plane
  6. Is the lib/signatures path writable? How about all the files/folders in it? And are all of them blank?
  7. Nabeel

    phpVMS Logo

    That ones cool! I like the NY NY touch
  8. Any schedule? Can you tell me what you entered? I couldn't duplicate this when someone reported it before
  9. Nabeel

    phpVMS Logo

    I like that idea though
  10. Hmm, try reuploading /lib/js.
  11. Nabeel

    phpVMS Logo

    Oh, I do, sorry, came across wrong.. A little more "Web 2.0 ish"
  12. Nabeel

    phpVMS Logo

    That actually looks almost exactly like and old one I did!
  13. Hmm, I'm not sure, Chrome should have some facility for that, I'd have to look
  14. Nabeel

    phpVMS Logo

    So I'm trying to do a little update on the site design, but I'm horrible with logos. Anyone want to take a spin on the current logo design and 'spruce' it up a bit?
  15. Check the firefox error console for errors, that's the first place. When did it stop working?
  16. WOW it's down to zero! I wonder why that phpvms.form.js started behaving now
  17. Oh ok, gotcha!
  18. No prob. BTW, you don't need this line: $sql = " SELECT COUNT(pilotid) as total, location FROM phpvms_pilots GROUP BY location LIMIT 0, 9999999 ";
  19. What'd you do? Did you run the recount? This query should fix it.. UPDATE phpvms_pilots p SET totalpireps = (SELECT count(*) from phpvms_pireps WHERE pilotid=p.pilotid); Backup before you run it though.
  20. Don't put this in quotes: echo 'Countries::getCountryName($userinfo->location) '; It should be: echo Countries::getCountryName($country->location);
  21. Woops! Fixed it. That'll only be on FSFK PIREPs To fix for now, open core/common/PIREPData.class.php line 360: $data = unserialize($row->rawdata); Change to: $data = $row->rawdata;
  22. I think its Countries::getCountryName($country->location)
  23. Nabeel

    stats date

    Well you added that manually, right? Just make a new file in /core/common called CustomData.class.php and in it put class CustomData { // paste your function } Then just call it CustomData::ActivePilots();
  24. Ah one of the groups you selected is probably empty
  25. I think the query for that will be something like: SELECT COUNT(pilotid) as total, location FROM phpvms_pilots GROUP BY location mysql> SELECT COUNT(pilotid) as total, location FROM phpvms_pilots GROUP BY location; +-------+----------+ | total | location | +-------+----------+ | 1 | | | 7 | AF | | 1 | AT | | 2 | AU | | 18 | BE | | 1 | BF | | 1 | BG | | 2 | BR | | 4 | CA | | 1 | CV | | 3 | DE | | 1 | DK | | 1 | ES | | 3 | FR | | 9 | GB | | 1 | GR | | 1 | HU | | 2 | IE | | 3 | IT | | 2 | NL | | 1 | NZ | | 2 | PL | | 3 | PT | | 1 | RO | | 1 | SE | | 1 | SG | | 7 | US | | 1 | ZA | +-------+----------+ 28 rows in set (0.00 sec) You can then loop through that list: $country_info = DB::get_results('SELECT COUNT(pilotid) as total, location FROM '.TABLE_PREFIX.'pilots GROUP BY location'); foreach($country_info as $country) { echo '<img src="'.Countries::getCountryImage($country->location).'" /> ('.$country->total.')<br />'; } That should give you the basics...you'll have to table-ize it and everything.
×
×
  • Create New...