Hello
Im still learning a little Javascript language but after failed to install this add-on to my site, I came up with an idea.
For example I have a hyperlink text
Why do I must use a variable?
- Cuz '{postrow.displayed.POSTER_NAME}' will only work in viewtopic_body template and return a text with link included itself. Example : https://help.forumotion.com/u1, not a simple text.
So my complete hyperlink html code will be like this
I would appreciate any help.
Thank you for reading.
Im still learning a little Javascript language but after failed to install this add-on to my site, I came up with an idea.
For example I have a hyperlink text
- Code:
<a id="xyz" href="/profile?friend='ABC'&mode=editprofile&page_profil=friendsfoes"><img src="/smiley.png" /></a>
- Code:
var getname = '{postrow.displayed.POSTER_NAME}'; // <a href="http://domain.com/u1">Volunteer</a>
var gettext = getname.text; // return Volunteer
var result = replace(/'ABC'/gi, "gettext");
Why do I must use a variable?
- Cuz '{postrow.displayed.POSTER_NAME}' will only work in viewtopic_body template and return a text with link included itself. Example : https://help.forumotion.com/u1, not a simple text.
So my complete hyperlink html code will be like this
- Code:
<a id="xyz" href="/profile?friend=Volunteer&mode=editprofile&page_profil=friendsfoes"><img src="/smiley.png" /></a>
I would appreciate any help.
Thank you for reading.