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.
166
Archived fixes / Re: Moved to a board I cannot access?
« on June 12th, 2013, 05:58 AM »
Speaking of dental visits, I am WAY overdue for one P
167
Archived fixes / Moved to a board I cannot access?
« on June 12th, 2013, 05:53 AM »
See attached. The topic was moved... but I can obviously access the board (Archived Fixes).
168
Archived fixes / Language cache doesn't turn off
« on June 12th, 2013, 05:47 AM »
I have my cache disabled but every time I refresh, new lang cache files appear.
169
Archived fixes / Re: Menu is cut off below the footer
« on June 12th, 2013, 03:37 AM »
I don't mind. It *is* rather a fringe case.
170
Features / Re: Wedge Link Structure
« on June 11th, 2013, 07:32 PM »
lol. Yeah. Suggesting an argumenta discussion. :D
171
Plugins / [Plugin] Re: Awards
« on June 11th, 2013, 07:26 PM »
Now can notify you whenever you get an award.
172
Archived fixes / Re: Menu is cut off below the footer
« on June 11th, 2013, 07:18 PM »
lol. Its a generic list with one double-tall item.
173
Features / Re: Wedge Link Structure
« on June 11th, 2013, 07:14 PM »I wasn't arguing
174
Archived fixes / Menu is cut off below the footer
« on June 11th, 2013, 06:34 PM »
Calling @Nao plox
175
Archived fixes / Re: Profile controllers cannot be classes
« on June 11th, 2013, 06:31 PM »
Media menu
176
Archived fixes / Re: Profile controllers cannot be classes
« on June 11th, 2013, 06:22 PM »
Thank you.
177
Archived fixes / Re: Profile controllers cannot be classes
« on June 11th, 2013, 08:05 AM »
Are you also going to fix up any other area, such as admin?
178
Archived fixes / Plugin CSS isn't cached into its own subdir
« on June 11th, 2013, 08:01 AM »
Tagging @Nao
Code: [Select]
@@ -430,7 +430,7 @@
<link rel="stylesheet" href="' . $final_script . '">';
}
-function add_plugin_css_file($plugin_name, $original_files = array(), $add_link = false)
+function add_plugin_css_file($plugin_name, $original_files = array(), $add_link = false, $ignore_files = array())
{
global $context, $settings, $theme, $boardurl, $pluginsdir, $board_info;
@@ -483,8 +483,11 @@
$can_gzip = !empty($settings['enableCompressedData']) && function_exists('gzencode') && isset($_SERVER['HTTP_ACCEPT_ENCODING']) && substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip');
$ext = $can_gzip ? (we::is('safari') ? '.cgz' : '.css.gz') : '.css';
+ // Build the target folder from our skin's folder names and main file name. We don't need to show 'common-index-sections-extra-custom' in the main filename, though!
+ $target_folder = trim(implode('-', array_filter(array_diff($original_files, (array) 'common', $ignore_files))), '-');
+
// Cache final file and retrieve its name.
- $final_script = $boardurl . '/css/' . wedge_cache_css_files('', $id, $latest_date, $files, $can_gzip, $ext, array('$plugindir' => $context['plugins_url'][$plugin_name]));
+ $final_script = $boardurl . '/css/' . wedge_cache_css_files($target_folder . ($target_folder ? '/' : ''), $id, $latest_date, $files, $can_gzip, $ext, array('$plugindir' => $context['plugins_url'][$plugin_name]));
if ($final_script == $boardurl . '/css/')
return false;
179
Archived fixes / Profile controllers cannot be classes
« on June 10th, 2013, 09:20 AM »
The profile area (and all other areas) are limited by the old method of procedural function calls, checked by function_exists(). I'd like to ask for this to be changed to is_callable and call_user_func_array throughout.
I already made this change to the profile area like so:
Code: [Select]
Sample code to make use of this:
Code: [Select]
I already made this change to the profile area like so:
@@ -529,7 +529,7 @@
}
// Make sure that the area function does exist!
- if (!isset($profile_include_data['function']) || !function_exists($profile_include_data['function']))
+ if (!isset($profile_include_data['function']) || !is_callable($profile_include_data['function']))
{
destroyMenu();
fatal_lang_error('no_access', false);
@@ -696,7 +696,7 @@
redirectexit('action=profile' . (we::$user['is_owner'] ? '' : ';u=' . $memID) . ';area=' . $current_area);
// Call the appropriate subaction function.
- $profile_include_data['function']($memID);
+ call_user_func_array($profile_include_data['function'], array($memID));
// Set the page title if it's not already set...
if (!isset($context['page_title']))
Sample code to make use of this:
'function' => array('Awards\Profile', 'showAwards'),