1
Kiki1
News ACCES RIGHT
  • 2004/4/1 9:32

  • Kiki1

  • Not too shy to talk

  • Posts: 118

  • Since: 2004/3/14


i need to setup the news topics like this below

NEWS

-Music
-Fun
-Showbussines
-Movies
-Internet
-Hardware
-Software
-Computers
-Games


i want to be place like links (right) ----- just like on xoops.org

Example DEVELOPMENT INFORMATION

-MODULE DEV FORGE
-CORE DELOPMENT
-DEV MAILING LIST
-CVS INFORMATION
-API DOC


BUT INSTEAD DEVELOPMENT INFORMATION WILL be NEWS TOPICS

HOW CAN I DO THAT....thanks


SORRY FOR MY BAD ENGLSIH

2
Mithrandir
Re: News ACCES RIGHT

I believe xoops.org uses iMenu or MultiMenu or a similar menu block module

3
Kiki1
Re: News ACCES RIGHT
  • 2004/4/1 10:01

  • Kiki1

  • Not too shy to talk

  • Posts: 118

  • Since: 2004/3/14


but where can i download that ..i am searching in download but didnt find anything

4
Mithrandir
Re: News ACCES RIGHT

I found it with a google search

MultiMenu
iMenu

5
kahumbu
Re: News ACCES RIGHT
  • 2004/4/1 10:56

  • kahumbu

  • Documentation Writer

  • Posts: 277

  • Since: 2003/8/23



6
Kiki1
Re: News ACCES RIGHT
  • 2004/4/1 19:07

  • Kiki1

  • Not too shy to talk

  • Posts: 118

  • Since: 2004/3/14


i just dont understand....i can set that

7
Kiki1
Re: News ACCES RIGHT
  • 2004/4/1 19:38

  • Kiki1

  • Not too shy to talk

  • Posts: 118

  • Since: 2004/3/14


http://www.linux-gamers.net/modules/news/index.php?storytopic=14


I WANT TO MY NEWS BE LIKE THIS (LOOK --TEAM MENU)

i want to write my news topic..........

8
Mithrandir
Re: News ACCES RIGHT

Oh - that is a block in my Team module, which displays that.

I will most likely make a similar block with news topics for the next version of News module (ETA at least in a working beta is within the next couple of weeks)

9
Kiki1
Re: News ACCES RIGHT
  • 2004/4/1 20:36

  • Kiki1

  • Not too shy to talk

  • Posts: 118

  • Since: 2004/3/14


okej...thanks mithradnir

10
Mithrandir
Re: News ACCES RIGHT

I made it - so if you cannot wait until module release, here goes (long post, sorry)

news/xoops_version.php
$modversion['blocks'][6]['file'] = "news_topicsnav.php";
$modversion['blocks'][6]['name'] = _MI_NEWS_BNAME7;
$modversion['blocks'][6]['description'] = "Shows a block to navigate topics";
$modversion['blocks'][6]['show_func'] = "b_news_topicsnav_show";
$modversion['blocks'][6]['template'] = 'news_block_topicnav.html';
Might be $modversion[5]...depends...

news/blocks/news_topicsnav.php (new file)
<?php
        
function b_news_topicsnav_show() {
    global 
$xoopsDB;
    
$block = array();
    
$sql "SELECT topic_id, topic_title FROM ".$xoopsDB->prefix("topics")." WHERE topic_pid=0 ORDER BY topic_title";
    
$result $xoopsDB->query($sql);
    while (
$topic $xoopsDB->fetchArray($result)) {
        
$block['topics'][] = array('id' => $topic['topic_id'], 'title' => $topic['topic_title']);
    }    
    return 
$block;
}
?>


news/templates/blocks/news_block_topicnav.html (new file)
<table cellspacing="0">
    <
tr>
        <
td id="mainmenu">
            <{foreach 
item=topic from=$block.topics}>
                <
class="menuMain" href="<{$xoops_url}>/modules/news/index.php?storytopic=<{$topic.id}>"><{$topic.title}></a>
            <{/foreach}>
        </
td>
    </
tr>
</
table>


add the following to news/language/english/modinfo.php
define('_MI_NEWS_BNAME7''News Topics');


Upload and update the module and you should have a block to position, which will list the topics in a main menu-like fashion.

Login

Who's Online

140 user(s) are online (67 user(s) are browsing Support Forums)


Members: 0


Guests: 140


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