
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

1
Support / Re: horizontal screen size
« on December 27th, 2014, 05:11 PM »
Um, changing max-width to 38em instead of 100%, temporarily fixes the problem.
Code: [Select]
Thought now you can't view images in full width.
.bbc_img {
border: 0px none;
padding: 4px 8px;
max-width: 38em;
}
Thought now you can't view images in full width.
2
Importing into Wedge / Re: Importing from SMF 2.0.7 - "Cannot set time limit"
« on June 10th, 2014, 01:52 PM »
Looks like you are missing translations for this strings(or whatever it could be) that doesn't exists in default wedge repository. Is it a plugin, or what is it, that modified these files where error occurred?
I think it's safe to remove those strings, until they are not bound to anything. But best would be to restore these files from github.
I think it's safe to remove those strings, until they are not bound to anything. But best would be to restore these files from github.
3
Archived fixes / Re: Possible js bug in admin panel
« on June 7th, 2014, 09:08 PM »
No worries, that's a common problem. :)
4
Archived fixes / Re: Possible js bug in admin panel
« on June 7th, 2014, 07:42 PM »
It's just there when entering admin panel. It doesn't kill the experience of forum since it's just a js announcement, maybe that's why. Nobody notices it.
But how can a local server affect this? It's not even close. :unsure: Failing function is for sure JavaScriptEscape.
:edit: Seems to be a problem with line break character.
:edit: Fixed this error from appearing by removing line breaks from the script, seems like javascript don't like them.
Admin.php
Code: [Select]
Admin.english.php
Code: [Select]
:edit: Looks like solved.. purged cache <_<
:edit: Oh yeah, sexy announcements appeared. Thanks Nao ^_^
But how can a local server affect this? It's not even close. :unsure: Failing function is for sure JavaScriptEscape.
:edit: Seems to be a problem with line break character.
:edit: Fixed this error from appearing by removing line breaks from the script, seems like javascript don't like them.
Admin.php
// This sets the announcements and current versions themselves ;)
add_js('
new we_AdminIndex({
bLoadAnnouncements: true,
sAnnouncementTemplate: ', JavaScriptEscape('<dl>%content%</dl>'), ',
sAnnouncementMessageTemplate: ', JavaScriptEscape('<dt><a href="%href%">%subject%</a> ' . sprintf($txt['on_date'], '%time%') . '</dt><dd>%message%</dd>'), ',
sAnnouncementContainerId: \'wedge_news\',
sMonths: [\'', implode('\', \'', $txt['months']), '\'],
sMonthsShort: [\'', implode('\', \'', $txt['months_short']), '\'],
sDays: [\'', implode('\', \'', $txt['days']), '\'],
sDaysShort: [\'', implode('\', \'', $txt['days_short']), '\'],
bLoadVersions: true,
sVersionOutdatedTemplate: ' . JavaScriptEscape('<span class="alert">%currentVersion%</span>') . ',
bLoadUpdateNotification: true,
sUpdateTitle: ' . JavaScriptEscape($txt['update_available']) . ',
sUpdateMessage: ' . JavaScriptEscape($txt['update_message']) . ',
sUpdateLink: we_script + \'?action=admin;area=packages;pgdownload;auto;package=%package%;' . $context['session_query'] . '\'
});');
Admin.english.php
$txt['update_message'] = 'You\'re using an outdated version of Wedge, which contains some bugs which have since been fixed. It is recommended that you <a href="#" id="update-link">update your forum</a> to the latest version as soon as possible. It only takes a minute!';
:edit: Looks like solved.. purged cache <_<
:edit: Oh yeah, sexy announcements appeared. Thanks Nao ^_^
5
Features / Re: Weaving feedback
« on June 6th, 2014, 09:24 PM »
Um, before the colors were more softer and had a colorful look. Now it looks too bright..? Orange borders next to headings.. To outstaning for these soft colors? To big headings..? :unsure: And... it seems to be missing something. -_-
I don't want to be offensive here, it's just how I feel it. In my opinion forum should have a professional, neutral soft look. No annoying buttons, colors, texts. Everything compact and easy to access.
Off topic:
I like how wine and wuthering themes look. Colors, borders.. Thought they could need some adjustment in some places as well. Wine is very sexy (But why is panel on left? :whistle:) Wuthering is using good color combination, but needs to get rid of text, just like other ones.. It's to disturbing.
I don't want to be offensive here, it's just how I feel it. In my opinion forum should have a professional, neutral soft look. No annoying buttons, colors, texts. Everything compact and easy to access.
Off topic:
I like how wine and wuthering themes look. Colors, borders.. Thought they could need some adjustment in some places as well. Wine is very sexy (But why is panel on left? :whistle:) Wuthering is using good color combination, but needs to get rid of text, just like other ones.. It's to disturbing.
6
Archived fixes / Re: Anyone else get this? 'Create New Category' gives Forbidden error
« on June 6th, 2014, 03:57 PM »
Sounds like it's permission / hosting related.
7
The Pub / Re: Distributed Project Translation (Transifex)
« on June 4th, 2014, 06:41 PM »
Wait what, why not? Stop. Do you want to be like in wedge already (elements modifying only), but with an ability to create and delete arrays in $txt strings?

8
The Pub / Re: Distributed Project Translation (Transifex)
« on June 4th, 2014, 01:50 PM »
Yes, and more. Editing forum strings in real time, just like on http://www.lingumania.com/
9
The Pub / Re: Distributed Project Translation (Transifex)
« on June 4th, 2014, 02:43 AM »
I have started to build a plugin for wedge to overcome this thing with transiflex. Have quite big plans for it... :whistle:
10
Bug reports / [BBCode] Re: Allowed img HTML Tag not displayed
« on June 3rd, 2014, 01:29 PM »
Another problem with BBCode, found yesterday.
Code: [Select]
Somehow code tag inside spoiler gets wrapped out if a list is applied around spoiler.
(click to show/hide)
1
- [/spoiler][/li]
Somehow code tag inside spoiler gets wrapped out if a list is applied around spoiler.
11
Archived fixes / Re: Unable to click/hover on menus
« on June 2nd, 2014, 06:48 PM »
Um, I'm using a virtual machine to debug and host the forum, and still able to reproduce this on my Windows 7 machine.
Everything works as expected after a page reload, it gets buggy when you frequently click on the items.
Everything works as expected after a page reload, it gets buggy when you frequently click on the items.
12
Archived fixes / Unable to click/hover on menus
« on June 2nd, 2014, 05:59 PM »
If you click to many times on menus, they seem to freeze and dont accept any further actions until page is reloaded. Hovering doesn't work either. Using latest chrome.
Possible css bug?
Possible css bug?
13
Archived fixes / Possible js bug in admin panel
« on June 2nd, 2014, 05:49 PM »
Dont know if it's a bug, but it seems to appear in admin panel by using any browser. Affects javascript.
(click to show/hide)
Firefox:
(click to show/hide)
Opera:
(click to show/hide)
PHP Source:
(click to show/hide)
Live source (code preview in browser):
(click to show/hide)
Browsers
Chrome:Code: [Select] Uncaught SyntaxError: Unexpected token ILLEGAL index.php?action=admin:254
Code: [Select] Google Chrome 35.0.1916.114 (Official build 270117) m
ОС Windows
Blink 537.36 (@173968)
JavaScript V8 3.25.28.16
Flash 13.0.0.214
User Agent Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36
Firefox:
Code: [Select] SyntaxError: unterminated string literal index.php:391
Code: [Select] Mozilla firefox 29.0.1
ОС Windows
Mozilla/5.0 (Windows NT 5.1; rv:29.0) Gecko/20100101 Firefox/29.0
Opera:
Code: [Select] Uncaught SyntaxError: Unexpected token ILLEGAL index.php?action=admin:254
Code: [Select] 21.0.1432.67 - Opera
Stable
OC: Windows XP 32-bit
Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.132 Safari/537.36 OPR/21.0.1432.67
PHP Source:
/app/Admin.phpCode: [Select] // This sets the announcements and current versions themselves ;)
add_js('
new we_AdminIndex({
bLoadAnnouncements: true,
sAnnouncementTemplate: ', JavaScriptEscape('
<dl>
%content%
</dl>
'), ',
sAnnouncementMessageTemplate: ', JavaScriptEscape('
<dt><a href="%href%">%subject%</a> ' . sprintf($txt['on_date'], '%time%') . '</dt>
<dd>
%message%
</dd>
'), ',
sAnnouncementContainerId: \'wedge_news\',
sMonths: [\'', implode('\', \'', $txt['months']), '\'],
sMonthsShort: [\'', implode('\', \'', $txt['months_short']), '\'],
sDays: [\'', implode('\', \'', $txt['days']), '\'],
sDaysShort: [\'', implode('\', \'', $txt['days_short']), '\'],
bLoadVersions: true,
sVersionOutdatedTemplate: ' . JavaScriptEscape('
<span class="alert">%currentVersion%</span>
') . ',
bLoadUpdateNotification: true,
sUpdateTitle: ' . JavaScriptEscape($txt['update_available']) . ',
sUpdateMessage: ' . JavaScriptEscape($txt['update_message']) . ',
sUpdateLink: we_script + \'?action=admin;area=packages;pgdownload;auto;package=%package%;' . $context['session_query'] . '\'
});');
/app/Subs-Cache.phpCode: [Select] /**
* This function adds a string to the footer JavaScript that relies on jQuery and script.js being loaded.
* Several strings can be passed as parameters, allowing for easier conversion from an "echo" to an "add_js()" call.
*/
function add_js()
{
global $context, $footer_coding;
if (empty($footer_coding))
{
$footer_coding = true;
$context['footer_js'] .= '
<script>';
}
$args = func_get_args();
$context['footer_js'] .= implode('', $args);
}
/app/Subs.phpCode: [Select] /**
* Sanitizes strings that might be passed through to JavaScript.
*
* Multiple instances of scripts will need to be adjusted through the codebase if passed to JavaScript through the template. This function will handle quoting of the string's contents, including providing the encapsulating quotes (so no need to echo '"', JavaScriptEscape($var), '"'; but simply echo JavaScriptEscape($var); instead.)
*
* Other protections include dealing with newlines, carriage returns (through suppression), single quotes, links, inline script tags, and SCRIPT. (Probably to prevent search bots from indexing JS-only URLs.)
*
* @param string $string A string whose contents to be quoted.
* @param string $q (for quote) The quote character to use around the string. Defaults to '. Can be useful to switch to " if called within a string already declared with single quotes.
* @return string A transformed string with contents suitably quoted for use in JavaScript.
*/
function JavaScriptEscape($string, $q = "'")
{
$xq = $q == '"' ? "\x0f" : "\x10";
return $xq . str_replace(
array('\\', "\n", 'script', 'href=', '"' . SCRIPT, "'" . SCRIPT, $q == '"' ? "'" : '"', $q),
array('\\\\', "\\\n", 'scr\\ipt', 'hr\\ef=', '"' . SCRIPT . '"+"', "'" . SCRIPT . "'+'", $q == '"' ? "\x10" : "\x0f", '\\' . $xq),
$string
) . $xq;
}
Live source (code preview in browser):
Code: [Select] <script>
new we_AdminIndex({
bLoadAnnouncements: true,
sAnnouncementTemplate: '
\
<dl>
\
%content%
\
</dl>
\
',
sAnnouncementMessageTemplate: '
\
<dt><a hr\ef="%href%">%subject%</a> on %time%</dt>
\
<dd>
\
%message%
\
</dd>
\
',
sAnnouncementContainerId: 'wedge_news',
sMonths: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
sMonthsShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
sDays: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
sDaysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
bLoadVersions: true,
sVersionOutdatedTemplate: '
\
<span class="alert">%currentVersion%</span>
\
',
bLoadUpdateNotification: true,
sUpdateTitle: 'Update Available!',
sUpdateMessage: 'You\'re using an outdated version of Wedge, which contains some bugs which have since been fixed.
\
It is recommended that you <a hr\ef="#" id="update-link">update your forum</a> to the latest version as soon as possible. It only takes a minute!',
sUpdateLink: we_script + '?action=admin;area=packages;pgdownload;auto;package=%package%;ca509c0=59cd8d0732ce33c0d7372308ebeed895'
});
new JumpTo("jump_to");
</script>
14
The Pub / Re: Project Dutch Translation (Transifex)
« on May 23rd, 2014, 09:24 PM »But why German 83% when 100% is translated? :whistle: