War Room

Go Back   WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum
Register Blogs FAQ Social Groups CalendarHelp Desk

Ads By Warrior Forum
Reply
 
LinkBack Thread Tools
Old 10-23-2008, 10:08 PM   #1
DLGuard.com
War Room Member
 
samstephens's Avatar
 
Join Date: Nov 2004
Location: Central Coast, Australia
Posts: 6,199
Thanks: 67
Thanked 257 Times in 117 Posts
Social Networking View Member's Twitter Profile 
Default Kompozer experts - how to stop it removing code at top of the page?

Hi Kompozer experts,

I've got a client using Kompozer who is trying to paste some PHP code at the very top of her webpage.

Kompozer removes anything above the <HTML> tag when you save it, though - does anyone know how to stop it?

Thanks!
Sam

DLGuard v4.6 Now Released!
Full integration with Amazon S3 for authenticated large file and high bandwidth downloads.

www.dlguard.com
Where size doesn't matter!
samstephens is offline   Reply With Quote
Old 10-23-2008, 10:11 PM   #2
★★★★★
War Room Member
 
Jose Delgado's Avatar
 
Join Date: Jun 2008
Posts: 1,319
Blog Entries: 1
Thanks: 25
Thanked 9 Times in 7 Posts
Default Re: Kompozer experts - how to stop it removing code at top of the page?

can't she just put the code Right after the html tag?

Jose Delgado is offline   Reply With Quote
Old 10-23-2008, 10:22 PM   #3
DLGuard.com
War Room Member
 
samstephens's Avatar
 
Join Date: Nov 2004
Location: Central Coast, Australia
Posts: 6,199
Thanks: 67
Thanked 257 Times in 117 Posts
Social Networking View Member's Twitter Profile 
Default Re: Kompozer experts - how to stop it removing code at top of the page?

Unfortunately not - the code creates a cookie session, which needs to be the very first thing on the page.

The HTML tag creates a browser output, which starts the session, and so by the time too cookie is set you get a "session already started" error.

I actually thought Kompozer was a little more PHP friendly than this?

cheers
Sam

DLGuard v4.6 Now Released!
Full integration with Amazon S3 for authenticated large file and high bandwidth downloads.

www.dlguard.com
Where size doesn't matter!
samstephens is offline   Reply With Quote
Old 10-23-2008, 10:26 PM   #4
The Ethical Marketer
War Room Member
 
Michael Oksa's Avatar
 
Join Date: May 2006
Location: Wisconsin, USA
Posts: 6,060
Thanks: 1,750
Thanked 3,026 Times in 1,340 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via Yahoo to Michael Oksa
Default Re: Kompozer experts - how to stop it removing code at top of the page?

Hi Sam,

This may not be the best solution, but it should work. I had a similar issue with NVU.

What she may have to do is upload the file to her server, and then go into to the file by logging into her hosting account and editing the file there.

After I did that, the PHP code stayed. It may be a bit of a hassle, but it works.

All the best,
Michael Oksa

Michael Oksa is online now   Reply With Quote
Old 10-23-2008, 10:30 PM   #5
Senior Warrior Member
War Room Member
 
Join Date: Aug 2002
Location: , , .
Posts: 1,186
Thanks: 62
Thanked 92 Times in 84 Posts
Default Re: Kompozer experts - how to stop it removing code at top of the page?

I used to have to add it by hand with notepad after the page was completed, and then don't open it in Kompozer, or if you do add the code back with notepad again. No matter what I tried it used to unencrypt some code.

Alan
thecableguy is offline   Reply With Quote
Old 10-23-2008, 10:34 PM   #6
DLGuard.com
War Room Member
 
samstephens's Avatar
 
Join Date: Nov 2004
Location: Central Coast, Australia
Posts: 6,199
Thanks: 67
Thanked 257 Times in 117 Posts
Social Networking View Member's Twitter Profile 
Default Re: Kompozer experts - how to stop it removing code at top of the page?

Thanks a shame, I was thinking that might be the only way out - thanks guys, I'll pass it on

cheers
Sam

DLGuard v4.6 Now Released!
Full integration with Amazon S3 for authenticated large file and high bandwidth downloads.

www.dlguard.com
Where size doesn't matter!
samstephens is offline   Reply With Quote
Old 10-24-2008, 08:15 AM   #7
Always be learning
War Room Member
 
cypherslock's Avatar
 
Join Date: Sep 2007
Location: Kitchener, Ontario, Canada.
Posts: 1,940
Blog Entries: 2
Thanks: 344
Thanked 397 Times in 295 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via MSN to cypherslock Send a message via Skype™ to cypherslock
Default Re: Kompozer experts - how to stop it removing code at top of the page?

Well, kompozer is a straight HTML editor. It doesn't do php. I've found the best thing for me is this: If I'm doing anything with PHP I use a free editor called aptana. If it is something quick I use kompozer.
cypherslock is offline   Reply With Quote
Old 10-24-2008, 08:40 AM   #8
Senior Warrior Member
War Room Member
 
Chri5123's Avatar
 
Join Date: Aug 2006
Location: U.K
Posts: 1,720
Blog Entries: 4
Thanks: 94
Thanked 311 Times in 175 Posts
Default Re: Kompozer experts - how to stop it removing code at top of the page?

Hi

I think there is an option in Kompozer where you can tell it not to modify the code when you upload the page.

Ask her to look in the oprions and it should be something like "Do not reformat HTML code"

I know you are talking about php but this may be the problem.

At least I had a simalar issue with NVU.

All the best

Chris

Want A Step By Step Guide To Making $100+ A Day?

SWTOR Savior Is 100+ Gravity In Under 3 Weeks...


