Setraxis 1 Posted June 27, 2020 Share Posted June 27, 2020 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 Link to comment Share on other sites More sharing options...
Administrator Logan_Rocks 44 Posted June 27, 2020 Administrator Share Posted June 27, 2020 That would most likely have to be a custom plugin you would have to make to get that to work Link to comment Share on other sites More sharing options...
Setraxis 1 Posted June 27, 2020 Author Share Posted June 27, 2020 I will change something in file sysstem, i need to know where url's are displayed / parsed to show them in posts etc. Link to comment Share on other sites More sharing options...
Administrator Logan_Rocks 44 Posted June 27, 2020 Administrator Share Posted June 27, 2020 I don’t understand what the filesystem has to do with what you are attempting to do... Link to comment Share on other sites More sharing options...
Setraxis 1 Posted June 27, 2020 Author Share Posted June 27, 2020 Simple. URL is Parsed by File System Functions. Example of vBulletin -> https://blog.yakuza112.org/2014/vbulletin-3-x4-x-csrf-img-tag-exploit-fix-v3/ You can normally change links and images etc etc etc by File System where url start parsed! Link to comment Share on other sites More sharing options...
Administrator Logan_Rocks 44 Posted June 27, 2020 Administrator Share Posted June 27, 2020 Are you using vbulletin Link to comment Share on other sites More sharing options...
Setraxis 1 Posted June 27, 2020 Author Share Posted June 27, 2020 DAMNED..... Read Please! 1 Link to comment Share on other sites More sharing options...
Administrator Logan_Rocks 44 Posted June 27, 2020 Administrator Share Posted June 27, 2020 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 Link to comment Share on other sites More sharing options...
mr-pimpen 387 Posted June 27, 2020 Share Posted June 27, 2020 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. Link to comment Share on other sites More sharing options...
fsr 11 Posted June 27, 2020 Share Posted June 27, 2020 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 Link to comment Share on other sites More sharing options...
Recommended Posts