« Project home page
my little forum
Log in
Register
Search:
Back to the entry by Auge
Post reply
Reply to the message by
Auge
Name:
E-mail:
(optional, won't be displayed directly)
Leave this field empty:
Homepage:
(optional)
Leave this field empty:
Location:
(optional)
Remember me (cookie)
Category:
General
Project organisation
Technics
Design/Themes
Features
Development
Todo
Bugs
German / Deutsch
Spanish / Español
French / Français
Accessibility/UX
Subject:
Formatting help
skip to input
format text bold
[b]bold text[/b]
format text italic
[i]italic text[/i]
insert hyperlink
[link=http://example.com/]link text[/link] / [link]http://example.com/[/link]
set text color
[color=#rgb]colored text[/color]
font size
[size=small]small text[/size]
[size=large]large text[/size]
insert list
[list][*]list item[/list]
insert image
[img]http://example.com/image.jpg[/img]
left: [img=left]http://example.com/image.jpg[/img]
right: [img=right]http://example.com/image.jpg[/img]
thumbnail: [img=thumbnail]http://example.com/image.jpg[/img]
thumbnail left: [img=thumbnail-left]http://example.com/image.jpg[/img]
thumbnail right: [img=thumbnail-right]http://example.com/image.jpg[/img]
upload image
upload image ...
insert TeX code
[tex]TeX code[/tex]
insert code
[inlinecode]code[/inlinecode]
[code]code[/code]
[code=css]code[/code]
[code=html]code[/code]
[code=javascript]code[/code]
[code=perl]code[/code]
[code=php]code[/code]
[code=sql]code[/code]
[code=xml]code[/code]
:-)
;-)
:-P
:-D
:-|
:-(
:yes:
:no:
:ok:
:lol:
:lol2:
:lol3:
:cool:
:surprised:
:angry:
:crying:
:waving:
:confused:
:lookaround:
:clap:
:love:
:tick:
Message:
> 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 [link=https://mylittleforum.net/forum/index.php?mode=entry&id=12373]one of my previous postings[/link]. > > > I have no clue how to inject the user setting into the relevant functions. Injecting the forum settings is easy, add [inlinecode]global $settings;[/inlinecode] and you are done. But user settings are optional because not every visitor is a logged in user and therefore I can't use [inlinecode]global[/inlinecode] 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 functions [inlinecode]html_format[/inlinecode] and [inlinecode]signature_format[/inlinecode] where the bbcode class gets configured for these special cases. > > > > It would be possible to make the setting an optional paremeter for [inlinecode]html_format[/inlinecode] and [inlinecode]signature_format[/inlinecode] and provide it inside these functions for the calls of [inlinecode]do_bbcode_url[/inlinecode] (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 [inlinecode]global[/inlinecode]. 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 [inlinecode]global[/inlinecode]. 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
E-mail notification on reply of this posting
OK - Submit
Preview