1
orgunozcu
i want a hack for xf_news_block 1.5
  • 2007/8/4 19:20

  • orgunozcu

  • Not too shy to talk

  • Posts: 136

  • Since: 2005/9/1 5


i use xf_news_blocks 1.5 and news 1.44 embedded.

so my problem is about xf_news_blocks: in this blocks i want show just the embedded picture in news. i dost want text. what can i do??

the cod of in this block:
<{foreach item=news from=$block.stories}>
<
div class="xf_block four">
<
h1><a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$news.id}>"><{$news.title}></a></h1>
<{if 
$news.image_display !=""}>
<
span style="float: <{$news.topicalign}>;margin-right: 15px; margin-top: 3px;">
<
img src="<{$xoops_url}>/modules/news/images/topics/<{$news.image_display}>" alt="<{$news.title}>" /></span>
<{/if}>
<{
$news.hometext}><br />
<
a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$news.id}>"><{$news.readmorelink}></a>
</
div><br />
<{/foreach}>



i think we have to change <{$news.hometext}> if i delete this cod than no news show. how must i change?? Thanks For Advantace help



Resized Image

2
Peekay
Re: i want a hack for xf_news_block 1.5
  • 2007/8/4 23:05

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


I use a small hack posted by Herve in this thread that separates 'scoop' and 'extended text', so I can post news teasers. AFAIK, the XF Newsmod Blocks use the 'scoop', so you could put a small image (nothing else) in the scoop field and put the article text (and larger image if you want) in extended text field?.

I haven't tried it!
A thread is for life. Not just for Christmas.

3
orgunozcu
Re: i want a hack for xf_news_block 1.5
  • 2007/8/5 14:57

  • orgunozcu

  • Not too shy to talk

  • Posts: 136

  • Since: 2005/9/1 5


no i don't need news hackt, i need xf_news_blocks hack. they are different modules.

thanks. Nobody know php cod. Please help.

4
attock
Re: i want a hack for xf_news_block 1.5
  • 2007/8/5 15:16

  • attock

  • Not too shy to talk

  • Posts: 138

  • Since: 2006/8/20


To change the width and height of the image, then changes
<img src="<{$xoops_url}>/modules/news/images/topics/<{$news.image_display}>" alt="<{$news.title}>" />


to

<img src="<{$xoops_url}>/modules/news/images/topics/<{$news.image_display}>" alt="<{$news.title}>" [b]height="YOUR_HEIGHT" width="your_width"[/b]/>


and get rid of:
<{$news.hometext}><br />
<
a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$news.id}>"><{$news.readmorelink}></a>



so all together you should have the followings:
<{foreach item=news from=$block.stories}>
<
div class="xf_block four">
<
h1><a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$news.id}>"><{$news.title}></a></h1>
<{if 
$news.image_display !=""}>
<
span style="float: <{$news.topicalign}>;margin-right: 15px; margin-top: 3px;">
<
img src="<{$xoops_url}>/modules/news/images/topics/<{$news.image_display}>" alt="<{$news.title}>" height="your_height_here" width="your_width_here"/></span>
<{/if}>
</
div><br />
<{/foreach}>

5
orgunozcu
Re: i want a hack for xf_news_block 1.5
  • 2007/8/5 15:39

  • orgunozcu

  • Not too shy to talk

  • Posts: 136

  • Since: 2005/9/1 5


firzt thanks for answer .. but you undirstand me wrong.. these picture are not topic picture... my news module news 1.44 embedded modul. in this modum if i attack a picture in a niws this picture auto embedded and shown in article. like here: www.konyaninsesi.com/haber .

so they are in article like so: CLİCK HERE TO SEE THAT HOW İS THE HTML COD İN NEWS 1.44 EMBEDDED MODULE

6
attock
Re: i want a hack for xf_news_block 1.5
  • 2007/8/5 21:51

  • attock

  • Not too shy to talk

  • Posts: 138

  • Since: 2006/8/20


so you dont want the pictures?

7
orgunozcu
Re: i want a hack for xf_news_block 1.5
  • 2007/8/6 16:45

  • orgunozcu

  • Not too shy to talk

  • Posts: 136

  • Since: 2005/9/1 5


yes i want picture. ONLY PİCTURE.. but not topic pictude. you dont understand?? they are not topic pic !! they are article picture which are embedded in adticle..

doo you understand?

8
orgunozcu
Re: i want a hack for xf_news_block 1.5
  • 2007/8/7 15:47

  • orgunozcu

  • Not too shy to talk

  • Posts: 136

  • Since: 2005/9/1 5


nobody now php cod?? for example: if news.hometext get only between img and img/

a cod like that i need.

Login

Username:
Password:

Lost Password? Register now!

Who's Online

68 user(s) are online (42 user(s) are browsing Support Forums)


Members: 0


Guests: 68


more...

Donat-O-Meter

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

Latest GitHub Commits