1
astuni
Help with Spaw plz.
  • 2004/6/20 15:08

  • astuni

  • Just popping in

  • Posts: 22

  • Since: 2004/6/7 4


Hello, i've succesfully inserted Spaw in most textareas of my site\modules, but i need help doing something more.
I want a way to enable spaw only if user browser is MSIE otherwise it displays normal textarea field...

Since i use Xfsection, i saw that it use a trick based on an if statement...
if (!strstr($HTTP_SERVER_VARS["HTTP_USER_AGENT"], "MSIE")) $wfsConfig['wysiwygeditor'] = '0';

        if (
$wfsConfig['wysiwygeditor'] == '1') {  
        
//html_editor('maintext');
        
$sw = new SPAW_Wysiwyg'maintext'$this->maintext'en''full''default''98%''550px' );
           
$sw -> show();
        
$smiliepath $wfsConfig['smiliepath'];
        
$smilie_array XoopsLists::getimgListAsArray(XOOPS_ROOT_PATH."/".$smiliepath);

        echo 
"._AM_SMILIE.""
;
        echo 
"";
        echo 
"

        
Stats
Goal: $100.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits