New Module: jQueryAdmin v2.13

BlackBird

[url=http://wbaddons.webbird.de]http://wbaddons.webbird.de[/url] [url=http://www.WebsiteBaker.org/forum/index.php/topic,27476.msg189845.html#msg189845]Don't miss this[/url]

oeh

#155
Quote'Configuration saved to file' --> 'Konfigurasjonen ble lagret til fil'

   'Please consult the Plugin documentation for details on how to set these options!' -->
   'For nærmere detaljer om disse innstillingene, se Plugin dokumentasjonen.'

   'Reset to defaults' --> 'Gjenopprett standard innstillingene'

oeh ;-}>

BlackBird

#154
Translations needed!

There are some new language strings that need translations.

Quote
   'Configuration saved to file'
   'Please consult the Plugin documentation for details on how to set these options!'
   'Reset to defaults'
    'Configure Preset'

Translations are incomplete for NL, NO, FR, IT.

Thanks in advance for your help!
[url=http://wbaddons.webbird.de]http://wbaddons.webbird.de[/url] [url=http://www.WebsiteBaker.org/forum/index.php/topic,27476.msg189845.html#msg189845]Don't miss this[/url]

BlackBird

There's a first Beta available in the German Forum: https://forum.websitebaker.org/index.php/topic,18173.msg124878.html#msg124878

For testing, follow these steps:

* rename the "jqueryadmin" folder of version 1.2
* create a new folder named "jqueryadmin"
* extract the archive into a temporary folder
* upload the contents into the new (empty) directory
* copy the contents of your "old" presets folder into the new one

If you don't have an older installation of jQueryAdmin, just install like any other module.

Let me know how it goes.
[url=http://wbaddons.webbird.de]http://wbaddons.webbird.de[/url] [url=http://www.WebsiteBaker.org/forum/index.php/topic,27476.msg189845.html#msg189845]Don't miss this[/url]

BlackBird

#152
New version 2.0 will be available soon. At the moment, it is tested at AMASP and on other locations. After that tests are finished, a Public Beta will be available.

New:

* Completely rewritten Parser based on Simple HTML DOM Parser. (That's why it's v2.0)
* Ability to use jQueryAdmin Presets in Backend modules. (see below)
* Existing default.jquery will no longer be overwritten on update.

Using jQueryAdmin Presets in the backend

This feature requires that there are no hardcoded jquery.min.js in the backend template*), as is in the current WB 2.8.1 release. Unfortunately, the core developers refuse to change this behaviour, though there are other problems besides of jQueryAdmin reported with this hardcoded jquery.min.js.

*) jQueryAdmin has a workaround to fix this. I use it with a module that's not available yet, and it works fine. :wink:

