Laura Posted March 5, 2013 Report Posted March 5, 2013 I downloaded the VAirline Skin to get myself into this whole skinning procedure Thing is, how do i make those left boxes only appear on one page - the home site ? For now they show up everywhere, and i don't need the "Newest Pilots" Box on the ACARS Map Page or the Profile page Quote
Ariel Posted March 5, 2013 Report Posted March 5, 2013 Hi Laura, first and fore most want to say WOW for being the first female ive ever seen here on phpvms and the FS community....not many of the members in the community are female and thats great that you have come to join us now with your question...the piece of code is in the layout.tpl and that template is used globally by your skin on phpvms there for will appear on every page....you might want to move it to the page where you want it displayed....assuming you just want it in the home page since most of that information relates to that page you can move it to frontpage_main.tpl Quote
Laura Posted March 5, 2013 Author Report Posted March 5, 2013 Hi Laura, first and fore most want to say WOW for being the first female ive ever seen here on phpvms and the FS community....not many of the members in the community are female and thats great that you have come to join us Yep, i get that alot - especially when flying online Now, i looked up the corresponding code - that's </div> <div id="left"> <div id="box"> <h3>Recent Reports</h3> <?php MainController::Run('PIREPS', 'RecentFrontPage', 5); ?> </div> <div id="box"> <h3>Newest Pilots</h3> <?php MainController::Run('Pilots', 'RecentFrontPage', 5); ?> </div> I cut out - Boxes gone - so far so good My frontpage.tpl looks like this <?php // Show the News module, call the function ShowNewsFront // This is in the modules/Frontpage folder MainController::Run('News', 'ShowNewsFront', 5); ?> This maybe a silly question, but how do i add it correctly to not get a "syntax error" This is all new to me, but i'm more than just willing to learn Quote
Ariel Posted March 5, 2013 Report Posted March 5, 2013 Now, i looked up the corresponding code - that's </div> <div id="left"> <div id="box"> <h3>Recent Reports</h3> <?php MainController::Run('PIREPS', 'RecentFrontPage', 5); ?> </div> <div id="box"> <h3>Newest Pilots</h3> <?php MainController::Run('Pilots', 'RecentFrontPage', 5); ?> </div> from what i see on your code you cut out one of the closing <div> tags and that might be giving you your sintax error ...you should be cutting out <div id="left"> <div id="box"> <h3>Recent Reports</h3> <?php MainController::Run('PIREPS', 'RecentFrontPage', 5); ?> </div> <div id="box"> <h3>Newest Pilots</h3> <?php MainController::Run('Pilots', 'RecentFrontPage', 5); ?> </div> and should look something like this <?php // Show the News module, call the function ShowNewsFront // This is in the modules/Frontpage folder MainController::Run('News', 'ShowNewsFront', 5); ?> <div id="left"> <div id="box"> <h3>Recent Reports</h3> <?php MainController::Run('PIREPS', 'RecentFrontPage', 5); ?> </div> <div id="box"> <h3>Newest Pilots</h3> <?php MainController::Run('Pilots', 'RecentFrontPage', 5); ?> </div> Quote
Laura Posted March 5, 2013 Author Report Posted March 5, 2013 from what i see on your code you cut out one of the closing <div> tags and that might be giving you your sintax error Thank you for that - got the boxes right where i wanted them Quote
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.