News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

How to remove url from BBcode

Started by Dhayzon, November 02, 2017, 06:50:48 PM

Previous topic - Next topic

Dhayzon


aegersz

it's a nice thought but by the time you have marked the URL, selected the internet link button and edited it for the referring text, you don't save much time as opposed to doing it manually but it IS a fiddly process lining up your cursor at the right spot so I also would welcome such a feature.

Good idea

dougiefresh has a "Custom BBC Codes" mod and maybe you could use that as a start (based on url BBCodes and it's button) but the real Support people can help you further.
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Illori

you mean you dont want people to be able to post links? you can disable the url bbc but i think you will annoy your users more then anything.

Dhayzon

 

thank you @aegersz  I'll take a look


@Illori you did not understand

Kindred

he just wants the text to show as the link instead of the url

The ironic thing is that he already knows how to do it, since he demonstrated it as his example. That's why the post made no sense.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Dhayzon

when a user publishes fifty  links

What would happen?

https://www.simplemachines.org/community/indedddddddddddddddddddddddddddddddddddddddx.php?topic=556830.0;topicseen

is prettier

shorten automatically

This is a link or other short text

I do not have problems with simple tag url

[url]https://www.simplemachines.org [/url]


I have problems with


[url = link] parce content  [/url]

I can not remove links from the content


Kindred

And yet, you have demonstrated, several times now, that you do not actually have problems, using the url plus displayed text.

As for shortening "automatically"
Automatically how? How would the system know what text to use?

Basically, just do the URLs with text the way you did above...   I fail to see your "issues"
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Dhayzon

jajajajja  ;D ;D thank you  is already solved

I'm using integrate_buffer 
to remove the links when the BBC link is of the Type

[url = https: //www.simplemachines.org] text link [/ url]

now when any user posts a link of the type

[url = https: //www.simplemachines.org] https://www.simplemachines.org [/ url]

that smf generates automatically

now it will be replaced by text

[url = https: //www.simplemachines.org] I'm a link [/ url]

Kindred

Glad you got it solved...   but, if you are going to be asking for help, you need to work on your language skills, since whatbyou describe as your solution bears absolutely no resemblance to what you indicated your "problem" to be.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Dhayzon


Advertisement: