Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 01:38:31 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155504 Posts in 21710 Topics by 7736 Members
Latest Member: deenangle
* Home Help Search Login Register
Pages: 1 [2]   Go Down
Print
Author Topic: Code_2 Module  (Read 4494 times)
Mte90
Forum Team
*****
Offline Offline

Posts: 93


WWW
« Reply #25 on: April 12, 2010, 10:22:20 AM »

i have read that was released new version.
But this work on 2.7?
Logged

www.mte90.net - Debian, Kde e programmazione!
Mp per richieste personali verranno cestinate!
erpe

Offline Offline

Posts: 2077


WWW
« Reply #26 on: April 12, 2010, 06:43:59 PM »

I think so.

rgds

erpe
Logged

Xagone
AddOn Development
*
Offline Offline

Posts: 478



WWW
« Reply #27 on: April 16, 2010, 04:37:28 PM »

i've tried to do a code2ajax with you code2 project so that when saving, the code save only the module, echo "saved" and stay in the same page (to be faster)

i've include where I was ... unstable,
the problem is when you saved once (working) then saved the second time, the admin determine you do not have permission and include the front page... i'll work on it later...

but if someone here can fix it better, it could be a lot of fun!
Logged

Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
sky writer

Offline Offline

Posts: 285



« Reply #28 on: December 09, 2010, 03:09:14 AM »

I have used Code_2 on many of my sites, and never had an issue... until today.  I gave a group/user the rights to edit a Code_2 module section, and when he clicked save, it hung on the save.php page.  So, I added myself as a user to that group and the same things happens.  I can see and edit the page, but the save hangs.

This is the newest version (2.1.6.rc_1), but if I uninstall, and install an older version I have (2.1.1), everything works fine.

Any thoughts?  Can anyone else verify this, or test it?

Thanks!
Logged
aldus

Offline Offline

Posts: 1238


« Reply #29 on: December 09, 2010, 01:18:16 PM »

Hello Sky Writer

Yes - it's a bug, only administrators are able to save ....
Bugfix 2.1.8 on AMASP:

http://www.websitebakers.com/pages/admin/core-replacements/code-2.php

Kind regards
Aldus
Logged
sky writer

Offline Offline

Posts: 285



« Reply #30 on: December 09, 2010, 07:11:48 PM »

Thanks!  Great module, and support.
Logged
Xagone
AddOn Development
*
Offline Offline

Posts: 478



WWW
« Reply #31 on: August 30, 2011, 07:42:40 PM »

Does not work with 2.8.2 anymore, security offence detected.

FTAN security
Logged

Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
fischstäbchenbrenner

Offline Offline

Posts: 271



« Reply #32 on: August 30, 2011, 09:56:14 PM »

Yes, code2 doesnt work anymore with WB. You have to use to use the standard code module instead.
Code2 never was a part of WB.

Code2 always was a module for "copy&paste-coders", and code was/is a module for "real coders". Welcome in the world of "real coders" wink

« Last Edit: August 30, 2011, 10:03:27 PM by fischstäbchenbrenner » Logged

Burn, baby, burn!
Hans

Offline Offline

Posts: 565


« Reply #33 on: August 30, 2011, 10:12:36 PM »

How many users of WB are no real coders (whatever that may be). I don't understand the logic why we cannot use a helpful addon anymore, sorry!
Hans
Logged

Hans - Nijmegen - The Netherlands
fischstäbchenbrenner

Offline Offline

Posts: 271



« Reply #34 on: August 30, 2011, 10:22:15 PM »

Auf Deutsch:

Ich habe (lang her) Code2 gemacht, weil ich es satt hatte, mit PHP herumzufrickeln, wenn ich gerade mal einen iFrame einbinden wollte. Die Antwort war, dass code immer "technischer" wurde; im Look&Feel.

Aldus hat das Modul Code2 weitergeführt, weil ich eben nicht gerade der PHP-Guru bin.
Dort, wo Aldus das Modul hinbringt, da ist es.

pidgin englisch:
code2 is gone, use the code module instead. wink

Logged

Burn, baby, burn!
Hans

Offline Offline

Posts: 565


« Reply #35 on: August 30, 2011, 10:49:34 PM »

Whatever your answer is worth, I guess we have to live with it  undecided Not that I think it's in the interest of a lot of WB users... 
Thanks for your explanation
Hans
Logged

Hans - Nijmegen - The Netherlands
assembler_68lc040

Offline Offline

Posts: 28


« Reply #36 on: August 31, 2011, 08:40:26 AM »

