The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Variables from categories / forums

3 posters

Go down

Solved Variables from categories / forums

Post by Wizzard October 29th 2024, 10:49 am

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

Variables from categories / forums Screen64

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
Wizzard
Wizzard
Forumember

Male Posts : 125
Reputation : 23
Language : English

https://net-cafe.forumotion.com/

Back to top Go down

Solved Re: Variables from categories / forums

Post by Niko October 29th 2024, 11:55 am

Coucou @Wizzard

variables sometimes refer to a "parent" element. For example the variable
Code:
{L_TOPICS}
is free to be used everywhere.

On the other hand a variable like
Code:
{catrow.forumrow.FORUM_DESC_IMG_SRC}
only works if within the two "parents"
Code:
<!-- BEGIN catrow --> <!-- END catrow -->
and
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
Niko
Niko
Helper
Helper

Male Posts : 3304
Reputation : 255
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

poesia-verses likes this post

Back to top Go down

Solved Re: Variables from categories / forums

Post by Wizzard October 29th 2024, 12:51 pm

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.
Wizzard
Wizzard
Forumember

Male Posts : 125
Reputation : 23
Language : English

https://net-cafe.forumotion.com/

Back to top Go down

Solved Re: Variables from categories / forums

Post by Niko October 29th 2024, 2:35 pm

That is not a class, it's a header in the template structure, that's how it works Embarassed

Code:
<!-- BEGIN catrow -->
    <!-- BEGIN forumrow -->
        {catrow.forumrow.FORUM_DESC_IMG_SRC}
    <!-- END catrow -->
<!-- END forumrow -->
Niko
Niko
Helper
Helper

Male Posts : 3304
Reputation : 255
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

Back to top Go down

Solved Re: Variables from categories / forums

Post by Wizzard October 29th 2024, 5:11 pm

Niko wrote:That is not a class, it's a header in the template structure, that's how it works Embarassed

Code:
<!-- BEGIN catrow -->
    <!-- BEGIN forumrow -->
        {catrow.forumrow.FORUM_DESC_IMG_SRC}
    <!-- END catrow -->
<!-- END forumrow -->
So I have to add the comment in order to make the variable visible? bwi
Wizzard
Wizzard
Forumember

Male Posts : 125
Reputation : 23
Language : English

https://net-cafe.forumotion.com/

Back to top Go down

Solved Re: Variables from categories / forums

Post by Niko October 29th 2024, 8:18 pm

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 variable
Code:
{L_TOPICS}
is free to be used everywhere.

On the other hand a variable like
Code:
{catrow.forumrow.FORUM_DESC_IMG_SRC}
only works if within the two "parents"
Code:
<!-- BEGIN catrow --> <!-- END catrow -->
and
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
Niko
Niko
Helper
Helper

Male Posts : 3304
Reputation : 255
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

Back to top Go down

Solved Re: Variables from categories / forums

Post by Wizzard October 30th 2024, 8:56 am

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 variable
Code:
{L_TOPICS}
is free to be used everywhere.

On the other hand a variable like
Code:
{catrow.forumrow.FORUM_DESC_IMG_SRC}
only works if within the two "parents"
Code:
<!-- BEGIN catrow --> <!-- END catrow -->
and
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.
Wizzard
Wizzard
Forumember

Male Posts : 125
Reputation : 23
Language : English

https://net-cafe.forumotion.com/

Back to top Go down

Solved Re: Variables from categories / forums

Post by Niko October 30th 2024, 11:07 am

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 bye
Niko
Niko
Helper
Helper

Male Posts : 3304
Reputation : 255
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

Back to top Go down

Solved Re: Variables from categories / forums

Post by SLGray October 30th 2024, 8:27 pm

Problem solved & topic archived.
Please read our forum rules:  ESF General Rules


Variables from categories / forums Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51572
Reputation : 3525
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum