CMTV
Well-known member
I have added a custom button to
In
I am using this code to achieve this:
The second argument of
Everything works fine and I see "complete" message. The problem is that it opens a popup with reloaded "account-details" page. But I need to display message and reload page...
Popup is showing because of
account_detais
template:
PHP:
<xf:button overlay="true" href="{{ link('account/reloadSkinHead') }}" class="button--link">{{ phrase('minecraftskins_account_reload_skin') }}</xf:button>
reloadSkinHead
action I want to display message that skin reload is complete and then reload current page.I am using this code to achieve this:
PHP:
...
return $this->redirect($this->buildLink('account/account-details'), \XF::phrase('minecraftskins_account_reload_skin_success'));
redirect
method is message.Everything works fine and I see "complete" message. The problem is that it opens a popup with reloaded "account-details" page. But I need to display message and reload page...
Popup is showing because of
overlay="true"
attribute. If I remove this attribute then page is correctly reloading. But in this case my "complete" message is not showing.