Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> WYSIWYG - Raven's RavenNuke(tm) v2.x Distro
Author Message
Duncan
New Member
New Member


Joined: Dec 21, 2005
Posts: 21

PostPosted: Tue Jan 31, 2006 3:41 pm Reply with quote

I'm trying to add the editor into my added Calendar module. Anyone got any ideas why I get errors on line 263 , or colon expected, when I use the method described in the package? Any guidance on this or can anyone point me into the right direction?

edited...as can't post due to disallowed characters... Sad

This is the code before changing - the area that I believe needs to be changed is around here
Quote:
<b>"._CALARTICLETEXT."</b>:<br>
"._CALHTMLISFINE."<br><br>
<textarea cols=\"50\" rows=\"12\" name=\"story\"></textarea><br>


Is this using something to strip the slashes before each "??? I dont see that code in nuke now.... Or do I?

A bit more of the code around it - listed below....

Code:


 
echo "<br><br><input name=\"alldayevent\" type=\"checkbox\" value=\"1\">&nbsp;<b>"._CALALLDAYEVENT."</b><br>
          <font size=1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"._CALTIMEIGNORED."</font>";
    echo "<br><br><b>"._CALBARCOLORTEXT."</b>:<br><br>
          <input type=\"checkbox\" name=\"barcolor\" value=\"r\">Birthday<img src=\"images/calendar/ballr.gif\">&nbsp;&nbsp;
          <input type=\"checkbox\" name=\"barcolor\" value=\"g\">Holiday<img src=\"images/calendar/ballg.gif\">&nbsp;&nbsp;
          <input type=\"checkbox\" CHECKED name=\"barcolor\" value=\"b\">Meeting<img src=\"images/calendar/ballb.gif\">&nbsp;&nbsp;
          <input type=\"checkbox\" name=\"barcolor\" value=\"w\">Event<img src=\"images/calendar/ballw.gif\">&nbsp;&nbsp;
          <input type=\"checkbox\" name=\"barcolor\" value=\"y\">External Event<img src=\"images/calendar/bally.gif\">
          <br>";
    echo "<br><br>
          <b>"._CALARTICLETEXT."</b>:<br>
          "._CALHTMLISFINE."<br><br>
        <textarea cols=\"50\" rows=\"12\" name=\"story\"></textarea><br>             <font size=\"2\"><br><b>"._CALALLOWEDHTML."</b>:<br>";
    while (list($key,) = each($AllowableHTML)) echo " &lt;".$key."&gt;";
 // echo "<br>("._CALAREYOUSURE.")</font><br><br>
   
   echo "<br><br>
          <input type=\"hidden\" name=\"type\" value=\"$type\">
          <input type=\"submit\" name=\"op2\" value=\"Preview Event\"></form>";
    CloseTable();
    include ('footer.php');
}


ta

Duncan
Glasgow, Scotland
 
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6383

PostPosted: Tue Jan 31, 2006 7:35 pm Reply with quote

Please email the file you want to change to kguske at nukeSEO dot com. I'll return it with the appropriate code.

_________________
I google, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
sting
Involved
Involved


Joined: Sep 23, 2003
Posts: 456
Location: Somewhere out there...

PostPosted: Wed Feb 01, 2006 9:09 am Reply with quote

One of the things I find useful (though a bit more cumbersome) in troubleshooting errors is separating the echo codes so I don't have to dig for the misplaced double quotes or double quotes with no preceding back slash...

So for example, where you have:

Code:


echo "<br><br><b>"._CALBARCOLORTEXT."</b>:<br><br>
          <input type=\"checkbox\" name=\"barcolor\" value=\"r\">Birthday<img src=\"images/calendar/ballr.gif\">&nbsp;&nbsp;



Break it up into

Code:


echo "<br><br><b>" . _CALBARCOLORTEXT . " </B>:<br><br> "
       ."<input type=\"checkbox\" name=\"barcolor\" value=\"r\">Birthday<img "
       ."src=\"images/calendar/ballr.gif\">&nbsp;&nbsp;";


In just doing these few lines I saw two things that made me wonder -

1.) Is _CALBARCOLORTEXT a variable that needs a $ in front of it?
2.) Do the &nbsp semicolons affect the statement?

Anyway, breaking out your code into a cleaner format will certainly assist in troubleshooting...

-sting
 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> WYSIWYG - Raven's RavenNuke(tm) v2.x Distro

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©