51
samuels
Re: Koivi for Wiwimod?
  • 2004/12/27 13:26

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


Sorry for not answering you before, i was out this days.
But congrats. You made it alone!!

Remember to tell me if you find some bug on koivi.
thx.



52
samuels
Re: XOOPS Developer Room on FOSDEM 2005?
  • 2004/12/20 15:35

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


I'm interseted too. Seems a good idea.



53
samuels
Re: No page refresh in Firefox after using Koivi
  • 2004/12/18 14:50

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


It's a known bug on gecko browsers, just read the koivi docs for a solution.



54
samuels
Re: could you help me with koivi editor ?
  • 2004/12/17 21:34

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


@Peekay
By default, if koivi is executed under a non supported browser it loads the default xoopsdhtmlarea.

@twitaman
There is an example on docs who explains how to implement on news 1.2.1.
Russtik explanation is for news 1.1, an older version.

Just follow koivi docs, you need to change only two lines.



55
samuels
Re: Koivi and NewBB 2.0
  • 2004/12/16 23:37

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


What version of koivi are you using?
I've tested your theme in both iexplore and firefox without problems.
Edit:
Do you have allowed access to your forum? I want to take a look.



56
samuels
Re: could you help me with koivi editor ?
  • 2004/12/14 23:50

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


I think there was a hack to apply htmlarea to all installed modules, it works hacking dhtmltextarea, so it changes the default XOOPS editor and changes by htmlarea.
You can do something similar, if you cahnge xoopsdhtmltxtarea, all modules that use it will change.



57
samuels
Re: Getting modify errors with Koivi eidor
  • 2004/12/14 21:41

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


I have checked this form in Myreviews 2.1rc

This is the modfile.php file complete
<?php
// $Id: modfile.php,v 1.1 2004/01/29 14:45:12 buennagel Exp $
//  ------------------------------------------------------------------------ //
//                XOOPS - PHP Content Management System                      //
//                    Copyright (c) 2000 XOOPS.org                           //
//                       <https://xoops.org/>                             //
// ------------------------------------------------------------------------- //
//  This program is free software; you can redistribute it and/or modify     //
//  it under the terms of the GNU General Public License as published by     //
//  the Free Software Foundation; either version 2 of the License, or        //
//  (at your option) any later version.                                      //
//                                                                           //
//  You may not change or alter any portion of this comment or credits       //
//  of supporting developers from this source code or any supporting         //
//  source code which is considered copyrighted (c) material of the          //
//  original comment or credit authors.                                      //
//                                                                           //
//  This program is distributed in the hope that it will be useful,          //
//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
//  GNU General Public License for more details.                             //
//                                                                           //
//  You should have received a copy of the GNU General Public License        //
//  along with this program; if not, write to the Free Software              //
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
//  ------------------------------------------------------------------------ //

include "header.php";
include_once 
XOOPS_ROOT_PATH."/class/xoopstree.php";
include_once 
XOOPS_ROOT_PATH."/class/module.errorhandler.php";
include_once 
XOOPS_ROOT_PATH."/include/xoopscodes.php";

$myts =& MyTextSanitizer::getInstance(); // MyTextSanitizer object
$mytree = new XoopsTree($xoopsDB->prefix("myReviews_cat"),"cid","pid");

if(isset(
$HTTP_POST_VARS['submit']))
  {
    
$eh = new ErrorHandler//ErrorHandler object
    
if(empty($xoopsUser)){
        
redirect_header(XOOPS_URL."/user.php",2,_MD_MUSTREGFIRST);
        exit();
    } else {
        
$ratinguser $xoopsUser->getVar('uid');
    }
    
$submit_vars = array('lid''title''url''homepage''descriptio''logourl''cid');
    foreach(
$submit_vars as $submit_key) {
        $
$submit_key $HTTP_POST_VARS[$submit_key];
    }
    
$lid intval($lid);

    
// Check if Title exist
    
if (trim($title)=="") {
        
$eh->show("1001");
    }
    
// Check if HOMEPAGE exist
    
if (trim($homepage)=="") {
        
$eh->show("1016");
    }
    
// Check if Description exist
    
if (trim($descriptio)=="") {
        
$eh->show("1008");
    }

    
$url $myts->makeTboxData4Save($url);
    
$logourl $myts->makeTboxData4Save($logourl);
    
$cid intval($cid);
    
$title $myts->makeTboxData4Save($title);
    
$homepage $myts->makeTboxData4Save($homepage);
    
$description $myts->makeTareaData4Save($descriptio);
    
$newid $xoopsDB->genId($xoopsDB->prefix("myReviews_mod")."_requestid_seq");

    
$sql sprintf("INSERT INTO %s (requestid, lid, cid, title, url, homepage, logourl, description, modifysubmitter) VALUES (%u, %u, %u, '%s', '%s', '%s', '%s', '%s', %u)"$xoopsDB->prefix("myReviews_mod"), $newid$lid$cid$title$url$homepage$logourl$description$ratinguser);
    
$xoopsDB->query($sql) or $eh->show("0013");
    
$tags = array();
    
$tags['MODIFYREPORTS_URL'] = XOOPS_URL '/modules/' $xoopsModule->getVar('dirname') . '/admin/index.php?op=listModReq';
    
$notification_handler =& xoops_gethandler('notification');
    
$notification_handler->triggerEvent('global'0'file_modify'$tags);
    
redirect_header("index.php",2,_MD_THANKSFORINFO);
    exit();

  }
