RealBlog_XH

{{{Realblog_blog();}}} 

 

Syntaxhighlighter_XH Test

2015/12/25

This is entry1
This is entry2
This is entry3

 

###################

	Read Syntaxhighlighter's JS and CSS
And 
	When Save entry : \t --> chr(26) ,  \n -->chr(27)
	When View entry : \t <-- chr(26) ,  \n <--chr(27)


##
########## classes/Article.php
##

    public function asRecord()
    {

// Add 
		$new_body = str_replace("\t", chr(26), str_replace("\n", chr(27), $this->body));

        return array(
            $this->id, $this->date, $this->publishingDate, $this->archivingDate,
//            $this->status, false, $this->title, $this->teaser, $this->body,
            $this->status, false, $this->title, $this->teaser, $new_body,
            $this->feedable, $this->commentable
        );
    }
}

##
#######classes/ArticleView.php
##

    protected function renderStory()
    {

        global $c,$pd_s;

        $story = $this->article->getBody() != ''
            ? $this->article->getBody()
            : $this->article->getTeaser();
// Add 
		$show_story = evaluate_scripting($story);
		if(function_exists('Syntaxhighlighter')){
			Syntaxhighlighter($show_story); // load Syntaxhighlighter's JS and CSS
		}

        return '<div class="realblog_show_story_entry">'
//            . evaluate_scripting($story)
            . str_replace(chr(26), "\t", str_replace(chr(27), "\n",$show_story)) 
            . '</div>';
    }

#
######classes/ArticleAdminView.php
#

    protected function renderStory()
    {
        global $plugin_tx;

//Add
		$show_body = str_replace(chr(26), "\t", str_replace(chr(27), "\n",$this->article->getBody()));

        return '<h4>' . $plugin_tx['realblog']['story_label'] . '</h4>'
            . '<textarea class="realblog_story_field"'
            . ' name="realblog_story" id="realblog_story" rows="30" cols="80">'
//            . XH_hsc($this->article->getBody()) . '</textarea>';
            . XH_hsc($show_body) . '</textarea>';
    }

http://cmsimpleforum.com/viewtopic.php?f=12&t=7916&start=10#p50335

 *)reCAPTCHA( api Ver2.0) is "New Type recaptcha_xh" ・・・Now .Pull requests to cmb69 ..https://github.com/bbfriend/recaptcha_xh

2015/25/12 09:23 投稿者:ああああああああああ

アイアイアイアイアイ
aiaiaiiaia
あいあいあいあいあい

 

{{{Realblog_blog();}}}
 

{{{Realblog_archive();}}}

{{{Realblog_archive();}}}
 

{{{Realblog_blog(true);}}}

Syntaxhighlighter_XH Test

2015/12/25

This is entry1
This is entry2
This is entry3

 

###################

	Read Syntaxhighlighter's JS and CSS
And 
	When Save entry : \t --> chr(26) ,  \n -->chr(27)
	When View entry : \t <-- chr(26) ,  \n <--chr(27)


##
########## classes/Article.php
##

    public function asRecord()
    {

// Add 
		$new_body = str_replace("\t", chr(26), str_replace("\n", chr(27), $this->body));

        return array(
            $this->id, $this->date, $this->publishingDate, $this->archivingDate,
//            $this->status, false, $this->title, $this->teaser, $this->body,
            $this->status, false, $this->title, $this->teaser, $new_body,
            $this->feedable, $this->commentable
        );
    }
}

##
#######classes/ArticleView.php
##

    protected function renderStory()
    {

        global $c,$pd_s;

        $story = $this->article->getBody() != ''
            ? $this->article->getBody()
            : $this->article->getTeaser();
// Add 
		$show_story = evaluate_scripting($story);
		if(function_exists('Syntaxhighlighter')){
			Syntaxhighlighter($show_story); // load Syntaxhighlighter's JS and CSS
		}

        return '<div class="realblog_show_story_entry">'
//            . evaluate_scripting($story)
            . str_replace(chr(26), "\t", str_replace(chr(27), "\n",$show_story)) 
            . '</div>';
    }

#
######classes/ArticleAdminView.php
#

    protected function renderStory()
    {
        global $plugin_tx;

//Add
		$show_body = str_replace(chr(26), "\t", str_replace(chr(27), "\n",$this->article->getBody()));

        return '<h4>' . $plugin_tx['realblog']['story_label'] . '</h4>'
            . '<textarea class="realblog_story_field"'
            . ' name="realblog_story" id="realblog_story" rows="30" cols="80">'
//            . XH_hsc($this->article->getBody()) . '</textarea>';
            . XH_hsc($show_body) . '</textarea>';
    }

http://cmsimpleforum.com/viewtopic.php?f=12&t=7916&start=10#p50335

 *)reCAPTCHA( api Ver2.0) is "New Type recaptcha_xh" ・・・Now .Pull requests to cmb69 ..https://github.com/bbfriend/recaptcha_xh

2015/25/12 09:23 投稿者:ああああああああああ

アイアイアイアイアイ
aiaiaiiaia
あいあいあいあいあい
 
 
{{{PLUGIN:realbloglink('realblogpage=WebLog');}}}