- Joined
- Jan 6, 2023
- Messages
- 40
- Points
- 18
Reputation:
How to enable getting the original code from the node_list_forum template using phpcallback and it will act like the original code of the subnode instead of plane text. from txt file content.
I plan to create an external admin panel with a few features that can change the appearance of the style.
I didn't make an addon, I just put it there
this the code use to fetch from txt
here is the result
I hope someone will notice my problem and correct me
I plan to create an external admin panel with a few features that can change the appearance of the style.
PHP:
<?php
namespace senospanel;
class index
{
public static function getCode()
{
// Read the content of the text file
$code = file_get_contents('../../admin-theme/data/subnode/value1.txt');
// Return the code with appropriate escaping
return htmlspecialchars($code);
}
}
?>
this the code use to fetch from txt
HTML:
<xf:if is="$depth == 2 AND property('nodeListSubDisplay') == 'flat'">
<xf:macro template="forum_list" name="sub_nodes_flat"
arg-children="{$children}"
arg-childExtras="{$childExtras}"
arg-depth="{{ $depth + 1 }}" />
</xf:if>
here is the result
I hope someone will notice my problem and correct me