WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • General Community »
  • Global WebsiteBaker 2.8.x discussion »
  • some 2.8.1 issues
  • Print
Pages: [1] 2   Go Down

Author Topic: some 2.8.1 issues  (Read 20292 times)

Offline crnogorac081

  • Posts: 2161
  • Gender: Male
some 2.8.1 issues
« on: February 05, 2010, 10:03:45 PM »
Today I tested:

CMS Version 2.8.1
Revision 1274
Admin version 1.4

on

#  Apache/2.0.61 (Win32)
# PHP/5.2.6
# SQLite 2
# MySQL 5.0.41-community-nt

and I experienced wierd issues. Seccond time (first was when I installed it) I couldnt open site. When I installed DB, I set collation to utf8_general_ci. Tables mod_capcha_control, groups, jsadmin (didnt check for more..) were damaged.

Did anyone experienced same problem?

Also another thing,
I successfully implement items reordering via drag and drop for WB 2.8 Stable. Hovever, this is not working on WB version I put above.. Did something significant changed in backend? I replaced jquery1.4 with 1.3.2 but still not working.

I suggest to leave file named jquery-min.js to 1.3.2 version, and 1.4 version to rename to jquery1.4.js because of module compatibility with version 2.7 and 2.8..
Logged
Web developer

doc

  • Guest
Re: some 2.8.1 issues
« Reply #1 on: February 06, 2010, 07:59:10 AM »
Hi,

tried to reproduce your error with the latest WB SVN (Revision 1285) on XAMPP 1.7.3. Installation went smooth, no problems with DB (and collation utf_8_general).

I highly recommend to leave the jquery 1.4.1 version as is, as it fixes more than 170 bugs contained in 1.3.1. So far I never run into any problems with jquery 1.4.1 and WB modules. Your drag and drop problem seems not to be related to jquery, as switching to jQuery 1.3.1 obviously did not solve your issue.

Regards Doc
Logged

Offline maverik

  • Posts: 1572
  • Gender: Male
  • ..:: viva los tioz ::..
Re: some 2.8.1 issues
« Reply #2 on: February 06, 2010, 09:36:23 AM »
it makes no sense to search for a bug in a outdatet version of WebsiteBaker. other problem maybe is your mysql version. i know that MySQL 5.0.41-community-nt was a very buggy version. so upgrade your mysql und try again with the latest svn from wb.
everything will be allright :-D :-D
Logged

Offline crnogorac081

  • Posts: 2161
  • Gender: Male
Re: some 2.8.1 issues
« Reply #3 on: February 06, 2010, 11:14:11 AM »
So far I never had problems with SQL, this is wb portable server from mr-fan. I have over 10 WB sites there and I never had a single DB error.

SVN 1274 is WB 2.8.1 RC3 from AMASP site. Where can I get latest revision?
Logged
Web developer

Offline maverik

  • Posts: 1572
  • Gender: Male
  • ..:: viva los tioz ::..
Re: some 2.8.1 issues
« Reply #4 on: February 06, 2010, 11:18:10 AM »
http://project.websitebaker2.org/browser/branches/2.8.x


Download in other formats:

    * Zip Archive

Logged

Offline kweitzel

  • WebsiteBaker Org e.V.
  • **
  • Posts: 6983
  • Gender: Male
Re: some 2.8.1 issues
« Reply #5 on: February 06, 2010, 11:37:31 AM »
It is better though to make an svn export, so the svn properties are set as well. That makes troubleshooting later down the line a bit more easy. Or, if you can wait a bit more, the 2.8.1 release is not long to go anymore.

A popular client for Windows is available at http://tortoisesvn.net/ ...

cheers

Klaus
Logged

doc

  • Guest
Re: some 2.8.1 issues
« Reply #6 on: February 06, 2010, 11:39:47 AM »
Hi,

and if you use a client like Tortoise SVN to fetch the latest WB version from SVN, you also need a download URL:
http://svn.websitebaker2.org/branches/2.8.x

Doc
Logged

Offline crnogorac081

  • Posts: 2161
  • Gender: Male
Re: some 2.8.1 issues
« Reply #7 on: February 06, 2010, 11:54:20 AM »
Tnx for tips guys,

I downlaoded latest SVN, and I found why drag n drop is not working:

In argos theme, in footer.htt this script is commented... When I uncomment it, it works..
Code: [Select]
<!--
<script src="{WB_URL}/include/jquery/jquery-ui-min.js" type="text/javascript"></script>
-->

