What's new

Welcome to KodeBlend Forums

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Ask question

Ask questions and get answers from our community

Answer

Answer questions and become an expert on your topic

Contact us

Contact the site administrator directly.

Telegram

Join Telegram Channel to stay updated.
ifastnet
Resource icon

Xenforo Items This Page v1.1.1

No permission to download
Adds a new template variable $xf.itemsThisPage containing how many posts/media items/resources/etc. are shown on a page.

This is useful in templates if you want to adjust the display of some element based on how many posts or threads or media items there are displayed.

For example, you might want to hide an element from the sidebar on short threads (or on the last page of a thread where only one or two posts are shown), to prevent the sidebar from being much longer than the content.

Usage example:

The following code might be used in a sidebar ad placement to hide the advert on short thread pages.
Code:
Please, Log in or Register to view codes content!
An even easier way

If we combine this addon with the
Please, Log in or Register to view URLs content!
addon, which gives us a shorthand way of referencing all of the various thread and forum types in template names using a new $xf.reply.templateParent template variable - we can simplify the above example even further:
Code:
Please, Log in or Register to view codes content!

View attachment 3109
Author
KodeBlend
Downloads
0
Views
28
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from KodeBlend

shape1
shape2
shape3
shape4
shape5
shape6
Back
Top
Whatsapp Support
Start a Conversation
Hi! Click one of our member below to chat on Whatsapp
The team typically replies in a few minutes