Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 11:55:12 AM

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.
155407 Posts in 21698 Topics by 7731 Members
Latest Member: elwin90
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: ModuleEdit module reworked for WB 2.6.x and 2.7.x  (Read 2633 times)
pcwacht
AddOn Development
*
Online Online

Posts: 2855



WWW
« on: July 22, 2008, 03:56:52 PM »

Reworked the old module edit module,

Added wb2.7 support and Syntaxhighlighting, thanks to the templatemodule Wink


John

Logged

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

Posts: 2156


WWW
« Reply #1 on: July 22, 2008, 04:01:09 PM »

You're the man John! Thanks alot!  grin
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
Argos
Moderator
**
Offline Offline

Posts: 2156


WWW
« Reply #2 on: July 22, 2008, 04:42:15 PM »

When I paste content from the editor into Dreamweaver or Notepad, all formatting (including line breaks and indents) is lost, making the code very hard to read. The format function in Dreamweaver cannot reformat it. How come?
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4883



« Reply #3 on: July 22, 2008, 04:48:55 PM »

@Argos, Info: with the AdobeGolive (7.0.2) it works finde (in both directions).

Thanks for this module! It's really great.

How come, that the "highlighting" is working.
The template-edit module doesn't have it - or do I have an old version  grin

Regards,
Stefek
Logged

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

Posts: 2156


WWW
« Reply #4 on: July 22, 2008, 04:57:26 PM »

@Argos, Info: with the AdobeGolive (7.0.2) it works finde (in both directions).

I don't have that...

I still don't understand why the old way was considerd a bug, and why we have to jump through loops to simply edit module files. I appreciate John's module and his work, but it's all still not as simple as the way it was in previous versions. So if anyone know a way to undo this "bugfix" of not being able anymore to reinstall a module, I'd be happy to hear about it.
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
pcwacht
AddOn Development
*
Online Online

Posts: 2855



WWW
« Reply #5 on: July 22, 2008, 05:23:26 PM »

Stefek wrote:
Quote
How come, that the "highlighting" is working.
The template-edit module doesn't have it - or do I have an old version 

You probably have an old version, the syntax highlighting works from wb27 standard with templateedit
Here it does anyway
try reïnstalling the templatemodul


To Argos,
removing the bugfix mean tampering with corecode, I could do that

I allwyas use a local xampp copy for testing modules - templates etc, simply ups them to the server and change ownership with ftp works most of the time

Another option is to use something like phpexplorer -
http://www.phpxplorer.org/phpXplorer/www/
or quixplorer - http://quixplorer.sourceforge.net/
They are php based explorer like filebrowsers, they work with the same rights as the apacheuser - equals the user under wich wb runs

If you want to use such an explorer make sure you take care of the rights make sure no other then you can edit etc.

have fun,
John
Logged

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

Posts: 2156


WWW
« Reply #6 on: July 22, 2008, 05:41:53 PM »

removing the bugfix mean tampering with corecode, I could do that
I think you mean "could NOT do that"? Or can you?

Quote
I allwyas use a local xampp copy for testing modules - templates etc, simply ups them to the server and change ownership with ftp works most of the time
How can you change ownership with FTP??? Don't you need root level server access for that?

Quote
Another option is to use something like phpexplorer -
http://www.phpxplorer.org/phpXplorer/www/
or quixplorer - http://quixplorer.sourceforge.net/
They are php based explorer like filebrowsers, they work with the same rights as the apacheuser - equals the user under wich wb runs
I'll look into that...
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
Hans

Offline Offline

Posts: 564


« Reply #7 on: July 23, 2008, 11:03:04 PM »

Sorry if I don't understand you guys right, but why not use an FTP client that makes it possible to edit files that are on the server with an editor in the local machine.
I use Win SCP (Open Source) and I can edit all files with Notepad++ (also Open Source) locally. It updates automagically and has an almost infinite undo.
Hans
Logged

Hans - Nijmegen - The Netherlands
Argos
Moderator
**
Offline Offline

Posts: 2156


WWW
« Reply #8 on: July 23, 2008, 11:46:30 PM »

There will be an owner conflict. Some simple modules work after FTP and using Module Reload in the admin. But modules that add to the database will not work that way and need to be installed by WB. That causes WB to be the owner, and normal FTP won't work. In previous versiosn that wasn't a real problem, because you could simply rezip and reinstall after modding files. But in version 2.7 this is not possible anymore, so now we have to use the internal editor, which is rather limited compared to working offline and ftp or reinstall.
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
doc
Guest
« Reply #9 on: January 18, 2009, 11:15:04 PM »

Hello,

if you are interested in editing modules, templates, or language files (Add-ons), you may want to check out the new admin module Addon File Editor.

Regards Christian
Logged
Pages: [1]   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!