Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted June 28, 20213 yr Hello, I want to add a message in marked area, does anyone know where I can edit the template?
June 28, 20213 yr Solution core -> front -> forms -> popupTemplate Right after the opening "<form..." line, add: {{if $id == "coverPhoto"}} YOUR STUFF {{endif}} Edited June 29, 20213 yr by Nathan Explosion
June 28, 20213 yr Author 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, 20213 yr by Hisashi
June 28, 20213 yr 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, 20213 yr by Nathan Explosion
June 28, 20213 yr Author 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, 20213 yr by Hisashi
June 29, 20213 yr Author 7 hours ago, Nathan Explosion said: Thanks Go with == instead of = Thanks, it worked!