• 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!

MyACC Gesior shop new category and no image item

bialywsp

New Member
Joined
Sep 25, 2021
Messages
9
Reaction score
0
Hello! I created new categories. Everything works except the image of the items in the new categories? link to the image of the item from the new category http: //localhost/templates/tibiarl/images/content/scroll.gif

The image path is done and works, but new categories won't open them.

1633643514799.png

gifts.html.twig
<style>
.offer_container {
text-align: center;
}

.offer_type {
padding: 5px 5px 1px 5px;
margin: 5px 1px 0 1px;
background-color: #303030;
color: #FFFFFF !important;
}

.offer_table {
margin-left: auto;
margin-right: auto;
}

.offer_table tr td {
text-align: center;
}
</style>

<div style="text-align: center"><h1>{{ title }}</h1></div>
<div style="float:right;">
<span style="color: green; font-weight: bold">Your premium points: </span>{{ user_premium_points|raw }}
</div>
<br/><br/>

<div class="offer_container">
{% if warning is defined %}
{{ warning }}
{% endif %}

{% for offer_type, offer_name in offer_types %}
<a class="offer_type" href="?subtopic=gifts&offertype={{ offer_type }}"{% if get_offer_type == offer_type %} style="background-color: #505050"{% endif %}>{{ offer_name }}</a>
{% endfor %}

<table class="offer_table" border="0" cellpadding="1" cellspacing="1" width="550">
<tr width="650" bgcolor="{{ config.vdarkborder }}">
<td colspan="4"></td>
</tr>

<tr bgcolor="{{ config.darkborder }}">
<td width="50"><b>Picture</b></td>
<td width="350" style="text-align: left"><b>Description</b></td>
<td width="50"><b>Points</b></td>
<td width="100"><b>Select product</b></td>
</tr>

{% for offer in offers_fetch if offer.type == get_offer_type %}
<tr bgcolor="{{ config.lightborder }}">
<td>
{% if offer.type == "item" or offer.type == "axe" or offer.type == "club" or offer.type == "sword" or offer.type == "quiver" or offer.type == "shield" or offer.type == "wand" or offer.type == "rod" or offer.type == "ammunition" or offer.type == "bow" or offer.type == "ring" or offer.type == "boots" or offer.type == "amulet" or offer.type == "helmet" or offer.type == "armor" or offer.type == "legs" or offer.type == "container" %}
{{ offer.item_img|raw }}
{% if offer.container_img is not empty %}
{{ offer.container_img|raw }}
{% endif %}
{% elseif offer.type == "pacc" %}
<img src="images/shop-system/PremiumTime.png" alt="Premium Time"/>
{% elseif offer.type == "axe" %}
{{ offer.item_img|raw }}
{% if offer.container_img is not empty %}
{{ offer.container_img|raw }}
{% endif %}
{% elseif offer.type == "mount" %}
<img src="{{ offer.mount_img_dir }}" alt="Mount"/>
{% elseif offer.type == "addon" or offer.type == "addonmount" %}
<table>
<tr>
<td>
<img style="margin-left:-30px;margin-top:-30px;width:64px;height:64px;" src="{{ config.outfit_images_url }}?id={{ offer.look_male }}&addons={{ offer.addons_male }}&head={{ outfit_colors.head }}&body={{ outfit_colors.body }}&legs={{ outfit_colors.legs }}&feet={{ outfit_colors.feet }}"/>
</td>
<td>
<img style="margin-left:-30px;margin-top:-30px;width:64px;height:64px;" src="{{ config.outfit_images_url }}?id={{ offer.look_female }}&addons={{ offer.addons_female }}&head={{ outfit_colors.head }}&body={{ outfit_colors.body }}&legs={{ outfit_colors.legs }}&feet={{ outfit_colors.feet }}"/>
</td>
</tr>
</table>
{% endif %}
</td>
<td style="text-align: left">
<b>{{ offer.name }}</b><br/>
{{ offer.description|raw }}
</td>
<td>{{ offer.points }}</td>
<td>
{% if logged %}
<form action="?subtopic=gifts&action=select_player" method="post">
<input type="hidden" name="buy_id" value="{{ offer.id }}">
<input type="submit" value="Buy">
</form>
{% else %}
<b>Login to buy</b>
{% endif %}
</td>
</tr>
{% else %}
{% if offer_types[get_offer_type] %}
<td style="text-align: left" colspan="4">There is no offer here.</td>
{% else %}
<td style="text-align: left" colspan="4">This offer type doesn't exist. Please specify different name.</td>
{% endif %}
{% endfor %}
</table>
</div>
 
Last edited:
1. Post the code on pastebin.com

2. What do you see if you right click on image -> Inspect.

You should see something like this:
1633905318772.png
 
Back
Top