Open dvision1979 opened 6 years ago
Bbode are your friend :) [url=http://yourlink.tld]click here[/url]
You can view your built in BBcode by opening /app/app.filters.js
If in interest i can share a snippet of code for buttons to show bbtags and smilies directly in topic.
Thank you @conyum This would be great, please share the snippet.
/app/forum/topic.controller.js /app/forum/topic.template.html
there you have the snippet baked inside the code. use the whole files or strip out what you want. it works on untouched rartracker-source without any problem
Thank you so much. I will give it a go tonight.
EDIT:
I have tried and failed miserably :))
I put the files in the app/forum directory.
I ran npm run dist
, then I copied the dist directory to the web root, forced refreshed the site in the forums, but nothing changed. I don't know what to expect. Also, I would like to format the FAQ's too, if it is not too much to ask.
I checked the browser console for errors and the code looks broken:
EDIT 2: Hold on, as I said I failed miserably, I think I found my mistake. I'll get back in a minute, just to rebuild.
Thanks again for your help!
Regards, Dan
I managed to achieve this: However, the link tag doesn't seem to work, as you can see in the screenshot and the BB buttons are garbled for some reason.
Thanks again for your help!
Regards, Dan
I fixed the URL issue. I was looking for a so-called named link, as of BBCODE terminology [url={url}]{text}[/url]. I am going to use this to get the BB buttons translated.
It would be nice to have this also for the edit form and for the FAQs forms, if I may ask for your help.
Regards, Dan
Greetings again your highness! :)
Is there any way to format the text input on forums, FAQs etc. For example when writing a FAQ I would like to accomplish something similar to:
<a href="http://anonym.to/?http://en.wikipedia.org/wiki/BitTorrent" target="">click here</a>
Or to bold, underline or change text color for a part of the text.I already noticed that any URL included in the text is formated with a filter via anonym.to, which is great.
You humble subject, Dan