-
AuthorPosts
-
Ninja Lead Moderator
Ninja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
January 17, 2013 at 4:02 am #480095<em>@activha 355551 wrote:</em><blockquote>Well I just tried now with chrome and safari and had no problem with Extplorer to browse files and folder on my macbook air !
Could you try with another browser maybe ?</blockquote>
Yeah, i tried to use FireFox access to Extplorer component and fixed the problem on your site
<blockquote>templates/ja_wall/html/com_k2/ja_wall/category_item.php</blockquote>
from
$introtext = WallHelper::extractFirstParagraph($this->item->introtext);
change to
$introtext = WallHelper::DropText(strip_tags($this->item->introtext));
activha Friendactivha
- Join date:
- July 2012
- Posts:
- 114
- Downloads:
- 17
- Uploads:
- 6
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
January 17, 2013 at 11:53 pm #480249Thanks a lot for the help.
Could you combine the two functions in one extractFirstParagraph and DropText ??
So that when there is intro text it is correctly extracted for all views ?
I have for instance pages like this one http://jcmachuron.site113.com using items from all categories and I cannot simply use DropText as it could squeeze some introtext
Any idea ?
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
January 18, 2013 at 2:28 am #480257<em>@activha 355796 wrote:</em><blockquote>
Could you combine the two functions in one extractFirstParagraph and DropText ??
So that when there is intro text it is correctly extracted for all views ?
</blockquote>Yes, I have used two functions in extractFirstParagraph and DropText, you can see
<blockquote>templates/ja_wall/template_tools.php</blockquote>+ Function DropText: is used on limit data intro text
+ Function extractFirstParagraph: is used show data for all views detailYou can check about this on here
<blockquote>templates/ja_wall/html/com_k2/ja_wall/category_item.php</blockquote>And you can apply my fixes to other site
activha Friendactivha
- Join date:
- July 2012
- Posts:
- 114
- Downloads:
- 17
- Uploads:
- 6
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
January 18, 2013 at 3:32 pm #480348Well the point is that the function DropText should be used only if there is no introtext and in case where introtext is retrieved from full text only.
If not this defeats the purpose of having set beautifully worded introtext 🙂
So how can we do it ?
So that DropText is used in category item only when there is no introtext written in K2 and that extractFirstParagraph is used in all other cases ?Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
January 19, 2013 at 3:37 am #480378<em>@activha 355921 wrote:</em><blockquote>Well the point is that the function DropText should be used only if there is no introtext and in case where introtext is retrieved from full text only.
If not this defeats the purpose of having set beautifully worded introtext 🙂
So how can we do it ?
So that DropText is used in category item only when there is no introtext written in K2 and that extractFirstParagraph is used in all other cases ?</blockquote>
@activha: I tried to helped, explained and fixed the problem on your site. But I’m confused with your wrote above. I only added “function DropText” on<blockquote>templates/ja_wall/template_tools.php</blockquote>
+ Function DropText: is used cut tring(limit length data), with your problem I appeared drop text introtext, you can appear drop text anywhere if you like it
+ Function extractFirstParagraph: is used show full data.
-
AuthorPosts
This topic contains 20 replies, has 2 voices, and was last updated by Ninja Lead 11 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum