« 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, > > > > Why not add a new section [inlinecode]user_settings[/inlinecode] (or another meaningful name) instead adding a new file? > > > > Yes, we can also extend the existing file by a new section and adding an option like: > > [code=javascript]user_settings['open_links_in_new_window'] = 'EXTERNAL'; // EXTERNAL, ALL, NON[/code] > > This would need a non boolean setting (your proposal contains three states). Otherwise it looks like it's pointing into the right direction. > > > Should we also extend the main.js, too, or is it better to create a new script e.g. entry.js. If we use a new file, we can save resources by adding something like: > > > > [code=html]{if $mode=='entry' || $mode=='thread'} > > <script src="{$FORUM_ADDRESS}/js/entry.min.js" type="text/javascript" charset="utf-8"></script> > > {/if}[/code] > > Every way begins with a first step. But creating a new script file [i]for only this one function[/i] looks [i]a bit[/i] to much for me. Do we have further functions that are only tied to the entry views that we can transfer to this new script or would we trench the existing code on to many places with this idea? > > > A further problem is HTML structure. Whereas each entry provides a [inlinecode]header[/inlinecode] and a [inlinecode]body[/inlinecode] class in [i]thread mode[/i], such elements are not presented in the single entry view. Is it possible to add such classes, too? It would be helpful to restrict the scope of modifying the target-attribute. > > Of course sir, that's possible and it's IMHO important regard to a meaningful document structure. > > In my theme every entry in every view is an [inlinecode]article[/inlinecode], has a [inlinecode]header[/inlinecode] for the metadata of the entry, a [inlinecode]div[/inlinecode] for the content of the entry and a [inlinecode]footer[/inlinecode] for the tag list and the entry dependent function links. Even we are still on XHTML 1 in the default theme, we should at least provide [i]a similar structure[/i] in all of the views. > > > My test script looks like that: > > I did only a skim read (querlesen) but it looks o.k. to me in a first sight. I will implement the code in a new PR. > > Tschö, Auge
E-mail notification on reply of this posting
OK - Submit
Preview