HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


comment forums

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#33134 (In Topic #7484)
Avatar

Community saint

Is there a way to make the comments go into different forums for different catalogues?

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#33209
Avatar

Please try changing lines 360-362 of site/pages/modules/catalogues.php to:

Code

      do_comments($entry['allow_comments'],'catalogues',$id,build_url(array('page'=>'catalogues','type'=>'entry','id'=>$id),get_module_zone('catalogues')),$map['FIELD_0_PLAIN_PURE'],get_value('comment_forum__catalogues__'.$catalogue_name));
      //do_trackback($myrow['allow_trackbacks'],'catalogues',$id);
      $map['COMMENT_DETAILS']=get_comment_details('catalogues',$entry['allow_comments'],$id,false,get_value('comment_forum__catalogues__'.$catalogue_name));
(the prior lines are almost the same)

Then type this into OcCLE:

Code

:set_value('comment_forum__catalogues__example','Comments for example');
(substitute example for the true name of the catalogue, and Comments for example for the true title of your intended comment forum)

We'll include the code change in the next patch release, as it makes sense to allow the extra control here (although it is still all unofficial for now).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#33213
Avatar

Community saint

That works, thanks.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#33747
Avatar

Community saint

Was this code included in 3.2.2?
Here is what I did and its telling me in the jokes section that there is no comments forum.

Code

:set_value('jokes','Humour Database Discussion.');:

:set_value('jokes','Humour Database Discussion.');:

:set_value('jokes','Humour Database Discussion.');:

:set_value('jokes','35');:
the 35 is the id of the forum, I was thinking that would work as some blocks allow you just to use the id.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#33748
Avatar

Yes, but I think the OcCLE command is:

Code

 :set_value('comment_forum__catalogues__jokes','Humour Database Discussion.');


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#33755
Avatar

Community saint

yay it works.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: