31
frankblack
Re: CKEditor 3 & JSON Form Loading - Editor Crashing
  • 2010/2/19 22:13

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


I do not need to turn debug off! I use firephp with xoops, so this is no problem. I'll send you my email in pm.



32
frankblack
Re: CKEditor 3 & JSON Form Loading - Editor Crashing
  • 2010/2/18 9:40

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


[puzzled]How can I help you? [/puzzled]

Can you give or show somewhere the generated HTML code of the non-working version?

I ran into a similar problem, when I was trying to update the tinyMCE engine for tinyeditor. But I had only problems with two text editor fields used as WYSIWYG. One WYSIWYG was running fine. The problem was that tinyMCE was initialized for every instance of the text editor fields. So I made a simple check if tinyMCE was alread defined. Since then it was working. Perhaps it is the same problem with CKeditor?

HTH



33
frankblack
Re: Template editor
  • 2010/2/16 17:07

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Nice work! Just two questions/comments?

How is the edited file saved back to the server? I assume you can run into trouble with owner rights and chmods, but perhaps I am wrong...

Whenever I use addScript or addStylesheet I pass on some more information although this is optional:

$xoTheme->addScript('browse.php?modules/system/js/codemirror.js', array('type' => 'text/javascript''charset' => _CHARSET), null);


$xoTheme->addStylesheetXOOPS_URL '/modules/system/css/docs.css', array('type' => 'text/css''media' => 'screen'), null);



34
frankblack
Re: getGroups ...
  • 2010/2/14 16:51

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Added a feature request on sourceforge...



35
frankblack
Re: getGroups ...
  • 2010/2/13 15:05

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


You are correct ghia. You have to log out or manually kill the session/cookies to see an effect. Feeling a bit uncomfortable with this anyway. I know that this is a scenario which will happen not to often (or never): Let's assume the admin gave user frankblack accidently admin rights. frankblack logs in and has admin rights. The admin notices his mistakes and moves frankblack out of the admin group, but while frankblack is online he has still access to admin area?

Theoretically spoken...



36
frankblack
getGroups ...
  • 2010/2/13 14:11

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


... should get the groups the current user is in. Right?

To get the groups array you can use this code:
$groupsb = (is_object($xoopsUser)) ? $xoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS;
echo 
implode(' ',$groupsb);


Test case 1: my user admin with uid 1 is in the groups admins and registered users, so what do you expect to be printed?

Right! 1 2

Test case 2: my user admin with uid 1 is in the groups admins, so what do you expect to be printed?

Right! 1

WRONG! It prints 1 2

Why is this so? I can't find any solution for this "odd" behaviour. When this is expected behaviour, then this is bollocks. I made a fresh install of 2.4.4 to avoid any collisions and if I remember correctly in the 2.0 series it worked as I expected.



37
frankblack
Re: Multiple image or file uplaoder for xoops
  • 2010/1/15 17:05

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


tinyeditor has some FTP features for uploading, chmodding, installing plugins or language files. Plus a class for uploading zipped files and extracting them on the server. But more or less poorly coded (my fault).



38
frankblack
Re: Multiple image or file uplaoder for xoops
  • 2010/1/15 15:30

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Another solution for uploading multiple files (used in debaser, but not for this purpose): click



39
frankblack
Re: Does anyone know how XoopsPageNav and jquery could work together?
  • 2010/1/7 8:36

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


frankblack says: MORE! Is that what you expected?

Seriously: I had to use two jquery functions for the page navigation. It looks a bit crippled, because it differs from the original. If you want the code, I'll post it here.



40
frankblack
Re: Does anyone know how XoopsPageNav and jquery could work together?
  • 2010/1/6 17:23

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Oops, I did it myself! Made my own solution for this. Thx for your assistance.




TopTop
« 1 2 3 (4) 5 6 7 ... 53 »



Login

Username:
Password:

Lost Password? Register now!

Who's Online

56 user(s) are online (28 user(s) are browsing Support Forums)


Members: 0


Guests: 56


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