-
Posts
1954 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by TAV1702
-
Thanks. I really do appreciate it. As I said this one has been aching my back side for days now. Maybe one of these years I will get this phpVMS code figured out.
-
Adding Images To Replace Text Links In Pilot Center
TAV1702 replied to Thomas Rozanov's topic in Support Forum
Well, it wasn't so much incorrect. If someone ran that by me I would know exactly what they meant and maybe I took that for granted. And I did tell him to put the image tag inside a a href tag which is the link when I said just place the image tag where the text is at. Maybe I took that for granted as well, but it was not incorrect. Thanks for pointing out my short comings on communication skills. I appreciate the public lesson the very same as I was doing for him when I pointed out to look at the default Crystal skin for examples. There is an old saying that goes, "Give a man a fish and he will eat for a day, Teach a man to fish and he will eat for life". Kinda what I was after in that one. Have a great day. -
That returns 0000 as the pilot ID and nothing for the name. Do I need to add a foreach() or something somewhere maybe? At one point in time I did have it producing what I wanted, except when clicking the ID number it went to a page that said Pilot Does Not Exist. If I can get it to reproduce that I will and let you know what code I used.
-
Hi Vansers. Let me try that and see how it goes. Maybe I had a typo when I tried it but that looks exactly like I tried it from day one. I will come back and let you know how it goes. Thanks a bunch! Ray
-
Hey Mark1million, I have updated several files and the read me file. I will zip it up when I am done working on this some more tonight. Once I do zip, I will give you a link to grab and look over the files and you can attach here if you wish. I have made several changes since yesterday when you re uploaded the file. Ray
-
go into root/lib/skins/obsessBlue and look for the styles.css or something similar. in there you will find the color codes like #0000FF or something like that. What you need to do is know and understand what it is you are looking for first. Go into your tpl file that you wish to edit and look in the div for a class or ID. Say for example it is header. You would get in the css file and look for header. There you will find all of the css that defines the header class or ID and that is what you alter. Here is a great link to help understand CSS styling. w3 Schools have fun. Once you see it you will know how simple it is to change colors.
-
Adding Images To Replace Text Links In Pilot Center
TAV1702 replied to Thomas Rozanov's topic in Support Forum
Simply insert an <img src="images/yourimage.jpg" etc etc"> Image tag in place of the text. Obviously the etc etc I added is your alt and title tags or what ever else you want to put in like size or something of the such. There are several places in the default Crystal skin that use images as links. You can get a REALLY good idea of how to do it by looking at those. What you are looking to do is REAL simple. -
Ok guys. It is once again time for me to make my self look real stupid which I am pretty good at doing. All I am trying to do is insert a pilots ID and First and last name in a table. The Pilot ID should be a link to his or her own public profile while the first and last name are merely that, just a name (no link). I have tried every single code I can until I have been blue in the face for 4 or 5 days now and still no good. I simply can not figure out how to get that code or where it comes from. I have consulted many php readings and all of it is different then we use here it seems. So I figure after almost a week of trying it was time to ask. I hate to ask for help 5 minutes in to having a problem. I prefer to try to help my self, but this time I fell short in my quest. Any help would be gladly accepted and very much appreciated at the same time. Ray
-
I am on FS9. I'm one of the ones that refuse to upgrade for various reasons.
-
Loosing the hubs is the least of my worries. It is a dev site that only has me and the old lady on it anyhow. I could always manually remove the ones I already have from the "List O' Airports".
-
Any of you sql wizards know if there is a way to make it skip entries that exist already instead of stopping? At most all I can get in is 58 airports. Before trying to run this I had only like 30 in my DB. I suppose I could drop all my airports and start from scratch since it is a dev site anyhow. I hate to do that though due to schedules I already have that I do fly with for testing purposes.
-
+1 to Simpilot's answer. If you are new to using this module, you might opt to get rid of the news on your home page then. This module is real nice because it shows the news as links instead of taking up VERY valuable room on a VA's home page. There is really no point in having the news on your home page twice right? And yes I agree, it is a great module.
-
I've got a few more updates too on this one. First off, we all know of the old error when viewing the shop admin overview. This only happens if you leave anything blank when creating your shop types and all. You must include an image and description or it errors out on the admin overview as well as the pilot shop home page where images of products purchased are supposed to appear. If you include all info when setting up shops and products, this error will not result. We need to code it so that if it is missing info, it will give the admin an error and tell him/her (politically correct) that they forgot required info. I have some updated files for you as well. I will zip them up and add them here after while. I also just noticed that if total pay is adjusted using the pay adjust mod, this script will not recognize those funds. If you try to purchase an item it will say you have insufficient funds to make the purchase. I am wondering if I can tweak it ti recognize total pay adjusted instead of total earned. Ray
-
The admin section for this looked bad. I have fixed it to match the rest of the admin side bar. Here it is in all it's glory. <li style="padding: 0; margin: 0;"><a class="menu" href="#"> <img src="<?php echo SITE_URL?>/admin/lib/images/shopadmin.png" />Shop Admin</a> <ul style="padding: 0; margin: 0;"> <li><a href="<?php echo SITE_URL?>/admin/index.php/ShopAdmin/shopsoverview">Overview</a></li> </ul> </li> Feel free to add this in on an updated file if you wish or save it for a bigger push of the updated module. I have also removed the extra links option from the shop admin overview and removed the tpl files for them 3 links since they are dead. This is done because credit is still given to the original mod author without breaking any license agreement. Saves disc space and cleans up the files nicer.
-
I am not sure why this is happening with the delete problem. It is like it is loosing it's css. Not sure why it switches pages even. In my opinion, we need to make it so it stays on the same page when you delete something like Nabeel has phpVMS setup. So when you hit delete, it simply deletes the item or what ever.
-
That would be sweet, but the file would be HUGE! There are a bunch or airports in the world. Not sure one of them files you are talking about exist.
-
I small issue. If you try to delete anything, the page looses it's css properties and it does not delete anything. I think this was an issue early on too? If it is on my end I will find it and post. If it is in the files, I can try to fix and donate. Ray
-
Lorathon, I thank you with everything I have to thank you with! Works great.
-
Oh it don't have to be your last question. lol I wasn't saying earlier I would not answer anymore, just trying to give you some food for thought is all. Now are you trying to add the 5 latest flights? I am not sure I know of any for the last flight in particular. If you want to add the latest 5 flights, simply use this <?php MainController::Run('PIREPS', 'RecentFrontPage', 5); ?> If you do not want it to be 5 then change the number to what you like. Let me know if this is what you are after or not. If it is a custom module you installed, please give me a direct link to that module. Ray
-
If you added any new modules that are released by our friendly users here, they will give you the code to put in to your sidebar area on your layout.tpl file. As far as the newst members goes, that is simple. The code is already in the default crystal skin. I will give it to you this time though. Everyone gets one freebie. * * open layout.tpl * * Find <!-- Sidearea Starts --> <div id="sidearea"> * * Add After <h3>Newest Pilots</h3> <?php MainController::Run('Pilots', 'RecentFrontPage', 5); ?> * * SAVE FILE * * That will give you the 5 Newest Pilots. For any other module that you install on your website, simply look for the controller that they give you and add it like I just showed you. I PROMISE it will work for any and all modules that are released on the phpVMS forums. We have some very smart and talented coders here that share their work freely that would not steer you wrong......On purpose. If all else fails, the search feature is located right under your avatar in the upper right hand corner of the website here. It works real good I promise. I hope that helps you on your way to get the desired results you were after. Practice, practice, and practice some more. AND I am going to go out on a limb here and guess that you are relatively new to coding? If so, please allow me to be so bold as to offer up a couple of tips. And they go as follows. NEVER code on a live website. ALWAYS code on a dev site that is NOT public. that way if you mess up, your live site is still good to go. ALWAYS do backups before installing any mods, modules, skins or simple tweaks. Accidents can and do happen. Trust me. Boy do I know. Practice until you are blue in the face. But only do so for 15 minutes at a time. Get up after 15 minutes and walk around, grab a drink and have at it again. Don't force yourself. HAVE FUN! If it is not fun then why do it to begin with right? Use the search feature very often. I can guarantee you almost all of the questions you have has been asked and answered here numerous times. These few tips alone are going to take you a long, long way. You are not going to learn phpVMS over night however. I have been here a year or more now and I ask questions all but daily still. I am sure these knuckleheads here have all got tired of me a time or two. lol So keep at it and have fun. You have a nice start on your site. I have a feeling before long I will visit your site and say WOW! that looks great! Have a great day! Ray
-
Ahh Nabeel you beat me to it.
-
put the javascript in the head section of your layout.tpl file and put the menu in the body section where you want it to be at. The website or program you used to create the menu should tell you exactly where to put the code. They are assuming you know how to code though.
-
Anyone got a working copy of this they would care to share? Meaning just for flight status. I got all the rest of it working smoothly. I don't need the touchdown rate so I scrapped it in hopes of getting the flight status in there instead. Like Accepted, pending, Rejected.
-
Sorry for my ignorance, but I do not know what modules you are using or anything of the such. I gave a pretty good example above. If you are not using any custom modules, you can very easily look at the code from the crystal skin and it will come real easy to you once you see it. It pretty much is exactly the same as what I gave you above. I do apologize that I do not have time right now to hand code it for you. I got on here to check out a couple of posts before my next class starts tonight. Just study my code that I posted and compare it to the default crystal skin and you will see where I am getting it all from.