Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Hisashi Posted June 28, 2021 Posted June 28, 2021 Hello, I want to add a message in marked area, does anyone know where I can edit the template?
Solution Nathan Explosion Posted June 28, 2021 Solution Posted June 28, 2021 (edited) core -> front -> forms -> popupTemplate Right after the opening "<form..." line, add: {{if $id == "coverPhoto"}} YOUR STUFF {{endif}} Edited June 29, 2021 by Nathan Explosion Hisashi 1
Hisashi Posted June 28, 2021 Author Posted June 28, 2021 (edited) 7 minutes ago, Nathan Explosion said: core -> front -> forms -> popupTemplate Right after the opening "<form..." line, add: {{if $id = "coverPhoto"}} YOUR STUFF {{endif}} It's affecting profile photo. Don't have a way to separate? Edited June 28, 2021 by Hisashi
Nathan Explosion Posted June 28, 2021 Posted June 28, 2021 (edited) 16 hours ago, Hisashi said: It's affecting profile photo Show your code. <form accept-charset='utf-8' class="ipsForm {$class}" action="{$action}" method="post" {{if $uploadField}}enctype="multipart/form-data"{{endif}} {{foreach $attributes as $k => $v}}{$k}="{$v}"{{endforeach}} data-ipsForm> {{if $id == "coverPhoto"}} YOUR STUFF {{endif}} Works fine for me - why? The 'Edit cover photo' link produces a form with the $id of 'coverPhoto' while the link beside the profile photo produces a form with the $id of 'profile_photo' Edited June 29, 2021 by Nathan Explosion
Hisashi Posted June 28, 2021 Author Posted June 28, 2021 (edited) 2 hours ago, Nathan Explosion said: Show your code. <form accept-charset='utf-8' class="ipsForm {$class}" action="{$action}" method="post" {{if $uploadField}}enctype="multipart/form-data"{{endif}} {{foreach $attributes as $k => $v}}{$k}="{$v}"{{endforeach}} data-ipsForm> {{if $id = "coverPhoto"}} YOUR STUFF {{endif}} Works fine for me - why? The 'Edit cover photo' link produces a form with the $id of 'coverPhoto' while the link beside the profile photo produces a form with the $id of 'profile_photo' I put it as informed, and it's appearing in both <form accept-charset='utf-8' class="ipsForm {$class}" action="{$action}" method="post" {{if $uploadField}}enctype="multipart/form-data"{{endif}} {{foreach $attributes as $k => $v}}{$k}="{$v}"{{endforeach}} data-ipsForm> {{if $id = "coverPhoto"}} YOUR STUFF {{endif}} <input type="hidden" name="{$id}_submitted" value="1"> {{foreach $hiddenValues as $k => $v}} Edited June 28, 2021 by Hisashi
Hisashi Posted June 29, 2021 Author Posted June 29, 2021 7 hours ago, Nathan Explosion said: Thanks Go with == instead of = Thanks, it worked!
Recommended Posts