Excerpt from another page - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Scripts & Components (http://get-simple.info/forums/forumdisplay.php?fid=11) +--- Thread: Excerpt from another page (/showthread.php?tid=4472) |
Excerpt from another page - D.O. - 2013-03-14 Is there a way to show the excerpt in my index page from another page named example "article" ? <?php get_page_excerpt (510, article); ?> RE: Excerpt from another page - shawn_a - 2013-03-14 You would have to write your own function or maybe a i18n plugin can do this. We really need to add some more theme_functions to core. RE: Excerpt from another page - Timbow - 2013-03-14 You can bodge it with <?php getPageContent('slug'); ?> in a div of fixed size with overflow: hidden; in the css. RE: Excerpt from another page - shawn_a - 2013-03-14 heh clever, even better use css3 ellipsis http://davidwalsh.name/css-ellipsis RE: Excerpt from another page - Carlos - 2013-03-15 @D.O. There's a plugin in Extend: Pages Excerpts RE: Excerpt from another page - D.O. - 2013-03-15 Hi to all and thanks as always for your help. I tried with "getPageContent" & "overflow:hidden" and it is ok. Sadly instead "Pages Excerpts" plugin doesn't work with the recent version of GS. Thanks anyway to you all! RE: Þтрыòþú ø÷ ôруóþóþ ÑÂтр. - Oleg06 - 2013-03-15 maybe you forgot to include the plugin on the plugins page RE: Þтрыòþú ø÷ ôруóþóþ ÑÂтр. - D.O. - 2013-03-15 No!! I downloaded it, uploaded on my server and actived the plugin. Sadly, It doesn't work. Fatal error: Call to undefined function mb_substr() in D:\Inetpub\webs\my_site\plugins\pages-excerpts.php on line 72 Any help? (2013-03-15, 07:29:14)Oleg06 Wrote: maybe you forgot to include the plugin on the plugins page RE: Excerpt from another page - shawn_a - 2013-03-16 Your server does not support multibyte functions. Very strange. You can ask your host why not, or have them fix it. Or patch the plugin with a function exists check and add your own alternative. RE: Þтрыòþú ø÷ ôруóþóþ ÑÂтр. - yojoe - 2013-03-21 (2013-03-15, 23:06:53)D.O. Wrote: Fatal error: Call to undefined function mb_substr() in D:\Inetpub\webs\my_site\plugins\pages-excerpts.php on line 72As Shawn mentioned: blame your sh$&(#@! hosting provider, not a plugin. Hosting w/o enabled mb_substr is a nightmare for operating on content with special chars. Try to change mb_substr to substr on line 72 in plugin's source code. But don't count that special characters won't lead to strange behaviour while using this plugin. RE: Excerpt from another page - D.O. - 2013-04-02 @shawn_a: Yes it doesn't support multibyte functions. I have had the same problem with NewsManager. Thanks anyway. @yojoe: Okay, blame my hosting provider (btw it's very popular in Italy), but why YOU (the author of this plugin) don't try to resolve this bug at least ? RE: Excerpt from another page - yojoe - 2013-04-02 (2013-04-02, 03:02:43)D.O. Wrote: @yojoe: Okay, blame my hosting provider (btw it's very popular in Italy), but why YOU (the author of this plugin) don't try to resolve this bug at least ? Because that's not a bug. That's neither a feature. That's a commonly used function by webdevelopers. And as webdevs do not spend time on adjusting websites to operate with 10yrs old IE6 browser because that's a nonsense, I wont' loose time on finding out why a simple plugin which operates on at least 3 webhosting provieders (I've tested on polish, german, french) do not work on an old fashioned italian hosting provider. Force your webhost provider to make your up to date application work. You pay them for it ! RE: Excerpt from another page - shawn_a - 2013-04-02 Getsimple is multibyte meaning it supports multiple languages, it is surprising a host does not have these enabled by default, have you tried having them turn them on ? RE: Excerpt from another page - D.O. - 2013-04-09 @yojoe Yes, of course I pay them, so no worries I will resolve it in this way. All in all, I can't claim anything from a free plugin! So, thanks anyway for your work! However, I notice a certain "contemptuous" tone in your words... not nice! This "old fashioned" Italian hosting provider, that you despise so much, allowed me to deal with an attack by Alex Polyakov (another dude from the East like u, so I bet u should know him, huh?). So, no matter if your small 5kb plugin doesn't work! Thanks anyway! @shawn_a In fact I am surprised too. I will test it on other kind of severs (this one is a II7) when I will have much free time. I will let you know. Thanks anyway Shawn! RE: Excerpt from another page - yojoe - 2013-04-10 I provided a possible solution in earlier post: http://get-simple.info/forums/showthread.php?tid=4472&pid=34598#pid34598 Have you tried it at least ? ps. I'm in no way related with Alex P, have no idea who this guy is, nor even interested in knowing. RE: Excerpt from another page - Carlos - 2013-04-10 yojoe's suggested solution should work, but if you want to make the plugin work for servers with or without mb support, change line 72 to: Code: $excerpt = function_exists('mb_substr')? mb_substr($excerpt, 0, $chars, 'UTF-8') : substr($excerpt, 0, $chars); RE: Excerpt from another page - D.O. - 2013-04-21 Thanks Carlos aka "The Closer"! Now it works even for the "old fashioned italian hosting provider" (LMAO!)... Now I can see perfectly the excerpts of every page but sadly the link to the complete page doesn't work. But it's surely a big step! Thanks! |