]> git.mxchange.org Git - friendica.git/commitdiff
add info() function. Works like notice() but show messages in a div with class info...
authorFabio Comuni <fabrix.xm@gmail.com>
Mon, 23 May 2011 09:39:57 +0000 (11:39 +0200)
committerFabio Comuni <fabrix.xm@gmail.com>
Mon, 23 May 2011 09:39:57 +0000 (11:39 +0200)
update code to use info() instead of notice() when appropriate (non-error message)
add info-message class style in themes

33 files changed:
addon/facebook/facebook.php
addon/statusnet/statusnet.php
boot.php
include/auth.php
index.php
mod/contacts.php
mod/crepair.php
mod/dfrn_poll.php
mod/dfrn_request.php
mod/directory.php
mod/group.php
mod/install.php
mod/item.php
mod/lostpass.php
mod/manage.php
mod/match.php
mod/message.php
mod/network.php
mod/notifications.php
mod/oexchange.php
mod/openid.php
mod/profile_photo.php
mod/profiles.php
mod/register.php
mod/regmod.php
mod/search.php
mod/settings.php
mod/tagrm.php
mod/viewcontacts.php
view/settings_nick_set.tpl
view/theme/dispy/style.css
view/theme/duepuntozero/style.css
view/theme/loozah/style.css

index eba9d04b93b807e4b1b3b5507a1f3168ae48450b..17cc8bf5652c199b7bbb9b495e16fe2c20feba5f 100644 (file)
@@ -245,12 +245,12 @@ function facebook_content(&$a) {
 
        if($a->argc > 1 && $a->argv[1] === 'remove') {
                del_pconfig(local_user(),'facebook','post');
-               notice( t('Facebook disabled') . EOL);
+               info( t('Facebook disabled') . EOL);
        }
 
        if($a->argc > 1 && $a->argv[1] === 'friends') {
                fb_get_friends(local_user());
-               notice( t('Updating contacts') . EOL);
+               info( t('Updating contacts') . EOL);
        }
 
 
index 25aad028d6b4ee9cb73f6cd586820371e91e445c..bd40f78d832bec0f74169cf74d139654255db6f1 100644 (file)
@@ -169,7 +169,7 @@ function statusnet_settings_post ($a,$post) {
                    //  to post a tweet for every new __public__ posting to the wall
                    set_pconfig(local_user(),'statusnet','post',intval($_POST['statusnet-enable']));
                    set_pconfig(local_user(),'statusnet','post_by_default',intval($_POST['statusnet-default']));
-                       notice( t('StatusNet settings updated.') . EOL);
+                       info( t('StatusNet settings updated.') . EOL);
                }}}}
 }
 function statusnet_settings(&$a,&$s) {
index 1a6bf622c4f23d3cad3e4165a5186cf9c17b0a0d..acb49ca934f55c92b15f86299671cc3c871887aa 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -1007,6 +1007,13 @@ function notice($s) {
        if($a->interactive)
                $_SESSION['sysmsg'] .= $s;
 }}
+if(! function_exists('info')) {
+function info($s) {
+       $a = get_app();
+       if($a->interactive)
+               $_SESSION['sysmsg_info'] .= $s;
+}}
+
 
 // wrapper around config to limit the text length of an incoming message
 
