31
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'] = "<a href="".XOOPS_URL."/modules/news/article.php?storyid=".$article->storyid()."">".$article->title()."</a>";


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

<{$news.posttime}>


Happy Xoopsing!

-SMD-



32
smdcom
Re: News how to <{$news.date}> change to shot date

what is your news version?

if you use latest one, you can simply go to news preferences -> Date's format = d/m/y - H:i

PHP Manual for more information about php date.



33
smdcom
Re: Cloning Module - XMSpotlight

To add one more category, edit file xmspotlight_block_news.php

Add this line before code return $block;

*Red color: your topic id

$news6 = array();
    
$storyarray6 NewsStory::getByTopic([b][color=ff0000]10[/color][/b],3);
    
$news6 '';
    foreach(
$storyarray6 as $article6)
    {
        if(!
in_array($article6->storyid(),$txt)){
            
$news6['newstitle'] = $article6->title();
            
$news6['storyid'] = $article6->storyid();
            
$xt = new XoopsTopic($xoopsDB->prefix('topics'), $article5->topicid());
            
$block['image6'] = $xt->topic_imgurl("S");
            
$block['imgpath6'] = XOOPS_URL."/modules/news/images/topics/";
            
$block['category6'] = $xt->topic_title();
            
$block['stories6'][] = $news6;
        }
    }


Edit Template. Add this code...

<{foreach item=news6 from=$block.stories6}><a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$news6.storyid}>"><{$news6.newstitle}></a><br><br><{/foreach}>


In the next release i will add this feature where you can more topic...

-SMD-



34
smdcom
Re: Spotlight view on Xoops.org




35
smdcom
Re: What IS a sticky topic exactly?

# A topic that always stays at the top, because it's a must read or is important...



36
smdcom
Re: Spotlight view on Xoops.org

Quote:

Herko Coomans wrote:
Sure SMD, go right ahead

Herko


I consider that's a green light to release my xmspotlight Thanks Herko.



37
smdcom
Re: Spotlight view on Xoops.org

I created a xmspotlight module similar to xoops.org latest news spotlight. As you can see at www.xoopsmalaysia.org.

But have to ask core team, if i can release this module



38
smdcom
Re: New module for Portfolio

Great! thanks for sharing...



39
smdcom
Re: The >>>Happy new year thread<<<

now, 1st Jan 2006 GMT +8... 12:32am

happy new year guys!



40
smdcom
Re: News module: user submissions

Admin menu -> News -> Permission

you can set user permission to submit articles there




TopTop
« 1 2 3 (4) 5 6 7 ... 66 »



Login

Who's Online

50 user(s) are online (30 user(s) are browsing Support Forums)


Members: 0


Guests: 50


more...

Donat-O-Meter

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

Latest GitHub Commits