Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
a few bugfixes
NickE
New
Hiya everyone,
Wow, this is looking really good Mark! I tried out Vanilla 2 and it's very cool. Here are some small patches for a few small bugs I noticed early on with Windows and Apache (no mod_rewrite).
fix time formatting to be compatible with windows (%l isn't recognized apparently):
Wow, this is looking really good Mark! I tried out Vanilla 2 and it's very cool. Here are some small patches for a few small bugs I noticed early on with Windows and Apache (no mod_rewrite).
fix time formatting to be compatible with windows (%l isn't recognized apparently):
diff --git a/applications/garden/locale/en-CA/definitions.php b/applications/garden/locale/en-CA/definitions.phpcorrect a very minor styling bug in user status anchors:
index 952cf41..0994d80 100755
--- a/applications/garden/locale/en-CA/definitions.php
+++ b/applications/garden/locale/en-CA/definitions.php
@ $Definition['Date.DefaultDayFormat'] = '%B %e';
$Definition['Date.DefaultYearFormat'] = '%B %Y';
-$Definition['Date.DefaultTimeFormat'] = '%l:%M%p';
+$Definition['Date.DefaultTimeFormat'] = '%I:%M%p';
diff --git a/library/core/class.format.php b/library/core/class.format.php
index ce75497..68179e4 100644
--- a/library/core/class.format.php
+++ b/library/core/class.format.php
@ class Format {
// Use the time format
- $Format = T('Date.DefaultTimeFormat', '%l:%M%p');
+ $Format = T('Date.DefaultTimeFormat', '%I:%M%p');
} else if (date('Y', $Timestamp) == date('Y', time())) {
@ class Format {
}
- return strftime($Format, $Timestamp);
+
+ // Emulate %l (not supported on windows)
+ return ltrim(strftime($Format, $Timestamp), '0');
}
diff --git a/applications/garden/design/style.css b/applications/garden/design/style.css(will continue; lousy text limits...)
index c6adcc1..0be0a80 100755
--- a/applications/garden/design/style.css
+++ b/applications/garden/design/style.css
@ div.User h1 {
}
-#Status a {
+#Status a.Change {
text-transform: lowercase;
diff --git a/applications/garden/views/profile/user.php b/applications/garden/views/profile/user.php
index 6833ec0..9d22356 100644
--- a/applications/garden/views/profile/user.php
+++ b/applications/garden/views/profile/user.php
@ $Session = Gdn::Session();
if ($this->User->About != '' && ($Session->UserID == $this->User->UserID || $Session->CheckPermission('Garden.Users.Edit')))
- echo ' - ' . Anchor(T('Clear'), '/profile/clear/'.$this->User->UserID.'/'.$Session->TransientKey());
+ echo ' - ' . Anchor(T('Clear'), '/profile/clear/'.$this->User->UserID.'/'.$Session->TransientKey(), 'Change');
0
Comments
- Could we make the post textareas bigger by default, and/or change size in jumps? Not a huge fan of the line-by-line growth.
- It'd be great if you could allow choices for formatters (e.g. plaintext when trying to post markup), or at least allow the xmp tag.
- At least for technical discussions, limiting the size of posts is a real nuisance.