dolibarr-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dolibarr-dev] [task #10478] A a skype button on a skype login


From: Laurent Destailleur
Subject: [Dolibarr-dev] [task #10478] A a skype button on a skype login
Date: Tue, 29 Jun 2010 14:58:41 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2) Gecko/20100212 Firefox/3.6

URL:
  <http://savannah.nongnu.org/task/?10478>

                 Summary: A a skype button on a skype login
                 Project: Dolibarr
            Submitted by: eldy
            Submitted on: Tue 29 Jun 2010 04:58:41 PM CEST
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: None
        Operating System: None

    _______________________________________________________

Details:

This is function to add a skype action button on a login:
 
function RenderSkype( $input, $argv ) {
 
// set your defaults for the style and action (add, call or chat) (add, call,
chat, ballon, bigclassic smallclassic, smallicon or mediumicon)
 
        $style_default = "bigclassic" ;
        $action_default = "chat" ;
 
// the varibles are: <skype style="$argv['style']"
action="$argv['action']">$input</skpye>
 
// escape $input to prevent XSS
        $input = htmlspecialchars($input) ;
 
// test to see if the optinal elements of the tags are set and supported. if
not set them to the defaults
 
        if( isset( $argv['style'] ) ){
                $style = $argv['style'] ;
                if ( ! in_array( $style, array( 'add' , 'chat', 'call',
'balloon', 'bigclassic', 'smallclassic', 'smallicon', 'mediumicon') ) ){
                        $style = $style_default ;
                }
        } else {
                $style = $style_default ;
        }
 
        if( isset( $argv['action'] ) ){
                $action = $argv['action'] ;
                if ( ! in_array( $action, array( 'add' , 'chat', 'call') )
){
                        $action = $action_default ;
                }
        } else {
                $action = $action_default ;
        }
 
// set the url to the image and the stype of the image
        switch( $style ){
 
                case "add":
                        $image = '<img
src="http://download.skype.com/share/skypebuttons/buttons/add_blue_transparent_118x23.png";
' ;
                        $image .= ' style="border: none; width: 118px;
height: 23px;" alt="My status" />' ;
                break;
 
                case "chat":
                        $image = '<img
src="http://download.skype.com/share/skypebuttons/buttons/chat_blue_transparent_97x23.png";
' ;
                        $image .= ' style="border: none; width: 97px; height:
23px;" alt="My status" />' ;
                break;
 
                case "call":
                        $image = '<img
src="http://download.skype.com/share/skypebuttons/buttons/call_blue_transparent_70x23.png";
' ;
                        $image .= ' style="border: none; width: 70px; height:
23px;" alt="My status" />' ;
                break;
 
                case "balloon":
                        $image = '<img
src="http://mystatus.skype.com/balloon/'.$input.'" ' ;
                        $image .= ' style="border: none; width: 150px;
height: 60px;" alt="My status" />' ;
                break;
 
                case "bigclassic":
                        $image = '<img
src="http://mystatus.skype.com/bigclassic/'.$input.'" ' ;
                        $image .= ' style="border: none; width: 182px;
height: 44px;" alt="My status" />' ;
                break;
 
                case "smallclassic":
                        $image = '<img
src="http://mystatus.skype.com/smallclassic/'.$input.'"' ;
                        $image .= ' style="border: none; width: 114px;
height: 20px;" alt="My status" />' ;
                break;
                case "smallicon":
                        $image = '<img
src="http://mystatus.skype.com/smallicon/'.$input.'"' ;
                        $image .= ' style="border: none; width: 16px; height:
16px;" alt="My status" />' ;
                break;
                case "mediumicon":
                        $image = '<img
src="http://mystatus.skype.com/mediumicon/'.$input.'"' ;
                        $image .= ' style="border: none; width: 26px; height:
26px;" alt="My status" />' ;
                break;
     }
 
// start the rendering the html outupt
 
     $output  = '<!-- Skype "My status" button
http://www.skype.com/go/skypebuttons -->';
     $output .= '<!-- MediaWiki extension
http://www.mediawiki.org/wiki/Extension:Skype -->';
     $output .= '<script type="text/javascript"
src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js";></script>';
     $output .= '<a href="skype:'.$input.'?'.$action.'">'.$image.'</a>';
     $output .= '<!-- end of Skype button -->';
 
// send the output to MediaWiki
     return $output;
}


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sun 22 May 2005 02:48:14 PM CESTBy: Anonymous
also the same here.

T41p, ubuntu hoary with tpb 0.6.3 and xosd-bin backage

-------------------------------------------------------
Date: Wed 18 May 2005 01:21:13 PM CESTBy: Anonymous
Same here - TP X31

-------------------------------------------------------
Date: Wed 19 Jan 2005 01:11:27 AM CETBy: Anonymous
Ditto, TP T41

-------------------------------------------------------
Date: Tue 19 Oct 2004 10:21:39 PM CESTBy: Anonymous
Same here

-------------------------------------------------------
Date: Sat 09 Oct 2004 07:27:39 AM CESTBy: Anonymous
I get the same issue - not a user here - email gabe (Inthehouseat)
squirrelsoup.net






    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/task/?10478>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]