Fully remove "Leave a comment"

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Fully remove "Leave a comment"

sjordi
Hi,
I disabled the opportunity to let the user leave a comment on a blog, but the "Leave a comment" link is still there, and brings you to a "request to the admin".
Any way to fully remove the Leave a Comment link? So the blog is just for posting and users can't interact?

Thanks for any hlep.
Reply | Threaded
Open this post in threaded view
|

Re: Fully remove "Leave a comment"

GregChapman
Probably the best way to do this is through editing the NAML that generates the page. However, there's an easy one-step method using CSS:

From the top level of your blog: OPTIONS > APPLICATION > CHANGE APPEARANCE and then select the CSS button. In the panel that opens add the code:

#comment-section {
	display: none;
}
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.
Reply | Threaded
Open this post in threaded view
|

Re: Fully remove "Leave a comment"

sjordi
Mhhh, just did that but the leave comment is still there.
Not if you access one of the posts, but in the main page, where you have a compilation of all topics, it is...

Steve
Reply | Threaded
Open this post in threaded view
|

Re: Fully remove "Leave a comment"

GregChapman
You only asked about removing from that one place! Now you want more! Isn't that always the way!  

There is no CSS-only way to remove that. You'll need to edit the NAML for the page and I still have to learn the skills to work out where that is in the code.
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.
Reply | Threaded
Open this post in threaded view
|

Re: Fully remove "Leave a comment"

sjordi
Argh then,
I have to find another way in that case.
Or how can I edit the NAML? Is that available?
Isn't everything remote?
Steve
Reply | Threaded
Open this post in threaded view
|

Re: Fully remove "Leave a comment"

GregChapman
You can edit the NAML on your own forums. First click the "See how NAML generates this page" and you'll find your way in!

You'll need to be familiar with modern programming languages to understand what to do next. There's the beginnings of the documentation for the facilities at:
http://naml.nabble.com/
There's a link to it towards the top right once you're on a NAML screen.
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.
Reply | Threaded
Open this post in threaded view
|

Re: Fully remove "Leave a comment"

sjordi
Thanks for your highllight.
I actually went to my page where the "Leave comment" link is displayed and told it to show me how Namle generated the page.
But then, I didn't find anything that would look like pointing to the right place. I just got 3 lines of  javascript.
I'm a developper so I have no fear to actually put my hands into the code, but I still need to be able to access the code...
Went to the advanced editor and wanted to download the code ZIP file, which ended up on an error 500 message

Any clue? Where should I go to actually really see how the page is generated?
Reply | Threaded
Open this post in threaded view
|

Re: Fully remove "Leave a comment"

GregChapman
I don't think you read my first line properly...

You can edit the NAML on your own forums. First click the "See how NAML generates this page" and you'll find your way in!

It's below the "Leave a Comment" line. It's on the same line as it says "Powered by Nabble".
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.
Reply | Threaded
Open this post in threaded view
|

Re: Fully remove "Leave a comment"

sjordi
Sorry,
I did read you correctly.
I do have the link you provide, then I arrive on a 3 line javascript macro.
Then I click view_blog_page, then blog_page_layout etc...
My problem is it seems that the part that adds a "Leave a comment" is deeply embedded somewhere.
A search tells me it is in utilities.naml but I don't find a way to actually put my hands on it.
I can click endlessly on any macro and what I'd love to be able to do is to go directly to the utilities.naml...

Reply | Threaded
Open this post in threaded view
|

Re: Fully remove "Leave a comment"

Pedro
Hi, sjordi,

the path to find the "Leave a comment" code is view_blog › view_blog_page › blog_page_layout › blog_table › blog_post_footer .
The lines 6-13 are those you have to erase, so you will delete the "Leave a comment" option.
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: Fully remove "Leave a comment"

sjordi
Wonderful, that did it... Thanks a lot