message in different forums

leanndamiann1

Well-known member
Registered
Joined
Apr 22, 2021
Messages
191
Points
28

Reputation:

How about I put a different message every time I enter a forum?

for example going to /forums/games/
above the list of forums put a message about games

and do the same with the movies category and so on
 

Splicho

Synapse-Themes.cc Owner
Staff member
Moderator
Collaborate
Registered
Joined
Jan 21, 2022
Messages
839
Points
153

Reputation:

Like this ?

0EF153D3-25C5-49B7-A18C-065DA0041B08.jpeg
 

leanndamiann1

Well-known member
Registered
Joined
Apr 22, 2021
Messages
191
Points
28

Reputation:

shqawe

Well-known member
Registered
Joined
Jun 30, 2019
Messages
60
Points
28

Reputation:

You can do that by editing forum_view by using this code:

HTML:
<xf:if is="$forum.node_id == 1">
    forum_1 message
<xf:elseif is="$forum.node_id == 2" />
    forum_2 message
</xf:if>

And it will be better if you create new template and add all your code inside it and inject that template inside forum_view by using this code:

HTML:
<xf:include template="YOUR_TEMPLATE_NAME" />
 

Splicho

Synapse-Themes.cc Owner
Staff member
Moderator
Collaborate
Registered
Joined
Jan 21, 2022
Messages
839
Points
153

Reputation:

You can do that by editing forum_view by using this code:

HTML:
<xf:if is="$forum.node_id == 1">
    forum_1 message
<xf:elseif is="$forum.node_id == 2" />
    forum_2 message
</xf:if>

And it will be better if you create new template and add all your code inside it and inject that template inside forum_view by using this code:

HTML:
<xf:include template="YOUR_TEMPLATE_NAME" />
shqaweTheres no need to do it like that. He can just use node description… like I did above on the screenshot
 

leanndamiann1

Well-known member
Registered
Joined
Apr 22, 2021
Messages
191
Points
28

Reputation:

You can do that by editing forum_view by using this code:

HTML:
<xf:if is="$forum.node_id == 1">
    forum_1 message
<xf:elseif is="$forum.node_id == 2" />
    forum_2 message
</xf:if>

And it will be better if you create new template and add all your code inside it and inject that template inside forum_view by using this code:

HTML:
<xf:include template="YOUR_TEMPLATE_NAME" />
shqaweIs it possible to put the text above?

Captura de pantalla 2023-08-28 170035.png
 
Top