I couldnt find any ticket for this, could anyone remember why this script is commented?
Logged
Web developer

Offline maverik

  • Posts: 1572
  • Gender: Male
  • ..:: viva los tioz ::..
Re: some 2.8.1 issues
« Reply #8 on: February 06, 2010, 12:10:05 PM »
Quote
could anyone remember why this script is commented?

you don´t need ui.js for drag and drop

it works wonderful with commented line for me and in wb theme there isn´t a line like this
Logged

Offline crnogorac081

  • Posts: 2161
  • Gender: Male
Re: some 2.8.1 issues
« Reply #9 on: February 06, 2010, 12:18:01 PM »
I am not talking about drag and drop for pages (they are not using jquery interface for drag n drop), I am takling about I created srcipt to reorder items via drag n drop for members module, bakery...and I will do it for more modules..

I am using argos theme, and there this script is in comment lines. I see that wb_theme is not calling that script.

Sorry if I wasnt clear in my first post about drag n drop.
Logged
Web developer

Offline maverik

  • Posts: 1572
  • Gender: Male
  • ..:: viva los tioz ::..
Re: some 2.8.1 issues
« Reply #10 on: February 06, 2010, 12:21:53 PM »
i can´t understand, when you create a own script then it isn´t an 2.8.1 issue. i think your script needed ui.js und so you must insert ui.js in your script...   :? :?
Logged

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4548
  • Gender: Male
Re: some 2.8.1 issues
« Reply #11 on: February 06, 2010, 12:23:02 PM »
Ok, i understand, so you need the ui-min.js. Better to insert the ui-min.js, by your script with insert.js, so you can too use it with other themes

Dietmar

Logged
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

Offline crnogorac081

  • Posts: 2161
  • Gender: Male
Re: some 2.8.1 issues
« Reply #12 on: February 06, 2010, 12:30:53 PM »
@Luisehahne

how to insert it..?
The script needs to be in backend footer.htt file
@maverik

It worked fine in WB 2.8 stable, and in 2.8 RCxxx the same jquery script is dissabled (commented) I couldnt figure out this untill recently..
« Last Edit: February 06, 2010, 12:32:26 PM by crnogorac081 »
Logged
Web developer

Offline maverik

  • Posts: 1572
  • Gender: Male
  • ..:: viva los tioz ::..
Re: some 2.8.1 issues
« Reply #13 on: February 06, 2010, 12:56:55 PM »
what i want to say is that your script should work alone in all wb backend themes, not every backend theme has ui.js includet...i hope you understand my poor english

Quote
how to insert it..?

Code: [Select]
$(document).ready(function()
{
$.insert(WB_URL+'/path/to/your/script.js');
});

therefore jquery-min.js and jquery-insert.js must be loadet
« Last Edit: February 06, 2010, 12:58:53 PM by maverik »
Logged

Offline crnogorac081

  • Posts: 2161
  • Gender: Male
Re: some 2.8.1 issues
« Reply #14 on: February 06, 2010, 01:02:42 PM »
thnaks maverik
Logged
Web developer

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: some 2.8.1 issues
« Reply #15 on: February 06, 2010, 01:06:09 PM »
That's a real wired aspect.
Per default ALL the jQuery has to be loaded in frontend, but not in the backend, where it's more needed.  :-D

Sorry, could not resist... :-D

Come on guys, it worked well with 2.8.0, why delete it in 2.8.1, hm?
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Argos

  • Guest
Re: some 2.8.1 issues
« Reply #16 on: February 06, 2010, 01:26:54 PM »
Code: [Select]
<!--
<script src="{WB_URL}/include/jquery/jquery-ui-min.js" type="text/javascript"></script>
-->

is there for the next version, but not actually used yet in this (RC) version. Therefore it's commented.
Logged

Offline maverik

  • Posts: 1572
  • Gender: Male
  • ..:: viva los tioz ::..
Re: some 2.8.1 issues
« Reply #17 on: February 06, 2010, 01:39:09 PM »
@stefek

i think your opinion is " i dont know what it is but i´m against it"

read, learn and understand jquery and what to do with it
Logged

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: some 2.8.1 issues
« Reply #18 on: February 06, 2010, 01:56:07 PM »
Quote from: maverik on February 06, 2010, 01:39:09 PM
@stefek

i think your opinion is " i dont know what it is but i´m against it"

read, learn and understand jquery and what to do with it
Maverik,
you don't know what I am doing with jQuery, right?

I know about the insertion possibilities very well and used it to load further JS on demand in modules allready.

