Jump to content

Getting started


Laura

Recommended Posts

I downloaded the VAirline Skin to get myself into this whole skinning procedure :D

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 :rolleyes:

8Iadp6t.jpg

W62Ssy1.jpg

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 :lol:

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 :P

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" :unsure:

This is all new to me, but i'm more than just willing to learn :D

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...