Jump to content

Skinning [Solved]


ARV187

Recommended Posts

27 views and not answers? i have much post with not answers, only parkho answer me to one, im sad... If is by my bad english im sorry.

I have the table ready, but i want make a principal page, with table, image slider, etc, etc, but i dont know yet which file i should edit.

And i have a trouble, my server is banned by google adsenses, so i dont kwon if i can make a principal page in a adsense compatible site and that live table work in a diferent site of installation or how make that.

Link to comment
Share on other sites

I find a simple code in this forum to live traffic table, and where add gif images, but i still need help to customice the phpvms.

I have read that files to edit are layout.tpl & frontpage_main.tpl, want apply this template: http://www.templatemo.com/preview/templatemo_254_agency

But i dont know what steps i have to follow.

Im editing index.html of template following the default phpvms layout.tpl, and after i will renamed it how layout.tpl, but i dont know if is rigth, or how hell make it. I want make it by my self, and i dont want pay to others, i want learn, only need help with steps to follow.

Thanks again & regards

Link to comment
Share on other sites

I have a problem, in dreamweaver the slider work, but not in web page, in adition the page is in line, main menu, not lateral panel of last pireps, etc. I only modified layout.tpl

¿Any idea?

In dreamweaver:

conslider.jpg

In web page:

nosliderytodoenlinea.jpg

P.D: Im changin relatives urls by absolutes. but the linear menus... i dont know the cause of that.

Link to comment
Share on other sites

Slider flash not work,Definitely i dont know where put it.

layout.tpl

<?php
/**
*
* STOP!!!!!!!!
*
* Are you editing the crystal skin directly?
* DON'T
*
* Copy and rename the crystal folder. Otherwise it'll get
* overwritten in an update.
*
* Also, READ THE DOCS
*
*   http://www.phpvms.net/docs/skinning
*
*/
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=7">
<title><?php echo $page_title; ?></title>

<link rel="stylesheet" media="all" type="text/css" href="<?php echo SITE_URL?>/lib/skins/templatemo_254_agency/templatemo_style.css" />

<?php
/* This is required, so phpVMS can output the necessary libraries it needs */
echo $page_htmlhead;
?>

<?php /*Any custom Javascript should be placed below this line, after the above call */ ?>
</head>
<body>
<?php
echo $page_htmlreq;
?>

<div id="body">
<div id="templatemo_header_wrapper">
   <div id="templatemo_header">
       <div id="site_title">

	    <h1><img src="http://sparkadsl.0lx.net/phpvms/lib/skins/templatemo_254_agency/images/topbanner.jpg" alt="Argavirtual" /><span></span></h1>

    </div> <!-- end of site_title -->  
    <div id="templatemo_banner_wrapper">
   <div id="templatemo_banner">

        </div>
</div>
<div id="topLogin">
       <?php
       /*
       Quick example of how to see if they're logged in or not
       Only show this login form if they're logged in */
       if(Auth::LoggedIn() == false)
       { ?>
           <form name="loginform" action="<?php echo url('/login'); ?>" method="post">
               Sign-in with your pilot id or email, or <a href="<?php echo url('/registration'); ?>">register</a><br />
           <input type="text" name="email" value="" onclick="this.value=''" />
           <input type="password" name="password" value="" />
           <input type="hidden" name="remember" value="on" />
           <input type="hidden" name="redir" value="index.php/profile" />
           <input type="hidden" name="action" value="login" />
           <input type="submit" name="submit" value="Log In" />
           </form>
           <?php
       }    
       /* End the Auth::LoggedIn() if */
       else /* else - they're logged in, so show some info about the pilot, and a few links */
       {

       /*    Auth::$userinfo has the information about the user currently logged in
           We will use this next line - this gets their full pilot id, formatted properly */
       $pilotid = PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid);
       ?>

       <img align="left" height="50px" width="50px" style="margin-right: 10px;"
           src="<?php echo PilotData::getPilotAvatar($pilotid);?>" />

       <strong>Pilot ID: </strong> <?php echo $pilotid ; ?>
       <strong>Rank: </strong><?php echo Auth::$userinfo->rank;?><br />
       <strong>Total Flights: </strong><?php echo Auth::$userinfo->totalflights?>, <strong>Total Hours: </strong><?php echo Auth::$userinfo->totalhours;?>
       <br />
       <a href="<?php echo url('/pireps/new');?>">File a New PIREP</a> |
       <a href="<?php echo url('/schedules/bids');?>">View My Bids</a> |
       <a href="<?php echo url('/profile/');?>">View Pilot Center</a>
       <?php
       } /* End the else */
       ?>
       </div>
   <div id="templatemo_menu">

   <ul>
       <?php
           /*    You can modify this template into a table or something, by default
               it's list elements inside of a UL. Here's a link with some info:

               http://articles.sitepoint.com/article/css-anthology-tips-tricks-4/2
            */
           Template::Show('core_navigation.tpl');
           ?>
       </ul>
   </div>

   <div id="bodytext">

   <?php
   /*    This will insert all of the "meat" of the page in there - the template
       which is generated, depending on which page you're on. To change these
       templates, check out the docs on the site. They're under the /core/templates
       folder, and to change them, copy them into the folder of your skin (the
       folder this file is in right now.
    */

   echo $page_content;

   ?>

   </div>
   </div>
   <div id="footer">
   <p>Copyright © 2007 - <?php echo date('Y') ?> - <?php echo SITE_NAME; ?><!-- Please retain this!! It's part of the phpVMS license. You must display a
           "powered by phpVMS" somewhere on your page. Thanks! -->
   <a href="http://www.phpvms.net" target="_blank">powered by phpVMS</a>    </p>
   <p>Copyright © 2013 <a href="http://argavirtual.weebly.com/">Argavirtual</a> |
   Designed by <a href="https://sites.google.com/site/fsxworldspain/" target="_parent">ARV187</a> |
   With <a href="http://www.templatemo.com/page/1">CSS Templates</a></p>
   </div>    
