Jump to content
monkeypaw201

Brilliance v1 With jQuery Pilot Center

Recommended Posts

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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

I inserted it into the layout.tpl, because there also the sitepanel is devinition

as you have inserted this code, or in frontpage_main.tpl layout.tpl?

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

What kind of drop-down menu are you trying to add (a link of the menu's website would be preferred) and how have you tried to add it?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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}

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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...