@@ -2748,4 +2755,4 @@ function is_site_admin() {
        if(local_user() && x($a->user,'email') && x($a->config,'admin_email') && ($a->user['email'] === $a->config['admin_email']))
                return true;
        return false;
-}}
\ No newline at end of file
+}}
index 1c430406e9e84328f8d69bac078d0302aa3dafde..67e21d988936dbe94cd25e9ecf400da50c670f70 100644 (file)
@@ -24,7 +24,7 @@ if((isset($_SESSION)) && (x($_SESSION,'authenticated')) && ((! (x($_POST,'auth-p
                // process logout request
 
                nuke_session();
-               notice( t('Logged out.') . EOL);
+               info( t('Logged out.') . EOL);
                goaway($a->get_baseurl());
        }
 
@@ -205,11 +205,11 @@ else {
                if($a->user['login_date'] === '0000-00-00 00:00:00') {
                        $_SESSION['return_url'] = 'profile_photo/new';
                        $a->module = 'profile_photo';
-                       notice( t("Welcome ") . $a->user['username'] . EOL);
-                       notice( t('Please upload a profile photo.') . EOL);
+                       info( t("Welcome ") . $a->user['username'] . EOL);
+                       info( t('Please upload a profile photo.') . EOL);
                }
                else
-                       notice( t("Welcome back ") . $a->user['username'] . EOL);
+                       info( t("Welcome back ") . $a->user['username'] . EOL);
 
                if(strlen($a->user['timezone'])) {
                        date_default_timezone_set($a->user['timezone']);
index 05eef6c6e0bfe0f2e7475b29798ff96866702e6d..dc149436c16564c1a2cf7b6ad40ab821295da825 100644 (file)
--- a/index.php
+++ b/index.php
@@ -124,6 +124,9 @@ if(! x($_SESSION,'authenticated'))
 if(! x($_SESSION,'sysmsg'))
        $_SESSION['sysmsg'] = '';
 
+if(! x($_SESSION,'sysmsg_info'))
+       $_SESSION['sysmsg_info'] = '';
+
 /*
  * check_config() is responsible for running update scripts. These automatically 
  * update the DB schema whenever we push a new one out. It also checks to see if
@@ -276,8 +279,16 @@ if(stristr($_SESSION['sysmsg'], t('Permission denied'))) {
 if(x($_SESSION,'sysmsg')) {
        $a->page['content'] = "<div id=\"sysmsg\" class=\"error-message\">{$_SESSION['sysmsg']}</div>\r\n"
                . ((x($a->page,'content')) ? $a->page['content'] : '');
+       $_SESSION['sysmsg']="";
        unset($_SESSION['sysmsg']);
 }
+if(x($_SESSION,'sysmsg_info')) {
+       $a->page['content'] = "<div id=\"sysmsg_info\" class=\"info-message\">{$_SESSION['sysmsg_info']}</div>\r\n"
+               . ((x($a->page,'content')) ? $a->page['content'] : '');
+       $_SESSION['sysmsg_info']="";
+       unset($_SESSION['sysmsg_info']);
+}
+
 
 
 call_hooks('page_end', $a->page['content']);
index 0ad0d217f0eb30449d4746efa24b09c2984e2931..2ed7f198e7437595c3fc4fd735ed640ddddfed56 100644 (file)
@@ -85,7 +85,7 @@ logger('contact_edit ' . print_r($_POST,true));
                intval(local_user())
        );
        if($r)
-               notice( t('Contact updated.') . EOL);
+               info( t('Contact updated.') . EOL);
        else
                notice( t('Failed to update contact record.') . EOL);
        return;
@@ -143,7 +143,7 @@ function contacts_content(&$a) {
                        );
                        if($r) {
                                //notice( t('Contact has been ') . (($blocked) ? t('blocked') : t('unblocked')) . EOL );
-                               notice( (($blocked) ? t('Contact has been blocked') : t('Contact has been unblocked')) . EOL );
+                               info( (($blocked) ? t('Contact has been blocked') : t('Contact has been unblocked')) . EOL );
                        }
                        goaway($a->get_baseurl() . '/contacts/' . $contact_id);
                        return; // NOTREACHED
@@ -157,7 +157,7 @@ function contacts_content(&$a) {
                                        intval(local_user())
                        );
                        if($r) {
-                               notice( (($readonly) ? t('Contact has been ignored') : t('Contact has been unignored')) . EOL );
+                               info( (($readonly) ? t('Contact has been ignored') : t('Contact has been unignored')) . EOL );
                        }
                        goaway($a->get_baseurl() . '/contacts/' . $contact_id);
                        return; // NOTREACHED
@@ -197,7 +197,7 @@ function contacts_content(&$a) {
 
 
                        contact_remove($contact_id);
-                       notice( t('Contact has been removed.') . EOL );
+                       info( t('Contact has been removed.') . EOL );
                        goaway($a->get_baseurl() . '/contacts');
                        return; // NOTREACHED
                }
@@ -402,4 +402,4 @@ function contacts_content(&$a) {
        }
        $o .= paginate($a);
        return $o;
-}
\ No newline at end of file
+}
index 01b88d37a237a2b917466f56d07b6a5a1f401f72..4babd6bf7b955bee1b1f43e2590b60470030f0c9 100644 (file)
@@ -39,7 +39,7 @@ function crepair_post(&$a) {
        );
 
        if($r)
-               notice( t('Contact settings applied.') . EOL);
+               info( t('Contact settings applied.') . EOL);
        else
                notice( t('Contact update failed.') . EOL);
 
@@ -102,4 +102,4 @@ function crepair_content(&$a) {
 
        return $o;
 
-}
\ No newline at end of file
+}
index 718aa165c6bbefd9a229e40f5e7a2d1c739a1dfd..ef8469523dd92f86e8f458f7277d5dad274ab014 100644 (file)
@@ -81,7 +81,7 @@ function dfrn_poll_init(&$a) {
                                        $_SESSION['visitor_id'] = $r[0]['id'];
                                        $_SESSION['visitor_home'] = $r[0]['url'];
                                        $_SESSION['visitor_visiting'] = $r[0]['uid'];
-                                       notice( sprintf(t('%s welcomes %s'), $r[0]['username'] , $r[0]['name']) . EOL);
+                                       info( sprintf(t('%s welcomes %s'), $r[0]['username'] , $r[0]['name']) . EOL);
                                        // Visitors get 1 day session.
                                        $session_id = session_id();
                                        $expire = time() + 86400;
@@ -507,7 +507,7 @@ function dfrn_poll_content(&$a) {
                                        $_SESSION['visitor_id'] = $r[0]['id'];
                                        $_SESSION['visitor_home'] = $r[0]['url'];
                                        $_SESSION['visitor_visiting'] = $r[0]['uid'];
-                                       notice( sprintf(t('%s welcomes %s'), $r[0]['username'] , $r[0]['name']) . EOL);
+                                       info( sprintf(t('%s welcomes %s'), $r[0]['username'] , $r[0]['name']) . EOL);
                                        // Visitors get 1 day session.
                                        $session_id = session_id();
                                        $expire = time() + 86400;
index 8b44d22baa107108c8a4ed9746ddb48334c30ab6..537a7a497a4970df3f2bc6255c285184fe7de9df 100644 (file)
@@ -165,7 +165,7 @@ function dfrn_request_post(&$a) {
                                }
 
                                if($r) {
-                                       notice( t("Introduction complete.") . EOL);
+                                       info( t("Introduction complete.") . EOL);
                                }
 
                                /**
@@ -424,7 +424,7 @@ function dfrn_request_post(&$a) {
                        // This notice will only be seen by the requestor if the requestor and requestee are on the same server.
 
                        if(! $failed) 
-                               notice( t('Your introduction has been sent.') . EOL );
+                               info( t('Your introduction has been sent.') . EOL );
 
                        // "Homecoming" - send the requestor back to their site to record the introduction.
 
@@ -478,7 +478,7 @@ function dfrn_request_content(&$a) {
        if(x($_GET,'dfrn_url')) {
 
                if(! local_user()) {
-                       notice( t("Please login to confirm introduction.") . EOL );
+                       info( t("Please login to confirm introduction.") . EOL );
 
                        /* setup the return URL to come back to this page if they use openid */
 
@@ -650,4 +650,4 @@ function dfrn_request_content(&$a) {
        }
 
        return; // Somebody is fishing.
-}}
\ No newline at end of file
+}}
index dfe8ec0d95f50e8a70ceaf5f6a3af53f68531cf6..0c60f04bf4be14cb8ff4a2b29363047813405924 100644 (file)
@@ -138,7 +138,7 @@ function directory_content(&$a) {
 
        }
        else
-               notice( t("No entries \x28some entries may be hidden\x29.") . EOL);
+               info( t("No entries \x28some entries may be hidden\x29.") . EOL);
 
        return $o;
-}
\ No newline at end of file
+}
index 3da633edfe4d87f3552e04fa215fa8ed80e499c4..2d7ea8c11372bc56444c6661f402789cf4365440 100644 (file)
@@ -24,7 +24,7 @@ function group_post(&$a) {
                $name = notags(trim($_POST['groupname']));
                $r = group_add(local_user(),$name);
                if($r) {
-                       notice( t('Group created.') . EOL );
+                       info( t('Group created.') . EOL );
                        $r = group_byname(local_user(),$name);
                        if($r)
                                goaway($a->get_baseurl() . '/group/' . $r);
@@ -53,7 +53,7 @@ function group_post(&$a) {
                                intval($group['id'])
                        );
                        if($r)
-                               notice( t('Group name changed.') . EOL );
+                               info( t('Group name changed.') . EOL );
                }
 
                $a->page['aside'] = group_side();
@@ -87,7 +87,7 @@ function group_content(&$a) {
                        if(count($r)) 
                                $result = group_rmv(local_user(),$r[0]['name']);
                        if($result)
-                               notice( t('Group removed.') . EOL);
+                               info( t('Group removed.') . EOL);
                        else
                                notice( t('Unable to remove group.') . EOL);
                }
index b5f056df7c0537eeb67709714996ad9a9ebb0bb3..35c2b3daee736355bacbf6b712a715e1be1f5adc 100644 (file)
@@ -35,7 +35,7 @@ function install_post(&$a) {
                }
        }
 
