XF 1.5 Template modification - how to replace all occurrences?

abdfahim

Well-known member
I am trying the following in a template modification in member_view template

Find:
Code:
/<h3 class="textHeading">{xen:phrase (.+?)}<\/h3>

                        <div class="primaryContent">/

Replace:
Code:
<h3 class="subHeading">{xen:phrase $1}</h3>

                        <div class="primaryContent abdfahim-member-view-information">

But the above only replaces the first occurrence, whereas I want to replace all.

First occurrence (replaced):
upload_2017-7-30_12-24-3.webp


2nd occurrence (not replaced):
upload_2017-7-30_12-27-14.webp

3rd occurrence (not replaced):
upload_2017-7-30_12-28-14.webp
 
Also, the 'g' modifier throws an exception in the template modification system
Code:
/<h3 class="textHeading">{xen:phrase (.+?)}<\/h3>

                        <div class="primaryContent">/g
 
Top Bottom