Menu

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

Fixed
nobody
None
Medium
Defect
2014-06-27
2014-02-21
Anonymous
No

Originally created by: ronny.na... (code.google.com)@gmail.com

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.

Related

Wiki: NewFeatures240

Discussion

  • Anonymous

    Anonymous - 2014-02-22

    Originally posted by: andow... (code.google.com)@gmail.com

    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>

     
  • Anonymous

    Anonymous - 2014-06-27

    Originally posted by: andow... (code.google.com)@gmail.com

    commit in [[r327]]

    Status: Fixed

     

Log in to post a comment.

MongoDB Logo MongoDB