1
3lr0n
news 1.63 spotlight image
  • 2009/4/5 21:07

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


Hi all,
Im having a problem with spotlight image of the news 1.63 top news block. I set the settings to last item to spot, and add an image on the texfield, but the image is not shown. Instead a link to the image is there.

Any help?

ta in advance.
Spanish Overclocking Community xoops based site : http://www.overclocking.es

2
3lr0n
Re: news 1.63 spotlight image
  • 2009/4/6 21:09

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


bump!
Spanish Overclocking Community xoops based site : http://www.overclocking.es

3
chefry
Re: news 1.63 spotlight image
  • 2009/4/6 21:46

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


I gave up on News 1.63. I never got any answers to the same problems

Check out Article, in my opinion it's a better module

4
ghia
Re: news 1.63 spotlight image
  • 2009/4/6 22:48

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Quote:
I set the settings to last item to spot, and add an image on the texfield, but the image is not shown. Instead a link to the image is there.
About what textfield are you talking? Is the image in the article? Can you post the resulting html source for this part (select in browser, right click: view selection source)?

5
3lr0n
Re: news 1.63 spotlight image
  • 2009/4/7 15:19

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


I mean the image is set on the block textfield for "spotlight image".

For example, you publish a piece of news and add the image with the image manager, so the route to the image is "http://yourdomain/uploads/image.jpg".

Instead of a %s, with a sprinf function.. (i cant access the code now, im remembering it).

thks in advance
Spanish Overclocking Community xoops based site : http://www.overclocking.es

6
ghia
Re: news 1.63 spotlight image
  • 2009/4/7 20:14

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


That is correct. It is supposed to make an image inside a link, when you click on the image, you go to the article (or topic). The image is defined in the blocks edit with an URL inside bbcode img tags.
What html is generated on your page for this image?

7
3lr0n
Re: news 1.63 spotlight image
  • 2009/4/7 21:15

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


The code ive obtained is

Quote:

From this piece of php code (block_top.php)

Quote:


$spotlight['image'] = sprintf("%s", XOOPS_URL.'/modules/news/article.php?storyid='.$spotlightArticle->storyid(),$myts->displayTarea($options[7], $spotlightArticle->nohtml));


The smarty vble is <{$block.spotlight.image}>

Id tried to change the code in various ways, but im not be able to have the imae displayed as i guess the $myts->displayTarea send a link to the image (i mean, not a plain text of the route or a , instead of this a route to the image).

Thks in advance
Spanish Overclocking Community xoops based site : http://www.overclocking.es

8
ghia
Re: news 1.63 spotlight image
  • 2009/4/7 23:58

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Should it be that dreadful CaricaFoto?
Go to /class/textsanitizer/image/config.php and find
'clickable'     => 1,
'resize'        => 1,

Try once by setting both to 0.

9
iHackCode
Re: news 1.63 spotlight image

Quote:

3lr0n wrote:
Hi all,
Im having a problem with spotlight image of the news 1.63 top news block. I set the settings to last item to spot, and add an image on the texfield, but the image is not shown. Instead a link to the image is there.

Any help?

ta in advance.


try using the xoopscode for that image

[img]someimage url[/img]
CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

10
3lr0n
Re: news 1.63 spotlight image
  • 2009/4/8 6:12

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


guia: Same result.. :(

Bandit-X: I cant do it directly, asi is the image is in the textfield option 7 of the block, I tried to do this

$spotlight['image'] = sprintf("[img]%s[/img]", ,$myts->displayTarea($options[7], $spotlightArticle->nohtml));


I obtain a clickable link and can see the img tags on the block, not the image :/
Spanish Overclocking Community xoops based site : http://www.overclocking.es

Login

Who's Online

389 user(s) are online (269 user(s) are browsing Support Forums)


Members: 0


Guests: 389


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