Ask a Question related to Macromedia Contribute General Discussion, Design and Development.
-
timminehan #1
Editing destroys php code
When editing pages made in Dreamweaver based on a template, Contribute removes
the white space in the code chunk. This causes "parse error on line ..." (this
line is the line after </html>!)
Here is the code as it should be
<?php
require_once("/Library/WebServer/Documents/includes/ldapauthfuncs.php");
if(!checkuser(2)){
//User is not logged in or does not have the appropriate userlevel so give
them the login screen
include "/Library/WebServer/Documents/includes/ldaplogin.php";
exit;
}
?>
Here is what Contribute does
<?phprequire_once("/Library/WebServer/Documents/includes/ldapauthfuncs.php");
if(!checkuser(2)){ //User is not logged in or does not have the appropriate
userlevel so give them the login screen include
"/Library/WebServer/Documents/includes/ldaplogin.php";exit;}?>
If I edit in text editor (code is locked in Dreamweaver) or similar to
rectify, all is good until Contribute edits the page again.
please help.
<?php
require_once("/Library/WebServer/Documents/includes/ldapauthfuncs.php");
if(!checkuser(2)){
//User is not logged in or does not have the appropriate userlevel so give
them the login screen
include "/Library/WebServer/Documents/includes/ldaplogin.php";
exit;
}
?>
timminehan Guest
-
Enable source code editing
It says that an Administrator can set an external editor to edit a pages source code, however, I cannot access any external editor. It is grayed out... -
editing PDF in illustrator without breaking code
In order to explain this, i'll give it as a scenario. Let's say you design a form with minimal graphics in Adobe Illustrator CS3. you save a copy... -
Paypal code and editing in Contribute
I have a site which is being edited with Contribute. One page ( http://www.centerfornaturalism.org/support.htm ) of the site uses paypal to take... -
editing code
Hi..... this may be a basic question, but its infuriating me, so please put me out of my misery. I've just updated from ultradev 4 to studio... -
Contribute changes template code when editing
i have a javascript in my template which is in a locked area. when i edit a page in contribute, it removes the line breaks in the script and breaks... -
HdotNET #2
Re: Editing destroys php code
I get exactly this error with my PC Contribute.
It looks like you're using a mac too. Are you using Mac Contribute or PC.
Is your code outside of a template directive? IOW not supposed to be touched
at all?
What I can't understand is that DW has been able to handle php since the year
dot, well 1.2, while Contribute can't. Perhaps the MM Contribute department
should go and talk to the MM Dreamweaver department and get a lesson in
Templates.
HdotNET Guest



Reply With Quote

