1
finalcore1
help,for news module
  • 2006/7/10 13:02

  • finalcore1

  • Just popping in

  • Posts: 2

  • Since: 2006/7/7 1


In the news moduleļ¼Œ I want to add a custom block for display news in one page:

I modified the "xoops_version.php" file, and add the contents below:

$modversion['blocks'][8]['file'] = "news_top.php";
$modversion['blocks'][8]['name'] = _MI_NEWS_BNAME9;
$modversion['blocks'][8]['description'] = "Shows recent articles";
$modversion['blocks'][8]['show_func'] = "b_news_top_show";
$modversion['blocks'][8]['edit_func'] = "b_news_top_edit";
$modversion['blocks'][8]['options'] = "published|10|25|0|0|0|0||1||||||";
$modversion['blocks'][8]['template'] = 'news_block_top.html';

The block works well, but I found that it can't display when you are anonymous. And the block can't display in block management and the group management of adminisitrator panel when you select anonymous. Especially in groupmanagement, you can't see the block info. at all.

who can help me? thank you!

2
finalcore1
Re: help,for news module
  • 2006/7/11 4:11

  • finalcore1

  • Just popping in

  • Posts: 2

  • Since: 2006/7/7 1


Please help me.........

3
love2know
Re: help,for news module
  • 2006/7/31 3:58

  • love2know

  • Just popping in

  • Posts: 35

  • Since: 2006/7/28


I'm having the same problem... i've added a custom html block, but for some wierd reason, the blocks do not appear in the anonymous section of the blocks administration panel.. so, you're not able to add the custom html block for anonymous users... i hope there's a mod for this..

suggestion: I would start a thread, and title the following "custom html block, not showing for anonymous users"

I'm sure this would get more response. please pm me if you get replies and i will also try to look around for the both of us.. lol...

4
love2know
Re: help,for news module
  • 2006/7/31 5:08

  • love2know

  • Just popping in

  • Posts: 35

  • Since: 2006/7/28


hey finalcore1.. i found the help we needed.. here's a quote:

"In 2.0.14 the custom block can be assigned to the Anonymous group in the control panel/system admin/groups page. Look for Edit Group and select Modify Anonymous Users. The Modify Group form will open. Look under Block Access Rights for Your Custom Block Title and check the box next to it.

Webmasters and registered users automatically have access to custom blocks."

Login

Who's Online

254 user(s) are online (176 user(s) are browsing Support Forums)


Members: 0


Guests: 254


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