:-)
On Sun, Jun 6, 2010 at 9:51 AM, Paul <[email protected]> wrote: > Sorry and ignore me too :-)) I'd saved theme.php with wrong > encoding :-) different from UTF-8. > > On 6 июн, 11:25, Colin <[email protected]> wrote: >> Check your browser settings. Also, show us a link so we can see too :-) >> >> >> >> On Sun, Jun 6, 2010 at 9:21 AM, Paul <[email protected]> wrote: >> > Strange, I use this: >> >> > <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> >> >> > Don't know why but symbols are corrupted... >> >> > On 6 июн, 11:04, Colin <[email protected]> wrote: >> >> Hi Paul >> >> >> Provided you are setting an appropriate content-type within your >> >> headers (and your browser has support for that character set and >> >> content-type), you should get the characters you expect. >> >> >> HTH >> >> Colin >> >> >> On Sun, Jun 6, 2010 at 5:04 AM, Paul <[email protected]> wrote: >> >> > Faced with another problem. I need to paste here a non-latin symbols: >> >> >> > Format::apply_with_hook_params( 'more', 'post_content_out', >> >> > '[NON_LATIN_LETTERS_HERE]' ); >> >> >> > But it output question marks instead of correct letters: >> >> >> > Is there any way to bypass it? >> >> >> > On 4 июн, 00:42, Paul <[email protected]> wrote: >> >> >> Yep, it totally overrides, works great. That is exactly what I was >> >> >> looking for! Thanks again. >> >> >> >> On 3 июн, 14:05, rick c <[email protected]> wrote: >> >> >> >> > Following up on Colin's explanation, the Format::more() function, >> >> >> > which is used in my example, contains the support for the <!--more--> >> >> >> > tag. If the post contains the tag, the post will be cut at it, rather >> >> >> > than the number of words or paragraphs specified. I can't remember if >> >> >> > it totally overrides the numbers, or would override them only if it >> >> >> > occurs in the text before the counts are reached. Looking at the >> >> >> > code, >> >> >> > I rather think it totally overrides them. >> >> >> >> > In general, Habari encourages the use of tags that are contained in a >> >> >> > comment rather than tags of the format [tag] because if the user ever >> >> >> > switches to another blogging platform, the tag can remain in the post >> >> >> > without interfering with anything since it is already an html >> >> >> > comment. >> >> >> > Tags in the form of [tag] have to be laboriously replaced if the new >> >> >> > platform doesn't support them. >> >> >> >> > Rick >> >> >> >> > On Jun 3, 1:49 am, Paul <[email protected]> wrote: >> >> >> >> > > Hum, I thought Rick's example have no tag :-) >> >> >> >> > > Thanks for explanation! >> >> >> >> > > On 3 июн, 08:26, Colin <[email protected]> wrote: >> >> >> >> > > > Paul >> >> >> >> > > > This example is essentially the same as the "Read more" feature >> >> >> > > > you >> >> >> > > > asked about and Rick explained, just with a different tag. >> >> >> > > > Habari >> >> >> > > > uses the the <!--more--> tag instead of the [cut] tag, though >> >> >> > > > I'm sure >> >> >> > > > it may be possible to use the [cut] tag if you use the Markup >> >> >> > > > plugin, >> >> >> > > > though it may need to be extended to include support for this tag >> >> >> > > > first. >> >> >> >> > > > HTH >> >> >> > > > Colin >> >> >> >> > > > On Thu, Jun 3, 2010 at 5:15 AM, Paul <[email protected]> wrote: >> >> >> > > > > Many thanks! >> >> >> >> > > > > Want ask more about "promo part", maybe you know, some CMS >> >> >> > > > > have a >> >> >> > > > > [cut] tag, this tag form a "promo part" >> >> >> >> > > > > Example: >> >> >> >> > > > > Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed >> >> >> > > > > diam >> >> >> > > > > nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam >> >> >> > > > > erat >> >> >> > > > > volutpat. >> >> >> > > > > [cut] >> >> >> > > > > Ut wisi enim ad minim veniam, quis nostrud exerci tation >> >> >> > > > > ullamcorper >> >> >> > > > > suscipit lobortis nisl ut aliquip ex ea commodo consequat. >> >> >> > > > > Duis autem >> >> >> > > > > vel eum iriure dolor in hendrerit in vulputate velit esse >> >> >> > > > > molestie >> >> >> > > > > consequat, vel illum dolore eu feugiat nulla facilisis at vero >> >> >> > > > > eros et >> >> >> > > > > accumsan et iusto odio dignissim qui blandit praesent luptatum >> >> >> > > > > zzril >> >> >> > > > > delenit augue duis dolore te feugait nulla facilisi. >> >> >> >> > > > > All text (pictures, etc.) over the [cut] tag stay in the >> >> >> > > > > "promo part" >> >> >> > > > > and if you want to see rest of the post you must click on the >> >> >> > > > > "Read >> >> >> > > > > more" link or something similar. >> >> >> >> > > > > Is there any intentions to do something like this in a future >> >> >> > > > > releases? >> >> >> >> > > > > On 3 июн, 06:44, rick c <[email protected]> wrote: >> >> >> > > > >> Paul, >> >> >> >> > > > >> Shards uses version of the thePrestige theme that is in >> >> >> > > > >> habari-extras >> >> >> > > > >> (http://habariproject.org/dist/themes/thePrestige/). >> >> >> >> > > > >> If you look in the theme's theme.php file you'll find the >> >> >> > > > >> following >> >> >> > > > >> lines in the action_init_theme() method: >> >> >> >> > > > >> // Creates an excerpt option. echo $post->content_excerpt; >> >> >> > > > >> Format::apply( 'autop', 'post_content_excerpt'); >> >> >> > > > >> Format::apply_with_hook_params( 'more', >> >> >> > > > >> 'post_content_excerpt', '<span >> >> >> > > > >> class="more">Read more</span>', 150, 1 ); >> >> >> > > > >> // Excerpt for lead article >> >> >> > > > >> Format::apply( 'autop', 'post_content_lead'); >> >> >> > > > >> Format::apply_with_hook_params( 'more', 'post_content_lead', >> >> >> > > > >> '<span >> >> >> > > > >> class="more">Read more</span>', 400, 1 ); >> >> >> >> > > > >> These lines hook into the formatting filters to create the >> >> >> > > > >> excerpts. >> >> >> > > > >> The first number( the 150 and 400) tell the maximum number of >> >> >> > > > >> words to >> >> >> > > > >> use. The second number (the 1 ) tells the maximum number of >> >> >> > > > >> paragraphs >> >> >> > > > >> to use. >> >> >> >> > > > >> Then, in the theme's home.php file, instead of: >> >> >> >> > > > >> <?php echo $post->content_out; ?> >> >> >> >> > > > >> putting >> >> >> >> > > > >> <?php if( $post == $posts[0] ) { >> >> >> > > > >> echo $post->content_lead;} >> >> >> >> > > > >> else { >> >> >> > > > >> echo $post->content_excerpt;} >> >> >> >> > > > >> ?> >> >> >> >> > > > >> should work. >> >> >> >> > > > >> I hope this helps. >> >> >> >> > > > >> Rick >> >> >> >> > > > >> On Jun 2, 8:49 pm, Paul <[email protected]> wrote: >> >> >> >> > > > >> > Hello again. >> >> >> >> > > > >> > I have seen a "Read more" feature on the Rick's blog - >> >> >> > > > >> > shardsofconsciousness.com . Is it possible easy add such >> >> >> > > > >> > option to >> >> >> > > > >> > show promo part at the main page, not a whole post as it >> >> >> > > > >> > now realised. >> >> >> > > > >> > Tried to search similar plugin but found nothing. >> >> >> >> > > > > -- >> >> >> > > > > To post to this group, send email to >> >> >> > > > > [email protected] >> >> >> > > > > To unsubscribe from this group, send email to >> >> >> > > > > [email protected] >> >> >> > > > > For more options, visit this group >> >> >> > > > > athttp://groups.google.com/group/habari-dev >> >> >> >> > > > -- >> >> >> > > > Colin Seymour >> >> >> > > > Blog:http://colinseymour.co.uk >> >> >> > > > Tech Stuff:http://www.lildude.co.uk >> >> >> > > > Barefoot Running:http://barefootrunner.co.uk >> >> >> > > > IRC: lildude #habari >> >> >> > -- >> >> > To post to this group, send email to [email protected] >> >> > To unsubscribe from this group, send email to >> >> > [email protected] >> >> > For more options, visit this group >> >> > athttp://groups.google.com/group/habari-dev >> >> >> -- >> >> Colin Seymour >> >> Blog:http://colinseymour.co.uk >> >> Tech Stuff:http://www.lildude.co.uk >> >> Barefoot Running:http://barefootrunner.co.uk >> >> IRC: lildude #habari >> >> > -- >> > To post to this group, send email to [email protected] >> > To unsubscribe from this group, send email to >> > [email protected] >> > For more options, visit this group >> > athttp://groups.google.com/group/habari-dev >> >> -- >> Colin Seymour >> Blog:http://colinseymour.co.uk >> Tech Stuff:http://www.lildude.co.uk >> Barefoot Running:http://barefootrunner.co.uk >> IRC: lildude #habari > > -- > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/habari-dev -- Colin Seymour Blog: http://colinseymour.co.uk Tech Stuff: http://www.lildude.co.uk Barefoot Running: http://barefootrunner.co.uk IRC: lildude #habari -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/habari-dev
