Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 25, 2012, 01:38:31 PM
1 Hour
1 Day
1 Week
1 Month
Forever
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
WebsiteBaker Community Forum
English
Modules
(Moderator:
Argos
)
Code_2 Module
Pages:
1
[
2
]
Go Down
Author
Topic: Code_2 Module (Read 4494 times)
Mte90
Forum Team
Offline
Posts: 93
Re: Code_2 Module
«
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
Posts: 2077
Re: Code_2 Module
«
Reply #26 on:
April 12, 2010, 06:43:59 PM »
I think so.
rgds
erpe
Logged
stories about
be part of the Tutorials-Project
visit the jQuery-Showroom
Xagone
AddOn Development
Offline
Posts: 478
Re: Code_2 Module
«
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
Posts: 285
Re: Code_2 Module
«
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
Posts: 1238
Re: Code_2 Module
«
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
Posts: 285
Re: Code_2 Module
«
Reply #30 on:
December 09, 2010, 07:11:48 PM »
Thanks! Great module, and support.
Logged
Xagone
AddOn Development
Offline
Posts: 478
Re: Code_2 Module
«
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
Posts: 271
Re: Code_2 Module
«
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"
«
Last Edit: August 30, 2011, 10:03:27 PM by fischstäbchenbrenner
»
Logged
Burn, baby, burn!
Hans
Offline
Posts: 565
Re: Code_2 Module
«
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
Posts: 271
Re: Code_2 Module
«
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.
Logged
Burn, baby, burn!
Hans
Offline
Posts: 565
Re: Code_2 Module
«
Reply #35 on:
August 30, 2011, 10:49:34 PM »
Whatever your answer is worth, I guess we have to live with it
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
Posts: 28
Re: Code_2 Module
«
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"
? 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
Posts: 478
Re: Code_2 Module
«
Reply #37 on:
August 31, 2011, 10:13:25 AM »
Quote from: fischstäbchenbrenner 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"
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
Posts: 271
Re: Code_2 Module
«
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
Posts: 478
Re: Code_2 Module
«
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
Posts: 28
Re: Code_2 Module
«
Reply #40 on:
August 31, 2011, 10:50:31 AM »
Quote from: fischstäbchenbrenner on August 31, 2011, 10:40:01 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
Posts: 2857
Re: Code_2 Module
«
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
Posts: 28
Re: Code_2 Module
«
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
Posts: 478
Re: Code_2 Module
«
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
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> WebsiteBaker Website Showcase
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
=====> Modules / Extensions
===> Suggestions
===> Software bugs
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
=====> Module / Extensions
===> Vorschläge
===> Softwarefehler
===> Erfahrungs und Testberichte
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...