1
jimkarvo
Display recent topics replies, to custom block!
  • 2006/4/7 12:18

  • jimkarvo

  • Not too shy to talk

  • Posts: 169

  • Since: 2005/9/19


I want to put the "Recent topic replies", of newbb forum, to my custom block!

I am really comfused of block, and templete!

How I can do it?

thenks,
-JimKarvo
www.pc4allgr.com - Greek community for PCs

PC4ALL Admins' Team!

2
jimkarvo
Re: Display recent topics replies, to custom block!
  • 2006/4/7 18:15

  • jimkarvo

  • Not too shy to talk

  • Posts: 169

  • Since: 2005/9/19


Anyone knows it?
www.pc4allgr.com - Greek community for PCs

PC4ALL Admins' Team!

3
jimkarvo
Re: Display recent topics replies, to custom block!
  • 2006/4/8 10:16

  • jimkarvo

  • Not too shy to talk

  • Posts: 169

  • Since: 2005/9/19


Can I add the contains of any block [by module] to my custom block?

I wont it!
www.pc4allgr.com - Greek community for PCs

PC4ALL Admins' Team!

4
Herko
Re: Display recent topics replies, to custom block!
  • 2006/4/8 10:56

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


no, you can't just take the contents of a module's block and put it in any custom block. That's where the block generation and instanciation code comes in, you can't simply bypass that.

However, there are two things you can do, but they require some serious modifications so you will have to know what you are doing:

the first solution is simple: edit the recent replied topics block template to fit your custom block wishes. This will give you your customised block, but you'll lose the default recent rteplies topics block.

The second solution is to duplicate the recent replied topics block. For this you'll need to copy the block generation files (including templates, because you'll be editing those later), rename the block generation script so not to have naming confilcts, and add the duplicated block to the xoops_version.php file of the orum module. As you can see, you'll need to dive into the code for this, so you'll need to know what you are doing, and why.

Herko

5
adrock
Re: Display recent topics replies, to custom block!
  • 2006/4/8 10:59

  • adrock

  • Quite a regular

  • Posts: 291

  • Since: 2004/12/7


perhaps altering the recent topics block will be easier.

admin->system admin->templates->forums->newbb_block.html

Happy xoopsing
Affordable Web Hosting - Family - Fun!...and not always in that order!

Login

Who's Online

194 user(s) are online (151 user(s) are browsing Support Forums)


Members: 0


Guests: 194


more...

Donat-O-Meter

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

Latest GitHub Commits