Contentteller

Contentteller Support Forums
Home Forums > Contentteller > Troubleshooting and Problems >

Smilie Problem

Discussion in 'Troubleshooting and Problems' started by ReviewStud, May 27, 2009.

  1. ReviewStud New Member

    Smilie Problem

    I know if the worst problem I am having is smilies not showing up once their articles are submitted is not a 'really' bad problem to have. But it is a strange problem to have.

    I can see the smilie in the WYSIWYG editor, but after I hit 'edit' and check the page for the updates, the smilie isn't there.

    I have checked to see if the image's path is correct and it is, but the only thing that is showing up is the ALT text.

    Anyone else seen this problem before?
    ReviewStud, May 27, 2009
    #1
  2. Philipp Administrator

    Try the following. Open classes/class_system.php in an editor and add after:

    PHP:
            $var = preg_replace( "/JavaScript/i", "Java Script ", $var );
            
    $var = preg_replace( "/VBScript/i", "vb script ", $var );
    the following line:

    PHP:
            $var = str_replace( "../jscripts/tiny_mce", "jscripts/tiny_mce", $var );
    This should fix the problem for new stories.
    Philipp, May 27, 2009
    #2
  3. ReviewStud New Member

    I added the line, but there isn't any change. Still no smilie.
    ReviewStud, May 28, 2009
    #3
  4. Philipp Administrator

    This should work for new stories. To fix the problem in edit:

    Open /cadmin/news/admindoeditstory.php and replace:

    PHP:
            if( !$input_html )
            {
                
    $input_newsstory_story_parsed = $system -> dechomp( $input_newsstory_story_parsed );
                
    $input_newsstory_extendedstory_parsed = $system -> dechomp( $input_newsstory_extendedstory_parsed );
            }
    with:

    PHP:
            if( !$input_html )
            {
                
    $input_newsstory_story_parsed = $system -> dechomp( $input_newsstory_story_parsed );
                
    $input_newsstory_extendedstory_parsed = $system -> dechomp( $input_newsstory_extendedstory_parsed );
            }
            else 
            {
                
    $input_newsstory_story_parsed = $system -> scriptex( $input_newsstory_story_parsed );
                
    $input_newsstory_extendedstory_parsed = $system -> scriptex( $input_newsstory_extendedstory_parsed );
            }
    Philipp, May 28, 2009
    #4
  5. ReviewStud New Member

    Bingo!! That fixed it.

    Thank you,
    ReviewStud, May 29, 2009
    #5
Tweet
Facebook:
Forgot your password?
Contentteller Support Forums
Home Forums > Contentteller > Troubleshooting and Problems >
  • Home
  • Forums

    Forums

    Quick Links
    • Search Forums
    • What's New?
  • Members

    Members

    Quick Links
    • Registered Members
    • Current Visitors
    • Recent Activity
  • Help

    Help

    Quick Links
    • Smilies
    • BB Codes
    • Trophies

Separate names with a comma.

Advanced search...
    Forum software by XenForo™ ©2011 XenForo Ltd.