-       notice( t('Connected to database.') . EOL);
+       info( t('Connected to database.') . EOL);
 
        $tpl = get_intltext_template('htconfig.tpl');
        $txt = replace_macros($tpl,array(
@@ -95,7 +95,7 @@ function install_content(&$a) {
                }
        }
 
-       notice( t('Welcome to Friendika.') . EOL);
+       info( t('Welcome to Friendika.') . EOL);
 
 
        check_funcs();
@@ -238,4 +238,4 @@ function load_database($db) {
                }
        }
        return $errors;
-}
\ No newline at end of file
+}
index 66fdc13af30701ce882b21b4edbdd9ac1c2ed12b..15dca37509d1fa74b3040ffc8c254295c11dacbd 100644 (file)
@@ -125,7 +125,7 @@ function item_post(&$a) {
                $pubmail_enable    = ((x($_POST,'pubmail_enable') && intval($_POST['pubmail_enable']) && (! $private)) ? 1 : 0);
 
                if(! strlen($body)) {
-                       notice( t('Empty post discarded.') . EOL );
+                       info( t('Empty post discarded.') . EOL );
                        if(x($_POST,'return')) 
                                goaway($a->get_baseurl() . "/" . $_POST['return'] );
                        killme();
index 530619bc4f7fa484c29be5a5a6166fb57a5d9789..e0bf6eed77c2d65ac98c9bb991c4c92b8f4acb99 100644 (file)
@@ -24,7 +24,7 @@ function lostpass_post(&$a) {
                intval($uid)
        );
        if($r)
-               notice( t('Password reset request issued. Check your email.') . EOL);
+               info( t('Password reset request issued. Check your email.') . EOL);
 
        $email_tpl = get_intltext_template("lostpass_eml.tpl");
        $email_tpl = replace_macros($email_tpl, array(
@@ -85,7 +85,7 @@ function lostpass_content(&$a) {
                                '$baseurl' => $a->get_baseurl()
 
                        ));
-                               notice("Your password has been reset." . EOL);
+                               info("Your password has been reset." . EOL);
 
 
 
@@ -120,4 +120,4 @@ function lostpass_content(&$a) {
                return $o;
        }
 
-}
\ No newline at end of file
+}
index 26f7315c326cc7c87809f0c194c147349536b29b..2705cc9324a8a5870a0ace6116dd7e1dc96f5d69 100644 (file)
@@ -34,7 +34,7 @@ function manage_post(&$a) {
        $_SESSION['page_flags'] = $r[0]['page-flags'];
        $_SESSION['my_url'] = $a->get_baseurl() . '/profile/' . $r[0]['nickname'];
 
-       notice( sprintf( t("Welcome back %s") , $r[0]['username']) . EOL);
+       info( sprintf( t("Welcome back %s") , $r[0]['username']) . EOL);
        $a->user = $r[0];
 
        if(strlen($a->user['timezone'])) {
@@ -107,4 +107,4 @@ function manage_content(&$a) {
 
        return $o;
 
-}
\ No newline at end of file
+}
index 092595a09c5e91f70e6496c5a7e729468109db6c..2742b4a887844fd14ba6c4eb3774cf1d18b82721 100644 (file)
@@ -47,11 +47,11 @@ function match_content(&$a) {
                        $o .= '<div id="profile-match-wrapper-end"></div>';
                }
                else {
-                       notice( t('No matches') . EOL);
+                       info( t('No matches') . EOL);
                }               
 
        }
 
        $o .= paginate($a);
        return $o;
-}
\ No newline at end of file
+}
index c9ff3bb8e42737fbe9cff4ef06affd7fbe72e48d..21f7b935e6d3e6797e988c40bbd37ef0e7e76f48 100644 (file)
@@ -99,7 +99,7 @@ function message_post(&$a) {
        
        if($post_id) {
                proc_run('php',"include/notifier.php","mail","$post_id");
-               notice( t('Message sent.') . EOL );
+               info( t('Message sent.') . EOL );
        }
        else {
                notice( t('Message could not be sent.') . EOL );
@@ -139,7 +139,7 @@ function message_content(&$a) {
                                intval(local_user())
                        );
                        if($r) {
-                               notice( t('Message deleted.') . EOL );
+                               info( t('Message deleted.') . EOL );
                        }
                        goaway($a->get_baseurl() . '/message' );
                }
@@ -155,7 +155,7 @@ function message_content(&$a) {
                                        intval(local_user())
                                );
                                if($r)
-                                       notice( t('Conversation removed.') . EOL );
+                                       info( t('Conversation removed.') . EOL );
                        } 
                        goaway($a->get_baseurl() . '/message' );
                }       
