Jump to content
Sign in to follow this  
Setraxis

URL Link Identification

Recommended Posts

How can i color external url's in the code to have internal codes like www.myforum.com as normal white and external code like www.myfakeboard.com as red links? in all links you can have should have a red line and internal links are all white

 

Example :

- Internal URL => White Link https://webflake.sx

- External URL => Red Link https://webflake.sooo

- Fake Internal Link => Red Link https://webflake.sx

Share this post


Link to post
Share on other sites

I will change something in file sysstem, i need to know where url's are displayed / parsed to show them in posts etc.

Share this post


Link to post
Share on other sites

DAMNED..... Read Please!

  • Downvote 1

Share this post


Link to post
Share on other sites
3 minutes ago, Setraxis said:

DAMNED..... Read Please!

Ok I’m not helping you anymore... you are posting in IPS Support and bringing up a different forum software and getting pissy for no reason 

 

image.gif.3fae207ae8f285af330ea5477b476f86.gif


If you appreciate my post make sure to upvote me! 

My preferred host - https://webjax.net use promo code SOCIAL for a discount!

Share this post


Link to post
Share on other sites

here you can find what you want here learn it not every one nose what or how to do what you want!!!!!

html codes


when I load your site, I was like a vampire, slept for thousands of years and just now is my first glimpse of light haha.

Share this post


Link to post
Share on other sites

regex for detecting url

^(?!http|https|https:\/\/|http:\/\/)([?a-zA-Z0-9-.\+]{2,256}\.[a-z]{2,4}\b)

a href color change on button click

var btn1 = document.getElementById('btn-1'),
    btn2 = document.getElementById('btn-2');

btn1.addEventListener('click', handler);
btn2.addEventListener('click', handler);

function handler(e) {
  if(e.target === btn1) {
    // selecting the 'a' element using 'getElementById'.
    var a = document.getElementById('some-id');
    a.style.color = 'red';
  } else {
    // selecting the 'a' element using 'getElementsByClassName'.
    var a = document.getElementsByClassName('some-class')[0];
    a.style.color = 'green';
  }
}

edit it by urself

you just have to compare detected url and ur website url and change color of link with js


244125173664448512.png

Share this post


Link to post
Share on other sites
What do you think? Remember the human.
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...