Variables from categories / forums
3 posters
Page 1 of 1
Variables from categories / forums
So, I am checking template "index_box" and there I managed to isolate header value from variable. But I can't take anything about (user avatar, total amount of posts/topics, name and description of forum, date/time of last post and link to reach last post. When I use those variables in my own div, it shows up empty. Even when I copy whole forum structure and paste in MY div, nothing but "topics" text is shown. My progress so far
Header is isolated, all I mentioned from forums isn't.
Is there a way to use class forum and get those forums listed under my uniquely made div?
Header is isolated, all I mentioned from forums isn't.
Is there a way to use class forum and get those forums listed under my uniquely made div?
Last edited by Wizzard on October 30th 2024, 8:57 am; edited 1 time in total
Re: Variables from categories / forums
Coucou @Wizzard
variables sometimes refer to a "parent" element. For example the variable
is free to be used everywhere.
On the other hand a variable like
only works if within the two "parents"
and
If you carefully check the variable name {catrow.forumrow.FORUM_DESC_IMG_SRC}
variables sometimes refer to a "parent" element. For example the variable
|
On the other hand a variable like
|
|
|
If you carefully check the variable name {catrow.forumrow.FORUM_DESC_IMG_SRC}
- Parent catrow
- Parent forumrow
- Variable name FORUM_DESC_IMG_SRC
poesia-verses likes this post
Re: Variables from categories / forums
Yes, but i want to extract it. If i use existing classes then the css is also applied, and I don't want that as well.
Re: Variables from categories / forums
That is not a class, it's a header in the template structure, that's how it works
- Code:
<!-- BEGIN catrow -->
<!-- BEGIN forumrow -->
{catrow.forumrow.FORUM_DESC_IMG_SRC}
<!-- END catrow -->
<!-- END forumrow -->
Re: Variables from categories / forums
So I have to add the comment in order to make the variable visible?Niko wrote:That is not a class, it's a header in the template structure, that's how it works
- Code:
<!-- BEGIN catrow -->
<!-- BEGIN forumrow -->
{catrow.forumrow.FORUM_DESC_IMG_SRC}
<!-- END catrow -->
<!-- END forumrow -->
Re: Variables from categories / forums
That is exactly what I explained in the previous message and here:
Niko wrote:Coucou @Wizzard
variables sometimes refer to a "parent" element. For example the variableis free to be used everywhere.
- Code:
{L_TOPICS}
On the other hand a variable likeonly works if within the two "parents"
- Code:
{catrow.forumrow.FORUM_DESC_IMG_SRC}
and
- Code:
<!-- BEGIN catrow --> <!-- END catrow -->
- Code:
<!-- BEGIN forumrow --> <!-- END forumrow -->
If you carefully check the variable name {catrow.forumrow.FORUM_DESC_IMG_SRC}
- Parent catrow
- Parent forumrow
- Variable name FORUM_DESC_IMG_SRC
Re: Variables from categories / forums
Niko wrote:That is exactly what I explained in the previous message and here:Niko wrote:Coucou @Wizzard
variables sometimes refer to a "parent" element. For example the variableis free to be used everywhere.
- Code:
{L_TOPICS}
On the other hand a variable likeonly works if within the two "parents"
- Code:
{catrow.forumrow.FORUM_DESC_IMG_SRC}
and
- Code:
<!-- BEGIN catrow --> <!-- END catrow -->
- Code:
<!-- BEGIN forumrow --> <!-- END forumrow -->
If you carefully check the variable name {catrow.forumrow.FORUM_DESC_IMG_SRC}
- Parent catrow
- Parent forumrow
- Variable name FORUM_DESC_IMG_SRC
Doesn't look to be true because I actually copy/paste whole forum part into my div and nothing is being summoned despite having all of the requirements. So i had to use js to extract all of the data and use it. marking solved.
Re: Variables from categories / forums
Some parts may have other limitations, as the template is a simplification of the forum code to be easily customized.
In any case, you are welcome
In any case, you are welcome
Re: Variables from categories / forums
Problem solved & topic archived.
|
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» Categories and forums 4 in 1
» Categories and Forums
» Forums Categories
» Forums and categories
» Categories and forums
» Categories and Forums
» Forums Categories
» Forums and categories
» Categories and forums
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum