1
stange
Re: Editors in News1.44 don't work?
  • 2006/12/1 17:00

  • stange

  • Just popping in

  • Posts: 7

  • Since: 2005/1/6 2


Did you make those changes in /class/xoopseditor/koivi/formwysiwygtextarea.php
and /class/xoopseditor/koivi/functions.inc.php which i proposed in my last post for the second problem?
These changes should solve the problem with language files not being included.



2
stange
Re: Editors in News1.44 don't work?
  • 2006/12/1 0:40

  • stange

  • Just popping in

  • Posts: 7

  • Since: 2005/1/6 2


1. To solve this just add this row
$editor_configs["caption"] = $caption;
below these rows in functions.php
$editor_configs=array();
$editor_configs["name"] =$name;
$editor_configs["value"] = $value;
$editor_configs["rows"] = 35;
$editor_configs["cols"] = 60;
$editor_configs["width"] = "100%";
$editor_configs["height"] = "400px";

2. This one need two changes to be solved, first by adding this row
include_once( getLanguage( $this->getUrl() ) );
below this rows in the file formwysiwygtextarea.php
/**
 * Prepare HTML for output
 *
 * @return string HTML
 */
 
function render()
 {
    
// include files
    
include_once XOOPS_ROOT_PATH '' $this->getUrl() . '/include/functions.inc.php';

Then you also need to move this /* before the first function in the file include/functions.inc.php to right after the getLanguage function, so it looks like this instead
// Project: The XOOPS Project                                                //
// ------------------------------------------------------------------------- //


function getMainfile($url)
{

    
$mpath='';
    for (
$i=0;$i<strlen($url);$i++)
    {
        if (
$url[$i]=='/')$mpath.='../';
    }
    return 
$mpath.'mainfile.php';
}

function 
getLanguage($url)
{
    global 
$xoopsConfig;
    if(
file_exists(XOOPS_ROOT_PATH.''.$url.'/language/'.$xoopsConfig['language'].'.php'))
    return 
''.XOOPS_ROOT_PATH.''.$url.'/language/'.$xoopsConfig['language'].'.php';
    else return 
''.XOOPS_ROOT_PATH.''.$url.'/language/english.php';
}

/*
function CheckBrowser($get_isie=true)
*/



3
stange
Re: Editors in News1.44 don't work?
  • 2006/11/30 19:18

  • stange

  • Just popping in

  • Posts: 7

  • Since: 2005/1/6 2


I also made those changes to functions.php but I couldn't get FCK and Koivi to work either. So i did some testing and discovered that I had to change these two rows in functions.php

$editor = new XoopsFormFckeditor($caption, $name, $value);
$editor = new XoopsFormWysiwygTextArea($caption, $name, $value, '100%', '400px', '');

to

$editor = new XoopsFormFckeditor($editor_configs);
$editor = new XoopsFormWysiwygTextArea($editor_configs);



4
stange
Re: CBB 3.07 - Date and Time Format - Change to UK style
  • 2006/11/24 15:48

  • stange

  • Just popping in

  • Posts: 7

  • Since: 2005/1/6 2


I have dose defined in the "global.php" file in the "XOOPS_ROOT/language/swedish/" directory, not in the module directory.

Like this:
define("_MONTHDAY", "d/m H:i:s");
define("_YEARMONTHDAY", "y-m-d H:i");



5
stange
Re: Cant post or answer in CBB 3.07
  • 2006/11/21 13:32

  • stange

  • Just popping in

  • Posts: 7

  • Since: 2005/1/6 2


I got exactly the same problem and the same debug messages when i upgraded from CBB 3.05 to 3.07.
But i discovered that problem was caused by some old files in the /class/xoopsform/ directory.
formselecteditor.php
formeditor.php
formselectlist.php
After deleting these everything works perfectly.



6
stange
Re: Frozen Bubble 1.1
  • 2005/2/5 12:50

  • stange

  • Just popping in

  • Posts: 7

  • Since: 2005/1/6 2


I hade the exact same problem, but i found that this only occurred if the user hadn't enterd anything on "full name".
A way to solve this is to add the following code to index.php in the frozen bobbles module
if (!($xoopsUser->getVar('name'))) {
        
$xoopsTpl->assign('playername',$xoopsUser->getVar('uname'));
    }

below the following row.
$xoopsTpl->assign('playername',$xoopsUser->getVar('name'));

Now Frozen Bubble will use the user id in the high score list instead if no "full name" is to be found.



7
stange
Re: User login problems
  • 2005/1/20 15:57

  • stange

  • Just popping in

  • Posts: 7

  • Since: 2005/1/6 2


I had the exact same problem. I found out that this happens because of that i use url redirection and some users had set their security level in Internet Explorer to middle, at this level Internet Explorer denies cookies that comes from another url than the one you have entered. If they instead used the "true" url everything worked perfectly.
I don't now if this is of any use to you but this was the root of my problem.




TopTop



Login

Who's Online

157 user(s) are online (108 user(s) are browsing Support Forums)


Members: 0


Guests: 157


more...

Donat-O-Meter

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

Latest GitHub Commits