41
defwind77
Re: Spotlight view on Xoops.org
  • 2006/1/22 12:13

  • defwind77

  • Not too shy to talk

  • Posts: 180

  • Since: 2005/11/11


hmm is it easily possible to add more than four categories for news? I've tried adding two separate blocks, however I can't seem to get them to specify which news categories to use - the only related option in xmspotlight is to set the news ID? - Is it something to do with this maybe?

42
Peekay
Re: Spotlight view on Xoops.org
  • 2006/1/22 13:31

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


I am building a site using XF_Newsmod_Blocks as the spotlight for News. It is *really* good (in XOOPS 2.0.13.2 anyway). More info in this thread. If you want to try it, read the thread for my comments on installation.

Lazybadger kindly provided a download link in the thread but I have the Zip if Xoops.org repository admin want it. (please don't PM me for individual copies).
A thread is for life. Not just for Christmas.

43
defwind77
Re: Spotlight view on Xoops.org
  • 2006/1/22 14:09

  • defwind77

  • Not too shy to talk

  • Posts: 180

  • Since: 2005/11/11


yeah, Lazybadger's link is dead - can you up it somewhere? I'd love to have a play with it!

Do you have a demo site or a site where this has been integrated?

44
migoe
Re: Spotlight view on Xoops.org
  • 2006/1/22 20:44

  • migoe

  • Just popping in

  • Posts: 68

  • Since: 2003/4/2 9


Hi SMD,

thank you very much for this mod - i searching a long time for something like this. on myxoops.org i have wrote an article about this mod and translated it to german speak.

Will you add a date view for the articles in the next release or is there a quick hack for the people who want to show the published-date of an article?

migoe
whttp://www.liedermacher-forum.de | German Singers and Songwriters

http://www.weltladen-rothenburg.de | German Site about Fair trade Project

45
smdcom
Re: Spotlight view on Xoops.org

Quote:

migoe wrote:
Hi SMD,

thank you very much for this mod - i searching a long time for something like this. on myxoops.org i have wrote an article about this mod and translated it to german speak.

Will you add a date view for the articles in the next release or is there a quick hack for the people who want to show the published-date of an article?

migoe


I will add this feature for the next release...

For quick hack, edit your xmspotlight_block_news.php:

add red code in line 28:

$news['hometext'] = $article->hometext();
$news['storyid'] = $article->storyid();
[
b][color=ff0000]
$dateformat "d/m/Y"// check php manual for date format
$news['posttime'] = formatTimestamp($article->published(),$dateformat);[/b][/color]
$news['newstitle'] = "/modules/news/article.php?storyid=".$article->storyid()."">".$article->title()."";


then, add this smarty tag to your template (news_block_xmspotlight.html) to display the post time.

<{$news.posttime}>


Happy Xoopsing!

-SMD-

46
migoe
Re: Spotlight view on Xoops.org
  • 2006/2/5 18:12

  • migoe

  • Just popping in

  • Posts: 68

  • Since: 2003/4/2 9


Hi SMD,

thank you very much for the hack.

Quote:
I will add this feature for the next release...


Good news...fine...

I have 1 question about the hack:

I do everything like you wrote, but it only shows the date of the first Article in the News Module -> 01.06.2003. I changed the dateformat in d.m.Y...
Resized Image

Whats wrong?

migoe
whttp://www.liedermacher-forum.de | German Singers and Songwriters

http://www.weltladen-rothenburg.de | German Site about Fair trade Project

47
iHackCode
Re: Spotlight view on Xoops.org

-
i did what XMD said and the stuff below.
in xmspotlight_block_news.php
i added
if(!in_array($article2->storyid(),$txt)){
            
$news2['newstitle'] = "/modules/news/article.php?storyid=".$article2->storyid()."">".$article2->title()."";
            
$news2['storyid'] = $article2->storyid();
            [
color=CC0000]$news2['posttime'] = formatTimestamp($article2->published(),$dateformat);[/color]
            
$xt = new XoopsTopic($xoopsDB->prefix('topics'), $article2->topicid());
            
$block['image1'] = $xt->topic_imgurl("S");
            
$block['imgpath1'] = XOOPS_URL."/modules/news/images/topics/";
            
$block['category1'] = $xt->topic_title();
            
$block['stories2'][] = $news2;


i did that for $news3 and $news4 and $news5

. for news_block_xmspotlight.html
i added
<{$news2.posttime}> or <{$news3.posttime}> or <{$news4.posttime}> or <{$news5.posttime}>

to the template.

example:
<td><img src="<{$block.imgpath1}>/<{$block.image1}>" align="left" style="margin: 8px;"><{foreach item=news2 from=$block.stories2}><li><a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$news2.storyid}>"><{$news2.newstitle}>a>&nbsp;&nbsp;(<{$news2.posttime}>) li><br><br><{/foreach}>td>


that should make the date display properly in the other boxes
CBB / LatestNews / Publisher / XM-Spotlight

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

48
smdcom
Re: Spotlight view on Xoops.org

Yes. I forgot to mention about that. Thanks Bandit-X.

49
migoe
Re: Spotlight view on Xoops.org
  • 2006/2/7 22:17

  • migoe

  • Just popping in

  • Posts: 68

  • Since: 2003/4/2 9


Dear Bandit-X,

thank you very much - now i have a clear view to the hacks secrets

i have translate the XMSpotlight in german language an built in the hack - you can download it on http://www.liedermacher-forum.de...

migoe
whttp://www.liedermacher-forum.de | German Singers and Songwriters

http://www.weltladen-rothenburg.de | German Site about Fair trade Project

50
sidgboy
Re: Spotlight view on Xoops.org
  • 2006/2/8 23:12

  • sidgboy

  • Just popping in

  • Posts: 3

  • Since: 2006/2/8 2


Hi everybody,
I just installed xmspotlight but I've a problem with it, I can't go to the general settings in the admin mode.
I think it was possible to choose to see the real name instead of the nickname by this way but I don't have access to the general settings.
Also I want to translate in french this module but I am a newbie in XOOPS & php, where can I modify "Read more", "comments" and "write comments".

Is there someone to help a french newbie ?

Login

Who's Online

361 user(s) are online (290 user(s) are browsing Support Forums)


Members: 0


Guests: 361


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