@@ -221,7 +221,7 @@ function message_content(&$a) {
                        intval($a->pager['itemspage'])
                );
                if(! count($r)) {
-                       notice( t('No messages.') . EOL);
+                       info( t('No messages.') . EOL);
                        return $o;
                }
 
@@ -328,4 +328,4 @@ function message_content(&$a) {
                return $o;
        }
 
-}
\ No newline at end of file
+}
index 16739b434579753b947929a8fe0af41bf0766280..f38fb8c213680c52856010a13a84116760ebc626 100644 (file)
@@ -61,8 +61,9 @@ function network_content(&$a, $update = 0) {
        if(! $update) {
                if(group) {
                        if(($t = group_public_members($group)) && (! get_pconfig(local_user(),'system','nowarn_insecure'))) {
-                               $plural_form = sprintf( tt('%d member', '%d members', $t), $t);
-                               notice( sprintf( t('Warning: This group contains %s from an insecure network.'), $plural_form ) . EOL);
+                               notice( sprintf( tt('Warning: This group contains %s member from an insecure network.',
+                                                                       'Warning: This group contains %s members from an insecure network.',
+                                                                       $t), $t ) . EOL);
                                notice( t('Private messages to this group are at risk of public disclosure.') . EOL);
                        }
                }
@@ -136,7 +137,7 @@ function network_content(&$a, $update = 0) {
                }
                else {
                                $contact_str = ' 0 ';
-                               notice( t('Group is empty'));
+                               info( t('Group is empty'));
                }
 
                $sql_extra = " AND `item`.`parent` IN ( SELECT `parent` FROM `item` WHERE `id` = `parent` AND ( `contact-id` IN ( $contact_str ) OR `allow_gid` REGEXP '<" . intval($group) . ">' )) ";
index b860f601867c0f97a470edce5c35db10726432d2..a3339199efaaea8e4ac5a98b54c48e9854ed4ab1 100644 (file)
@@ -136,7 +136,7 @@ function notifications_content(&$a) {
                }
        }
        else
-               notice( t('No notifications.') . EOL);
+               info( t('No notifications.') . EOL);
 
        if ($a->config['register_policy'] == REGISTER_APPROVE &&        
                $a->config['admin_email'] === $a->user['email']){
@@ -156,7 +156,7 @@ function notifications_content(&$a) {
                        $o .= "</ul>";
                }
                else
-                       notice( t('No registrations.') . EOL);
+                       info( t('No registrations.') . EOL);
 
        }
 
index d5af4813bac5ddd2fbd93074c9eae457042cce8b..1a990c64f17350f8b9f7e8e9b5d90efaaabdbf59 100644 (file)
@@ -24,7 +24,7 @@ function oexchange_content(&$a) {
        }
 
        if(($a->argc > 1) && $a->argv[1] === 'done') {
-               notice( t('Post successful.') . EOL);
+               info( t('Post successful.') . EOL);
                return;
        }
 
index c3c6c11e9e8f9a02a34ca84b240d5e4bb5a05ba1..a1824fb38a0c1b3673b2ea172195a00a28f2b315 100644 (file)
@@ -75,11 +75,11 @@ function openid_content(&$a) {
                        if($a->user['login_date'] === '0000-00-00 00:00:00') {
                                $_SESSION['return_url'] = 'profile_photo/new';
                                $a->module = 'profile_photo';
-                               notice( t("Welcome ") . $a->user['username'] . EOL);
-                               notice( t('Please upload a profile photo.') . EOL);
+                               info( t("Welcome ") . $a->user['username'] . EOL);
+                               info( t('Please upload a profile photo.') . EOL);
                        }
                        else
-                               notice( t("Welcome back ") . $a->user['username'] . EOL);
+                               info( t("Welcome back ") . $a->user['username'] . EOL);
 
 
                        if(strlen($a->user['timezone'])) {
@@ -118,4 +118,4 @@ function openid_content(&$a) {
        notice( t('Login failed.') . EOL);
        goaway($a->get_baseurl());
        // NOTREACHED
-}
\ No newline at end of file
+}
index b1fd0fc6ef41cc059ad67c8906fb410f94fab755..8dc8966532d90e80309cd650403578144b085aa5 100644 (file)
@@ -236,7 +236,7 @@ function profile_photo_crop_ui_head(&$a, $ph){
        $r = $ph->store(local_user(), 0 , $hash, $filename, t('Profile Photos'), 0 );   
 
        if($r)
-               notice( t('Image uploaded successfully.') . EOL );
+               info( t('Image uploaded successfully.') . EOL );
        else
                notice( t('Image upload failed.') . EOL );
 
index 984420aa2c7acc2ac032adc6c5b38a227a1daae7..9c92d81bad906779f0cc9b198cbc8e77ac2ddcb2 100644 (file)
@@ -196,7 +196,7 @@ function profiles_post(&$a) {
                );
 
                if($r)
-                       notice( t('Profile updated.') . EOL);
+                       info( t('Profile updated.') . EOL);
 
 
                if($namechanged && $is_default) {
@@ -251,7 +251,7 @@ function profiles_content(&$a) {
                        intval(local_user())
                );
                if($r)
-                       notice( t('Profile deleted.') . EOL);
+                       info( t('Profile deleted.') . EOL);
 
                goaway($a->get_baseurl() . '/profiles');
                return; // NOTREACHED
@@ -286,7 +286,7 @@ function profiles_content(&$a) {
                        dbesc($name)
                );
 
-               notice( t('New profile created.') . EOL);
+               info( t('New profile created.') . EOL);
                if(count($r3) == 1)
                        goaway($a->get_baseurl() . '/profiles/' . $r3[0]['id']);
                goaway($a->get_baseurl() . '/profiles');
@@ -325,7 +325,7 @@ function profiles_content(&$a) {
                        intval(local_user()),
                        dbesc($name)
                );
-               notice( t('New profile created.') . EOL);
+               info( t('New profile created.') . EOL);
                if(count($r3) == 1)
                        goaway($a->get_baseurl() . '/profiles/' . $r3[0]['id']);
        goaway($a->get_baseurl() . '/profiles');
@@ -475,4 +475,4 @@ function profiles_content(&$a) {
                return $o;
        }
 
-}
\ No newline at end of file
+}
index c9521f9be5dd3826d873322927cf8e4813383784..95bf60e3240a3fff7bc91de0c577ab330d382af1 100644 (file)
@@ -336,7 +336,7 @@ function register_post(&$a) {
 
 
                if($res) {
-                       notice( t('Registration successful. Please check your email for further instructions.') . EOL ) ;
+                       info( t('Registration successful. Please check your email for further instructions.') . EOL ) ;
                        goaway($a->get_baseurl());
                }
                else {
@@ -374,7 +374,7 @@ function register_post(&$a) {
                                . 'Content-type: text/plain; charset=UTF-8' . "\n"
                                . 'Content-transfer-encoding: 8bit' );
                if($res) {
-                       notice( t('Your registration is pending approval by the site owner.') . EOL ) ;
+                       info( t('Your registration is pending approval by the site owner.') . EOL ) ;
                        goaway($a->get_baseurl());
                }
 
index fe29cb185f66e75fc885e4a3fef301b1a5373060..2563a58d146071ce8dc5e7510ffeda06267df306 100644 (file)
@@ -7,7 +7,7 @@ function regmod_content(&$a) {
        $_SESSION['return_url'] = $a->cmd;
 
        if(! local_user()) {
-               notice( t('Please login.') . EOL);
+               info( t('Please login.') . EOL);
                $o .= '<br /><br />' . login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1);
                return $o;
        }
@@ -96,8 +96,8 @@ function regmod_content(&$a) {
                                . 'Content-transfer-encoding: 8bit' );
 
                if($res) {
-                       notice( t('Account approved.') . EOL );
+                       info( t('Account approved.') . EOL );
                        return;
                }
        }
-}
\ No newline at end of file
+}
index 33032e183234b706c45b98fbd8ddf1f4104f8d28..9c82b38e818396c724037dc2f70d38b1bfcf0447 100644 (file)
@@ -66,7 +66,7 @@ function search_content(&$a) {
                $a->set_pager_total($r[0]['total']);
 
        if(! $r[0]['total']) {
-               notice( t('No results.') . EOL);
+               info( t('No results.') . EOL);
                return $o;
        }
 
index cba6958b3c47b8dd05920dc696ec9edca0d2eaa5..0550429161f492ac50792c96bc4c3ebbe3f3a1b1 100644 (file)
@@ -51,7 +51,7 @@ function settings_post(&$a) {
                                intval(local_user())
                        );
                        if($r)
-                               notice( t('Password changed.') . EOL);
+                               info( t('Password changed.') . EOL);
                        else
                                notice( t('Password update failed. Please try again.') . EOL);
                }
@@ -203,7 +203,7 @@ function settings_post(&$a) {
                        intval(local_user())
        );
        if($r)
-               notice( t('Settings updated.') . EOL);
+               info( t('Settings updated.') . EOL);
 
        $r = q("UPDATE `profile` 
                SET `publish` = %d, `net-publish` = %d
@@ -374,7 +374,7 @@ function settings_content(&$a) {
                ? true : false);
 
        if($invisible)
-               notice( t('Profile is <strong>not published</strong>.') . EOL );
+               info( t('Profile is <strong>not published</strong>.') . EOL );
 
        
        $theme_selector = '<select name="theme" id="theme-select" >';
@@ -485,7 +485,7 @@ function settings_content(&$a) {
                '$imap_replyto' => $mail_replyto,
                '$lbl_imap7' => t('Send public posts to all email contacts:'),
                '$pubmail_checked' => (($mail_pubmail) ? ' checked="checked" ' : ''),
-               '$mail_disabled' => (($mail_disabled) ? '<div class="error-message">' . t('Email access is disabled on this site.') . '</div>' : ''),
+               '$mail_disabled' => (($mail_disabled) ? '<div class="info-message">' . t('Email access is disabled on this site.') . '</div>' : ''),
                '$imap_disabled' => $imap_disabled
        ));
 
index 99d22f3d2aa1bad0904b86040086d01daa451b78..5041145cc323e2a99268b706b4c0c71e2049b832 100644 (file)
@@ -38,7 +38,7 @@ function tagrm_post(&$a) {
                intval(local_user())
        );
 
-       notice( t('Tag removed') . EOL );
+       info( t('Tag removed') . EOL );
        goaway($a->get_baseurl() . '/' . $_SESSION['photo_return']);
        
        // NOTREACHED
@@ -96,4 +96,4 @@ function tagrm_content(&$a) {
 
        return $o;
        
-}
\ No newline at end of file
+}
index 732607b182aaf98517dc52fb7e5042345f141f57..e8c2462e232fa56fbc79bcf9378db43aa69a6ef5 100644 (file)
@@ -37,7 +37,7 @@ function viewcontacts_content(&$a) {
                intval($a->pager['itemspage'])
        );
        if(! count($r)) {
-               notice( t('No contacts.') . EOL );
+               info( t('No contacts.') . EOL );
                return $o;
        }
 
