|How do I disable wysiwyg editor

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   |How do I disable wysiwyg editor
ANTH
CZ Super Newbie
ANTH has been a member for over 19 year's 19 Year Member
uk.gif
Age: 45
Gender: Male
Fav. Sports Team: Liverpool
Website:
Status: Offline
Joined: Apr 17, 2005
0.01 posts per day
Posts: 54
Points: 3,103
  MSN Messenger 
Hi im trying to disable the wysiwyg editor in a block but cant can anyone help please, also can you disable the wysiwyg editor all together some how?

This is the code in the block im trying to disable it from using php 7.8 from this site.

It might not even be the block could be bringing it from the module into the block but anyway its knowcked my site all out of size.

<?php

/********************************************************/
/* Site Links To Us Module for PHP-Nuke                 */
/* Version 2.0 UNIVERSAL 2-04-05                        */
/* By: Telli (telli@codezwiz.com)                       */
/* http://codezwiz.com/                                 */
/* Copyright © 2002-2005 by Codezwiz Network, LLC.      */
/********************************************************/
if (eregi("block-CZLinks.php",$_SERVER['SCRIPT_NAME'])) {
    Header("Location: ../index.php");
    die();
}
$module_name = "Link_To_Us";
get_lang("$module_name");

      global $prefix, $db, $user, $admin, $czbl, $nukeurl;
      $content = "<center>"._BLOCKTITLE."<br />\n";
      //START OUTPUT
      $content .= "<table border='0' width='100%'><tr><td align='center'>\n";
      global $db, $prefix;
   $czbl = array();
   $sql = "SELECT * FROM ".$prefix."_linktous_config";
   $result = $db->sql_query($sql);
   while(list($config_name, $config_value) = $db->sql_fetchrow($result)){
      $czbl[$config_name] = $config_value;
   }

      if ($czbl['blkscrollml'] > "0") {
          if ($czbl['blkscrollml'] == "1") {
              $startmain = "";
              $start = "<center>";
              $end = "</center>";
              $endmain = "";
              $dir = "up";
              $hr = "<br /><hr width=\"95%\" /><br />";
          } elseif ($czbl['blkscrollml'] == "2") {
              $startmain = "";
              $start = "<center>";
              $end = "</center>";
              $endmain = "";
              $dir = "down";
              $hr = "<br /><hr width=\"95%\" /><br />";
          } elseif ($czbl['blkscrollml'] == "3") {
              $startmain = "<table border='0' width='100%' cellspacing='20'><tr>";
              $start = "<td align='center'>";
              $end = "</td>";
              $endmain = "</tr></table>\n";             
              $dir = "left";
              $hr = "";
          } elseif ($czbl['blkscrollml'] == "4") {
              $startmain = "<table border='0' width='100%' cellspacing='20'><tr>";
              $start = "<td align='center'>";
              $end = "</td>n";
              $endmain = "</tr></table>\n";
              $dir = "right";
              $hr = "";
          }
      $blkscrheightml = $czbl['blkscrheightml'];
      $blkscrdelayml = $czbl['blkscrdelayml'];
     if ($blkscrdelayml == "0") {
      $d = "10";
     } elseif ($blkscrdelayml == "1") {
      $d = "20";
     } elseif ($blkscrdelayml == "2") {
      $d = "30";
     } elseif ($blkscrdelayml == "3") {
      $d = "40";
     } elseif ($blkscrdelayml == "4") {
      $d = "50";
     } elseif ($blkscrdelayml == "5") {
      $d = "60";
     } elseif ($blkscrdelayml == "6") {
      $d = "70";
     } elseif ($blkscrdelayml == "7") {
      $d = "80";
     } elseif ($blkscrdelayml == "8") {
      $d = "90";
     } elseif ($blkscrdelayml == "9") {
      $d = "100";
     }
       
          $scroll = "<MARQUEE behavior='scroll' direction='$dir' height='$blkscrheightml' scrollamount='2' scrolldelay='$d' width='100%' onmouseover='this.stop()' onmouseout='this.start()'>\n";
          $scrollend = "</MARQUEE>\n";
      } else {
          $scroll = "<br />";
          $scrollend = "";
          $hr = "<br /><hr width=\"95%\" />";
      }
      //START SCROLL
      $content .= "$scroll$startmain";

      //GET MYLINKS
      $toshow = $czbl['blktoshowml'];
      if ($czbl['blkorderml'] == "0") {
      $czml = $db->sql_query("SELECT l_id, l_zipurl, l_image, l_mouseover, l_size_width, l_size_height FROM ".$prefix."_linktous WHERE l_status='0' AND l_size_width<130 AND l_linktype='0' ORDER BY l_id ASC LIMIT $toshow");
      } elseif ($czbl['blkorderml'] == "1") {
      $czml = $db->sql_query("SELECT l_id, l_zipurl, l_image, l_mouseover, l_size_width, l_size_height FROM ".$prefix."_linktous WHERE l_status='0' AND l_size_width<130 AND l_linktype='0' ORDER BY l_id DESC LIMIT $toshow");
      } elseif ($czbl['blkorderml'] == "2") {
      $czml = $db->sql_query("SELECT l_id, l_zipurl, l_image, l_mouseover, l_size_width, l_size_height FROM ".$prefix."_linktous WHERE l_status='0' AND l_size_width<130 AND l_linktype='0' ORDER BY rand() LIMIT $toshow");
      }
      while (list($l_id, $l_zipurl, $l_image, $l_mouseover, $l_size_width, $l_size_height) = $db->sql_fetchrow($czml)) {

      $ext = substr($l_image, strrpos($l_image,'.'), 5);
if ($ext != ".swf") {
      if (($czbl['blkziportext'] == "1") && ($ext != ".swf")) {
          $zip = "$start<a href='modules.php?name=$module_name&amp;op=getzip&amp;l_id=$l_id'>";
          $alt = "Click here to download our link!";
          $text = "";
          $flink = "";
      } elseif (($czbl['blkziportext'] == "0") && ($ext != ".swf")) {
          $zip = "$start<a href='$nukeurl'>";
          $alt = "";
          $text = "<br /><br /><textarea rows=3 cols=17><a href=\"$nukeurl\" target=\"_blank\"><img src=\"$nukeurl/$l_image\" border=\"0\" alt=\"$l_mouseover\" width=\"$l_size_width\" height=\"$l_size_height\"></a></textarea>";
          $flink = "";
      } elseif (($ext == ".swf") && ($czbl['blkziportext'] == "1")) {
          $zip = "$start";
          $alt = "";
          $text = "";
          $flink = "<br /><a href='modules.php?name=$module_name&amp;op=getzip&amp;l_id=$l_id'>Download link!</a>";
      } elseif (($ext == ".swf") && ($czbl['blkziportext'] == "0")) {
          $zip = "$start";
          $alt = "";
          $text = "<br /><br /><textarea rows=3 cols=17><EMBED SRC=\"$l_image\" wmode=\"transparent\" WIDTH=\"$l_size_width\" HEIGHT=\"$l_size_height\"><NOEMBED><a href=\"http://www.macromedia.com/go/getflashplayer/\">Get Flash!</a></NOEMBED></EMBED></textarea>";
          $flink = "";
      }

      if (($czbl['blkalphaml'] == "1") && ($ext != ".swf")) {
      $alpha = "onmouseover=high(this) style=\"FILTER: alpha(opacity=30); moz-opacity: 0.3\" onmouseout=low(this)";
      } elseif ($czbl[blkalphaml] == "0") {
      $alpha = "";
      }

      if ($ext == ".swf") {
       $img = "<EMBED SRC=\"$l_image\" wmode=\"transparent\" WIDTH=\"$l_size_width\" HEIGHT=\"$l_size_height\"><NOEMBED><a href=\"http://www.macromedia.com/go/getflashplayer/\">Get Flash!</a></NOEMBED></EMBED>";
      } else {
       $img = "<img $alpha border=\"0\" src=\"$l_image\" alt=\"$alt\" title=\"$alt\"></a>\n";
      }
}//end swf
      //OUTPUT
      $content .= "$zip$img$flink$text$hr$end";
      }//END SQL LOOP 
      $content .= "$endmain$scrollend";
      $content .= "</td>\n</tr>\n</table>\n</center>\n";
      $content .= "<br /><b><center>"._CLICKTOVIEW."</center></b>\n";

      //START RESOURCES
      if ($czbl['blkactiveres'] == "1") {
      $content .= "<br /><br /><b><center>"._BLOCKRESOURCES."</center></b><br />\n";
      $content .= "<table border='0' width='100%'><tr><td align='center'>\n";
      if ($czbl['blkscrollres'] > "0") {
          if ($czbl['blkscrollres'] == "1") {
              $startmainres = "";
              $startres = "<center>";
              $endres = "</center>";
              $endmainres = "";
              $dirres = "up";
              $hrres = "<br /><hr width=\"95%\" /><br />";
          } elseif ($czbl['blkscrollres'] == "2") {
              $startmainres = "";
              $startres = "<center>";
              $endres = "</center>";
              $endmainres = "";
              $dirres = "down";
              $hrres = "<br /><hr width=\"95%\" /><br />";
          } elseif ($czbl['blkscrollres'] == "3") {
              $startmainres = "<table border='0' width='100%' cellspacing='20'><tr>";
              $startres = "<td align='center'>";
              $endres = "</td>";
              $endmainres = "</tr></table>\n";             
              $dirres = "left";
              $hrres = "";
          } elseif ($czbl['blkscrollres'] == "4") {
              $startmainres = "<table border='0' width='100%' cellspacing='20'><tr>";
              $startres = "<td align='center'>";
              $endres = "</td>n";
              $endmainres = "</tr></table>\n";
              $dirres = "right";
              $hrres = "";
          }
     $blkscrheightres = $czbl['blkscrheightres'];
     $blkscrdelayres = $czbl['blkscrdelayres'];
     if ($blkscrdelayres == "0") {
      $dd = "10";
     } elseif ($blkscrdelayres == "1") {
      $dd = "20";
     } elseif ($blkscrdelayres == "2") {
      $dd = "30";
     } elseif ($blkscrdelayres == "3") {
      $dd = "40";
     } elseif ($blkscrdelayres == "4") {
      $dd = "50";
     } elseif ($blkscrdelayres == "5") {
      $dd = "60";
     } elseif ($blkscrdelayres == "6") {
      $dd = "70";
     } elseif ($blkscrdelayres == "7") {
      $dd = "80";
     } elseif ($blkscrdelayres == "8") {
      $dd = "90";
     } elseif ($blkscrdelayres == "9") {
      $dd = "100";
     }
          $scrollres = "<MARQUEE behavior='scroll' direction='$dirres' height='$blkscrheightres' scrollamount='2' scrolldelay='$dd' width='100%' onmouseover='this.stop()' onmouseout='this.start()'>\n";
          $scrollendres = "</MARQUEE>\n";
      } else {
          $scrollres = "";
          $scrollendres = "";
          $hrres = "<br /><hr width=\"95%\" /><br />";
      }
      //START SCROLL
      $content .= "$scrollres$startmainres";

      //GET RESOURCES
      $toshowres = $czbl['blktoshowres'];
      if ($czbl['blkorderres'] == "0") {
      $czres = $db->sql_query("SELECT r_id, r_name, r_url, r_image, r_size_width, r_size_height FROM ".$prefix."_linktous_resources WHERE r_status='0' AND r_size_width<130 ORDER BY r_id ASC LIMIT $toshowres");
      } elseif ($czbl['blkorderres'] == "1") {
      $czres = $db->sql_query("SELECT r_id, r_name, r_url, r_image, r_size_width, r_size_height FROM ".$prefix."_linktous_resources WHERE r_status='0' AND r_size_width<130 ORDER BY r_id DESC LIMIT $toshowres");
      } elseif ($czbl['blkorderres'] == "2") {
      $czres = $db->sql_query("SELECT r_id, r_name, r_url, r_image, r_size_width, r_size_height FROM ".$prefix."_linktous_resources WHERE r_status='0' AND r_size_width<130 ORDER BY rand() LIMIT $toshowres");
      }
      while (list($r_id, $r_name, $r_url, $r_image, $r_size_width, $r_size_height) = $db->sql_fetchrow($czres)) {

      $extres = substr($r_image, strrpos($r_image,'.'), 5);
      if (($czbl['blkalphares'] == "1") && ($extres != ".swf")) {
      $alphares = "onmouseover=high(this) style=\"FILTER: alpha(opacity=30); moz-opacity: 0.3\" onmouseout=low(this)";
      } elseif ($czbl[blkalphares] == "0") {
      $alphares = "";
      }

      if ($extres == ".swf") {
       $imgres = "<EMBED SRC=\"$r_image\" wmode=\"transparent\" WIDTH=\"$r_size_width\" HEIGHT=\"$l_size_height\"><NOEMBED><a href=\"http://www.macromedia.com/go/getflashplayer/\">Get Flash!</a></NOEMBED></EMBED>";
      } else {
       $imgres = "<a href='modules.php?name=$module_name&amp;op=getres&amp;r_id=$r_id' target='_blank'><img $alphares border='0' src='$r_image' height='$r_size_height' width='$r_size_width' alt='$r_name' title='$r_name'></a>\n";
      }
      //OUTPUT
      $content .= "$startres$imgres$hrres$endres";
      }//END SQL LOOP 
      $content .= "$endmainres$scrollendres";
      $content .= "</td>\n</tr>\n</table>\n</center>\n";
      }//END IF ACTIVE
  if (is_admin($admin)) {
      $content .= "<br /><br /><center>[ <a href=\"modules.php?name=Link_To_Us&amp;file=admin\">CZLink Us Admin</a> ]</center>\n";
  }

?>



Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
Sorry but thats my block and there is no wysiwyg editor in there.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: |How do I disable wysiwyg editor
ANTH
CZ Super Newbie
ANTH has been a member for over 19 year's 19 Year Member
uk.gif
Age: 45
Gender: Male
Fav. Sports Team: Liverpool
Website:
Status: Offline
Joined: Apr 17, 2005
0.01 posts per day
Posts: 54
Points: 3,103
  MSN Messenger 
weird in the block where you can copy the link code out to put on another site that turns into a wysiwyg editor but its ok now becasue ive reverted back.



Back to top Reply with quote
#4   re: |How do I disable wysiwyg editor
Bazil
CZ Super Newbie
Bazil has been a member for over 20 year's 20 Year Member
usa.gif florida.gif
Website:
Status: Offline
Joined: Dec 09, 2004
0.01 posts per day
Posts: 49
Points: 1,505
   
Maybe you have tinyMCE installed...
[ Register or login to view links on this board. ]

its a text editor for nuke....



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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 cannot attach files in this forum
You cannot download files in this forum