first image from the full article

Free responsive Joomla 2.5 and 3.x module to present your content with easy and intuitive way.
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Wed Sep 08, 2010 6:50 pm
how to get the first image from the full article? (That is after: <hr id="system-readmore" />)
User avatar
Fresh Boarder

teitbite
Sat Sep 11, 2010 11:43 am
Hi

You should just set to see the image in the module settings. What version of NSP are You using ?
User avatar
Moderator

GK User
Sat Sep 11, 2010 7:08 pm
I use News Show Pro GK4.

The problem is that there is no image in the short preview. (i mean before <hr id="system-readmore" />). Image is only in the full news (i mean after <hr id="system-readmore" />). What should i change? - i need News Show Pro GK4 to get the first image from the short news, and if there are no images in the short news, to get it from the full news.
User avatar
Fresh Boarder

teitbite
Mon Sep 13, 2010 9:01 am
Hi

Ok. Please send me joomla panel access.
User avatar
Moderator

GK User
Fri Sep 17, 2010 7:09 pm
Hi, Thx for module.
I have the same problem.
please help me.
User avatar
Fresh Boarder

teitbite
Sun Sep 19, 2010 1:31 pm
Hi

Please send me an access to Your joomla panel.
User avatar
Moderator

GK User
Sun Jul 10, 2011 9:41 pm
I too have this problem on every site I use this on. What causes it?
User avatar
Fresh Boarder

teitbite
Mon Jul 11, 2011 11:38 am
Hi

It's simle. If You are using a separator:

Code: Select all
<hr id="system-readmore" />


than module is only working on the article till this separator. The workaround can be to add the image twice, but hide the first occurence with style="display:none" . It's just a theory, but worth trying.
User avatar
Moderator

GK User
Mon Jul 11, 2011 11:44 am
Well I'd worked that out, that's in the op! Clearly somewhere the module is looking for image tags in $this->item->text instead of $this->item->fulltext. But where? I cannot find it anywhere.
User avatar
Fresh Boarder

teitbite
Mon Jul 11, 2011 12:24 pm
Hi

This probably can be found in layout.parts.php
User avatar
Moderator

GK User
Fri Oct 07, 2011 6:26 pm
Has anyone had any success with this? Like the others in this post I'd like News Show GK4 to grab the first image from the full article, not just the intro text.

Line 293 in helper.php appears to contain the code to search for the text, but I can't locate where the $this->content['text'] variable is generated.

I tried changing it to fulltext to no avail.
User avatar
Fresh Boarder

teitbite
Sun Oct 09, 2011 1:09 pm
fyreflyt wrote:Has anyone had any success with this? Like the others in this post I'd like News Show GK4 to grab the first image from the full article, not just the intro text.

Line 293 in helper.php appears to contain the code to search for the text, but I can't locate where the $this->content['text'] variable is generated.

I tried changing it to fulltext to no avail.


Hi

This is not so simple. Try using this file:
User avatar
Moderator

GK User
Sun Oct 09, 2011 1:49 pm
Ah, the important part here is..

Code: Select all
 $content_text[] = $item->text . $item->restoftext; // news text
User avatar
Fresh Boarder

teitbite
Tue Oct 11, 2011 2:54 pm
Hi

Almost. The rest of text should also be added to database. I believe it's in the file I've placed.
User avatar
Moderator


cron