In tikilib.php, the external link icon is hardcoded:
if ($prefs['feature_wiki_ext_icon'] == 'y' && !$options['suppress_icons']) { $ext_icon = "<img border=\"0\" class=\"externallink\" src=\"img/icons/external_link.gif\" alt=\" (external link)\" />"; }
That is not good if you want that icon to be different.
You have to overwrite img/icons/external_link.gif with your own, and remember to re-overwrite it when updated to a new Tiki.
It would be better to either allow the user/admin to give a link to an alternative icon, or even better: put it in CSS, so that it can be overwritten in themes.
A quick fix would be to change line 5806 and line 6245 from this:
$ext_icon = "<img border=\"0\" class=\"externallink\" src=\"img/icons/external_link.gif\" alt=\" (external link)\" />";
to this:
$ext_icon = "<span class=\"externallink\">Â Â Â </span>";
And then put a CSS class in design.css or other appropriate css file, so that it can be overridden by theme css:
.externallink { background: url(img/icons/external_link.gif) no-repeat; }
In the end, I just added a new preference variable: external link icon source.
Much better solution, IMO.
Fixed by revision: 26985 (trunk)
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
Unable to connect to show.tikiwiki.org. Please let us know of the problem so that we can do something about it. Thanks.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |