Heb zojuist de errors verholpen. Zag ook dat ik een ander foutje er in had zitten. Nu heb ik nog steeds een error
Code
Uncaught TypeError: $(...).modal is not a function
at myprofile.php?action=avatar:290
at dispatch (jquery.min.js:2)
at y.handle (jquery.min.js:2)
Waarvan dit die code is van de pagina:
PHP
<?php
require_once('classes/MainClass.php');
$Main = new MainClass();
?>
<div id="box" style="width: 100%; margin-left: -15px; padding-right: 25px; margin-top: -10px; overflow: hidden;">
<div class="header" style="padding-right: 25px;">
<h1>Maak uw eigen avatar!</h1>
</div>
<ul id="navi">
<?php foreach($Main->GetPartNames() as $Name): ?>
<li><a href="#<?php echo $Name; ?>" title="<?php echo $Name; ?>"><img src="includes/profielbeheer_systemen/avatar/assets/navi/<?php echo $Name; ?>.png" alt="<?php echo $Name; ?>" /></a></li>
<?php endforeach; ?>
</ul>
<?php foreach($Main->GetPartNames() as $Name): ?>
<div class="clear"></div>
<div class="contentavatar" id="<?php echo $Name; ?>">
<ul id="previews">
<?php
foreach($Main->GetPreviews($Name) as $previews){
echo '<li><img class="'.$Name.'" data="'.$previews.'" src="includes/profielbeheer_systemen/avatar/assets/preview/'.$Name.'/'.$previews.'" /></li>';
}
?>
</ul>
</div>
<?php endforeach; ?>
<div id="character" style="margin-left: 10px">
<div id="RealAvatar">
<img class="body" src="includes/profielbeheer_systemen/avatar/assets/parts/body/body_01.png" />
<?php foreach($Main->GetPartNames() as $Name): ?>
<img class="<?php echo $Name; ?>" src="includes/profielbeheer_systemen/avatar/assets/parts/<?php echo $Name; ?>/<?php echo $Name; ?>_01.png" />
<?php endforeach; ?>
</div>
<form id="AvatarInputs">
<input class="background" name="background" value="includes/profielbeheer_systemen/avatar/background/background_01" />
<input class="body" name="body" value="includes/profielbeheer_systemen/avatar/body/body_01" />
<?php foreach($Main->GetPartNames() as $Name): ?>
<input class="<?php echo $Name; ?>" name="<?php echo $Name; ?>" value="<?php echo $Name; ?>/<?php echo $Name; ?>_01" />
<?php endforeach ;?>
</form>
<a id="generate" class="btn btn-info btn-large">Generate Your Avatar!</a>
</div>
</div>
Toon Meer
ps. heb de layout ook vervangen. wellicht even cache legen voor de mensen die al hebben gekeken in de layout