Jump to content

Recommended Posts

  • 2 weeks later...
Posted

why does not the online display at this skin, there is always an error, someone knows how to fix this error

the error is

Pilots Online

Warning: Invalid argument supplied for foreach() in /var/www/web128640/html/lib/skins/brilliancev1/layout.tpl on line 405

Guests Online

Currently 0 guest(s) visiting.

this is the original Code

<h4>Pilots Online</h4>

<?php

$shown = array();

foreach($usersonline as $pilot)

{

if(in_array($pilot->pilotid, $shown))

continue;

else

$shown[] = $pilot->pilotid;

echo "<p>";

echo '<img src="'.Countries::getCountryImage($pilot->location).'" alt="'.Countries::getCountryName($pilot->location).'" />';

echo " {$pilot->firstname} {$pilot->lastname}<br />";

echo "</p>";

}

?>

<h4>Guests Online</h4>

<p class="txt-red10">Currently

<?php echo count($guestsonline);?>

guest(s) visiting.

</ul>

can someone help me

Posted

That code works fine on my site. I don't use that template, so cannot explain the reason it is showing the error. Is there a frontpage_main.tpl or is it just the layout.tpl?

  • 1 month later...
  • 1 month later...
Posted

alright, i need help from a pro please, i am learning php as i go along, but i want to create a drop-down menu for this template, but it is giving me a serious headache, could someone please help me out?

Posted

If the menu comes with its own css, just upload the css to your site and link to it where all the other links are at the top of the layout.tpl

Next look for where the other menu's code is located (in layout.tpl) it probably says something like Template::Show('core_navigation.tpl');

in php tags. Remove that and paste your menu there. (Make sure that you make a backup of the layout.tpl before editing it so you still have it in case you have to revert back to it if the other menu isn't working.

Posted

I have the same problem with this too....

why does not the online display at this skin, there is always an error, someone knows how to fix this error

the error is

Pilots Online

Warning: Invalid argument supplied for foreach() in /var/www/web128640/html/lib/skins/brilliancev1/layout.tpl on line 405

Guests Online

Currently 0 guest(s) visiting.

this is the original Code

<h4>Pilots Online</h4>

<?php

$shown = array();

foreach($usersonline as $pilot)

{

if(in_array($pilot->pilotid, $shown))

continue;

else

$shown[] = $pilot->pilotid;

echo "<p>";

echo '<img src="'.Countries::getCountryImage($pilot->location).'" alt="'.Countries::getCountryName($pilot->location).'" />';

echo " {$pilot->firstname} {$pilot->lastname}<br />";

echo "</p>";

}

?>

<h4>Guests Online</h4>

<p class="txt-red10">Currently

<?php echo count($guestsonline);?>

guest(s) visiting.

</ul>

can someone help me

  • 2 weeks later...
Posted

is there anyway to just cut off the sidebar?

same here, is there a way to have the sidebar appear on some pages and not on all pages using a php check code? ex: if(!FrontPage){//show the sidebar}

  • 4 months later...
Posted

It seems the template messes up the spacing for the pilot tables. Looking at VA's others posted here they've run into the same problem. I don't see any specific styling regarding tables in the css. Anyone worked around this?

Thanks.

Fixed it. The skin is lacking the CSS formatting for the tables.

  • 6 months later...
  • 3 weeks later...
  • 1 month later...
  • 2 weeks later...
  • 4 weeks later...
  • 1 month later...
Posted

As was pointed out earlier in this thread, the author ported this template and uploaded it without permission from the original author. It is a paid template. Once he was busted out for ripping off templates, he took down his site and has not been heard from since. I have looked through my files and I no longer have the original. Mine is so edited and reworked, only the colors and images remain as default. All the rest is completely different...... in it's own kind of way.

  • 4 weeks later...
  • 3 months later...
  • 2 years later...
  • 3 years later...

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...