phpGiggle for ST
fwebz 0
From: -
From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: phpGiggle for ST
fwebz
OP
0
From: -
From: -
phpGiggle for ST
Philipp i don't know how to thank you
yes it's work,,,,realy Great
thank you Philipp,
Philipp i don't know how to thank you
yes it's work,,,,realy Great
thank you Philipp,
1 Re: phpGiggle for ST
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
phpGiggle for ST
Originally posted by fwebz:
Try the following instead. Add on top of template story (after global $insert;):
Let me know if this work
Originally posted by fwebz:
and replace $insert[story_extendedtext] in "Template story" with the following:
<?php $html_string = <<<HERE
$insert[story_extendedtext]
HERE;
echo giggle_autolink($html_string,-1,1);
?>
the story show up with no prob but
echo giggle_autolink($html_string,-1,1);
Try the following instead. Add on top of template story (after global $insert;):
$insert[story_text] = giggle_autolink($insert[story_text],-1,1);
$insert[story_extendedtext] = giggle_autolink($insert[story_extendedtext],-1,1);
Let me know if this work
hello
what is phpGiggle ?
phpGiggle locates user-defined keywords and phrases in an HTML document or string and subsequently replaces the keywords or phrases with anchor tags linking to user-defined URLs. As well, pre-defined 'template' anchor tags are included for Google.com, Dictionary.com, Webopedia.com, Vivisimo.com, CPAN.org, Freshmeat.net and others. With phpGiggle, anchor tags for an entire website can be contained in a single file, with links being dynamically generated when the HTML is displayed to vistor's browser. This is particulary useful for sites with dynamically generated content, such as Blogs, News sites, etc. Content creators need-not worry about creating links when posting new content, as phpGiggle will auto link the keywords and phrases at runtime. phpGiggle performs dynamic anchor tag generation very quickly and with no noticeable impact to the browser, providing a pleasant user experience that includes plentiful links to additional content which the reader may find useful.
http://www.biermana.org/index.php?p=12
it's work with all blog systems or we can say it work with any php/MySQL scripts.
and am sure it's work with ST cuz as i see in Movable Type Installation thers to many thinge like ST..
the prob is i don't find the right way for it ..
in Movable Type just Include phpgiggle.inc.php to the top of the template
and
Find the <$MTEntryBody$> tag and replace it with the following:
<?php $html_string = <<<HERE
<$MTEntryBody encode_php="heredoc"$>
HERE;
echo giggle_autolink($html_string,-1,1);
?>
what i do in ST
i add
include ("../phpgiggle/phpgiggle.inc.php");
in site_header
between global $insert; AND $EST_TEMPLATE
and replace $insert[story_extendedtext] in "Template story" with the following:
<?php $html_string = <<<HERE
$insert[story_extendedtext]
HERE;
echo giggle_autolink($html_string,-1,1);
?>
the story show up with no prob but
echo giggle_autolink($html_string,-1,1);
show in the story as normal text not phrases,to make my post short,i hope you Philipp plz plz,to give us the right way to include phpGiggle in ST,just like most other blog...withe this we can have STWiki
i think phpGiggle is a Great addone for any blog/news system and i think most if not all ST users agree with me
read me
http://www.biermana.org/phpGiggle/README.html
Thank in advance