SimplePortal

Customization => Custom Coding => Topic started by: Sam12345 on April 16, 2011, 11:04:37 AM

Title: Adding Comments to pages
Post by: Sam12345 on April 16, 2011, 11:04:37 AM
Hi folks
I am looking at adding a comment box to my SP pages. Please see http://www.clinicalresearchsociety.org/index.php?page=cro_outsourcing_strategies . This is a SP page using all html code in one single top block. I am looking at adding a comment box. Please let me know what ideas you get. I don't want to have a hosted javascript solution....
thanks in advance
Cheers!
Sam
Title: Re: Adding Comments to pages
Post by: grafitus on April 23, 2011, 04:50:30 AM
That want to make hard file changes and some database too. Therefore, that is not possible for now.
Title: Re: Adding Comments to pages
Post by: AngelinaBelle on May 12, 2011, 11:40:55 AM
In SMF, the easiest way to handle a topic with replies is via a forum topic.
If you want to think of it as a page with comments, it sounds as though you are thinking of one blog entry and its replies. SMF's blog block is not set up to do this (and only supports one blog mod, anyway), so you will want to create a couple of functions to grab a blog entry and display it the way you like.
If you choose a blog mod that is easy for you to work with, you should be able to figure out how to put one blog topic on a page, display its comments (replies), and include a "comment" (reply) button.
The big benefit that the blog mod may offer you is that it might make the blog's board invisible to those browsing the board index.
Other than that, you may wind up doing standard SMF/SSI stuff to create your perfect "blog posting" page. It all depends on the useful things the mod has in it.
Title: Re: Adding Comments to pages
Post by: james-at on June 03, 2011, 04:34:15 AM
Solution: Make a ShoutBox, Make a "Bottom" Block, and config the block to show it, in the desired page.

 8)


PD: you can modifity the shoutbox template(To convert the current design, to a real comments page), editing the file shoboxtemplate.php
Title: Re: Adding Comments to pages
Post by: grafitus on June 05, 2011, 06:14:36 AM
Yup, good solution! ;P
SimplePortal 2.3.8 © 2008-2024, SimplePortal