« 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 > > > > Can you (@Micha) give me a hint, in which script I can find the code that defines [inlinecode]$_SESSION[[SESSION_ID]_usersettings][/inlinecode]? > > > > The array is defined during the login [link=https://github.com/ilosuna/mylittleforum/blob/5aad6442e1b0f6b77d0dd2ed734c38ce152e2d77/includes/login.inc.php#L121]procedure[/link], isn't it? > > Of course it is. Thank you for pointing me to the correct place. > > I implemented the reading of the new setting from the user data and the creation of the JS-array [inlinecode]user_settings[/inlinecode] in [inlinecode]js_defaults.inc.php[/inlinecode] (see the two commits [link=https://github.com/auge8472/mylittleforum/commit/28e57c172909c63527c26a12937831f168267d4d]28e57c1729[/link] and [link=https://github.com/auge8472/mylittleforum/commit/340f13cff635afd0914143f012af6f31124c489f]340f13cff6[/link]). During the comparision with your code in the [link=https://github.com/ilosuna/mylittleforum/pull/546]pull request #546[/link] and the discussion in [link=https://mylittleforum.net/forum/index.php?id=12353]the causative thread[/link], especially in the branch, starting [link=https://mylittleforum.net/forum/index.php?id=12376]with this posting[/link], I realised, that we planned a user settings with three possible values [1] and not with two, how I implemented it in its current state [i]and[/i] that we planned to provide a general setting for a target name to make it possible to break out of a frame or iframe the forum is running in, when opening a link of an entry (which [i]must[/i] override a possibly set user setting). The latter is a task for a new pull request. > > The creation of the JS-array [inlinecode]user_settings[/inlinecode] already incorporates the three states as you implemented them in pull request #546 ([inlinecode]"NON"[/inlinecode], [inlinecode]"EXTERNAL"[/inlinecode], [inlinecode]"ALL"[/inlinecode]). Following the discussion in the thread, linked above, I have to implement the strings, HTML-code and storing code for the third status of the user setting and – in a new pull request – the general forum setting for a named target value to break out of a frame or iframe. > > Tschö, Auge > > [1]: in your implementation from #546: [inlinecode]"NON"[/inlinecode]: open all links of an entry in the same tab/window (default), [inlinecode]"EXTERNAL"[/inlinecode]: open external links of an entry in a new tab/window, [inlinecode]"ALL"[/inlinecode]: open all links of an entry in a new tab/window
E-mail notification on reply of this posting
OK - Submit
Preview