Jump to content

ahughes3

Members
  • Posts

    205
  • Joined

  • Last visited

Everything posted by ahughes3

  1. I tried itrob's explanation above and when I add his code into the 'TemplateSet.Class.php' file and it breaks my main front site. However, when I add his first two suggestions in and then change the 'layout' folder name with my skin name, it allows me to add my amended template files into my skin directory and they run from their. So this seems like an easy way to do it. My challenge now is that I can't seem to trigger the js files to work. I have the filepaths set correctly because I've tested them with inspector and they are pointing to the right place. Any thoughts as to what might be stopping them functioning? I have them set at the end of the page as normal.
  2. Thanks a lot Web541, I appreciate you sparing the time and giving me a comprehensive response. I've created a new folder inside the admin "libs" folder. In there are my files for the skin I want to create including css, js etc. Just as a test I thought I would switch the default admin skin to the 'layout_dark' skin in the index.php file that sits in the main 'admin' folder. Nothing changed on my admin skin. It is still showing the default one. Am I changing the wrong thing? No matter what I change it too, it always stays on the default skin.
  3. Ok, I'm just starting to experiment with the admin skin and I've followed your instructions above to point the admin templates to my skins folder. I have a few questions if you don't mind. For the main site, you choose the skin through the "general settings" in the admin dashboard which then points to the folder with your skin in it. How does it work with the admin one? I see there is no reference to a folder, so do I just copy all the templates I want for the admin skin into the main "skins" directory? For the main site, there is a template called "layout" which is the master file for the overall layout structure, then you get templates such as "fontpage_main" for the homepage content. How does it work with the admin as there is no "layout" file? Is it the "dashboard" file in the admin templates folder, or is it the index file in the main admin folder itself? I am trying to work out where to include my css and script link references. Should these be in the core_htmlhead template along with the other phpvms references? For the main site I have them in the "layout" file. Apologies for the questions, I'm just trying to get my head around quite where to start as it's a bit different to skinning the main site. Thanks Harry
  4. Brilliant, thanks simpilot. Just for anyone else who wants to do this, you would need to find your module for the page's title you want to change. Then find this piece of code in the php file inside the folder: <?php class Dubaihub extends CodonModule //Name can be any names. { public function index() { $this->render('dubaiinternational.php'); } } ?> and add the code simpilot mentions as so; <?php class Dubaihub extends CodonModule //Name can be any names. { public function index() { $this->title = 'Your page title goes here'; $this->render('dubaiinternational.php'); } } ?> Thanks again simpilot
  5. Ok I think I spoke to soon. The jQuery.noConflict at the end of all scripts has indeed fixed the "no routes passed" problem but it has created another one. I have a "latest news" banner at the top of my pages which is driven by jQuery. When I add the noConflict at the end, it breaks the news banner and if I include it within the script, but place the whole thing at the end of my scripts, it then won't pass the routes again. I have tried placing the noConflict script inside, outside, before, after and also multiple methods for writing the noConflict script but it's always the same. Either the news doesn't work and the routes does, or the other way around. The script that seems to be causing the problems is as follows: jQuery(window).load(function(e) { jQuery("#bn1").breakingNews({ autoplay :true, timer :6000, }); }); and this is how my header looks: <script type="text/javascript" src="<?php echo fileurl('/lib/skins/margo-full-width/js/jQuery.js');?>"></script> <script type="text/javascript" src="<?php echo fileurl('/lib/skins/margo-full-width/js/jquery-migrate-1.2.1.min.js');?>"></script> <script type="text/javascript" src="<?php echo fileurl('/lib/skins/margo-full-width/js/modernizrr.js');?>"></script> <script type="text/javascript" src="<?php echo fileurl('/lib/skins/margo-full-width/asset/js/bootstrap.min.js');?>"></script> <script type="text/javascript" src="<?php echo fileurl('/lib/skins/margo-full-width/js/jquery.fitvids.js');?>"></script> <script type="text/javascript" src="<?php echo fileurl('/lib/skins/margo-full-width/js/owl.carousel.min.js');?>"></script> <script type="text/javascript" src="<?php echo fileurl('/lib/skins/margo-full-width/js/nivo-lightbox.min.js');?>"></script> <script type="text/javascript" src="<?php echo fileurl('/lib/skins/margo-full-width/js/jquery.isotope.min.js');?>"></script> <script type="text/javascript" src="<?php echo fileurl('/lib/skins/margo-full-width/js/count-to.js');?>"></script> <script type="text/javascript" src="<?php echo fileurl('/lib/skins/margo-full-width/js/jquery.textillate.js');?>"></script> <script type="text/javascript" src="<?php echo fileurl('/lib/skins/margo-full-width/js/jquery.lettering.js');?>"></script> <script type="text/javascript" src="<?php echo fileurl('/lib/skins/margo-full-width/js/jquery.easypiechart.min.js');?>"></script> <script type="text/javascript" src="<?php echo fileurl('/lib/skins/margo-full-width/js/jquery.nicescroll.min.js');?>"></script> <script type="text/javascript" src="<?php echo fileurl('/lib/skins/margo-full-width/js/jquery.parallax.js');?>"></script> <script type="text/javascript" src="<?php echo fileurl('/lib/skins/margo-full-width/js/mediaelement-and-player.js');?>"></script> <script type="text/javascript" src="<?php echo fileurl('/lib/skins/margo-full-width/js/script.js');?>"></script> <script type="text/javascript" src="<?php echo fileurl('/lib/skins/margo-full-width/js/ajax.js');?>"></script> <script type="text/javascript" src="http://static.tsviewer.com/short_expire/js/ts3viewer_loader.js"></script> <script type="text/javascript" src="<?php echo fileurl('/lib/skins/margo-full-width/js/jquery.appear.js');?>"></script> <!--[if IE 8]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]--> <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]--> <!-- SimBrief Script --> <script type="text/javascript" src="<?php echo fileurl('lib/js/simbrief.apiv1.js');?>"></script> <script> jQuery(window).load(function(e) { jQuery("#bn1").breakingNews({ autoplay :true, timer :6000, }); }); </script> <script> jQuery.noConflict(); </script> Any suggestions greatly welcome.
  6. Ok, just read that back and it sounds confusing. Where I say "but not the default page title" what I mean is, I don't want the page to have the default title. I want to create my own unique ones. Hope that makes more sense.
  7. Hi, I am interested in this too. I'd like to know..........if I want to make each page title unique but not the default page title name, how might I achieve it. I have seen the $page_title on line 64 of the index.php. If I changed each page that I wanted a different page title on, to $page_title="whatever page name"; would that kind of thing work (ignoring my poor syntax issues )?
  8. I did have the original jquery library references in place, I'd switched them to see if it was the issue and just forgot to set them back, thanks for the nudge. Although it didn't make any difference to the problem sadly. The airports issue is an odd one. Even in the crystal skin, when I click on "View schedules" it opens a plain white page with a form for searching. Each search element then has it's own dropdown box. I don't remember it being like that in the older versions. You simply had a single drop down box and you clicked on the element you want to search by which I assume then changed the content you saw in the dropdown. It does it on both my clean installation and the Virgin site. Simpilot, I am more than happy to give you access to the admin centre and web content if you wanted to take a nosey for yourself. I used the jQuery.noConflict(); in a couple of different places within the scripts themselves that I was trying to load. I think I also tried it on it's own but in front of all the other scripts I'm sure of it. Anyways, that's why the forums are so effective, your suggestion seems to have fixed the problem. I can now search and bid and the bid gets passed! Thanks a bunch. I would still like to try and work out why my "search schedules" page is not showing the old, original page and instead just a blank page with the form on it. As you say SimPilot, it is then just returning all the results for all of the dropdowns.
  9. Ok thought I'd repost this as it's still an issue. I've now tried coding out almost every piece of jquery and scripting that is acting on the page and I get no difference in results. the route search form is always returned without site formatting like it's lost connection to the css. Then when I search for routes, it gives me the list of routes as per normal. When I then click on "add to bid" I just get "no route passed". Whilst it's not the end of the world as we use Smartcars, I still would like to get it working again as some of our pilots use kACARS and need to book via the website. Any help anyone can give would be greatly appreciated. Is there any way to get hold of an error log somewhere? Might point me in the right direction a bit more. Thanks
  10. Aah nuts, d'ya know what...................I stared at the "alt" bit for ages thinking.........."I'm sure it's staring me in the face" and I didn't even cotton on. Thanks guys as always, showing up lovely now. Now I just need to work out how to get the table inside the div to wrap the text instead of running on outside the div.
  11. Hi all, I am trying to get my pilot's awards to show on their Pilot Centre page. This is the code I am using which is pretty much the standard built into phpvms. The award images show just fine, but for some reason the name and description won't. <div class="inner-content-box"> <ul class="icons-list"> <?php if(!$allawards) { echo '<li><i class="fa fa-trophy icon-large"></i> No awards yet</li>'; } else { /* To show the image: <img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" /> */ ?> </ul> <ul class="icons-list"> <?php foreach($allawards as $award){ ?> <li><img src="<?php echo $award->image?>" alt="<?php echo $award->name ?> - <?php echo $award->descrip?>" /></li> <?php } ?> </ul> <?php } ?> </div> Any ideas anyone? I've tried various combinations of coding but the name and description just never show up.
  12. Something I neglected to mention, but had assumed it was irrelevant, I am running some addon modules for PHPVMS. Charter Ops Event Module Live Map Pilot Academy Sim Brief (only added this today and the problem started before that) Not sure how relevant it is but thought I'd mention it
  13. Hello All, Discovered a problem on our site today. Our bids are not being passed. I've seen this already a lot on the forums and I've tried a number of things to fix it but it still persists so I'm hoping you geniuses (or is it Geni') can help. I'll try and describe the problem as simply as poss. I am using a skin I have developed and added bits too so I am fully expecting it to be a case of jQuery conflicts, be here goes. When you click on "View Schedules" in the pilot centre, it returns the usual page, but there is no styling or PHPVMS headers or anything. If I look at the source code, it looks as if it is literally just the template with no header or meta tags or anything. You can then select a departure airport ok and click find which will return a page of results. The page of results then looks perfectly normal, with CSS styles and all the other PHPVMS bits. The problem comes when I click on "add to bids". The next screen is when I get "no route passed". What I have tried so far. I have tried reorganising the jQuery scripts to see if it is an ordering issue. I have tried deleting my skins jQuery script and just leaving PHPVMS default ones. I have tried it the other way round and just leaving mine. I have tried commenting out different scripts to see if that sorts it. I have used the noConflict rule to try and see if that helps. So far nothing has made any difference what so ever. Even when I remove what looks like the only additional jQuery item I've added. So I'm stumped and need to call for back up The site is www.virginatlanticvirtual.co.uk Let me know if you want any source code pasted etc. Waiting in anticipation.... Andy
  14. Do you have a live url to the site so I can take a look?
  15. You might need to change the template files in phpvms from .tpl to .php
  16. Check your javascript filepaths, they don't all look correct to me, some are missing the <?php echo SITE_URL; ?>
  17. Yes please, that would be great. How do you want me to send it, Skype or through your website?
  18. Could the issue be something to do with the fact that two different flight tables are asking for the same information at the same time through the page? If so, would someone be able to help me identify how to alter the code so that rather than the "database call" running twice, it runs once and then the coding for both of the flight tables that use the information just processes it in their cells. Does anyone think that would alleviate the problem?
  19. What does this bit of coding relate to, anyone know? <?php $count=1 0;
  20. That won't tell us anything on it's own, we need to see the head content and the other coding to see if something is missing. Quite often these issue tend to be either PHPVMS not picking up your filepath references and therefore not including the relevant files it needs to show your content, or it might be a phpvms version issue between you using .tpl and .php files or something. Post the entire page code and then we can see what's what.
  21. I'm pretty sure Chase is giving you the solution, based on many similar issues for other users which was related to free hosting. Take the hint
  22. Did you download the PHPVMS from the standard Github repository? If so then that should be fine if your host is running PHP5+ which is likely. Check which version of PHPVMS you have as a starting point. When I first tried to install it, I had the same issue and it was because I had download on old version which had out of date files in it.
  23. You can run multiple VAs through your single installation of PHPVMS. Any modules you buy will install into your single PHPVMS installation and therefore will be applied to all of the VAs within it.
  24. Mine keeps doing the same thing but it's intermittent. I thought I had found an answer but then the problem happened again. I have since set up a separate airline email, then I exported the pilot table from PHPMyAdmin, I converted it to a vcard and uploaded it to "Mailbird" which is my email client, now I just use that. Not ideal but at least it's more reliable.
  25. Yep got it set to 100% now Thanks guys
×
×
  • Create New...