Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 07:58:17 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
149621 Posts in 21098 Topics by 7537 Members
Latest Member: lotte2
* Home Help Search Login Register
Pages: 1 2 [3]   Go Down
Print
Author Topic: New Module: Javascript Admin  (Read 35911 times)
doc
Guest
« Reply #50 on: July 10, 2007, 03:39:57 PM »

Hello,

have you followed the installation steps described in the very first post in this thread? You need to add one line to framework/class.admin.php to get the module working.

Regards Christian
Logged
cthelight

Offline Offline

Posts: 20


« Reply #51 on: July 11, 2007, 11:37:20 AM »

You must enable this for it to work. Go to settings -> Show advanced options -> JavaScript admin -> Save. It should work
Logged
Marsu

Offline Offline

Posts: 29



« Reply #52 on: July 12, 2007, 11:09:46 AM »

hi

sry for the late response !!!

it was an php.ini thing I changed it and now it works

thx for help juergen
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7660



WWW
« Reply #53 on: July 12, 2007, 01:09:40 PM »

Hello,

Quote
it was an php.ini thing I changed it and now it works

If you tell us wich thing maybe it is helpfull for other users too.  wink

Matthias
Logged
Marsu

Offline Offline

Posts: 29



« Reply #54 on: July 13, 2007, 01:52:18 PM »

Hi Matthias,

sorry I miss it

if this option "short_open_tag = On" is turned Off then this error happens with this module

query("SELECT value FROM ".TABLE_PREFIX."settings WHERE name = '".$name."'"); if($row = $rs->fetchRow()) return $row['value']; return $default; } function save_setting($name, $value) { global $database; $prev_value = get_setting($name, false); if($prev_value === false) { $database->query("INSERT INTO ".TABLE_PREFIX."settings (name,value) VALUES ('$name','$value')"); } else { $database->query("UPDATE ".TABLE_PREFIX."settings SET value = '$value' WHERE name = '$name'"); } } ?>
Fatal error: Call to undefined function get_setting() in
.............\wb\modules\jsadmin\tool.php on line 34


Juergen
Logged
faquir

Offline Offline

Posts: 49



« Reply #55 on: December 13, 2007, 07:45:05 PM »

Hi Matthias,

sorry I miss it

if this option "short_open_tag = On" is turned Off then this error happens with this module

query("SELECT value FROM ".TABLE_PREFIX."settings WHERE name = '".$name."'"); if($row = $rs->fetchRow()) return $row['value']; return $default; } function save_setting($name, $value) { global $database; $prev_value = get_setting($name, false); if($prev_value === false) { $database->query("INSERT INTO ".TABLE_PREFIX."settings (name,value) VALUES ('$name','$value')"); } else { $database->query("UPDATE ".TABLE_PREFIX."settings SET value = '$value' WHERE name = '$name'"); } } ?>
Fatal error: Call to undefined function get_setting() in
.............\wb\modules\jsadmin\tool.php on line 34


Juergen

Hey, I was install into my localhost, got the same error, and changed the php.ini, whatever in the system folder or in the php folder, it doesn't work, does someone can tell me how can I enable the error.

---------------------------------
query("SELECT value FROM ".TABLE_PREFIX."settings WHERE name = '".$name."'"); if($row = $rs->fetchRow()) return $row['value']; return $default; } function save_setting($name, $value) { global $database; $prev_value = get_setting($name, false); if($prev_value === false) { $database->query("INSERT INTO ".TABLE_PREFIX."settings (name,value) VALUES ('$name','$value')"); } else { $database->query("UPDATE ".TABLE_PREFIX."settings SET value = '$value' WHERE name = '$name'"); } } ?>
-------------------------------------------
Logged
Schnetty

Offline Offline

Posts: 137


« Reply #56 on: December 18, 2007, 10:49:42 AM »

Hi,

great Tool !
Is it possible to make this work on the Form-Module too? To sort the Formfields with Drag and Drop too, would complete the WB-Backoffice.  grin


