1
dave_uk
can i add a comments section to a custom module
  • 2006/3/23 22:08

  • dave_uk

  • Not too shy to talk

  • Posts: 113

  • Since: 2005/11/27


Is there an easy way of adding a comments section to a custom module either by coding it directly in or putting it in to a block.

Also is there somwhere i can get a list of the XOOPS html codes eg {xoops_user}.

TY
Wii Plaza - Wii Fansite community

2
msdana
Re: can i add a comments section to a custom module
  • 2006/3/23 23:22

  • msdana

  • Just can't stay away

  • Posts: 817

  • Since: 2005/12/11


I believe that you can insert the following code into your module templates for comments:

Quote:
<!-- start comments loop -->
<{if $comment_mode == "flat"}>
<{include file="db:system_comments_flat.html"}>
<{elseif $comment_mode == "thread"}>
<{include file="db:system_comments_thread.html"}>
<{elseif $comment_mode == "nest"}>
<{include file="db:system_comments_nest.html"}>
<{/if}>
<!-- end comments loop -->


Sorry, can't help with the XOOPS codes, but try searching. I recall seeing some posts about them.

HTH

Dana
[size=x-small]If God is watching us, the least we can do is be entertaining.[/size]
Graphic Worx : Xoops Themes

3
PTlooker
Re: can i add a comments section to a custom module
  • 2006/3/23 23:27

  • PTlooker

  • Just can't stay away

  • Posts: 447

  • Since: 2003/6/15


Please check the following topic:

https://xoops.org/modules/newbb/viewtopic.php?topic_id=47679&forum=28&post_id=211497#forumpost211497

Regards

4
dave_uk
Re: can i add a comments section to a custom module
  • 2006/3/24 0:22

  • dave_uk

  • Not too shy to talk

  • Posts: 113

  • Since: 2005/11/27


ok if i put that code in it dosent seem to recognise it as code and just prints it on the page as text Click Here to see what i have done. this is the module i am trying to add the comments section too.
Wii Plaza - Wii Fansite community

5
PTlooker
Re: can i add a comments section to a custom module
  • 2006/3/24 0:27

  • PTlooker

  • Just can't stay away

  • Posts: 447

  • Since: 2003/6/15


I can't see 'cause i'm not registered, but the same happened to me...that happens because your module doesnt have html smarty templates...the template is attached to the php file so smarty isnt recognized...on the link that i give on my last post you can check that, and i still dont know how to solve this...

6
dave_uk
Re: can i add a comments section to a custom module
  • 2006/3/24 0:48

  • dave_uk

  • Not too shy to talk

  • Posts: 113

  • Since: 2005/11/27


it is now set up so you dont have to be registered to view that page
Wii Plaza - Wii Fansite community

7
dave_uk
Re: can i add a comments section to a custom module
  • 2006/3/24 12:30

  • dave_uk

  • Not too shy to talk

  • Posts: 113

  • Since: 2005/11/27


BUMP
Wii Plaza - Wii Fansite community

8
Dave_L
Re: can i add a comments section to a custom module
  • 2006/3/24 12:38

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7



9
msdana
Re: can i add a comments section to a custom module
  • 2006/3/24 12:38

  • msdana

  • Just can't stay away

  • Posts: 817

  • Since: 2005/12/11


This is just a guess, but try updating the module through admin and then re-generate the templates. May or may not help, but it's a suggestion.

:)

[EDIT] Sorry, I didn't read the posted messages well enough. I thought you had html templates that you were using. So, it won't work the way I suggest.
[size=x-small]If God is watching us, the least we can do is be entertaining.[/size]
Graphic Worx : Xoops Themes

10
dave_uk
Re: can i add a comments section to a custom module
  • 2006/3/24 12:58

  • dave_uk

  • Not too shy to talk

  • Posts: 113

  • Since: 2005/11/27


Well i followed all the steps in that article but the problem i have is for some reason the html code used to diplay the comments dosent seem to be picked up as htmy on the site and is just printed as text see problem page
Wii Plaza - Wii Fansite community

Login

Who's Online

181 user(s) are online (127 user(s) are browsing Support Forums)


Members: 0


Guests: 181


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