@@ -62,4 +62,4 @@ function viewcontacts_content(&$a) {
        $o .= paginate($a);
 
        return $o;
-}
\ No newline at end of file
+}
index 1b0766099a40e766017502b20234acbb68d58220..eb4721d50d77d5c5835b0701f416df45a40c3e5f 100644 (file)
@@ -1,7 +1,5 @@
 
 <div id="settings-nick-wrapper" >
-<p id="settings-nickname-desc">
-<div class="error-message">$desc <strong>'$nickname@$basepath'</strong>$subdir</div>
-</p>
+<div id="settings-nickname-desc" class="info-message">$desc <strong>'$nickname@$basepath'</strong>$subdir</div>
 </div>
 <div id="settings-nick-end" ></div>
index a212c19358bdfde3bbe9073fa8a7fb57833faf91..b7c41c89c3e0e5d2cf05efdf5a6fd34117283e53 100644 (file)
@@ -171,6 +171,18 @@ nav .nav-link {
 #home-update { background-position: -90px 0px; }
 
 /** sysmsg **/
+#sysmsg_info{
+       position:fixed; 
+       bottom: 0px; right:20%; 
+       -moz-box-shadow: 0px 0px 5px #888;
+       -webkit-box-shadow: 0px 0px 5px #888;
+       box-shadow: 0px 0px 5px #888;
+       padding: 10px; 
+       background-color: #fcaf3e; border:2px solid #f8911b;
+       border-bottom:0px;
+       padding-bottom: 50px;   
+       z-index: 1000;
+}
 #sysmsg { 
        position:fixed; 
        bottom: 0px; right:10%; 
