Ads above specified categories without addon

charafweb

Проверенные
Сообщения
20
Реакции
28
Баллы
5,510
Hi there,

I'm a newbie and I want to share this mod with newbies like me.

Here is a simple tut on how to add ads above specified categories in the index page without the use of any addon:

ACP > Appearance > Styles > (YourStyle) > Templates

search for template: node_category_level_1

Add:


<xen:if is="{$category.node_id} == X">
Here goes your ads #1
</xen:if>
<xen:if is="{$category.node_id} == Y">
Here goes your ads #2
</xen:if>
<xen:if is="{$category.node_id} == Z">
Here goes your ads #3
</xen:if>

Where X, Y, Z and so on are Categories number. How to get those numbers? Just click on the title/link of the the category and you will get in the browser's address bar an URL like this: http://xenforo.info/categories/xenforo.7/
The last number in this url (here is 7) is the number of the category.

Screenshot:

ads_categories_zps1ef48cf3.png

And that's it.
Thanks for reading.
 
Последнее редактирование:
Современный облачный хостинг провайдер | Aéza
Назад
Сверху Снизу