mirror of https://github.com/BOINC/boinc.git
- web: add [sup] BBCode tag for superscripts.
- web: show BBCode info in the same page, rather than target=new. On Firefox, this opens a new tab but doesn't switch to it, which makes it look like nothing happened. svn path=/trunk/boinc/; revision=24622
This commit is contained in:
parent
5e671e4230
commit
517a49e607
|
@ -8559,3 +8559,16 @@ David 20 Nov 2011
|
|||
ssim/
|
||||
ssim.cpp
|
||||
makefile
|
||||
|
||||
David 20 Nov 2011
|
||||
- web: add [sup] BBCode tag for superscripts.
|
||||
- web: show BBCode info in the same page, rather than target=new.
|
||||
On Firefox, this opens a new tab but doesn't switch to it,
|
||||
which makes it look like nothing happened.
|
||||
|
||||
html/
|
||||
inc/
|
||||
text_transform.inc
|
||||
util.inc
|
||||
user/
|
||||
bbcode.php
|
||||
|
|
|
@ -284,6 +284,15 @@ $mixed = array(
|
|||
$math = array(
|
||||
tra("Mathematics, computing, and games"),
|
||||
array(
|
||||
array(
|
||||
"Mersenne@home",
|
||||
"http://mersenneathome.net/",
|
||||
tra("Private"),
|
||||
tra("Mathematics"),
|
||||
tra("Mersenne@home searches for 'Mersenne primes' - prime numbers of the form 2<sup>p</sup>-1."),
|
||||
|
||||
"mersenne_logo80.png"
|
||||
),
|
||||
array(
|
||||
"DistrRTgen",
|
||||
"http://boinc.freerainbowtables.com/distrrtgen/",
|
||||
|
|
|
@ -114,6 +114,7 @@ function bb2html($text, $export=false) {
|
|||
"@\[b\](.*?)\[/b\]@is",
|
||||
"@\[i\](.*?)\[/i\]@is",
|
||||
"@\[u\](.*?)\[/u\]@is",
|
||||
"@\[sup\](.*?)\[/sup\]@is",
|
||||
"@\[url=$httpsregex\](.*?)\[/url\]@is",
|
||||
"@\[url\]$httpsregex\[/url\]@is",
|
||||
"@\[link=$urlregex\](.*?)\[/link\]@is",
|
||||
|
@ -146,6 +147,7 @@ function bb2html($text, $export=false) {
|
|||
"<b>\\1</b>",
|
||||
"<i>\\1</i>",
|
||||
"<u>\\1</u>",
|
||||
"<sup>\\1</sup>",
|
||||
"<a href=\"https://\\1\" rel=\"nofollow\">\\2</a>",
|
||||
"<a href=\"https://\\1\" rel=\"nofollow\">https://\\1</a>",
|
||||
"<a href=\"http://\\2\" rel=\"nofollow\">\\3</a>",
|
||||
|
@ -173,6 +175,7 @@ function bb2html($text, $export=false) {
|
|||
"<b>\\1</b>",
|
||||
"<i>\\1</i>",
|
||||
"<u>\\1</u>",
|
||||
"<sup>\\1</sup>",
|
||||
"<a href=\"https://\\1\" rel=\"nofollow\">\\2</a>",
|
||||
"<a href=\"https://\\1\" rel=\"nofollow\">https://\\1</a>",
|
||||
"<a href=\"http://\\2\" rel=\"nofollow\">\\3</a>",
|
||||
|
|
|
@ -536,7 +536,7 @@ function close_output_buffer($filename) {
|
|||
}
|
||||
|
||||
function html_info() {
|
||||
return "<br><a href=\"bbcode.php\" target=\"_new\"><span class=\"smalltext\">".tra("Use BBCode tags to format your text")."</span></a>\n";
|
||||
return "<br><a href=\"bbcode.php\"><span class=\"smalltext\">".tra("Use BBCode tags to format your text")."</span></a>\n";
|
||||
}
|
||||
|
||||
// strip slashes if magic quotes in effect
|
||||
|
|
|
@ -32,6 +32,7 @@ row1(tra("Examples"));
|
|||
row2_plain("[b]".tra("Bold")."[/b]", "<b>".tra("Bold")."</b>");
|
||||
row2_plain("[i]".tra("Italic")."[/i]", "<i>".tra("Italic")."</i>");
|
||||
row2_plain("[u]".tra("Underline")."[/u]", "<u>".tra("Underline")."</u>");
|
||||
row2_plain("[sup]".tra("Superscript")."[/sup]", "X<sup>".tra("Superscript")."</sup>");
|
||||
row2_plain("[size=15]".tra("Big text")."[/size]", "<span style=\"font-size: 15px\">".tra("Big text")."</span>");
|
||||
row2_plain("[color=red]".tra("Red text")."[/color]", "<font color=\"red\">".tra("Red text")."</font></li>");
|
||||
row2_plain("[url=http://google.com/]".tra("link to website")."[/url]", "<a href=\"http://google.com/\">".tra("link to website")."</a>");
|
||||
|
|
Loading…
Reference in New Issue