CLICK HERE TO MAKE $100 A DAY FAST...
Chri5123 is offline   Reply With Quote
Old 10-25-2008, 08:30 PM   #9
DLGuard.com
War Room Member
 
samstephens's Avatar
 
Join Date: Nov 2004
Location: Central Coast, Australia
Posts: 6,199
Thanks: 67
Thanked 257 Times in 117 Posts
Social Networking View Member's Twitter Profile 
Default Re: Kompozer experts - how to stop it removing code at top of the page?

Quote:
Well, kompozer is a straight HTML editor. It doesn't do php. I've found the best thing for me is this: If I'm doing anything with PHP I use a free editor called aptana. If it is something quick I use kompozer
I agree, Kompozer is just a straight HTML editor, though they do allow PHP code to be added.

The problem is they seem to stick to a "we know best" model, where they block anything that isn't basic HTML.

For example, it seems you also can't save a file that doesn't have any HTML tags in the top.

Why would you want a file with no HTML tags in the top?

This is very common for "include" files, were you're using various HTML files as a template.

But Kompozer blocks this as well.

When software tries to get too smart for it's own good, it dramatically decreases it's usefullness.

This was one of the downfalls of Frontpage, back in the day. I think it still trys to "clean" your code up, but there is an option to turn it off.

Dreamweaver's biggest strength is it doesn't force the user to play by it's own rules. It assumes the user knows what they're doing. It's refreshing.

A shame, because Kompozer is a great free solution, apart from this.



Hi Chris,

I tried those settings, but they didn't seem to make any difference. I'm not sure what they do, actually?

Either these both On and Off, Kompozer still removes tags at the top of the page.

Thanks for the help, though! It looks like my client may go for a different solution.

cheers
Sam

DLGuard v4.6 Now Released!
Full integration with Amazon S3 for authenticated large file and high bandwidth downloads.

www.dlguard.com
Where size doesn't matter!
samstephens is offline   Reply With Quote
Old 10-25-2008, 08:34 PM   #10
Senior Warrior Member
War Room Member
 
Join Date: Dec 2006
Location: Cairns, Australia.
Posts: 3,267
Thanks: 3
Thanked 784 Times in 425 Posts
Default Re: Kompozer experts - how to stop it removing code at top of the page?

I've had exactly the same problem.

I just create the page, edit it etc in Kompozer then after I'm finished add in the PHP by opening the page in Notepad.

It is annoying that if you have to edit the page with Kompozer again you also have to use Notepad after you're finished to add the PHP back in.

It does work though.

If anyone has a better solution I'd love to hear it.

Kindest regards,
Andrew Cavanagh

AndrewCavanagh is offline   Reply With Quote
Old 10-25-2008, 08:43 PM   #11
GarrieWilson.com
War Room Member
 
GarrieWilson's Avatar
 
Join Date: Jul 2006
Location: Mount Vernon, IL
Posts: 4,236
Blog Entries: 20
Thanks: 489
Thanked 300 Times in 185 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Default Re: Kompozer experts - how to stop it removing code at top of the page?

right click html file, open with notepad, paste php code, save, upload.

Pretty simple.

GarrieWilson is online now   Reply With Quote
Old 10-26-2008, 06:30 PM   #12
DLGuard.com
War Room Member
 
samstephens's Avatar
 
Join Date: Nov 2004
Location: Central Coast, Australia
Posts: 6,199
Thanks: 67
Thanked 257 Times in 117 Posts
Social Networking View Member's Twitter Profile 
Default Re: Kompozer experts - how to stop it removing code at top of the page?

Quote:
Originally Posted by GarrieWilson View Post
right click html file, open with notepad, paste php code, save, upload.

Pretty simple.
It is simple, but after having to do that ever time you want to change something on your page will get a little tiresome.

The best solution is for Kompozer to give an option to NOT modify source code automatically.

Some philosophy for the morning:

"A masterful programmer is not he who can offer the best features, but he that can offer the best user exerpience." -- Sam Stephens, 2008



cheers
Sam

DLGuard v4.6 Now Released!
Full integration with Amazon S3 for authenticated large file and high bandwidth downloads.

www.dlguard.com
Where size doesn't matter!
samstephens is offline   Reply With Quote
Old 10-26-2008, 06:53 PM   #13
DLGuard.com
War Room Member
 
samstephens's Avatar
 
Join Date: Nov 2004
Location: Central Coast, Australia
Posts: 6,199
Thanks: 67
Thanked 257 Times in 117 Posts
Social Networking View Member's Twitter Profile 
Default Re: Kompozer experts - how to stop it removing code at top of the page?

I just found an alternative - better than Kompozer, and doesn't mess with your code:

FREE HTML Editor - Better than Kompozer!

cheers
Sam

DLGuard v4.6 Now Released!
Full integration with Amazon S3 for authenticated large file and high bandwidth downloads.

www.dlguard.com
Where size doesn't matter!
samstephens is offline   Reply With Quote
Old 10-26-2008, 08:20 PM   #14
Senior Warrior Member
War Room Member
 
Alan Petersen's Avatar
 
Join Date: Oct 2006
Location: San Francisco, CA
Posts: 3,386
Blog Entries: 11
Thanks: 723
Thanked 778 Times in 494 Posts
Social Networking View Member's Twitter Profile  View Member's YouTube Profile
Default Re: Kompozer experts - how to stop it removing code at top of the page?

Quote:
Originally Posted by samstephens View Post
I just found an alternative - better than Kompozer, and doesn't mess with your code:

FREE HTML Editor - Better than Kompozer!

cheers
Sam
Dang too bad it's not Mac friendly (I don't run emulators). I've run into the same issues with NVU and now Kompozer so I just edit right from my FTP client by opening it with text editor.

Alan Petersen is online now   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum

Tags
code, experts, kompozer, page, removing, stop, top

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 12:57 PM.