But it shouldn't be done with the UI from inside the modules (think of multiple sections with different modules).

There is no reason to comment the UI out of the Backend.
It's useful at many places and it has to be loaded only once.

My approach for the frontend (not the backend) is totaly different as yours.
But this has nothing to do in this thread.

Stefek

Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: some 2.8.1 issues
« Reply #19 on: February 06, 2010, 02:10:10 PM »
Quote from: Argos on February 06, 2010, 01:26:54 PM
Code: [Select]
<!--
<script src="{WB_URL}/include/jquery/jquery-ui-min.js" type="text/javascript"></script>
-->

is there for the next version, but not actually used yet in this (RC) version. Therefore it's commented.

That's good news, Jurgen.
I hope it will turn back into the Backend Themes (all).

Kind Regards,
Stefek
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Argos

  • Guest
Re: some 2.8.1 issues
« Reply #20 on: February 06, 2010, 02:16:42 PM »
Well, next Argos theme version uses jQuery anyway, and that will very probably be part of WB2.8.2. So I guess the jQuery core and jQuery UI will be part of the backend by default then. But I'm just a simple backend theme guy, not one of the developes, so they may come up with another way of using jQuery in the backend than the one I'm testing now.
Logged

Offline crnogorac081

  • Posts: 2161
  • Gender: Male
Re: some 2.8.1 issues
« Reply #21 on: February 06, 2010, 03:09:13 PM »
Lets just not open wide discussion here.

I just wanted to know why the jquery-ui-min.js exists in WB 2.8.0 Stable version in Backend theme (argos_theme) in Footer.htt file and in WB 2.8.1 RC3 and latest SVN this file is removed (commented) and is there some specific reason (for example some incompatibility or whatever...) that developers spoted, so they removed it from loading..

thats all..

Ivan
Logged
Web developer

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4548
  • Gender: Male
Re: some 2.8.1 issues
« Reply #22 on: February 06, 2010, 03:33:30 PM »
It was comment out, because actuelly it is not used, and decrease traffic (188kb by loading a page)

Dietmar
Logged
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

doc

  • Guest
Re: some 2.8.1 issues
« Reply #23 on: February 06, 2010, 04:08:52 PM »
Hi,

well the status is a bit complex, so I try to give a short summary.

Frontend module files
The optional Add-on files "frontend.css" and "frontend.js" are automatically loaded by WB, if the "register_frontend_m odfiles" function is invoked from the index.php of the frontend template.
Note: This does not work in all module files, it just works in WB controlled files such as "view.php". So if you have a "save_my_settings.ph p" which does something in the frontend part of your Add-on, the frontend files will not automatically be included.

Backend module files
The optional Add-on files "backend.css" and "backend.js" are automatically loaded by WB since WB 2.7.
Note: This does not work in all module files, it just works in WB controlled files such as "include.php", "modify.php".

jquery-min.js
Automatically loaded in backend pages, which includes the theme file "footer.htt" (e.g. /template/xxx_theme/templates/footer.htt). The JS lib is included to the end of the body not in the head.
Note: while "jquery-min.js" is loaded in all themes, "jquery-ui-min.js" is not loaded automatically by all themes.

EditArea
Automatically included in the head secton of all backend pages (2.8.1). Loading mechanism was changed some times from 2.8 RC1 to 2.8.1. Latest load mechanism is to include this lib via /template/xxx_theme/templates/header.htt

Non WB controlled Add-on files
In non WB controlled Add-on files (e.g. files which take values from AJAX, Forms etc.) and save them to DB etc, the developer needs to take care that JS or CSS files are included. On possbile way of including files to non WB controlled Add-on files is shown in the AFE "action_handler.php" file (function myAdminWrapper).

Regards Doc

P.S.: The summary is by no means exhaustive. I just wanted to highlight some of the aspects. Files like the "frontend_body.js" are not even mentioned above. Maybe some aspects will be documented with the updated WB help site :wink:
« Last Edit: February 06, 2010, 06:05:41 PM by doc »
Logged

Offline crnogorac081

  • Posts: 2161
  • Gender: Male
Re: some 2.8.1 issues
« Reply #24 on: February 06, 2010, 04:22:32 PM »
Thanks both,

So now I have to wait for final 2.8.1 release to see if this script will be included or not in final package.

Logged
Web developer

  • Print
Pages: [1] 2   Go Up
  • WebsiteBaker Community Forum »
  • General Community »
  • Global WebsiteBaker 2.8.x discussion »
  • some 2.8.1 issues
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2