</div>
</body>
</html>

frontpage_main.tpl

<div id="mainbox">
<?php

   // Show the News module, call the function ShowNewsFront
   //    This is in the modules/Frontpage folder
MainController::Run('News', 'ShowNewsFront', 5);


?>
<script type="text/javascript" src="js/swfobject.js"></script>
       <script type="text/javascript">
           var flashvars = {};
           flashvars.xml_file = "photo_list.xml";
           var params = {};
           params.wmode = "transparent";
           var attributes = {};
           attributes.id = "slider";
           swfobject.embedSWF("flash_slider.swf", "flash_grid_slider", "930", "250", "9.0.0", false, flashvars, params, attributes);
       </script>
    <body>
<div id="templatemo_banner_wrapper">
   <div id="templatemo_banner">

        <div id="flash_grid_slider">
	        <a href="http://www.flashmo.com/preview/flashmo_224_grid_slider" target="_blank">
		        Flash XML Grid Slider
		    </a>
		    <br /><br />
		    <a href="http://www.adobe.com/go/getflashplayer">
		    <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
		    </a>
           </div>

   </div>
</div>
</body>
</div>
<div id="sidebar">
   <!--mi codigo va-central empieza aqui-->
<H3>Ranking VaCentral</h3>
<Strong><font color="#FF6734" size="3">
<?php
$cws = new CodonWebService();
$xml = $cws->get('http://www.vacentral.net/airline/xml/arv_argavirtual');
$xml = simplexml_load_string($xml);
echo "Estamos en el puesto nº: {$xml->rank}";
?></strong></font>
<a href="http://www.vacentral.net/airline/arv_argavirtual" target="_blank"><img src="http://sparkadsl.0lx.net/phpvms/lib/images/VaCentral.JPG" width="125" height="40" /></a>
   <!--mi codigo va-central termina aqui-->

   <h3>Informes recientes</h3>

   <?php MainController::Run('PIREPS', 'RecentFrontPage', 5); ?>

   <h3>Nuevos pilotos</h3>

   <?php MainController::Run('Pilots', 'RecentFrontPage', 5); ?>

   <h3>Usuarios Online</h3>
   <p><i>Han sido <?php echo count($usersonline)?> usuario(s), y <?php echo count($guestsonline);?> invitado(s) online en los ultimos <?php echo Config::Get('USERS_ONLINE_TIME')?> minutos.</i></p>

   <?php
   /* $usersonline also has the list of users -
       really simple example

       Or if you're not on the frontpage:
       $usersonline = StatsData::UsersOnline();


   foreach($usersonline as $pilot)    
   {
       echo "{$pilot->firstname} {$pilot->lastname}<br />";
   }
   */
   ?>

</div>

Link to comment
Share on other sites

This code is right? not work to me.

<div id="mainbox">
<?php
 // Show the News module, call the function ShowNewsFront
 //	 This is in the modules/Frontpage folder
MainController::Run('News', 'ShowNewsFront', 5);

?>
<script type="text/javascript" src="js/swfobject.js"></script>
		 <script type="text/javascript">
				 var flashvars = {};
				 flashvars.xml_file = "photo_list.xml";
				 var params = {};
				 params.wmode = "transparent";
				 var attributes = {};
				 attributes.id = "slider";
				 swfobject.embedSWF("flash_slider.swf", "flash_grid_slider", "930", "250", "9.0.0", false, flashvars, params, attributes);
		 </script>
		 <body>
<div id="templatemo_banner_wrapper">
 <div id="templatemo_banner">

				 <div id="flash_grid_slider">
						 <a href="http://www.flashmo.com/preview/flashmo_224_grid_slider" target="_blank">
								 Flash XML Grid Slider
						 </a>
						 <br /><br />
						 <a href="http://www.adobe.com/go/getflashplayer">
						 <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
						 </a>
				 </div>

 </div>
</div>
</body>
</div>
<div id="sidebar">

Link to comment
Share on other sites

I finish it! but i have trouble with slider flash images. I need help, but i go to open other post to see if this way anyone can help me.

To clear somethings to newbies:

Im not a expert, i learn since cero.

You have two files in front page (index.html), the index.html is in blank, because in that page the phpvms show this two files: layout tpl & frontpage_main.tpl

Layout.tpl show header and footer in all pages, is this: top banner or company logo, menus, & credits at final of page.

frontpage_main.tpl modify the content of frontpage (index.html page) this is news, recent pilots pireps, recent new pilots, and other that you want put in.

And by last you have the xxxxxxxxxx_style.css this put the form, color, and position of all web site. Have the <id> tag names and your especifications. you can add a <id> tag with properties, and after link it with a <id> tag in your frontmain_page.tpl or other template.

For example

<id= "live_table">

</id>

In xxxxxxxxxxx_styles.css:

#live_table

I recommend "firebug" to learn in live about styles.css and a editor web with grafical interface & code in same site to see the changes.

Edited by ARV187
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...