-
Posts
1954 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by TAV1702
-
Well, I may just have to leave this be for now. I have tried it a million and one ways and I can not get it. It wont make or break my site, I just kind of like seperate blocks a bit better. I come from using portals on forums so I guess I just got used to it. I'll keep trying as I have time and see how things go. Right now I have nothing setup local to test on as Xammp wont run on my pc for some reason. **EDIT** Ok I was bent out of shape earlier for a few reasons and gave up on this for today. Sooooo since I just found out I do not have to work tomorrow afterall, I am going to get firebug as suggested and mess with this until I am blue in the face. ;D I really do appreciate your guys help on this one trying to help me get my site in shape.
-
this one is login <div id="content"> <div id="content-left"> <center><h3>Game Servers</h3></center> <hr> <table width="100%" border="0" bordercolor="#b30000" align="center" bgcolor=""> <tr> <td width="65%">Game Server</td> <td style="color:lime"><b>Online</b></td> </tr> <tr> <td>TeamSpeak<br>Community IP Address:<br>xxx.xx.xx.xxx:8767</td> <td style="color:lime"><b>Online</b></td> </tr> <tr> <td>ATC Server</td> <td style="color:red"><b>Offline</b></td> </tr> </table> <hr> <center><h3>Users Online</h3></center> <hr> <p><i>There have been <?php echo count($usersonline)?> user(s) in the past <?php echo Config::Get('USERS_ONLINE_TIME')?> minutes.</i></p> <?php /* $usersonline also has the list of users - really simple example Or if you're not on the frontpage: $usersonline = StatsData::UsersOnline(); */ foreach($usersonline as $pilot) { echo "{$pilot->firstname} {$pilot->lastname}<br />"; } ?> <hr> <center><h3>VA Statistics</h3></center> <hr> <p>Total Pilots: <?php echo StatsData::PilotCount(); ?></p> <p>Total Flights: <?php echo StatsData::TotalFlights(); ?></p> <p>Total Flights Today: <?php VastatsData::totalflightstoday(); ?></p> <p>Total Flight Hours: <?php echo StatsData::TotalHours(); ?></p> <p>Total PAX Carried: <?php VastatsData::totalpaxcarried(); ?></p> <p>Total Fuel Burned: <?php VastatsData::totalfuelburned(); ?></p> <p>Total Miles Flown: <?php VastatsData::totalmilesflown(); ?></p> <p>Total Aircraft: <?php VastatsData::totalaircraftinfleet(); ?></p> <p>Total Schedules: <?php VastatsData::totalschedules(); ?></p> <p>Total News Items: <?php VastatsData::totalnewsitems(); ?></p> </div> <div id="content-main"> <h1>Login</h1> <form name="loginform" action="<?php echo url('/login');?>" method="post"> <?php echo "<?xml version='1.0'?>"; ?> <?php if(isset($message)) echo '<p class="error">'.$message.'</p>'; ?> <dl> <dt>E-mail Address:</dt> <dd><input type="text" name="email" value="" /> <dt>Password:</dt> <dd><input type="password" name="password" value="" /> <dt></dt> <dd>Remember Me? <input type="checkbox" name="remember" /></dd> <dt></dt> <dd><input type="hidden" name="redir" value="index.php/profile" /> <input type="hidden" name="action" value="login" /> <input type="submit" name="submit" value="Log In" /> <dt></dt> <dd><a href="<?php echo url('Login/forgotpassword'); ?>">I forgot my password</a></dd> </dl> </form> </div> <div id="content-right"> <center><h3>Recent Reports</h3></center> <hr> <?php MainController::Run('PIREPS', 'RecentFrontPage', 5); ?> <hr> <center><h3>Newest Pilots</h3></center> <hr> <?php MainController::Run('Pilots', 'RecentFrontPage', 5); ?> <hr> <center><h3>Partners</h3></center> <hr> <br /> <center> <a href="http://www.fspassengers.com" target="_blank"><img src="../images/108x35FspBannerPirep2.jpg"></a></img><br /> </center> </div> </div> The other pages were done exactly like this one. All it does is just make the pages look more full and uniform rather than just something on the left side of the screen with a header and footer. Makes the pages look more like the rest of the site.
-
Ohhhh ok I got ya now. I'll take a stab at that one here in a bit. Getting ready to run after some lunch now. I appreciate your replies and help on this one. Thx!
-
I had one addon for firefox. i thought it was firebug but it is web developer. I will go grab firebug to for future useage. Thanks Nabeel.
-
yeah I am not sure. I made no new css classes or anything. Ill give a quick breakdown of how I did it. <div id="content"> <div id="content-left"> <center><h3>Game Servers</h3></center> <hr> <table width="100%" align="center" bgcolor=""> <tr> <td width="65%">Game Server</td> <td style="color:lime"><b>Online</b></td> </tr> <tr> <td>TeamSpeak<br>Community IP Address:<br>xxx.xx.xx.xxx:8767</td> <td style="color:lime"><b>Online</b></td> </tr> <tr> <td>ATC Server</td> <td style="color:red"><b>Offline</b></td> </tr> </table> </div> <div id="content-left"> <center><h3>Users Online</h3></center> <hr> <p><i>There have been <?php echo count($usersonline)?> user(s) in the past <?php echo Config::Get('USERS_ONLINE_TIME')?> minutes.</i></p> <?php /* $usersonline also has the list of users - really simple example Or if you're not on the frontpage: $usersonline = StatsData::UsersOnline(); */ foreach($usersonline as $pilot) { echo "{$pilot->firstname} {$pilot->lastname}<br />"; } ?> </div> <div id="content-left"> <center><h3>VA Statistics</h3></center> <hr> <p>Total Pilots: <?php echo StatsData::PilotCount(); ?></p> <p>Total Flights: <?php echo StatsData::TotalFlights(); ?></p> <p>Total Flights Today: <?php VastatsData::totalflightstoday(); ?></p> <p>Total Flight Hours: <?php echo StatsData::TotalHours(); ?></p> <p>Total PAX Carried: <?php VastatsData::totalpaxcarried(); ?></p> <p>Total Fuel Burned: <?php VastatsData::totalfuelburned(); ?></p> <p>Total Miles Flown: <?php VastatsData::totalmilesflown(); ?></p> <p>Total Aircraft: <?php VastatsData::totalaircraftinfleet(); ?></p> <p>Total Schedules: <?php VastatsData::totalschedules(); ?></p> <p>Total News Items: <?php VastatsData::totalnewsitems(); ?></p> </div> <div id="content-main"> <?php if(!Auth::LoggedIn()) { // Show these if they haven't logged in yet ?> <img src="../images/fsscr070.jpg" height="248" width="398" alt="Thunder Va"/> <h2>Thunder Aviation Virtual</h2> <small> <a href="fleet.htm"></a></small> <p>Welcome To Thunder Aviation Virtual</p> <p>This is the website for the Virtual Airline Thunder Aviation. We fly with Microsoft Flight simulator online at a network called Real World ATC (RWATC). <br /> Do you want to know more? Click <a href="about.htm">here</a>.</p> <p>Regards,</p> <p>Ray Browell<br /> CEO Thunder VA<br /> </p> <?php } else { // Show the News module, call the function ShowNewsFront // This is in the modules/Frontpage folder News::ShowNewsFront(5); ?> <?php } ?> </div> <div id="content-right"> <center><h3>Recent Reports</h3></center> <hr> <?php MainController::Run('PIREPS', 'RecentFrontPage', 5); ?> <hr> <center><h3>Newest Pilots</h3></center> <hr> <?php MainController::Run('Pilots', 'RecentFrontPage', 5); ?> </div> </div> Well, sorry was going to be a quick run down instead I gave the main source. And all of this is on my frontpage_main.tpl file Was I right in saying my div tags are wrong?
-
No I did not modify it at all. Like I said, the only mods I made were to login and forgot password and one more. And all I did was copy my frontpage_main.tpl and replaced the main content with the content from those few pages were applicable so them pages looked full site like the home page. For more info on how I did it, view the skinning tut part 2 where he fixed up the forgot password page. I did it exactly like that. No variations at all.
-
Here ya go. Like I said, I have a real good reason to believe that I am mis placing my div statements. I have had this issue before and could never solve it so I had a guy do it for me. That was mistake number 1 on my behalf. :-[ I have been trying and trying and I am not quite sure why or what I am doing wrong.
-
Sure let me try a little something real quick and I'll post a screenie for you. I am positive I am placing my divs wrong.
-
It may be a bit on the cumbersome side. The airports would show up on site in the form of a drop down menu I'm guessing so one can choose them in admin panel or when filing manual pireps?
-
That actually is a pretty cool idea and would actually give the pilots something to do with their pilot pay.
-
Hey guys, Im sorry for jumping in, but this would be a great feature. I like the pie chart, it is great, but I like text as well.
-
thanks on the css link, and here is my code to see if they are logged in or not and what to show. <?php if(!Auth::LoggedIn()) { // Show these if they haven't logged in yet ?> <insert my page content here if not logged in> <?php } else { // Show the news items only if they are logged in // Show the News module, call the function ShowNewsFront // This is in the modules/Frontpage folder News::ShowNewsFront(5); ?> <?php } ?> Basically, I ripped the code from core_nav.tpl and inserted my own content to it where it says insert my page content here. Like I said though, if it redirects back to myurl/index.php it is fine but if it just goes back to myurl/ the images disappear. And it is not only where I inserted that in place of the news. I have images that are 100% of the time supposed to show up and dont. If this has confused you, I can zip up my files and let you take a peak at them as long as you promise not to laugh at my markup ;D Thanks for the quick reply. I appreciate it.
-
Well, as far as the image thing goes, I will give an example. I have it setup on my front page so that if you are NOT logged in, it shows a picture and some info without any news at all. Once the user logs in, the image on the front page goes away and so does the info, but now the news is there as it should be. I coded it just like the nav where you see this if a guest else see this if you are a logged in member. Now here in lies the issue. All is well until a user logs out. At witch time it goes back to my url http://paranormalinsights.com/phpVMS i did some testing and if the logout function would return me to http://paranormalinsights.com/phpVMS/index.php , then the images do not disappear. So now I'm trying to figure this riddle out. I guess it falls into the same category that I had originally posted about.
-
Hi Nabeel. I followed Rogers tutorial on skinning and I did my forgot password like he did his. Great little tip indeed So I proceeded to do that to a couple other pages as well, like file new pirep and login. Well, on all extra pages (file pirep and login), I get this for users online Warning: Invalid argument supplied for foreach() in /home/xxxxxx/public_html/xxxxxx/lib/skins/Storm/login_form.tpl on line 32 But yet on my home page it works just fine. Thus me not thinking it is a bug but rather a coding error. Problem is, I never changed any code. All I did was copy and paste from my frontpage_main.tpl so there should not be any code errors at all. Also, I am having major issues getting images to stay on my site. I hard code them in and they are there, then they are gone then they come back, then they are gone again. If I put all my images in .css they are there and stay there for good. AND 1 more if I may please. ;D How on gods green earth do I make it so the first letter of my Nav words are capitol instead of lower case? I have changed my core_nav and it is no good. They will not change. I moved that file into my skin by the way.
-
That might be kind of cool actually.
-
Ok that worked out for me on the links. That is what I originally had and scrapped it. Not sure why it didnt work out for me the first try.
-
Thanks Tom! Hopefully I get to work on it again tonight for a little bit. Yeah seperating each item is what I am after. I got it to work, but blocks were everywhere and template busted up badly. I am more than sure it was a div error on my part. ;D I'll give that a try and see how it goes. Thanks again. Ray Oh and do you know of any good drop down menu scripts anywhere that work good with phpVMS?
-
Ok so don't laugh at me. ;D ;D http://paranormalinsights.com/phpVMS I am trying to break each section up into blocks like I have on the left, but each time I try and add a new div or anything, it busts up my template real bad like. I know it is uglier than ape right now. I figure once I get functional worked out, I work on pretty later. This is my first attempt at a skin for phpVMS. Can anyone tell me how to add extra stuff on the sides in blocks without busting up my template.? If needs be I can take a screen shot of what it looks like busted up and show the code so you know what I am up to. Also, notice the links for new pilots and such, they are blue and purple. I use web developer in firefox and try to view css info but it says none found. I have tried and tried in my css to add a link class but to no avail so far.
-
It's pretty sweet man. I like it. Have not got a chance to do much testing on my site today since I upgraded because my net is in bad shape today for some reason
-
I swung by there and checked that out. I like it. Great job!
-
Tried and I like. Much Better. ;D
-
This one dloaded and extracted fine. ;D
-
Ok Ill go grab the newest one. I never got to try that tar lastnight anyhow. I was tired and falling over sideways in my chair.
-
Hi Nabeel. When I try to unzip this I get the following ! C:Documents and SettingsRayMy DocumentsDownloadsphpvms.beta (1).zip: CRC failed in libjsckeditorpluginsspecialchardialogsspecialchar.js. The file is corrupt ! C:Documents and SettingsRayMy DocumentsDownloadsphpvms.beta (1).zip: The archive is corrupt