1
dyatlovocom
News 1.64 + attachment of the image

The module very good. Very much it to be pleasant to me that in new realisation 1.64 there is a function of an attachment of the image. But here what problem. The attached picture is not deduced on the main page, and is accessible to viewing only at display of the full text of the publication. As it is possible to make, that the picture was deduced in short viewing of the publication. Thanks.

2
cerbero
Re: News 1.64 + attachment of the image
  • 2009/11/19 17:51

  • cerbero

  • Not too shy to talk

  • Posts: 191

  • Since: 2003/9/11


I need this feature too

3
dyatlovocom
Re: News 1.64 + attachment of the image

Something all are silent! Probably, it is not necessary for the developer.

4
sailjapan
Re: News 1.64 + attachment of the image

You can use the image manager to include an image within the text in the short version, or if you mean that you want a 'Topic' image, try xmspotlight or other spotlight mod.

5
dyatlovocom
Re: News 1.64 + attachment of the image

In module News 1.64 function is provided:

* Addition of a picture per article (with resizing)
* Addition of preferences to select the size to give to picture attached to each article

But at a conclusion to the main page of a site of the block of short news the picture attached to news is not deduced....

6
3lr0n
Re: News 1.64 + attachment of the image
  • 2009/11/24 14:07

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13



in modules/news/index.php add in line 206 this line

$story['picture'] = $thisstory->picture();


and in the template file, news_item.html this code where youe need the image to be shown.

<{if $story.picture != ''}><img src="<{$xoops_url}>/modules/news/images/topics/<{$story.picture}>" alt="" align="left" style="margin-right: 5px; margin-bottom: 5px" /><{/if}>


regards

7
red_Slider
Re: News 1.64 + attachment of the image

If I understand you want to call images from news article, not from news topic.
1. there were in XOOPS org a hacked version with editable special field - for additional field. (Check this forum thread: https://xoops.org/modules/newbb/viewtopic.php?start=0&topic_id=63136&viewmode=flat&order=ASC&type=&mode=0 )
2. U can find this hack as a normal solution in 2 other modules for news:
a) publisher
b) smartsection

and they work great without any hack!

8
3lr0n
Re: News 1.64 + attachment of the image
  • 2009/11/24 18:04

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


Is not necessary to use a hack as one of the new features of news 1.64 is this one, but the module is not coded to show this image in the index page, so a little modification is needed in code and templates.

9
red_Slider
Re: News 1.64 + attachment of the image

What you mean?
PS I like http://www.overclocking.es

10
3lr0n
Re: News 1.64 + attachment of the image
  • 2009/11/25 14:32

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


I mean that news 1.64 allready have the feature to attach one single image to a single article, but the problem is that it is not shown on the index page where all the articles are listed, by default only is shown in the detailed view (article.php). What i posted is a little modificacion to code and templates to show this image in index listig page.

PS: Thks , version 2 is near..

Login

Who's Online

414 user(s) are online (312 user(s) are browsing Support Forums)


Members: 0


Guests: 414


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits