Jump to content

Jeff

Members
  • Posts

    1307
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Jeff

  1. Tom is correct. The "a" in this case, is pointing to a link (<a href="www.mylink.com"></a>). The HTML reading the css for "a" will be using what is in the css. You can only use functions that are recognized as Tom posted above. What you could do is create another css rule so a different link can follow it. I would recommend that you place this in a css file, and not your template.

  2. I totally agree with you Joeri. I, personally don't mind if there is something on my site that people want. If they would just come up to me and ask for it, I'm sure there is something that could be done to give them something identical or similar. When I started One World Virtual 2 years ago, I didn't know squat about php, css, and HTML. As time progressed, I started to understand the way these functions work. There is still a lot more I can learn, but I know the basics. I learned my lesson earlier this year about copying other people's work (Phoenix VA). I accepted my wrong doing publicly in these forums (and PVA staff), and learned to do things myself. I am not a big fan of these web browsers allowing people to be able to see peoples' secure files. Isn't that the reason we have the .htaccess file in the first place? There has to be a way around being able to rip off people's designs, and mreo yet, scripts that are paid for by the original user.

    That's my two cents worth - back to designing.

    Jeff

    VirtualFlightZone.net

  3. Thanks guys. Also, I'd like to say, "Please do not PM or ask me for the coding for my schedule_results and schedule_details templates, as I am not giving that info out. Everything you need to make yours similar to mine can be found in here and from Google".

    And finally, I will not be making anymore pages for anyone that won't try to do it themselves. I am always willing to help out in any way possible,as most of you all know, but I will no longer do it for you. If you are interested in knowing how I did something on my website, I can point you to the forum post or website that I got the information from. Other than that, please be considerate and try to do it yourself first before asking me. If you do ask, post in the SUPPORT section, so everyone can benefit from it. If it is something that I'd like to share, I'll post the answer. I will not give support via PM.

  4. I think I misunderstood you. I think you are wanting to show the pie chart of the pilot, correct? I don't think you can place that in the pilot_public_profile.tpl, as I could never get it to work for me. Unless someone else has an idea on how to achieve it.

  5. This is the original code for the pilot_public_profile.tpl see if it works now.

    <?php
    if(!$userinfo)
    {
    echo '<h3>This pilot does not exist!</h3>';
    return;
    }
    ?>
    <h3>Profile For <?php echo $userinfo->firstname . ' ' . $userinfo->lastname?></h3>
    <table>
    <tr>
    	<td align="center" valign="top">
    		<?php
    		if(!file_exists(SITE_ROOT.AVATAR_PATH.'/'.$pilotcode.'.png'))
    		{
    			echo 'No avatar';
    		}
    		else
    		{
    			echo '<img src="'.SITE_URL.AVATAR_PATH.'/'.$pilotcode.'.png'.'" alt="No Avatar" /> ';
    		}
    		?>
    		<br /><br />
    		<img src="<?php echo $userinfo->rankimage?>"  alt="" />
    	</td>
    	<td valign="top">
    		<ul>
    			<li><strong>Pilot ID: </strong><?php echo $pilotcode ?></li>
    			<li><strong>Rank: </strong><?php echo $userinfo->rank;?></li>
    			<li><strong>Total Flights: </strong><?php echo $userinfo->totalflights?></li>
    			<li><strong>Total Hours: </strong><?php echo Util::AddTime($userinfo->totalhours, $userinfo->transferhours); ?></li>
    			<li><strong>Location: </strong>
    				<img src="<?php echo Countries::getCountryImage($userinfo->location);?>" 
    							alt="<?php echo Countries::getCountryName($userinfo->location);?>" />
    				<?php echo Countries::getCountryName($userinfo->location);?> 
    			</li>
    
    			<?php
    			// Show the public fields
    			if($allfields)
    			{
    				foreach($allfields as $field)
    				{
    					echo "<li><strong>$field->title: </strong>$field->value</li>";
    				}
    			}
    			?>
    		</ul>
    
    		<p>
    		<strong>Awards</strong>
    		<?php
    		if(is_array($allawards))
    		{			
    		?>
    		<ul>
    			<?php foreach($allawards as $award)
    			{ 
    				/* To show the image:
    
    					<img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" />
    				*/
    
    			?>
    				<li><?php echo $award->name ?></li>
    			<?php } ?>
    		</ul>	
    		<?php
    		}
    		?>
    	</p>
    	</td>
    
    </tr>
    </table>
    <?php
    /*
    Added in 2.0!
    */
    $chart_width = '800';
    $chart_height = '250';
    
    /* Don't need to change anything below this here */
    ?>
    <div align="center" style="width: 100%;">
    <div align="center" id="pireps_chart"></div>
    </div>
    
    <script type="text/javascript" src="<?php echo fileurl('/lib/js/ofc/js/swfobject.js')?>"></script>
    <script type="text/javascript">
    swfobject.embedSWF("<?php echo fileurl('/lib/js/ofc/open-flash-chart.swf');?>", 
    "pireps_chart", "<?php echo $chart_width;?>", "<?php echo $chart_height;?>", 
    "9.0.0", "expressInstall.swf", 
    {"data-file":"<?php echo actionurl('/pilots/statsdaysdata/'.$userinfo->pilotid);?>"});
    </script>

  6. The other code goes in the pilot_public_profile.tpl

    Then you should be able to see the awards for other pilots. There are two templates that show stats for pilots.

    1. profile main.tpl: This is what the member only sees.

    2. pilot_public_profile.tpl: This is what non-members can see about a pilot.

  7. You can do what I did, and create a page (from your Admin Center) called Videos. Then paste this code as your source.

    <table>
    <thead width="100%" align="center">
    <th>Name of Video #1</th>
    <th>Name of Video #2</th>
    </thead>
    <tbody>
    <td><iframe width="455" height="300" src="youtubelink" frameborder="0" allowfullscreen></iframe></td>
    <td><iframe width="455" height="300" src="youtubelink" frameborder="0" allowfullscreen></iframe></td>
    </tbody>
    </table>
    <table>
    <thead width="100%" align="center">
    <th>Name of Video #3</th>
    <th>Name of Video #4</th>
    </thead>
    <tbody>
    <td><iframe width="455" height="300" src="youtubelink" frameborder="0" allowfullscreen></iframe></td>
    <td><iframe width="455" height="300" src="youtubelink" frameborder="0" allowfullscreen></iframe></td>
    </tbody>
    </table>

    Find the video you want to post and paste the link to the video to where it says "youtubelink" in the code. Change the Title name for the video you are posting. Change the video size to fit your template. There you go.

  8. Actually, everything looks okay on your site, except one thing. It looks like you placed the "Passenger and Freight Service" information in the layout.tpl

    You should place this in the frontpage_main.tpl That way all your pages won't show that information. You Live Map needs to be shrunk in order to fit the page. To do that, open the local.config.cfg file and change the dimensions of the Acars map to fit your template.

  9. I'm going to butt in here since we are on the same subject. I am having a slight problem getting a space between my menu and the body of my site. It is like this for the whole site. anyone have any suggestions on what to add after the menu to have the rest of the Body to be normal again?

    problem.jpg

    Nevermind, I got it resolved. I just added a few <br/>'s in there.

×
×
  • Create New...