« 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, > > > Currently, one has the choice to open a link in a new tab or to leave the side by clicking the link. So, the different is, that [i]I make the decision[/i] and not the software. > > I thought about your argument and think, it's valid. On the other side there is obvoiusly a demand for several people to be able to open links in other windows, tabs or – to mention the case of ChristianForum – by breaking out of a frame/iframe. > > Because of that I changed my intention to a two step solution. > > 1. Make the forum wide setting a named setting (as you proposed in the PR-discussion) [inlinecode]_parent[/inlinecode] or [inlinecode]_top[/inlinecode]. This would make it possible to provide a dedicated name of a frame/window or the keywords that are relevant for frame handling. Default value would be [inlinecode]NULL[/inlinecode], keywords ([inlinecode]_blank[/inlinecode] and [inlinecode]_self[/inlinecode]) would get ignored. > 2. Add a user setting that activates the value [inlinecode]_blank[/inlinecode] (the other possible keywords makes [i]IMHO[/i] no sense in this context). > > This would make it possible to handle the forum in a frameset (case 1) and to offer the opening of links in other tabs or windows only for the interested audience (case 2). But – and that's a big but – 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. > > Does my thoughts lead to anywhere? > > Tschö, Auge
E-mail notification on reply of this posting
OK - Submit
Preview