91
kaotik
Re: ck editor + file browser is disabled
  • 2009/10/28 12:08

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


I've solved it. Now the editor will first check if you are a XOOPS admin, if yes it will let you manage images and upload.

Here's the solution:
Open class/xoopseditor/ckeditor/ckfinder/config.php

around line line 32 find:
return false;


replace with:
include_once "../../../../../../../mainfile.php";
    
$isadmin = ($xoopsUser && $xoopsUser->isAdmin()) ? 0
if (
$isadmin===1) {
return 
true;
} else {
return 
false;
}


So the entire function should look like this:
function CheckAuthentication()
{
    
//WARNING : DO NOT simply return "true". By doing so, you are allowing
    //"anyone" to upload and list the files in your server. You must implement
    //some kind of session validation here. Even something very simple as...

    // return isset($_SESSION['IsAuthorized']) && $_SESSION['IsAuthorized'];

    //... where $_SESSION['IsAuthorized'] is set to "true" as soon as the
    //user logs in your system.
    
    
include_once "../../../../../../../mainfile.php";
    
$isadmin = ($xoopsUser && $xoopsUser->isAdmin()) ? 0
if (
$isadmin===1) {
return 
true;
} else {
return 
false;
}
    
}



92
kaotik
Re: ck editor + file browser is disabled
  • 2009/10/26 14:35

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


I've checked that already. All seems to be set correctly but it still doesn't work.



93
kaotik
ck editor + file browser is disabled
  • 2009/10/26 14:13

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


Hi
I've been tring to implement ckeditor (with XOOPS 2.4) in one of my modules.
When I try to upload an image it gives me a "file browser is disabled"
I've been reading through the ckeditor files in xoopseditor/ckeditor but haven't been able to pinpoint it.
Has anyone also encountered this?
Thank for any help.



94
kaotik
Re: maximum number items on main menu
  • 2009/10/17 14:55

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


Thank you for the replies. It helps me with the design of this new theme.



95
kaotik
maximum number items on main menu
  • 2009/10/16 17:06

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


What is your maximum number of items (installed modules) on your main menu? What is your average per client/site?
Would you consider 10 items on the main menu a high number? I'm looking for an average, I know there are exceptions with a LOT, but I'm more interested in what the majority is using.
The reason I'm asking is because of a new theme I'm designing.
Thanks for any help.



96
kaotik
New theme for my site
  • 2009/10/14 14:33

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


I've designed a new theme for my site. It's still a work in progress...
These were my guidelines:
-KISS (keep it simple stupid). Simplicity was my main goal. I wanted a clean site that's easy to navigate.
-Non standard. This theme uses blocks in a non conventional way.
-Div css placement. I use css placement for all blocks instead of standard tables.
-CSS 2.1 This theme uses some advanced css features such as @font-face. This means it will render correctly in firefox, safari, opera, chrome but NOT IE 6. It WILL however degrade nicely to a standard font in IE. I'm going to release a new theme that really pushes the envelope regarding CSS.

NOTE: I've always been a keen reader of graphic design magazines. Until CSS 2.1 web designers have really been restricted by html as to what they can achieve and still maintain web functionality. A good example is XOOPS main menu. You can generate it dynamically but ONLY use standard web fonts (wait for my new theme ;) ) or you could design a slick menu then slice it up in fireworks and lose it's dynamic ability.
Now with 2.1 things like font transparency, rounded corners (directly in css) or shadows can all be achieved and still have menus and items dynamically generated. Of course we lose support on IE 6 but this is only an issue depending on your target audience. In my case IE 6 users is a very small percentage.
Let me know your initial impressions of my theme.



97
kaotik
Re: Good bookings and reservations module
  • 2009/9/17 11:56

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


My new booking module is almost ready. It can be used for hotel booking, rent-a-car or other types of rental. It allows people to pay online for their reservation using a credit card (through paypal).
I've developed this with the small unit in mind (hotel, bead and breakfast, rent-a-car).
I'm planning on releasing it next month.
More details as I'm closer to completion.



98
kaotik
Re: jQuery and plugins for 2.4
  • 2009/9/5 10:26

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


I agree with mowaffaq. put only minified jquery in the core. Then module developers will place any plugin they require in their own modules. I would even leave out ui package from core.
The less the core has to load the faster pages will display plus many modules won't even use this code.



99
kaotik
Re: 2009 XOOPS Website Redesign
  • 2009/9/3 16:48

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


it's looking really great! Any ideia of when it will be ready?



100
kaotik
Re: jqueryFileTree plugin with XoopsForm
  • 2009/8/25 13:11

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


Very nice job bumciach! That's a great plugin, I could actually use it for myself
I'm going to place it on my "recommended plugins" list :)




TopTop
« 1 ... 7 8 9 (10) 11 12 13 ... 59 »



Login

Who's Online

202 user(s) are online (114 user(s) are browsing Support Forums)


Members: 0


Guests: 202


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