Modify siteurl BBcode to open in _self

Date Jan-27-2007 | Topic: Hacks.

XooPS
Purpose: Changes The siteurl BBcode to open the link in the same window

file: class/module.textsanitizer.php
        $patterns[] = "/\[siteurl=(['\"]?)([^\"'<>]*)\\1](.*)\[\/siteurl\]/sU";
        $replacements[] = '<a href="'.XOOPS_URL.'/\\2" target="_self">\\3</a>';


*"_self" was added


This article comes from Bandit-X.Net
http://www.bandit-x.net

The URL for this story is:
http://www.bandit-x.net/modules/news/article.php?storyid=11