pgshiping / jforum2

Automatically exported from code.google.com/p/jforum2
Other
0 stars 0 forks source link

Cannot differ anchor for url and anchor for google search #54

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The anchors for URL and google search look the same. 

The user should be notified some way. Like (google) after the text or a small 
search icon or anything like that.

v2.3.5 and probably any version with the google option.

Original issue reported on code.google.com by ronny.na...@gmail.com on 22 Feb 2014 at 3:25

GoogleCodeExporter commented 8 years ago
This can be done by editing bb_config.xml, just add (google) after the last 
</a>:
<!-- Google -->
        <match name="google" lockedForSmilies="google">
                <regex>(?i)\[google\](.*?)\[/google\]</regex>
                <replace>
                <![CDATA[
                <a class="snap_shots" href="http://www.google.com/search?q=$1" target="_blank">$1</a>(google)
                ]]>
                </replace>
        </match>

        <!-- Wikipedia -->
        <match name="wikipedia" lockedForSmilies="wikipedia">
                <regex>(?i)\[wikipedia\](.*?)\[/wikipedia\]</regex>
                <replace>
                <![CDATA[
                <a class="snap_shots" href="http://en.wikipedia.org/wiki/$1" target="_blank">$1</a>(wikipedia)
                ]]>
                </replace>
        </match>

        <match name="wikipedia-non-english" lockedForSmilies="wikipedia">
                <regex>(?i)\[wikipedia=([a-z]+)\](.*?)\[/wikipedia\]</regex>
                <replace>
                <![CDATA[
                <a class="snap_shots" href="http://$1.wikipedia.org/wiki/$2" target="_blank">$2</a>(wikipeida)
                ]]>
                </replace>
        </match>

Original comment by andow...@gmail.com on 22 Feb 2014 at 5:38

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
commit in [r327]

Original comment by andow...@gmail.com on 28 Jun 2014 at 1:48

GoogleCodeExporter commented 8 years ago
Great :-)

Original comment by ronny.na...@gmail.com on 28 Jun 2014 at 1:50