Posts by: juergen

Posts: 1428
Post: 4423
Topic: Javascript Error

> Actually tested ;-)

... and forgotten a line. That's it:

1648       $cmd = common::GetCommand();
       if( common::LoggedIn() || $cmd=="logout" ){
1650            common::LoadjQueryUI();
1651            common::AddColorBox();
1652        }

7 years ago
Post: 4422
Topic: Javascript Error

A dirty litte fix:


1648        if( common::LoggedIn() || $cmd=="logout" ){
1649            common::LoadjQueryUI();
1650            common::AddColorBox();
1651        }

Actually tested ;-)

Edited: 7 years ago
Post: 4417
Topic: Javascript Error

It works when you logout from a page with a gallery (colorbox is loaded after logout).

7 years ago
Post: 4414
Topic: Favicons

Browsers will automatically look for a favicon.ico in the server root directory. But thats not always feasible, for instance if you host your CMS site for testing purposes in a subdirectory. If you want to tie your favicon.png to the gp|Easy theme you could use this code in the template.php:

<link rel="shortcut icon" type="image/png" href="<?php global $dirPrefix, $page; echo 'http://'.$_SERVER['SERVER_NAME'].$dirPrefix.'/themes/'.$page->theme_name; ?>/favicon.png" />

/edit: If you want this even to work in a secure server environment (https://), use this:

<link rel="shortcut icon" type="image/png" href="<?php global $dirPrefix, $page; echo ($_SERVER['SERVER_PORT'] != 443 ? 'http://' : 'https://').$_SERVER['SERVER_NAME'].$dirPrefix.'/themes/'.$page->theme_name; ?>/favicon.png" />

Edited: 7 years ago
Post: 4411
Topic: Javascript Error

Maybe this link helps.

7 years ago
Post: 4410
Topic: Javascript Error

Sounds totally familiar to me but I can't remember what it was... (or how i managed to get it and how to get rid of it)
Have you tried to switch off "Combine JS Files" in gpeasy configuration to see in which script the error occurs?


Edited: 7 years ago
Post: 4409
Topic: jQuery events - double firing problem (3.0.1 & 3.0.2)

Yes, $page->head_script .= works perfectly. Thanks a lot!

And I am so impatient to read the chapter on "How to prevent your javascript from being fired twice".

Yes, and not to mention the "How to simply invoke a CKeditor instance in admin area" section. Eagerly awaitng this ;-)


Edited: 7 years ago
Post: 4403
Topic: jQuery events - double firing problem (3.0.1 & 3.0.2)

It's just a joke but one not to be crawled by image bots.  user: really   pass: easy4

7 years ago
Post: 4401
Topic: jQuery events - double firing problem (3.0.1 & 3.0.2)

*sigh* seems I have to get me this one* ... When will it be out again? ;-)
*use u: really p:easy4

Edited: 7 years ago
Post: 4398
Topic: jQuery events - double firing problem (3.0.1 & 3.0.2)

I can see no double HTML. What I see is that the entire script tag is removed from the DOM at runtime (and probably executed otherwise - can't find it in generated source but I'm not much of a jQuery debugger).

I could imagine that it is executed bevore it's extracted and then - wherever this might be - it's executed again.
This is clearly beyond my JS knowledge and I'm running out of terminology now...


Anyway, $page->jQueryCode does the job except that I cannot define variables with global scope this way. But I already found a way around this.

Edited: 7 years ago


elFinder 2.1.50 in Upcoming Release

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Luzern (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Website * ...

Find out more about our Provider Spotlight

Log In