Anyway, as this feature was requested for jQueryAdmin, I have implemented it now. I was warned that this will lead to a "warning" to use jQueryAdmin on the official WB Page. But I think it's to the developers and users of WB to decide what they like to use, not to the core developers.
[url=http://wbaddons.webbird.de]http://wbaddons.webbird.de[/url] [url=http://www.WebsiteBaker.org/forum/index.php/topic,27476.msg189845.html#msg189845]Don't miss this[/url]

erpe0812

QuoteI love Superfish
me too

QuoteMaybe it's possible to use it on AMASP as well?
sure  :-D

But it is more complex and I have to look a little deeper into it, but when I find some time to do it, I'll do.

rgds

erpe

Argos

Quote from: erpe on June 26, 2010, 10:20:19 AM
btw: jQuery Showroom site now uses superfish plugin for main navigation

Smooooooth....  :-D  I love Superfish, I use it on a current site I'm working on as well.
Maybe it's possible to use it on AMASP as well?
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
----------------------------------------------------------------
Please don't request personal support, use the forums!

erpe0812

I added a CeeBox example to the jQuery Showroom

CeeBox Plugin can be downloaded at AMASP.

rgds

erpe

btw: jQuery Showroom site now uses superfish plugin for main navigation

BlackBird

#148
"pieterb" reported a problem here https://forum.websitebaker.org/index.php/topic,18562.0.html with jQueryAdmin and Form module. I found that this is caused by missing register_frontend_modfiles() calls in the template. I don't know yet why this duplicates the form (4 times), but adding  the register_frontend_modfiles() call to the template fixes that issue.

Edit: I found out that the problem was caused by a regular expression (matching inline style sheets) that matched too much content. If you need a quick fix, open the include.php of jQueryAdmin and replace:


// regular expressions matching CSS
$css_regexp = array(
    'linked' => '#<link'
              . '(?:'
              .    '(?:.*(?P<rel>(?<=rel=")[^"]stylesheet(?="))[^>]*)'
              .    '|'
              .    '(?:.*(?P<href>(?<=href=")[^"]*(?="))[^>]*)'
              .    '|'
              .    '[^>]*'
              . ')>'
              . '#i',
    'inline' => "#<style(?:[^>]*>)(.*)</style>#ism"
);


with:


// regular expressions matching CSS
$css_regexp = array(
    'linked' => '#<link'
              . '(?:'
              .    '(?:.*(?P<rel>(?<=rel=")[^"]stylesheet(?="))[^>]*)'
              .    '|'
              .    '(?:.*(?P<href>(?<=href=")[^"]*(?="))[^>]*)'
              .    '|'
              .    '[^>]*'
              . ')>'
              . '#i',
    'inline' => '#<style[^>]+>((?!</style>).+?)</style>#ism'
);


Anyway, please make sure that you always have the register_* thingy in your template! Otherwise, you will have notice other problems. (CSS not loaded and so on.)
[url=http://wbaddons.webbird.de]http://wbaddons.webbird.de[/url] [url=http://www.WebsiteBaker.org/forum/index.php/topic,27476.msg189845.html#msg189845]Don't miss this[/url]

BlackBird

Again, it seems that upgrading the include.php to the new one (of version 1.2) fixed the problem Argos reported. So, I decided to release that version though I haven't received any test results concerning the Google AdSense problem. Please treat this version as a "Beta", 'cause it also includes an update of the jQuery UI.

http://www.websitebakers.com/pages/libs/jqueryadmin.php

- Update to jQueryUI 1.8.2
- added/updated language files:
         * NO.php (thanks to "oeh")
         * FR.php (thanks to "quinto")
         * NL.php (thanks to "Vincent")
         * IT.php (thanks to "avitaly")
- added nearly all available options to default.preset of Fancybox for easier customizing (missing: 'ajax' and 'swf')
- Fix: do not touch inline JS in the page body (hopefully fixes some issues with Google AdSense and other JS; I haven't received any test results yet)
[url=http://wbaddons.webbird.de]http://wbaddons.webbird.de[/url] [url=http://www.WebsiteBaker.org/forum/index.php/topic,27476.msg189845.html#msg189845]Don't miss this[/url]

BlackBird

Hm. However. :roll: The fix will be included in the next version.
[url=http://wbaddons.webbird.de]http://wbaddons.webbird.de[/url] [url=http://www.WebsiteBaker.org/forum/index.php/topic,27476.msg189845.html#msg189845]Don't miss this[/url]

pieterb

Thanks so much, this did the trick!

And I ran phpinfo() and there it said it was version 5.2.9... I wouldn't know how else to check.

BlackBird

You may try this:

Open include.php, find:


$css_regexp = array(
    'linked' => '#<link'
              . '(?:'
              .    '(?:.*(?<rel>(?<=rel=")[^"]stylesheet(?="))[^>]*)'
              .    '|'
              .    '(?:.*(?<href>(?<=href=")[^"]*(?="))[^>]*)'
              .    '|'
              .    '[^>]*'
              . ')>'
              . '#i',
    'inline' => "#<style(?:[^>]*>)(.*?)</style>#ism"
);


Replace with:


// regular expressions matching CSS
$css_regexp = array(
    'linked' => '#<link'
              . '(?:'
              .    '(?:.*(?P<rel>(?<=rel=")[^"]stylesheet(?="))[^>]*)'
              .    '|'
              .    '(?:.*(?P<href>(?<=href=")[^"]*(?="))[^>]*)'
              .    '|'
              .    '[^>]*'
              . ')>'
              . '#i',
    'inline' => "#<style(?:[^>]*>)(.*)</style>#ism"
);
[url=http://wbaddons.webbird.de]http://wbaddons.webbird.de[/url] [url=http://www.WebsiteBaker.org/forum/index.php/topic,27476.msg189845.html#msg189845]Don't miss this[/url]

BlackBird

Make sure you have PHP >= 5.2.6! You said you have 5.2.9, but the error message shows you haven't. :roll:
[url=http://wbaddons.webbird.de]http://wbaddons.webbird.de[/url] [url=http://www.WebsiteBaker.org/forum/index.php/topic,27476.msg189845.html#msg189845]Don't miss this[/url]

pieterb

Sorry, I didn't receive any mails about new posts... The problem still exists. This is the complete error message:

Warning: preg_match_all() [function.preg-match-all]: Compilation failed: unrecognized character after (?< at offset 16 in /var/www/vhosts/jameskeene.nl/httpdocs/modules/jqueryadmin/include.php on line 469

Warning: preg_match_all() [function.preg-match-all]: Compilation failed: unrecognized character after (?< at offset 16 in /var/www/vhosts/jameskeene.nl/httpdocs/modules/jqueryadmin/include.php on line 469

Warning: preg_replace() [function.preg-replace]: Compilation failed: unrecognized character after (?< at offset 16 in /var/www/vhosts/jameskeene.nl/httpdocs/modules/jqueryadmin/include.php on line 260

Warning: preg_match_all() [function.preg-match-all]: Compilation failed: unrecognized character after (?< at offset 16 in /var/www/vhosts/jameskeene.nl/httpdocs/modules/jqueryadmin/include.php on line 469

Warning: preg_replace() [function.preg-replace]: Compilation failed: unrecognized character after (?< at offset 16 in /var/www/vhosts/jameskeene.nl/httpdocs/modules/jqueryadmin/include.php on line 260

I just downloaded and installed the latest version from AMASP, so that shouldn't be the problem. Hopefully there is a fix...

BlackBird

Quote from: Argos on June 17, 2010, 12:59:45 PM
Yes, I did that. Now what?  :-o

Send me the contents. :wink:

Can I have access to that page? (Backend, too.)
[url=http://wbaddons.webbird.de]http://wbaddons.webbird.de[/url] [url=http://www.WebsiteBaker.org/forum/index.php/topic,27476.msg189845.html#msg189845]Don't miss this[/url]

Argos

Even when I try the Blank template with a few random characters as the only content, it doesn't show anything. It seems that the droplet code stops everything.
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
----------------------------------------------------------------
Please don't request personal support, use the forums!

Argos

Yes, I did that. Now what?  :-o
I'm not a coder, I see my template source code, followed by all kinds of statements and info that I don't understand.
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
----------------------------------------------------------------
Please don't request personal support, use the forums!

BlackBird

Try to activate debugging (include.php):


$debug_level     = KLogger::OFF;
#$debug_level     = KLogger::DEBUG;


Remove the # on the second line and call the page again. After doing so, you will get a log-file in the jQueryAdmin folder.
[url=http://wbaddons.webbird.de]http://wbaddons.webbird.de[/url] [url=http://www.WebsiteBaker.org/forum/index.php/topic,27476.msg189845.html#msg189845]Don't miss this[/url]

Argos

I tried jQueryAdmin tonight, but when I put [[jQueryInclude]] in my template the result is a blank page with this source:

<!DOCTYPE html PUBLIC  "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl" lang="nl">
<head></head>
<body></body>
</html>

I use the version 1.1, I tried all positions for [[jQueryInclude]] (header, footer, code section, WYSIWYG, hard coded), I tried different templates. I get this result any time. My PHP version is 5.26. What can be wrong?
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
----------------------------------------------------------------
Please don't request personal support, use the forums!

BlackBird

#136
Announcement: Upcoming v1.2

- Update to jQueryUI 1.8.2
- added/updated language files:
        * NO.php (thanks to "oeh")
        * FR.php (thanks to "quinto")
        * NL.php (thanks to "Vincent")
        * IT.php (thanks to "avitaly")
- added nearly all available options to default.preset of Fancybox for easier customizing (missing: 'ajax' and 'swf')
- Fix: do not touch inline JS in the page body (fixes some issues with Google AdSense and other JS)

There's to do some testing, so I hopefully can release a beta of that version around Friday. If someone wants to test that issue with Google AdSense using a pre-release version, please send me a PN with your mail address.

Edit (2010-06-15): Unfortunately, I have not received any test results yet. So please be patient.
[url=http://wbaddons.webbird.de]http://wbaddons.webbird.de[/url] [url=http://www.WebsiteBaker.org/forum/index.php/topic,27476.msg189845.html#msg189845]Don't miss this[/url]

BlackBird

Quote from: pieterb on June 05, 2010, 09:23:58 AM
Warning: preg_match_all() [function.preg-match-all]: Compilation failed: unrecognized character after (?< at offset 16

Maybe you have downloaded a corrupt version of v1.1? There was an error with a regular expression I fixed at once without creating a new version, 'cause the download was only a few minutes old at that time. I never thought someone could have catched it in that short time. Please try to download it again and replace the include.php. If the error persists, please post the complete error message. (Including the line number.) Thank you.
[url=http://wbaddons.webbird.de]http://wbaddons.webbird.de[/url] [url=http://www.WebsiteBaker.org/forum/index.php/topic,27476.msg189845.html#msg189845]Don't miss this[/url]

BlackBird

jQueryAdmin does not work with 5.1.x and lower. But as I am developing it with 5.2, the error should not occur there.
[url=http://wbaddons.webbird.de]http://wbaddons.webbird.de[/url] [url=http://www.WebsiteBaker.org/forum/index.php/topic,27476.msg189845.html#msg189845]Don't miss this[/url]

pieterb


crnogorac081

perhaps your serever use some older php version, like 4.x ?
Web developer