I tried that but I got errors in the post pages online.primehalo wrote:Sure, just use preg_match instead of strpos.
Okay, I checked that linked page about preg_match but I'm not sure how the line of code should be. For example, should I just use asp-rel-article-??primehalo wrote:You have to use a regular expression, not just the string 'asp-rel-articles-02'. Please see the documentation for the preg_match function: http://php.net/manual/en/function.preg-match.php
Code: Select all
preg_match_all('#(<a[^>]+?>)(.*?</a>)#i', $message, $matches, PREG_SET_ORDER);
Code: Select all
preg_match_all('#(<a [^>]+?>)(.*?</a>)#i', $message, $matches, PREG_SET_ORDER);
I'm not 100% positive, but probably.phatchopolis wrote:This MOD sounds great. I had one question. When someone posts an image in my forum by default when it's clicked they're taken away from the forum and too whichever imagehost the photo is stored with. Will this mod allow those to open in an external tab as well?
Same MOD, but probably different version.lovelysummer wrote:Hello, Prime halo,
Is this one same as this mod ? http://www.phpbb.com/community/viewtopi ... 9&t=875585
Tks.
primehalo wrote:It appears that it was not installed correctly. Please review the install user website links.xml instructions file and make sure all instructions were followed properly.
Code: Select all
$external_target = (USE_TARGET_ATTRIBUTE === true) ? (' target="' . EXTERNAL_LINK_TARGET . '"') : (' onclick="this.target=\'' . EXTERNAL_LINK_TARGET . '\';"');
Code: Select all
$external_target .= EXTERNAL_LINK_REL ? (' rel="' . EXTERNAL_LINK_REL . '"') : '';