1
Beejay
New topics in selected category
  • 2004/10/23 7:56

  • Beejay

  • Quite a regular

  • Posts: 232

  • Since: 2004/6/5 2


I don't think this will be hard to do but does any one know how to make a block with new posts in a category that you select. Eg. If you only want to show posts in say "xoops category" and not all the categories?

Cheers

2
smdcom
Re: New topics in selected category

make you can take a look at this

Quote:


1 Enter 'Administration Menu'=>"block admin"=>"Add new block"

2 In the "Add a new block":

2.1 Block Type: choose anyone as you prefer
2.2 Weight: input any valid value as you prefer
2.3 Visible: select any one as you prefer
2.4 Visible in: set any one as you prefer
2.5 Title: input any valid text as you prefer
2.6 Content:
Quote:

include_once(XOOPS_ROOT_PATH . '/modules/newbb/blocks/newbb_block.php');
$options = "10|0|time|0";
b_newbb_custom($options);



//$options = "TheNumberToDisplay|ViewMode(0?1?2?)|time_Or_reviews_Or_replies|ForumId1,ForumId2,ForumId3";
2.7 Content Type: MUSTBE "PHP Script"
2.8 Cache lifetime: choose any one as you prefer
2.9 Preview, Submit: press any one as you prefer, BE SURE press at least one time "submit" before leaving block admin


hope that make sense..

3
Beejay
Re:New topics in selected category
  • 2004/10/23 11:03

  • Beejay

  • Quite a regular

  • Posts: 232

  • Since: 2004/6/5 2


Thank you for your reply

So I put in a block:

include_once(XOOPS_ROOT_PATH . '/modules/newbb/blocks/newbb_block.php');
$options = "10|0|time|0";
b_newbb_custom($options);
//$options = "TheNumberToDisplay|ViewMode(0?1?2?)|time_Or_reviews_Or_replies|ForumId1,ForumId2,ForumId3";

and make it php?? Then just change the ForumId? Is this right?

Cheers

4
smdcom
Re:New topics in selected category

Quote:

Beejay wrote:
Thank you for your reply

So I put in a block:

include_once(XOOPS_ROOT_PATH . '/modules/newbb/blocks/newbb_block.php');
$options = "10|0|time|0";
b_newbb_custom($options);
//$options = "TheNumberToDisplay|ViewMode(0?1?2?)|time_Or_reviews_Or_replies|ForumId1,ForumId2,ForumId3";

and make it php?? Then just change the ForumId? Is this right?

Cheers


yeah! but are'u using newbb2?

5
Beejay
Re:New topics in selected category
  • 2004/10/23 11:11

  • Beejay

  • Quite a regular

  • Posts: 232

  • Since: 2004/6/5 2


Only newbb1. My site hasn't launched yet but when I try that it gives a blank page.

In the block I have,

include_once(XOOPS_ROOT_PATH . '/modules/newbb/blocks/newbb_block.php');
$options = "10|0|time|0";
b_newbb_custom($options);
//$options = "TheNumberToDisplay|ViewMode(0?1?2?)|time_Or_reviews_Or_replies|ForumId2";

and it's php script.

Any help will be great

6
smdcom
Re:New topics in selected category

Quote:

Beejay wrote:
Only newbb1. My site hasn't launched yet but when I try that it gives a blank page.

In the block I have,

include_once(XOOPS_ROOT_PATH . '/modules/newbb/blocks/newbb_block.php');
$options = "10|0|time|0";
b_newbb_custom($options);
//$options = "TheNumberToDisplay|ViewMode(0?1?2?)|time_Or_reviews_Or_replies|ForumId2";

and it's php script.

Any help will be great


ohh i tot you're using newbb2... the code is just for newbb2...

7
smdcom
Re:New topics in selected category

why don't you use newbb2.. it's more powerful and more features *as u can see here*...

8
Beejay
Re:New topics in selected category
  • 2004/10/23 11:16

  • Beejay

  • Quite a regular

  • Posts: 232

  • Since: 2004/6/5 2


Well it doesn't seem to like me for some reason I've tried upgrading twice on two different sites and it just hasn't worked for some reason Thanks for your help anyway.

Cheers

9
Beejay
Re:New topics in selected category
  • 2004/10/23 12:24

  • Beejay

  • Quite a regular

  • Posts: 232

  • Since: 2004/6/5 2


Also just one more thing... could you do the same for the top downloads and links blocks? Selecting a category to show the top downloads?

Cheers

10
phppp
Re:New topics in selected category
  • 2004/10/23 12:43

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


the building-blocks-on-fly will come with the RC3.
plz wait for a few days.
If you are keen to test it, plz check the CVS.

Login

Who's Online

258 user(s) are online (108 user(s) are browsing Support Forums)


Members: 0


Guests: 258


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