Announcement

Collapse
No announcement yet.

Differentiate between internal and external links.

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Differentiate between internal and external links.

    How-to differentiate between internal and external links. (Without plugins or editing files!)

    Prerequisites: (AdminCP >> Options >> BB Code Settings)
    1. "Add nofollow attribute to URL BB Code" must be set to Yes
    2. "URL nofollow domain Whitelist" must have your domain name(s)


    Add the following to your additional.css template (for each style you have):
    Code:
    .postcontent a[rel="nofollow"][target="_blank"] {
    	padding-right: 13px;
    	color: #36B;
    	background: url({vb:stylevar imgdir_misc}/external-link.png) no-repeat 100% 50%;
    }
    Upload the attached image to your misc folder (or substitute it for your own): Click image for larger version

Name:	external-link.png
Views:	1
Size:	180 Bytes
ID:	3722241

    End result:
    Click image for larger version

Name:	Screenshot-14.png
Views:	1
Size:	6.9 KB
ID:	3722242
    - Maurice Workin' in the Jira mine, goin' down, down, down

  • #2
    very cool.

    Comment

    Loading...
    Working...
    X