/qa/ - Questions and Answers

Keeping the community together by giving you a voice


If you want to see the latest posts from all boards in a convenient way please check out /overboard/


Archived thread


1492108898908.gif
hxxp:s:// looks unprofessional
Anonymous
No.384
390
How about the filter just converts the following to null:

hxxp:://
hxxp:s://
hxxp:://www.
hxxp:s://www.

This seems to stop embedded links but is also easy to copy (or double click with add-ons) and looks professional.

Thanks admins for the hard work you have done.
Anonymous
No.390
395
>>384
I saw someone post links using a 3rd party referral "service" to anonymize referrals.
>href.li
Anonymous
No.395
>>390
thx
fallenPineapple
Admin
No.396
438
Done!
Anonymous
No.438
439 458
>>396
I see that h-t-t-p is filtered even when it's alone (no , even just talking about the protocol). Would it be an issue to not filter that?
Anonymous
No.439
458
>>438
okay, I see that lone :-/-/ is filtered too. If it's possible to only filter this stuff when it's part of a link, that would be preferable.
No.458
477
>>438
>>439
Alright changed it up a bit again http:// , https:// , and www. now just have a space auto placed at the end of them.
Anonymous
No.477
481 563 568
u serious nigga.png
>>458
>now just have a space auto placed at the end of them.
...
Please stop bullshitting with the word filters and just solve it properly instead.

If you want to automatically add a referrer hider to the href part of all posted links.
Then add this short code to the "markup_url" function (before the "$parts = array();" line). You can find this function in /inc/functions.php, line 1533.

ghostbin.com/paste/cowux

While you're at it, also change this line
>'rel' => 'nofollow',
to
>'rel' => 'nofollow noreferrer',

Alternatively if you just want to disable all url markup, which it seems you guys are currently trying to do with word filters.
Then add this to your instance-config.php.

$config['markup_urls'] = false;

If you need any help with programming you can always ask me.
Sapphire_Star
Mod
!!D3VvbJBKFo
No.481
>>477
are you on the My Little Politics discord by any chance?
fallenPineapple
Admin
No.563
>>477
Thank you! Implemented the referrer hider.

>If you need any help with programming you can always ask me.

You have no idea how great that would be.
Atlas
Admin
No.568
>>477
>>477
Please send an application for staff to [email protected]
;