• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Website Widget not appearing

Cris2387

Member
Joined
Dec 30, 2013
Messages
177
Reaction score
9
3u0Dlkf.png

thats how its supposed to look :( in my website nothing appears its just nothing it stayed the same this are the scripts
widget_rank
PHP:
<?php
$skills = $SQL->query('SELECT * FROM players WHERE deleted = 0 AND group_id < 2 AND account_id != 1 ORDER BY level DESC LIMIT 10');?><styletype="text/css"media="all">.Toplevelbox{
top:15px;
left:590%;
display: block;
position: absolute;
overflow: visible;
margin-bottom:10px;
width:180px;
height:200px;}

.top_level {
display: block;
position: absolute;
overflow: visible;
top:29px;
left:6px;
height:340px;
width:168px;
z-index:20;
text-align: center;
padding-top:6px;
font-family:Tahoma,Geneva, sans-serif;
font-size:9.2pt;
color:#FFF;
font-weight: bold;
text-align: right;
text-decoration: inherit;
text-shadow:0.1em0.1em#333}

#Topbar a {
text-decoration: none;}

a.topfont {
font-family:Verdana,Arial,Helvetica;
font-size:11px;
color:#ffcc33;
text-decoration: none
}

a:hover.topfont {
font-family:Verdana,Arial,Helvetica;
font-size:11px;
color:#ffffff;
text-decoration:none
}</style>

<divid="Topbar"class="Toplevelbox"style="background-image:url(https://i.imgur.com/U8j6kST.png);"><divclass="top_level"style="background:url(https://i.imgur.com/JLG12jV.png)"align=""><?php
$a =1;foreach($skills as $skill){
echo '
<div align="left">
<a href="?subtopic=characters&amp;name='. $skill['name'].'" class="topfont">
<font color="#ffffff">&nbsp;&nbsp;&nbsp;&nbsp; '. $a .' - </font>'. $skill['name'].'<br />
<small><font color="#ffffff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Level: ('. $skill['level'].')</font></small>
<br>
</a>
<img style="margin-top: -70px; ;" src="http://outfit-images.ots.me/outfit.php?id='. $skill['looktype'].'&amp;addons='. $skill['lookaddons'].'&amp;head='. $skill['lookhead'].'&amp;body='. $skill['lookbody'].'&amp;legs='. $skill['looklegs'].'&amp;feet='. $skill['lookfeet'].'" width="64" height="64">
</div>';
$a++;}?></div><divclass="Bottom"style="background-image:url(https://i.imgur.com/gTadKOK.gif); top:375px;; left: 1px;"></div></div>
:(( this is what i put in layout
PHP:
<?php include($layout_name.'/widget_rank.php');?>
please help
 
Last edited by a moderator:
3u0Dlkf.png

thats how its supposed to look :( in my website nothing appears its just nothing it stayed the same this are the scripts
widget_rank
PHP:
<?php
$skills = $SQL->query('SELECT * FROM players WHERE deleted = 0 AND group_id < 2 AND account_id != 1 ORDER BY level DESC LIMIT 10');?><styletype="text/css"media="all">.Toplevelbox{
top:15px;
left:590%;
display: block;
position: absolute;
overflow: visible;
margin-bottom:10px;
width:180px;
height:200px;}

.top_level {
display: block;
position: absolute;
overflow: visible;
top:29px;
left:6px;
height:340px;
width:168px;
z-index:20;
text-align: center;
padding-top:6px;
font-family:Tahoma,Geneva, sans-serif;
font-size:9.2pt;
color:#FFF;
font-weight: bold;
text-align: right;
text-decoration: inherit;
text-shadow:0.1em0.1em#333}

#Topbar a {
text-decoration: none;}

a.topfont {
font-family:Verdana,Arial,Helvetica;
font-size:11px;
color:#ffcc33;
text-decoration: none
}

a:hover.topfont {
font-family:Verdana,Arial,Helvetica;
font-size:11px;
color:#ffffff;
text-decoration:none
}</style>

<divid="Topbar"class="Toplevelbox"style="background-image:url(https://i.imgur.com/U8j6kST.png);"><divclass="top_level"style="background:url(https://i.imgur.com/JLG12jV.png)"align=""><?php
$a =1;foreach($skills as $skill){
echo '
<div align="left">
<a href="?subtopic=characters&amp;name='. $skill['name'].'" class="topfont">
<font color="#ffffff">&nbsp;&nbsp;&nbsp;&nbsp; '. $a .' - </font>'. $skill['name'].'<br />
<small><font color="#ffffff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Level: ('. $skill['level'].')</font></small>
<br>
</a>
<img style="margin-top: -70px; ;" src="http://outfit-images.ots.me/outfit.php?id='. $skill['looktype'].'&amp;addons='. $skill['lookaddons'].'&amp;head='. $skill['lookhead'].'&amp;body='. $skill['lookbody'].'&amp;legs='. $skill['looklegs'].'&amp;feet='. $skill['lookfeet'].'" width="64" height="64">
</div>';
$a++;}?></div><divclass="Bottom"style="background-image:url(https://i.imgur.com/gTadKOK.gif); top:375px;; left: 1px;"></div></div>
:(( this is what i put in layout
PHP:
<?php include($layout_name.'/widget_rank.php');?>
please help @WibbenZ

You are not allowed to tag users that are not related to the issue.

The code is just a mess tbh, so try this insted.
Code:
<?php
    $skills = $SQL->query('SELECT * FROM ' . $SQL->tableName('players') . ' WHERE ' . $SQL->fieldName('deleted') . ' = 0 AND ' . $SQL->fieldName('group_id') . ' < 2 AND ' . $SQL->fieldName('account_id') . ' != 1 ORDER BY level DESC LIMIT 10');
    $counter = 1;
    foreach ($skills as $skill) {
        echo '
            <div align="left">
            <a href="?subtopic=characters&amp;name='. $skill['name'].'" class="topfont">
                <font color="#ffffff">&nbsp;&nbsp;&nbsp;&nbsp; '. $counter .' - </font>
                '. $skill['name'].'<br />
                <small>
                    <font color="#ffffff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Level: ('. $skill['level'].')</font>
                </small>
                <br>
            </a>
            <img style="margin-top: -70px; ;" src="http://outfit-images.ots.me/outfit.php?id='. $skill['looktype'].'&amp;addons='. $skill['lookaddons'].'&amp;head='. $skill['lookhead'].'&amp;body='. $skill['lookbody'].'&amp;legs='. $skill['looklegs'].'&amp;feet='. $skill['lookfeet'].'" width="64" height="64">
            </div>
        ';
       
        $counter++;
    }
?>

Also in your index.php file, change this: https://github.com/gesior/Gesior2012/blob/TFS-1.0/index.php#L6
To true, save and reload then take a screen of the text you get and upload it here.
 
You are not allowed to tag users that are not related to the issue.

The code is just a mess tbh, so try this insted.
Code:
<?php
    $skills = $SQL->query('SELECT * FROM ' . $SQL->tableName('players') . ' WHERE ' . $SQL->fieldName('deleted') . ' = 0 AND ' . $SQL->fieldName('group_id') . ' < 2 AND ' . $SQL->fieldName('account_id') . ' != 1 ORDER BY level DESC LIMIT 10');
    $counter = 1;
    foreach ($skills as $skill) {
        echo '
            <div align="left">
            <a href="?subtopic=characters&amp;name='. $skill['name'].'" class="topfont">
                <font color="#ffffff">&nbsp;&nbsp;&nbsp;&nbsp; '. $counter .' - </font>
                '. $skill['name'].'<br />
                <small>
                    <font color="#ffffff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Level: ('. $skill['level'].')</font>
                </small>
                <br>
            </a>
            <img style="margin-top: -70px; ;" src="http://outfit-images.ots.me/outfit.php?id='. $skill['looktype'].'&amp;addons='. $skill['lookaddons'].'&amp;head='. $skill['lookhead'].'&amp;body='. $skill['lookbody'].'&amp;legs='. $skill['looklegs'].'&amp;feet='. $skill['lookfeet'].'" width="64" height="64">
            </div>
        ';
      
        $counter++;
    }
?>

Also in your index.php file, change this: https://github.com/gesior/Gesior2012/blob/TFS-1.0/index.php#L6
To true, save and reload then take a screen of the text you get and upload it here.
i dont know how to upload pictures hehe i was able to do that pic because it was already in another forum but heres the error i get :
Code:
SELECT `g`.`id` AS `id`, `g`.`name` AS `name`, COUNT(`g`.`name`) AS `frags` FROM `killers` k LEFT JOIN `player_killers` pk ON `k`.`id` = `pk`.`kill_id` LEFT JOIN `players` p ON `pk`.`player_id` = `p`.`id` LEFT JOIN `guild_ranks` gr ON `p`.`rank_id` = `gr`.`id` LEFT JOIN `guilds` g ON `gr`.`guild_id` = `g`.`id` WHERE `g`.`id` > 0 AND `k`.`unjustified` = 1 AND `k`.`final_hit` = 1 GROUP BY `name` ORDER BY `frags` DESC, `name` ASC LIMIT 4;
Code:
SELECT `players`.`name`, `z_forum`.`post_text`, `z_forum`.`post_topic`, `z_forum`.`post_smile`, `z_forum`.`id`, `z_forum`.`replies`, `z_forum`.`post_date` FROM `players`, `z_forum` WHERE `players`.`id` = `z_forum`.`author_guid` AND `z_forum`.`section` = 1 AND `z_forum`.`first_post` = `z_forum`.`id` ORDER BY `z_forum`.`last_post` DESC LIMIT 6
 
You get more info then that xD
Post everything insted, the system prints everything out even if it's not bugged.
A good way if you want to see all queries that are sent in some pages.
 
Chrome?
Right click, view source or CTRL+U.
Then copy everything and upload it here - or give us the URL.
 
Code:
<div id="Themeboxes">

<style type="text/css" media="all">

.Toplevelbox {

position: relative;

margin-bottom: 10px;

width: 180px;

height: 200px;

}

.top_level {

position: absolute;

top: 30px;

left: 6px;

height: 180px;

width: 168px;

z-index: 20;

text-align: center;

padding-top: 6px;

font-family: Tahoma, Geneva, sans-serif;

font-size: 9.2pt;

color: #FFF;

font-weight: bold;

text-align: right;

text-decoration: inherit;

text-shadow: 0.1em 0.1em #333

}


#Topbar a {

text-decoration: none;

cursor: auto;

}

a.topfont {

font-family: Verdana, Arial, Helvetica;

font-size: 12px;

color: #FFA500;

text-decoration: none

}

a:hover.topfont {

font-family: Verdana, Arial, Helvetica;

font-size: 13px;

color: #FFA500;

text-decoration:none

}

</style>


<div id="Topbar" class="Toplevelbox" style="background-image:url(layouts/tibiacom/images/top_level.png);">

<div class="top_level" style="background:url(layouts/tibiacom/images/bg_top.png)" align="left">

<div align="left"><a href="?subtopic=characters&name=K l e b e R" class="topfont">

</div> <div class="Bottom" style="background-image:url(layouts/tibiacom/images/general/box-bottom.gif); top: 180px;; left:-5px;">

</div>

</div>

</div>

</br>


<div id="NewcomerBox" class="Themebox" style="background-image:url(./layouts/tibiacom/images/themeboxes/newcomer/newcomerbox.gif);">

<div class="ThemeboxButton" onClick="BigButtonAction('?subtopic=createaccount')" onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" style="background-image:url(./layouts/tibiacom/images/buttons/sbutton.gif);"><div class="BigButtonOver" style="background-image:url(./layouts/tibiacom/images/buttons/sbutton_over.gif);"></div>

<div class="ButtonText" style="background-image:url(./layouts/tibiacom/images/buttons/_sbutton_jointibia.gif);"></div>

</div>

<div class="Bottom" style="background-image:url(./layouts/tibiacom/images/general/box-bottom.gif);"></div>

</div>


</div>

</div>

</div>

</div>

</div>

</body>

</html>
 
Code:
<div id="Themeboxes">

<style type="text/css" media="all">

.Toplevelbox {

position: relative;

margin-bottom: 10px;

width: 180px;

height: 200px;

}

.top_level {

position: absolute;

top: 30px;

left: 6px;

height: 180px;

width: 168px;

z-index: 20;

text-align: center;

padding-top: 6px;

font-family: Tahoma, Geneva, sans-serif;

font-size: 9.2pt;

color: #FFF;

font-weight: bold;

text-align: right;

text-decoration: inherit;

text-shadow: 0.1em 0.1em #333

}


#Topbar a {

text-decoration: none;

cursor: auto;

}

a.topfont {

font-family: Verdana, Arial, Helvetica;

font-size: 12px;

color: #FFA500;

text-decoration: none

}

a:hover.topfont {

font-family: Verdana, Arial, Helvetica;

font-size: 13px;

color: #FFA500;

text-decoration:none

}

</style>


<div id="Topbar" class="Toplevelbox" style="background-image:url(layouts/tibiacom/images/top_level.png);">

<div class="top_level" style="background:url(layouts/tibiacom/images/bg_top.png)" align="left">

<div align="left"><a href="?subtopic=characters&name=K l e b e R" class="topfont">

</div> <div class="Bottom" style="background-image:url(layouts/tibiacom/images/general/box-bottom.gif); top: 180px;; left:-5px;">

</div>

</div>

</div>

</br>


<div id="NewcomerBox" class="Themebox" style="background-image:url(./layouts/tibiacom/images/themeboxes/newcomer/newcomerbox.gif);">

<div class="ThemeboxButton" onClick="BigButtonAction('?subtopic=createaccount')" onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" style="background-image:url(./layouts/tibiacom/images/buttons/sbutton.gif);"><div class="BigButtonOver" style="background-image:url(./layouts/tibiacom/images/buttons/sbutton_over.gif);"></div>

<div class="ButtonText" style="background-image:url(./layouts/tibiacom/images/buttons/_sbutton_jointibia.gif);"></div>

</div>

<div class="Bottom" style="background-image:url(./layouts/tibiacom/images/general/box-bottom.gif);"></div>

</div>


</div>

</div>

</div>

</div>

</div>

</body>

</html>

Not that file, use chrome so you get the text from the output aswell.
In this case the layout is blocking the full text, with the source we can fully read the error.
 
Back
Top