Nice work, Wil was looking foorward for this
We will test and report back
Bug found: path to user photo is deleted when saving profile.
In webloginpe.class.php near
if ($field!='photo' || ($_FILES['photo']['name'] !== '' && !empty($_FILES['photo']['name']))) // for update db with value and blank value (except if the field is 'photo')
need to add {} bracers
if ($field!='photo' || ($_FILES['photo']['name'] !== '' && !empty($_FILES['photo']['name']))) // for update db with value and blank value (except if the field is 'photo')
{
// CREDIT: Mike Reid (aka Pixelchutes) for the string escape code.
$charset='"'.$modx->config['modx_charset'].'"';
$generalElementsUpdate[] = " `".$field."` = '".$modx->db->escape(stripslashes(htmlentities(trim($_POST[$field]), ENT_QUOTES, $modx->config['modx_charset'])))."'";
}
DirectResize 0.9 beta. PHPThumb, sets of configurations, configuration, binded to specific path. No backward compatibility. |
DirectResize 0.9. PHPThumb, наборы параметров, параметры, привязанные к определенным путям. Без обратной совместимости.
Unfortunately, DirectResize project is closed. If you want to continue development, PM me for access to project page on Google Code. К сожалению, проект DirectResize закрыт. Если вы желаете продолжить разработки, обращайтесь через ПМ для получения доступа к репозиторию на Google Code.
[PLUGIN] DirectResize - as Maxigallery but for single images ::
Download :: [url=
http://modxcms.com/forums/index.php/topic,21490]
BETA 3 has been released. This fixes the user avatar issue, and applies a new method to cropping user avatars, instead of changing their dimensions.
-
☆ A M B ☆
- 1,231 Posts
For some reason on my edit details page and logged in screen, the default avatar image is showing up as a missing image.... but works if you upload an image on registration. Also after signing up and try to save any updates via the profile update I get this error.
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: htmlentities() [function.htmlentities]: charset `"UTF-8"' not supported, assuming iso-8859-1
Error type/ Nr.: Warning - 2
File: /home/sites/public_html/assets/snippets/webloginpe/webloginpe.class.php
Line: 947
Line 947 source: $extendedFieldValues[$field] = $modx->db->escape(stripslashes(htmlentities(trim($_POST[$field]), ENT_QUOTES,$charset)));
Parser timing
MySQL: 0.0131 s (21 Requests)
PHP: 0.1550 s
Total: 0.1680 s
I have downloaded the latest versions on loginPE
Thanks