
About opening of links in new tabs or browser windows (Features)
Hello
I'm very sorry.
There's no need for a sorry. As stated in the PR I wll open a new one. Bofore doing that I need the answer to the underlying question how to inject the optional user setting.
Quoting one of my previous postings.
I have no clue how to inject the user setting into the relevant functions. Injecting the forum settings is easy, add
global $settings;
and you are done. But user settings are optional because not every visitor is a logged in user and therefore I can't useglobal
for it. On the other hand I don't know how to add the user setting to the parameter list of the relevant functions. These functions get called only in the functionshtml_format
andsignature_format
where the bbcode class gets configured for these special cases.It would be possible to make the setting an optional paremeter for
html_format
andsignature_format
and provide it inside these functions for the calls ofdo_bbcode_url
(Next question is how to commit it to these functions?). But this solution looks not really nearly elegant.
Addition to my thoughts: I stated the user setting to be optional and therefore not to be able to import it with global
. A possibility would be to initialise this user setting as a pseudo setting in the main code so that it would exist in every single case. That way I can import it for sure with global
. But also this solution looks not really nearly elegant. :-/
Beside from that I would have to check if the user informations and settings are stored under the same or different variable names in different scripts.
Tschö, Auge
--
Trenne niemals Müll, denn er hat nur eine Silbe!
Complete thread:
- About opening of links in new tabs or browser windows -
Auge,
2020-10-19, 11:05
- About opening of links in new tabs or browser windows -
shian,
2020-10-20, 08:29
- About opening of links in new tabs or browser windows -
Micha,
2020-10-20, 09:33
- About opening of links in new tabs or browser windows -
shian,
2020-10-20, 11:02
- About opening of links in new tabs or browser windows -
Alfie,
2020-10-20, 14:06
- About opening of links in new tabs or browser windows -
shian,
2020-10-20, 14:22
- About opening of links in new tabs or browser windows - Alfie, 2020-10-20, 14:42
- About opening of links in new tabs or browser windows -
shian,
2020-10-20, 14:22
- About opening of links in new tabs or browser windows -
Alfie,
2020-10-20, 14:06
- About opening of links in new tabs or browser windows -
shian,
2020-10-20, 11:02
- About opening of links in new tabs or browser windows -
Micha,
2020-10-20, 09:33
- About opening of links in new tabs or browser windows -
Micha,
2020-10-20, 09:22
- About opening of links in new tabs or browser windows - shian, 2020-10-20, 11:19
- About opening of links in new tabs or browser windows -
Auge,
2020-10-20, 12:50
- About opening of links in new tabs or browser windows - shian, 2020-10-20, 13:43
- About opening of links in new tabs or browser windows -
Micha,
2020-10-20, 16:21
- About opening of links in new tabs or browser windows -
Auge,
2020-10-21, 10:54
- About opening of links in new tabs or browser windows -
Micha,
2020-10-21, 17:11
- About opening of links in new tabs or browser windows -
Auge,
2020-10-21, 20:12
- About opening of links in new tabs or browser windows -
Micha,
2020-10-21, 21:00
- About opening of links in new tabs or browser windows -
Auge,
2020-10-22, 07:29
- About opening of links in new tabs or browser windows -
Micha,
2020-10-22, 07:46
- About opening of links in new tabs or browser windows -
Auge,
2020-10-22, 08:25
- About opening of links in new tabs or browser windows -
Micha,
2020-10-22, 18:21
- About opening of links in new tabs or browser windows -
Micha,
2020-10-23, 18:30
- About opening of links in new tabs or browser windows -
Auge,
2020-10-24, 20:56
- About opening of links in new tabs or browser windows -
Micha,
2020-10-24, 21:27
- About opening of links in new tabs or browser windows -
Auge,
2020-10-26, 08:32
- About opening of links in new tabs or browser windows -
Micha,
2020-10-26, 09:31
- About opening of links in new tabs or browser windows -
Auge,
2020-10-26, 11:19
- About opening of links in new tabs or browser windows - Micha, 2020-10-26, 17:11
- About opening of links in new tabs or browser windows -
Auge,
2020-10-26, 16:25
- About opening of links in new tabs or browser windows -
Micha,
2020-10-26, 21:30
- About opening of links in new tabs or browser windows - Auge, 2020-10-26, 22:20
- About opening of links in new tabs or browser windows -
Micha,
2020-10-26, 21:30
- About opening of links in new tabs or browser windows -
Auge,
2020-10-26, 11:19
- About opening of links in new tabs or browser windows -
Micha,
2020-10-26, 09:31
- About opening of links in new tabs or browser windows -
Auge,
2020-10-26, 08:32
- About opening of links in new tabs or browser windows -
Micha,
2020-10-24, 21:27
- About opening of links in new tabs or browser windows -
Auge,
2020-10-24, 20:56
- Forum error - wrong author?! -
Micha,
2020-10-23, 18:37
- Auge error - wrong author! -
Auge,
2020-10-23, 22:49
- Auge error - wrong author! - Micha, 2020-10-24, 09:14
- Auge error - wrong author! -
Auge,
2020-10-23, 22:49
- About opening of links in new tabs or browser windows -
Micha,
2020-10-23, 18:30
- About opening of links in new tabs or browser windows -
Micha,
2020-10-22, 18:21
- About opening of links in new tabs or browser windows -
Auge,
2020-10-22, 08:25
- About opening of links in new tabs or browser windows -
Micha,
2020-10-22, 07:46
- About opening of links in new tabs or browser windows -
Auge,
2020-10-22, 07:29
- About opening of links in new tabs or browser windows -
Micha,
2020-10-21, 21:00
- About opening of links in new tabs or browser windows -
Auge,
2020-10-21, 20:12
- About opening of links in new tabs or browser windows -
Micha,
2020-10-21, 17:11
- About opening of links in new tabs or browser windows -
Auge,
2020-10-21, 10:54
- Please stop this effectless discussion -
Auge,
2020-10-21, 09:04
- Please stop this effectless discussion -
shian,
2020-10-21, 09:42
- Please stop this effectless discussion - Auge, 2020-10-21, 09:53
- Please stop this effectless discussion -
shian,
2020-10-21, 09:42
- About opening of links in new tabs or browser windows -
Micha,
2020-11-22, 10:23
- About opening of links in new tabs or browser windows - Auge, 2020-12-03, 07:58
- About opening of links in new tabs or browser windows -
shian,
2020-10-20, 08:29