11
cerbero
Re: News 1.64 + attachment of the image
  • 2009/11/25 17:53

  • cerbero

  • Not too shy to talk

  • Posts: 191

  • Since: 2003/9/11


when apply your hack i can see the image in the index but it disppear in article display

sorry, it runs with a <{else}>

How can i port this hack with the latestnews module?

12
3lr0n
Re: News 1.64 + attachment of the image
  • 2009/11/25 19:29

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


Can you explain yourself a bit more? I dont understand the message...

13
cerbero
Re: News 1.64 + attachment of the image
  • 2009/11/26 16:47

  • cerbero

  • Not too shy to talk

  • Posts: 191

  • Since: 2003/9/11


sorry for my poor english,

i have apply your crack but in template theres a call to the image, if i replace the function the image disappear in the article full view.
So i've used an else command to fusionate both functions

How can i port this hack with the latestnews module?

14
ghia
Re: News 1.64 + attachment of the image
  • 2009/11/27 0:19

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


It would maybe easier, when you post your code snippet.
It would maybe useful for other people too.

15
cerbero
Re: News 1.64 + attachment of the image
  • 2009/11/27 11:58

  • cerbero

  • Not too shy to talk

  • Posts: 191

  • Since: 2003/9/11


Sorry ghia, here is the original code to show the story image:

<{if $articlePicture != ''}><img src="<{$articlePicture}>" alt="" align="left" style="margin-right: 5px; margin-bottom: 5px" /><{/if}>


Anda this is the code when apply the hack :

<{if $story.picture != ''}><img src="<{$xoops_url}>/modules/news/images/topics/<{$story.picture}>" width="320" height="240" alt="" align="right" style="margin-left: 5px; margin-bottom: 5px" />  <{else}> <a href="<{$articlePicture}>" target="_blank"><img src="<{$articlePicture}>" alt="" width="140" height="105" border="0" align="right" style="margin-left: 5px; margin-bottom: 5px" /></a><{/if}>


i also have modified the height and weight to fit my design and add a link to show full size in new page

16
dyatlovocom
Re: News 1.64 + attachment of the image

At use of the given code such result turns out here.

Thus the first image on page is displayed only. And all subsequent images are absent. How to make, that all subsequent images were displayed also.


Resized Image

17
dyatlovocom
Re: News 1.64 + attachment of the image

.........

18
ghia
Re: News 1.64 + attachment of the image
  • 2010/1/11 23:38

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


What files from which module and version are you modifiying?

19
dyatlovocom
Re: News 1.64 + attachment of the image

File news_item.html, module News 1.64... !

20
dyatlovocom
Re: News 1.64 + attachment of the image

.....

Login

Who's Online

71 user(s) are online (47 user(s) are browsing Support Forums)


Members: 0


Guests: 71


more...

Donat-O-Meter

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

Latest GitHub Commits