Skip to content

Commit

Permalink
- fix help files
Browse files Browse the repository at this point in the history
- feature 695 added action loc_user_profile_updated in profile.php
- added event allow_increment_element_hit_count in picture.php

git-svn-id: http://piwigo.org/svn/trunk@2048 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
rvelices committed Jun 30, 2007
1 parent 12af0a0 commit 182a8f4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
9 changes: 4 additions & 5 deletions language/en_UK.iso-8859-1/help/configuration.html
Expand Up @@ -24,14 +24,13 @@ <h3>Main</h3>
maintenance. Only administrator users will be able to reach the
gallery.</li>

<li><strong>Allow user registration</strong>: Registration is free for all.</li>
<li><strong>Rating</strong>: Picture rating feature is enabled.</li>

<li><strong>Mail address is obligatory for all users</strong>: Mail address will checked on registration or profile update except if the action is done on administration part.</li>
<li><strong>Rating by guests</strong>: Even non registered users can rate images.</li>

<li><strong>Rating</strong>: Picture rating feature is enabled.</li>
<li><strong>Allow user registration</strong>: Registration is free for all.</li>

<li><strong>Rating by guests</strong>: Even non registered users can
rate images.</li>
<li><strong>Mail address is obligatory for all users</strong>: Mail address will checked on registration or profile update except if the action is done on administration part.</li>

<li><strong>Email admins when a new user registers</strong>: Administrators will be received mail for each registration.</li>

Expand Down
9 changes: 4 additions & 5 deletions language/fr_FR.iso-8859-1/help/configuration.html
Expand Up @@ -24,14 +24,13 @@ <h3>Principale</h3>
galerie pour maintenance. Seul les administrateurs pourront accéder à la
galerie.</li>

<li><strong>Permettre l'enregistrement des utilisateurs</strong>: L'inscription est libre pour tous.</li>
<li><strong>Notation</strong>: La notation des photos est possible.</li>

<li><strong>L'adresse mail est obligatoire pour tous les utilisateurs</strong>: L'adresse mail sera vérifié lors des inscriptions ou de la mise à jour des profils sauf si l'action est effectuée dans la partie administration.</li>
<li><strong>Notation par les visiteurs</strong>: Même les utilisateurs non enregistrés peuvent noter les images.</li>

<li><strong>Notation</strong>: La notation des photos est possible.</li>
<li><strong>Permettre l'enregistrement des utilisateurs</strong>: L'inscription est libre pour tous.</li>

<li><strong>Notation par les visiteurs</strong>: Même les utilisateurs
non enregistrés peuvent noter les images.</li>
<li><strong>L'adresse mail est obligatoire pour tous les utilisateurs</strong>: L'adresse mail sera vérifié lors des inscriptions ou de la mise à jour des profils sauf si l'action est effectuée dans la partie administration.</li>

<li><strong>Notifier les administrateurs lors de l'inscription d'un utilisateur</strong>: Les administrateurs recevront un courriel à chaque inscription.</li>

Expand Down
8 changes: 5 additions & 3 deletions picture.php
Expand Up @@ -241,14 +241,16 @@ function default_picture_content($content, $element_info)
}

// incrementation of the number of hits, we do this only if no action
$query = '
if (trigger_event('allow_increment_element_hit_count', true) )
{
$query = '
UPDATE
'.IMAGES_TABLE.'
SET hit = hit+1
WHERE id = '.$page['image_id'].'
;';
pwg_query($query);

pwg_query($query);
}
//---------------------------------------------------------- related categories
$query = '
SELECT category_id,uppercats,commentable,global_rank
Expand Down
3 changes: 2 additions & 1 deletion profile.php
Expand Up @@ -194,7 +194,8 @@ function save_profile_from_post(&$userdata, &$errors)
array('primary' => array('user_id'), 'update' => $fields),
array($data));

// redirection
trigger_action( 'loc_user_profile_updated', $_POST['userid'] );

if (!empty($_POST['redirect']))
{
redirect($_POST['redirect']);
Expand Down

0 comments on commit 182a8f4

Please sign in to comment.