Jump to content

RogerB

Members
  • Posts

    904
  • Joined

  • Last visited

Everything posted by RogerB

  1. I am trying to use a "user online script I found.......Being that I just just spent the last 3 hours searching for an answer, I am posting here. All you have to do is use the "include" function to make it appear, but, it totally jacks up the phhpvms code when you add it(you can't view pages, no other php code will show) things like that.. Here is the code, see if any of you spot a problem. <?php //Script created by janssens.org.uk under the GNU GPL //For help with this please go to: http://janssens.org.uk/repository/php/php-user-online-script/ //Database variables $server = "localhost"; // Your MySQL Server address. This is usually localhost $db_user = "****"; // Your MySQL Username $db_pass = "******"; // Your MySQL Password $database = "******"; // Database Name //Customizations $timeoutseconds = "300"; // How long it it boefore the user is no longer online //Only one person is online $oneperson1 = "There is curently"; //Change the text that will be displayed $oneperson2 = "person online."; //Change the text that will be displayed //Two or more people online $twopeople1 ="There are currently"; //Change the text that will be displayed $twopeople2 ="people online."; //Change the text that will be displayed //The following should only be modified if you know what you are doing if($_SERVER['HTTP_X_FORWARDED_FOR']){ $ip=$_SERVER['HTTP_X_FORWARDED_FOR']; } else{ $ip=$_SERVER['REMOTE_ADDR']; } $scripturl = $_SERVER[’PHP_SELF’]; $timestamp=time(); $timeout=$timestamp-$timeoutseconds; mysql_connect($server, $db_user, $db_pass) or die ("Error: Unable to connect to MySQL"); mysql_db_query($database, "INSERT INTO online VALUES ('$timestamp','$ip','$scripturl')") or die("Error: Can't insert data into database'"); mysql_db_query($database, "DELETE FROM online WHERE timestamp<$timeout") or die("Error: Unable to delete old entries from the database"); $result = mysql_db_query($database, "SELECT DISTINCT ip FROM online WHERE file='$scripturl'") or die("Error: Unable to select entries in the database"); $users = mysql_num_rows($result); mysql_close(); if ($users==1){ echo"<font size=1>$oneperson1 $users $oneperson2</font>"; } else{ echo"<font size=1>$twopeople1 $users $twopeople2"; } ?>
  2. Now that you mention it, I noticed that the other day. Its not sending the email.
  3. You can also try google.............
  4. Nabeel, it echos the "no bids have been made" output, thats all...........
  5. It doesn't work on my test site either.
  6. I will try this on my test site.
  7. When I go directly to the module, "index.php/FrontBids" I get nothing there either.
  8. yeah I checked all that, nothing. Not sure what could be wrong.
  9. You can view mine on the front page, no glory yet. I used the code Nabeel fixed and your module but no luck. did you change anything??
  10. Of course the purchase price would be a one time fee. But for charter airlines like myself we are not simulating purchases as that isn't very realisitc, we are being charged per flight hour for aircraft.
  11. I spoke with Nabeel about this and thought I would run it by the PHPVMS community. I want to have a field or fields for the aircraft. When you add aircraft you would have either a one time purchase field or a lease field that would charge per flight hour. What do you guys think?
  12. That is wrong captain: <?php if(!file_exists(SITE_ROOT.AVATAR_PATH.'/'.$pilotcode.'.png')) { echo 'No avatar'; } else { echo '<img src="'.SITE_URL.[glow=red,2,300]THIS IS WHERE YOUR IMAGE GOES[/glow].'/'.$pilotcode.'.png'.'" alt="No Avatar" /> '; } ?>
  13. Ok, It still doesn't work for me at all, it never shows a bid.
  14. you put your image in this line: echo '<img src="'.SITE_URL.YOUR_IMAGE_GOES_HERE.'/'.$pilotcode.'.png'.'" alt="No Avatar" /> ';
  15. RogerB

    Financials

    I am going to kill you...... ;D I have had the same expenses all months. I have some per flight and some monthly......The only expense that ever shows is the monthly.
  16. RogerB

    Financials

    Expenses I added threw the system. When I view my va financial reports it shows only one in the chart.
  17. I have noticed that when you look at the financial reports I am only seeing one of my expenses in the chart. Could you explain how this works Nabeel?
  18. Here is what he sent, sorry about that. <style type="text/css"> <!-- .style2 { font-family: Arial; font-size: 10px; } --> </style> <?php if(!$lastbids) { echo 'No bids have been made'; return; } foreach($lastbids as $lastbid) { $pilot_info = PilotData::GetPilotData($lastbid->pilotid); echo $pilot_info->firstname; ?> <p class="style2"><?php echo $lastbid->bidid . ' - ' . $lastbid->code.$lastbid->flightnum.' - '.$lastbid->depicao.' to '.$lastbid->arricao?> </p> <?php } ?>
  19. I removed the font code, but this is it. <?php if(!$lastbids) { echo 'No bids have been made'; return; } foreach($lastbids as $lastbid) { $pilot_info = PilotData::GetPilotData($lastbid->pilotid); echo $pilot_info->firstname; ?> <?php } ?>
  20. OK, I showed what you had done to Nabeel, he corrected it as there were many mistakes. I will post when I get time.
  21. Yeah, I had a look Karl. I will give it a shot! Lord help us all!! LOL
  22. That would be great if this works, I use SMF also.
  23. I noticed in your code you use last bids?? I tried switching it to just bids, but no go. This doesn't work at all for me.
  24. Last I checked it was still doing it........
  25. This doesn't work at all for me.
×
×
  • Create New...