Strider Posted February 10, 2009 Report Share Posted February 10, 2009 I have a problem with my skin, the template i am using, the site is not what it should look like, http://globalaircargovirtual.org/test/index.php Can someone give me a hand with it please? Cheers Dan C Quote Link to comment Share on other sites More sharing options...
Strider Posted February 10, 2009 Author Report Share Posted February 10, 2009 I can tell i am a real noob at skinning lol, i found out my own problem haha. Cheers Dan C Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted February 10, 2009 Administrators Report Share Posted February 10, 2009 Hey looks like you're getting the hang of it. Basically everything above your <div id="mainbox">, including that, will go into the header.tpl, everything below that into the footer.tpl, then you have to tweak it to fit right Quote Link to comment Share on other sites More sharing options...
RogerB Posted February 10, 2009 Report Share Posted February 10, 2009 Yeah kind of like what was said in Tutorial #1....LOL Quote Link to comment Share on other sites More sharing options...
Strider Posted February 10, 2009 Author Report Share Posted February 10, 2009 http://globalaircargovirtual.org/test/index.php/pilots I have a problem with that page, the code it self isn't duplicated, yet the page is shown twice and there is an error in the code, yet i did nothing but copy the exact code from pilots_list.tpl, and saved it as pilots_list.tpl. Cheers Dan C Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted February 10, 2009 Administrators Report Share Posted February 10, 2009 Hmm interesting. Do you hvae any pilots on that hub? That's usually why. Where did you put the header/footer? Make sure it's in the skin, not the individual file. Not sure why it would be replicating twice Quote Link to comment Share on other sites More sharing options...
Strider Posted February 10, 2009 Author Report Share Posted February 10, 2009 My name should be there, and the header and footer are still there, i only change out what is in the <div mainbox, tho maybe i should get rid of that. I now have another problem, the view schedules are not working as they should, i have two search forums Cheers Dan C Quote Link to comment Share on other sites More sharing options...
Strider Posted February 10, 2009 Author Report Share Posted February 10, 2009 Ok the site is just about done, just those two problems as stated before, then I can test it with a few pilots, then release it to the public. Cheers Dan C Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted February 10, 2009 Administrators Report Share Posted February 10, 2009 That's weird it should not be doing that. Did you change the pilots list template? Quote Link to comment Share on other sites More sharing options...
Strider Posted February 10, 2009 Author Report Share Posted February 10, 2009 i put the code from the pilots_list.tpl into the template i had and saved over it. Cheers Dan C Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted February 10, 2009 Administrators Report Share Posted February 10, 2009 What's in your pilots tpl now? Quote Link to comment Share on other sites More sharing options...
Strider Posted February 10, 2009 Author Report Share Posted February 10, 2009 the template, and the code for the pilots_list.tpl, should i have put <?php Template::Show('pilots_list.tpl'); ?>? Cheers Dan C Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted February 10, 2009 Administrators Report Share Posted February 10, 2009 No, not sure what you're trying to do. To edit a template, just copy the file to your skin folder (the folder of whichever skin you're using), and edit it directly. You don't need to do that Quote Link to comment Share on other sites More sharing options...
Strider Posted February 10, 2009 Author Report Share Posted February 10, 2009 That is what i did, and it did that. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted February 11, 2009 Administrators Report Share Posted February 11, 2009 Is it o nly doing that on that page? Use the default template and see if it still does it (delete the one in your skin folder) Quote Link to comment Share on other sites More sharing options...
Strider Posted February 11, 2009 Author Report Share Posted February 11, 2009 it isn't just that page, it is on the public profile too, the show all pireps part is on a separate place, and it has duplicated the site. Cheers Dan C Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted February 11, 2009 Administrators Report Share Posted February 11, 2009 What files have you edited and put your template in? Quote Link to comment Share on other sites More sharing options...
Strider Posted February 11, 2009 Author Report Share Posted February 11, 2009 All files, (all the files i copied to the new skin folder i created) Cheers Dan C Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted February 11, 2009 Administrators Report Share Posted February 11, 2009 If I understand it right, you're doing it wrong. You only copy your header/footer into the header.tpl and footer.tpl. The rest of the templates you leave alone, unless you have to tweak something; if you have to tweak it, then you just copy it to your skin folder, and then edit it. But you don't copy your header/footer to each one. Most templates won't need any editing. Quote Link to comment Share on other sites More sharing options...
Strider Posted February 11, 2009 Author Report Share Posted February 11, 2009 I am not putting the header or footer in, they are left alone. Cheers Dan C Quote Link to comment Share on other sites More sharing options...
Strider Posted February 11, 2009 Author Report Share Posted February 11, 2009 Ok, i did that, but the template doesn't show up. Cheers Dan C Quote Link to comment Share on other sites More sharing options...
Strider Posted February 11, 2009 Author Report Share Posted February 11, 2009 Now see why i was asking for help, I need more help, and will take me too long to finish, and i have other things i need to be doing. Cheers Dan C Quote Link to comment Share on other sites More sharing options...
Strider Posted February 11, 2009 Author Report Share Posted February 11, 2009 I fixed the VA finacial page. Cheers Dan C Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted February 11, 2009 Administrators Report Share Posted February 11, 2009 Can you send me your FTP info so I can see what you're doing? Quote Link to comment Share on other sites More sharing options...
Strider Posted February 11, 2009 Author Report Share Posted February 11, 2009 All i did to fix the finacials, was rename the file to core_finance_header.tpl and core_finance_balancesheet.tpl, and used the finance_summarysheet.tpl to fix the page, and it all works fine, just slightly too big, but that is no problem. all i do when i save over the files is copy the contents of the file into the template, that hasn't a header or footer, but calls those up from the header.tpl and footer.tpl files. Cheers Dan C Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted February 12, 2009 Administrators Report Share Posted February 12, 2009 You're doing something wrong... You shouldn't be calling any templates from anywhere manually. Don't rename those files, the system uses them. If you renamed them in your skin folder, then it's ignoring it and using the ones in the /core/templates folder. DON'T rename anything in there. all i do when i save over the files is copy the contents of the file into the template, that hasn't a header or footer, but calls those up from the header.tpl and footer.tpl files. Huh? None of the templates have a header or footer. There is a master header/footer.tpl in your skin folder that's used. Roger's video tutorials show those of these. Templates are automatically called, 90% of the time you don't be touching any of these, and there should be no manual template calls at all. Just put your header in header.tpl, and footer in footer.tpl. That's ALL you should be doing for now. Delete any templates you put in your skin folder, and just follow the header/footer directions, and then follow: http://phpvms.net/docs/skinning#skin_elements To add those pieces into your header. Watch Roger's tutorials again, I think there's a misunderstanding about how it works Quote Link to comment Share on other sites More sharing options...
Strider Posted February 12, 2009 Author Report Share Posted February 12, 2009 NAbeel, u misunderstood me with the header.tpl and footer.tpl, I removed the header and footer from the template, and kept the header and footer.tpl files there, so those are the ones with the header and footer of my site in. For some reason the files work the way i have done them. It didn't work when i tried just using the header.tpl and footer.tpl, all i got was a dark grey background, and no white part so you can see the site properly. Cheers Dan C Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted February 12, 2009 Administrators Report Share Posted February 12, 2009 It didn't work when i tried just using the header.tpl and footer.tpl, all i got was a dark grey background, and no white part so you can see the site properly. Because you probably weren't doing it correctly. Quote Link to comment Share on other sites More sharing options...
Strider Posted February 12, 2009 Author Report Share Posted February 12, 2009 Can someone just help me and do it for me, as i have done my best, and i really am getting too aggravated by it. If i get too aggravated i become real irritated easily and become snappy for no reason. Cheers Dan C Quote Link to comment Share on other sites More sharing options...
Coolkid122 Posted February 13, 2009 Report Share Posted February 13, 2009 I and Others Can Help and i know what your doing wrong on some pages Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.