Develop PHP Website for Learning Web Design Free Online
  Home   |   Forums   |   DevCMS
  Join   |   Log In
 
   

Forum Index >> PHP and MySQL Forum

Holder
WYSIWYG - Why does nothng appear but the code?
   New topic    
 
WYSIWYG - Why does nothng appear but the code?
by gremlin - Fri Jul 30, 2010 10:26:55 AM

From adams tutorials on CSM, i went and download the ones he recommended and i installed it but it doesnt seem to output anything but the code

for example

I put ----------  [b] test[/b]

and then what gets out put it is [b] test[/b] not the actual word going bold.

Do they come with parsers?

 

gremlin
Forum & Site XP Level:

United States of America
mississippi
Slidel

LeoLeo
Posts: 191
Joined: 04/22/09

RE: WYSIWYG - Why does nothng appear but the code?
by gremlin - Fri Jul 30, 2010 10:29:55 AM

http://php-login-script.com/bbdemo.php

 

check this out

 

gremlin
Forum & Site XP Level:

United States of America
mississippi
Slidel

LeoLeo
Posts: 191
Joined: 04/22/09

RE: WYSIWYG - Why does nothng appear but the code?
by lewisanderson - Fri Jul 30, 2010 10:42:15 AM

see if this thread helps

http://www.developphp.com/forum/view_topic.php?cat=2&otid=1867&title=HTML%20WYSIWYG%20Editor

lewisanderson
Forum & Site XP Level:

United States of America
1
1

AriesAries
Posts: 1129
Joined: 01/05/10

RE: WYSIWYG - Why does nothng appear but the code?
by gremlin - Fri Jul 30, 2010 11:11:40 AM

getting errors mate, i tried it... below is the php part of the blab form, highlighted blue is the bit that parses the shitty little bbcode lol but doesnt work and the errors comes up. what should i do exactly?

: htmlentities() expects parameter 1 to be string, object given in /home/glob/public_html/profile.php on line 133

<?php
$the_blab_form = "";
if (isset($_SESSION['id'])) {
 
 if ($_SESSION['id'] == $id){
    
  $the_blab_form = '
  ' . $blab_outout_msg . '
<form action="profile.php" method="post" enctype="multipart/form-data" name="blab_from">
<script>edToolbar("blab_field"); </script>
<textarea name="blab_field" rows="3" style="width:100%;" class="ed"></textarea>
PirtaBox  (220 char max) <input name="submit" type="submit" value="submit" class="button" />
</form>';


         require_once("bbCode/nbbc.php");
         $bbcode = new BBCode; 
   $makeEntities = htmlentities($bbcode);
   $readyForDisplay = html_entity_decode($makeEntities);
         $bbcode->Parse($_POST["blab_field"]);
        
  
      
        echo $makeEntities;
        echo "<br /><br />";
        echo $readyForDisplay;
 

 }
}

?>
 

gremlin
Forum & Site XP Level:

United States of America
mississippi
Slidel

LeoLeo
Posts: 191
Joined: 04/22/09

RE: WYSIWYG - Why does nothng appear but the code?
by gremlin - Fri Jul 30, 2010 11:14:43 AM

also inside my database its coming up as for example [i] test1 [/i] , so the database is reading the code.
gremlin
Forum & Site XP Level:

United States of America
mississippi
Slidel

LeoLeo
Posts: 191
Joined: 04/22/09

   New topic  
 
 
Arbitrary Links and Archives
Home
Active Forums
Members
SIte News
Link To Us
Gear
2009 Forum Archive
Programming Courses
Learn HTML
Learn CSS
Learn PHP
Learn MySQL
Learn Javascript
Learn jQuery
Learn ActionScript 3.0
Learn Java
Learn XML
DevelopPHP Requires Flash Player
Get Adobe Flash player
___________________________________________

Terms of Use  •  Privacy  •  Admin Notes

©2010 developphp.com   |   Powered By FlashBuildingHolder