You will have to set up the "SecureForm Switcher" admintool to "Multi Tab" to get code2 to work.
As far as i can see/read, the FTAN implantation in the 2.1.9 from AMASP is correct
Code:
<?php
/**
 * FTAN Addition ...
 *
 *
 */
if (true === method_exists($admin'getFTAN') ) {
$tan $admin->getFTAN();
} else {
?>

also inside the save.php
Code:
<?php

/**
 * Additional FTAN check ...
 *
 *
 */
$tan_ok false;

if (
true === method_exists($admin'checkFTAN')) {
if ((WB_VERSION >= "2.8.2") && (!$admin->checkFTAN())) {
...
?>


So, why it isn't working within the recomented "single tab mode"Huh? As it works fine within 2.8.1?

Regards
Alexandra
Logged

if (err = pAppInfo->GetInfo(kMoaAppInfo_WB_Sour ce, kUnderstand_minimum _of_lines, 32))
   goto exit_gracefully;
Xagone
AddOn Development
*
Offline Offline

Posts: 478



WWW
« Reply #37 on: August 31, 2011, 10:13:25 AM »

Yes, code2 doesnt work anymore with WB. You have to use to use the standard code module instead.
Code2 never was a part of WB.

Code2 always was a module for "copy&paste-coders", and code was/is a module for "real coders". Welcome in the world of "real coders" wink


Real coder?
Sorry I only got 20 years programming experience in about 20 languages...

but as a non-coder go, Code2 was/still is a pretty good alternative to "html" and "wysiwyg" module for html/javascript and CSS without the asle of a bulky and invasive code designer that do nothing but interfere when there is too much code in the field.
Logged

Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
fischstäbchenbrenner

Offline Offline

Posts: 271



« Reply #38 on: August 31, 2011, 10:40:01 AM »

The answer above was a bit "cynical"...

I guess Aldus made code2 work with WB again.
Logged

Burn, baby, burn!
Xagone
AddOn Development
*
Offline Offline

Posts: 478



WWW
« Reply #39 on: August 31, 2011, 10:43:02 AM »

it works in "multi" right,

my intagrators used code2 a lot to insert html/javascript in about the last 20/30 website they done, so it's kind of a problem not to be able to upgrade.
Logged

Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
assembler_68lc040

Offline Offline

Posts: 28


« Reply #40 on: August 31, 2011, 10:50:31 AM »

I guess Aldus made code2 work with WB again.

And "how"? As far as i understand the processes at all - the only chance to get it to work within "single tab mode" is to remove the FTAN - check inside the module and use his own one - as the secrure-alert is thrown from "admin/pages/save.php" witch is called before the module one.

Or is the implatation of the FTAN test/check wrong, as the $admin instance is still there ...
We'll discuss this ...

Regards
Alexandra
Logged

if (err = pAppInfo->GetInfo(kMoaAppInfo_WB_Sour ce, kUnderstand_minimum _of_lines, 32))
   goto exit_gracefully;
pcwacht
AddOn Development
*
Offline Offline

Posts: 2857



WWW
« Reply #41 on: August 31, 2011, 11:18:50 AM »

Not sure and surely not tested the code2 module.

in save.php
Code:
$update_when_modified = true; // Tells script to update when this page was last updated
require(WB_PATH.'/modules/admin.php');
This will output the admin-header, there a new FTAN will be set!

So change to:
Code:
// suppress to print the header, so no new FTAN will be set
$admin_header = false;
// Tells script to update when this page was last updated
$update_when_modified = true;
// Include WB admin wrapper script
require(WB_PATH.'/modules/admin.php');
Then check FTAN and after that show admin header with:
Code:
$admin->print_header();
if needed.

Have fun,
John
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
assembler_68lc040

Offline Offline

Posts: 28


« Reply #42 on: August 31, 2011, 12:02:00 PM »

Puh .. heavy discussion (known reasons) :: here is a 2.1.10  attached for testing,
as we've keep the FTAN inside the modify.php but remove the second test inside the save.php as
the FTAN-check has already passed.
Logged

if (err = pAppInfo->GetInfo(kMoaAppInfo_WB_Sour ce, kUnderstand_minimum _of_lines, 32))
   goto exit_gracefully;
Xagone
AddOn Development
*
Offline Offline

Posts: 478



WWW
« Reply #43 on: August 31, 2011, 12:04:46 PM »

Thanks Alexandra, it works #1 for the firsts tests i've done.
Logged

Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
Pages: 1 [2]   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!