1
JamesSAEP
Is there a way to code newbb2 recent posts in a block?
  • 2005/5/18 15:42

  • JamesSAEP

  • Just can't stay away

  • Posts: 732

  • Since: 2005/2/28


I know there is a block to display "Recent Topics" for the newbb2 module.
What I want to do though is split the Recent Topics into two blocks. Each block displaying:

Block 1: 20 most recent topics for Categories 1-10

Block 2: 20 most recent topics for Categories 11-20

Is this code even possible and if so, what would it be?

Thanks all.

2
JamesSAEP
Re: Is there a way to code newbb2 recent posts in a block?
  • 2005/5/19 18:15

  • JamesSAEP

  • Just can't stay away

  • Posts: 732

  • Since: 2005/2/28


Anyone? :)

3
ladon
Re: Is there a way to code newbb2 recent posts in a block?
  • 2005/5/19 18:39

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


It sure is possible!

One way is to clone the recent block, so you'll have 2 blocks. If you don't know how it's done, check the forum/FAQ, I'm sure it's been explained several times over. Once you have your second block, just use the multiselect (in edit blocks) to select the catagories you want to show on each block.

4
JamesSAEP
Re: Is there a way to code newbb2 recent posts in a block?
  • 2005/5/20 18:07

  • JamesSAEP

  • Just can't stay away

  • Posts: 732

  • Since: 2005/2/28


Thanks for the reply.

Quote:

One way is to clone the recent block, so you'll have 2 blocks. If you don't know how it's done, check the forum/FAQ, I'm sure it's been explained several times over. Once you have your second block, just use the multiselect (in edit blocks) to select the catagories you want to show on each block.


Well this would work for me, but I can't find any instructions on how to clone just a page...
Anyone have any info on this?

Thanks.

5
ladon
Re: Is there a way to code newbb2 recent posts in a block?
  • 2005/5/20 21:27

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


ehm... very well, I searched for 'clone block' in the forum and this showed up rather fast: click!

This is an example for the newbb mod, but it works the same way with other modules.

And just to beat you to it , updating a module is done by going to the modules admin and click the button before the last one at the end off the module you have to update. Oh, and xoops_version.php is located in the module dir.

6
JamesSAEP
Re: Is there a way to code newbb2 recent posts in a block?
  • 2005/5/20 21:44

  • JamesSAEP

  • Just can't stay away

  • Posts: 732

  • Since: 2005/2/28


Thanks. I just realized why nothing was turning up for me. I was searching in the "Search" that is listed in the Top Right Side block...

After you finding something, I saw that there is a search at the bottom of the forum section. This did turn up a bunch of stuff.

Can you tell me though, what is the difference for searching between:

"clone block" and 'clone block'

The search for 'clone block' turned up a lot more stuff.

Thanks.

7
ladon
Re: Is there a way to code newbb2 recent posts in a block?
  • 2005/5/20 21:53

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


I didn't even use the forum search, just the XOOPS search. I Also didn't use the quotes actually. Don't know if that's support in XOOPS sreach. In search-engines like Google I don't think it makes any difference if you use single or double quotes, not quite sure though.

Login

Who's Online

156 user(s) are online (99 user(s) are browsing Support Forums)


Members: 0


Guests: 156


more...

Donat-O-Meter

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

Latest GitHub Commits