P phanphan825 Member Jul 21, 2018 #1 Hi, i want to add $x in template. Example : $x=1; $x++; Please help me resolve . Thank you !
S S Thomas Well-known member Jul 21, 2018 #2 HTML: <xf:set var="$x">1</xf:set> <xf:set var="$x">{{{$x} + 1}}</xf:set> There might be other approaches, though. Upvote 0 Downvote
HTML: <xf:set var="$x">1</xf:set> <xf:set var="$x">{{{$x} + 1}}</xf:set> There might be other approaches, though.
P phanphan825 Member Jul 21, 2018 #3 S Thomas said: HTML: <xf:set var="$x">1</xf:set> <xf:set var="$x">{{{$x} + 1}}</xf:set> There might be other approaches, though. Click to expand... Thank You. I has a function/class in template. Can i find it on code at hosting ? How? Upvote 0 Downvote
S Thomas said: HTML: <xf:set var="$x">1</xf:set> <xf:set var="$x">{{{$x} + 1}}</xf:set> There might be other approaches, though. Click to expand... Thank You. I has a function/class in template. Can i find it on code at hosting ? How?
S S Thomas Well-known member Jul 21, 2018 #4 You can find all templates in the admin control panel. /admin.php?templates/ Upvote 0 Downvote
P phanphan825 Member Jul 21, 2018 #5 S Thomas said: You can find all templates in the admin control panel. /admin.php?templates/ Click to expand... No no, I want to find a class in template and i want to fine it in code . Example : www/src/XF/ABC.php Upvote 0 Downvote
S Thomas said: You can find all templates in the admin control panel. /admin.php?templates/ Click to expand... No no, I want to find a class in template and i want to fine it in code . Example : www/src/XF/ABC.php
P phanphan825 Member Jul 21, 2018 #6 phanphan825 said: No no, I want to find a class in template and i want to fine it in code . Example : www/src/XF/ABC.php Click to expand... S Thomas said: You can find all templates in the admin control panel. /admin.php?templates/ Click to expand... I have code : HTML: <xf:if is="$loadMore"> <div class="message-responseRow js-commentLoader"> <a href="{{ link('threads/load-previous', $thread, {'before': $firstCommentDate}) }}" data-xf-click="comment-loader" data-container=".js-commentLoader" rel="nofollow">{{ phrase('view_previous_comments...') }}</a> </div> </xf:if> It has problem . I want to resolve this problem. I don't know how to find "php file, JS file" contains this function at host. Please talk with me how to do ? Thank you very much Upvote 0 Downvote
phanphan825 said: No no, I want to find a class in template and i want to fine it in code . Example : www/src/XF/ABC.php Click to expand... S Thomas said: You can find all templates in the admin control panel. /admin.php?templates/ Click to expand... I have code : HTML: <xf:if is="$loadMore"> <div class="message-responseRow js-commentLoader"> <a href="{{ link('threads/load-previous', $thread, {'before': $firstCommentDate}) }}" data-xf-click="comment-loader" data-container=".js-commentLoader" rel="nofollow">{{ phrase('view_previous_comments...') }}</a> </div> </xf:if> It has problem . I want to resolve this problem. I don't know how to find "php file, JS file" contains this function at host. Please talk with me how to do ? Thank you very much
S S Thomas Well-known member Jul 21, 2018 #7 Depending on what your problem is you probably want to look for the controller which fills out your template. Upvote 0 Downvote
Depending on what your problem is you probably want to look for the controller which fills out your template.