Greets
Schnetty
Logged
Stefek
WebsiteBaker Org e.V.

Online Online

Posts: 4753



« Reply #57 on: January 09, 2008, 09:11:34 PM »

After installing the mod I get this alert as result
Code:
Warning: session_start() [function.session-start]: open(/var/tmp/sess_03817a267b104501191f81eaa7eadee1, O_RDWR) failed: File too large (27) in /mnt/web4/12/33/5284333/htdocs/Pro/wb/framework/initialize.php on line 57

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /mnt/web4/12/33/5284333/htdocs/Pro/wb/framework/initialize.php:57) in /mnt/web4/12/33/5284333/htdocs/Pro/wb/framework/initialize.php on line 57

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /mnt/web4/12/33/5284333/htdocs/Pro/wb/framework/initialize.php:57) in /mnt/web4/12/33/5284333/htdocs/Pro/wb/framework/initialize.php on line 57

Now after reinstalling it shows the same result. damn.
What should I do now?

Stefek

//Edit

OK I got it now.
The problem was the safe-mode which is set on default by the provider "strato", which is a popular "well promoted" webhoster in germany.

It works great now!!

To the Germans:
Mit dem Handling, der in diesem thread beschrieben wird, funktioniert das Mod super. Es ist auch empfehlenswert bei vielen Seiten.
http://forum.websitebaker.org/index.php/topic,5441.20.html
« Last Edit: January 10, 2008, 12:22:31 AM by Stefek » Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
virgil

Offline Offline

Posts: 177



« Reply #58 on: May 08, 2008, 03:59:39 PM »

Hi

I have just installed WB 2.7 ... so far everything seems to work smoothly ... but not Javascript Admin (like it would hot have been installed) ... do I have to activate it also in 2.7 as described in the first post? (I expectet all files are already altered the way it should work directly).

I tested both with IE7 and FF2, and btw an installation I run with WB 2.63 and Javascript runs smoothly wit both browsers.

Your help is very appreciated
thank you
Virgil
Logged

Virgil - the pre-baked-stuff baker -   wink)
doc
Guest
« Reply #59 on: May 08, 2008, 04:50:41 PM »

@Virgil:
You need to enable the Javascript Admin via WB Backend: Admin Tools -> Javascript Admin (enable all checkboxes)

Regards Christian
Logged
virgil

Offline Offline

Posts: 177



« Reply #60 on: May 08, 2008, 05:31:28 PM »

Hi Christian

Tks. !!! Works like charm    grin

You guys did a fantastic job!

cheers
Virgil
Logged

Virgil - the pre-baked-stuff baker -   wink)
Boudi
Addon Team

Offline Offline

Posts: 793



WWW
« Reply #61 on: October 02, 2008, 04:40:18 PM »

Ok here we go:

I have a question in which I could not find any solution here on the forum. After trying it myself I'm stucked.

I'm using the Catalog mod wich works fine with WB2.7. The only thing is that the Catalog mod is not supported by the jasadmin drag and drop mod.

Therefore clients have to manually move their list up and down in the Catalog mod.

My question: How can I implement the jsadmin into this mod? I thought it could be done with a simple
Code:
require_once(WB_PATH.'/framework/class.admin.php');

but that obviously does not solve this issue.

Any ideas would be highly appreciated. Thnq

Greetz
Boudi




Logged

...:: Bake the Unbakable ::...
doc
Guest
« Reply #62 on: October 02, 2008, 06:38:29 PM »

Hello,

there is currently no kind of API which modules can use to offer the JS-Admin functionallity. As a consequence, this feature needs to be implemented manually for each module itself.

If anybody is willing to create a module or core modification which provides drag and drop in a way which can be used by other modules as well, feel free to post your solution here in the forum. Pretty sure it will make it´s way into the WB core files with a next release.

My preferred solution would be the Javascript Framework jQuery in combination with with a drag and drop plugin like TableDnD.

Regards Christian
« Last Edit: October 02, 2008, 07:17:00 PM by doc » Logged
Pages: 1 2 [3]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!