@@ -183,12 +195,15 @@ nav .nav-link {
        padding-bottom: 50px;   
        z-index: 1000;
 }
+#sysmsg_info br,
 #sysmsg br {
        display:block;
        margin:2px 0px;
        border-top: 1px solid #ccccce;
 }
 
+
+
 /**
 * aside
 **/
index 9e7ebbc065410ac8d97dc8fc7d5564631666998a..61da542312353c268d538741955c2828486d2455 100644 (file)
@@ -93,6 +93,14 @@ nav #site-location {
        padding: 10px;
 }
 
+.info-message {
+       color: #204a87;
+       font-size: 1.1em;
+       border: 1px solid #3465a4;
+       background-color: #d7e3f1;
+       padding: 10px;
+}
+
 
 nav #banner {
        display: block;
index 0ae2ab4cd88b3e27241fb4f68b79b7b05470ebbe..92c2c20a771693bd4765e5ad9f6f685c1e729b82 100644 (file)
@@ -290,6 +290,14 @@ nav {
        background-color: #FFEEEE;
        padding: 10px;
 }
+.info-message {
+       color: #204a87;
+       font-size: 1.1em;
+       border: 1px solid #3465a4;
+       background-color: #d7e3f1;
+       padding: 10px;
+}
+
 
 .nav-link {
        float: right;