//End if


    
$lid intval($HTTP_GET_VARS['lid']);
    if(empty(
$xoopsUser)){
        
redirect_header(XOOPS_URL."/user.php",2,_MD_MUSTREGFIRST);
        exit();
    }
    include 
XOOPS_ROOT_PATH."/header.php";
    
$result $xoopsDB->query("SELECT cid, title, url, homepage, logourl FROM ".$xoopsDB->prefix("myReviews_downloads")." WHERE lid=".$lid." AND status>0");
    list(
$cid$title$url$homepage$logourl) = $xoopsDB->fetchRow($result);
    
$title $myts->makeTboxData4Edit($title);
    
$url $myts->makeTboxData4Edit($url);
    
$homepage $myts->makeTboxData4Edit($homepage);
    
$logourl $myts->makeTboxData4Edit($logourl);
    
$result2 $xoopsDB->query("SELECT description FROM ".$xoopsDB->prefix("myReviews_text")." WHERE lid=$lid");
    list(
$description)=$xoopsDB->fetchRow($result2);
    
$description $myts->makeTareaData4Show($description);
    
        include 
XOOPS_ROOT_PATH "/class/xoopsformloader.php";
        include 
XOOPS_ROOT_PATH "/class/wysiwyg/formwysiwygtextarea.php";
    
        
$sform = new XoopsThemeForm_MD_REQUESTMOD"storyform""modfile.php" );
        
$sform->addElement( new XoopsFormText_MD_FILETITLE'title'5080,$title ), true );
        
$sform->addElement( new XoopsFormText_MD_DLURL'url'5080,$url ), false );
        
$sform->addElement( new XoopsFormText_MD_HOMEPAGEC'homepage'5080,$homepage ), false );
        
$sform->addElement( new XoopsFormText_MD_SHOTIMAGE'logourl'5080,$logourl ), false );
        
$sform->addElement(new XoopsFormHidden('lid',$lid));
        
$wysiwyg_text_area= new XoopsFormWysiwygTextArea(  _MD_DESCRIPTIONC'descriptio'$description '100%''400px','');
        
$wysiwyg_text_area->setSkin("xp");
        
$sform->addElement$wysiwyg_text_area );
        
        
$button_tray = new XoopsFormElementTray'''' );
        
$button_tray->addElement( new XoopsFormButton'''submit'_MD_SENDREQUEST'submit' ) );
        
$sform->addElement$button_tray );
        
$sform->display();
    
    include 
XOOPS_ROOT_PATH.'/footer.php';
?>


Take it as example to do the job with other forms on this module.



58
samuels
Re: Getting modify errors with Koivi eidor
  • 2004/12/13 22:15

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


I'm Sorry but this module needs a lot of work to implement koivi.
If I have time I'll made new forms for this module.



59
samuels
Re: Koivi and WFchannel
  • 2004/12/13 20:33

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


Open wfchannel/admin/index.php

Go to line 63 and add:
include_once XOOPS_ROOT_PATH.'/class/wysiwyg/formwysiwygtextarea.php';


Go to line 135:
$sform->addElement(new XoopsFormDhtmlTextArea(_AM_CHANA _AM_WORDCOUNT $total_words'page'$page1560), false);


And replace by:
$sform->addElement(new XoopsFormWysiwygTextArea(_AM_CHANA _AM_WORDCOUNT $total_words'page'$page'100%''400px',''), false);


Go to line 568:
$sform->addElement(new XoopsFormDhtmlTextArea(_AM_CHANA'linkintro'$linkintro1560), false);


And replace by:
$sform->addElement(new XoopsFormWysiwygTextArea(_AM_CHANA,'linkintro'$linkintro'100%''400px',''), false);


Go to line 723:
$sform->addElement(new XoopsFormDhtmlTextArea(_AM_CHANA'chanrefheadline'$chanrefheadline1560), false);


And replace by:
$sform->addElement(new XoopsFormWysiwygTextArea(_AM_CHANA'chanrefheadline'$chanrefheadline'100%''400px',''), false);


As you can see if you have read the koivi docs, this one is very similar to the whole examples.

So if you don't have time to read the docs just be patient to be answered.



60
samuels
Re: could you help me with koivi editor ?
  • 2004/12/13 11:18

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


By now there is not css file attached to the editor's iframe, so you can't change the default fontsize and font.
The browser applies their default values.

It's like making a table with border 1, in iexplore and gecko it's different because they apply their default borders.

In next version you'll be able to attach a css file to the editor's iframe, just wait about a week.




TopTop
« 1 ... 3 4 5 (6) 7 8 9 ... 22 »



Login

Who's Online

222 user(s) are online (128 user(s) are browsing Support Forums)


Members: 0


Guests: 222


more...

Donat-O-Meter

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

Latest GitHub Commits