-
Постов
18 -
Зарегистрирован
-
Посещение
Тип контента
Форумы
Склад
Документация IPS4
Новости
Приложения
Лаборатория
Багтрекер
Разработка
Интервью
Профили
Файлы
Блоги
Календарь
Идеи
Сообщения, опубликованные LoveHate
-
-
hi
I use below code to show user's rank level in postbit and everything good works:
{{if $comment->author()->canHaveAchievements() and \IPS\core\Achievements\Rank::show() and \IPS\core\Achievements\Rank::getStore() and $rank = $comment->author()->rank()}} <div class="postlevel"> {{if $nextRank = $comment->author()->nextRank()}} <div class="postlevel_content"> <span class="postlevel_levels">{$rank->rankPosition()['pos']} level</span> <span class="postlevel_exp" ><b>{$comment->author()->achievements_points}</b> / {$nextRank->points}</span> </div> <div class="postlevel_progress"> <div class="postlevel_progress_bar" style="width: calc({expression='$comment->author()->achievements_points'} / {$nextRank->points} * 100%);"></div> </div> {{endif}} </div> {{endif}}
I want to put these codes in a new HTML template file and call them using the following method in postcontainer, but I get an error.
{template="pos_ranks" app="core" group="xxx" location="front" params=""}
what do I do?
thanks!
-
thanks...
When I log in, the correct date is displayed for me, but when I try to view other users' profiles, the date is not correct but if I login as users the date is correct.
I want users to be able to view each other's last post date!
-
On 3/5/2023 at 7:50 PM, Кирилл said:
Here you are comparing instead of assigning
I'm beginner...
can you correct that? please
-
hi
I want to show user's last post date in profile header. so I use blow code but it doesn't work an display the same time for all users
{{if $member->member_id == \IPS\Member::loggedIn()->member_id}}
{{$userlastpost['lastpost'] == \IPS\Member::loggedIn()->member_last_post;}}
<li>
<h4 class='ipsType_minorHeading'>{lang="activity_member_last_post"}</h4>
<span>{datetime="$userlastpost['lastpost']"}</span>
</li>
{{endif}}whats the problem?
-
hi
does this work on last version?
-
hi
I wanna add an option in my plugin so I need to use a field like below:
I know this is a stack Item:
$form->add( new \IPS\Helpers\Form\Stack()
but there is no documents on invision.
can someone help me to how to use that?
-
I have a payment gateway that unfortunately does not work with php8 or higher. After selecting the payment method, I get a white screen error. To check this problem, I enabled error display and saw the following error:
Fatal error: Declaration of IPS\nexus\Gateway\_zarinpal::checkValidity(IPS\nexus\Money $amount, ?IPS\GeoLocation $billingAddress = null, ?IPS\nexus\Customer $customer = null) must be compatible with IPS\nexus\_Gateway::checkValidity(IPS\nexus\Money $amount, ?IPS\GeoLocation $billingAddress = null, ?IPS\nexus\Customer $customer = null, $recurrings = []) in /home/smooksh1/test.smook.shop/applications/nexus/sources/Gateway/zarinpal/zarinpal.php on line 26
how can I fix that? please help me
-
did you try to check error log?
-
after this do you click on publish bottom?
-
hi
I use these codes for make a dark-light mode:
js:
html:
css:
simple:
when I put HTML code in userbar template and js in before closed body tag everything good works but when I wanna put this html code in mobilenavbar or mobilenavigation it doesn't work and in search console I got below error:
Uncaught SyntaxError: redeclaration of const toggleSwitch
<anonymous> http://localhost/dev/:1042 -
can't we do it without plugin?
-
Hi my lords
How can I add a "no password" alert if the user has logged in via a social media and does not have a password.
I mean is that, How do I specify to display this message if the user login in with Socialmedia?
-
hi everybody
how can I make a custom block to filter like this forum?
help to add theme setting
в Помощь и поддержка
Опубликовано
hi
I wanna add a select box setting in my theme so I use below code:
and use below codes in theme editor;
but when I select one item it's displayed at front but when I select more than one nothing is displayed.
what's the problem?