Newpaper comments and images

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

Newpaper comments and images

Harvey
I would like to disable the ability for COMMENTORS to post images in comments in both our directory and magazine.

(While retaining the ability in the original post (in our magazine) and original 3 posts in our directory.

How complicated is this?
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Newpaper comments and images

Pedro
We could only show the image upload button to some groups, so the "simple commenters" couldn't upload images. This can be done with NAML, but I will investigate if it is the best solution.
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: Newpaper comments and images

Harvey
That would work.  Good idea.
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Newpaper comments and images

Pedro
Harvey,  
you can edit your "editor_insert_image_button" macro.  But first you have to create the "uploaders" group with the users that can upload images. You can give another name if you want.
Then, your macro should be like this:
<override_macro name="editor_insert_image_button">
	<n.if.visitor.is_in_group group="uploaders">
		<then.overridden/>
	</n.if.visitor.is_in_group>
</override_macro>
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: Newpaper comments and images

Harvey
That does seem to work.

Can I also have no embedding by those not in the group?
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Newpaper comments and images

Pedro
Would it be enough to hide the embed button from those who aren't in the group?
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: Newpaper comments and images

Harvey
Yes. That's what you did for the Image button right?

You're saying they could still use the embed tags and embed something.

That's fine.  Most people wouldn't ever figure that out!
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Newpaper comments and images

Pedro
We would hide the button but using "Message is in HTML Format" it is still possible to embed content.
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: Newpaper comments and images

Harvey
That's fine. I bet.
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Newpaper comments and images

Pedro
You should do the same thing you've done with the image, but now is with "editor_embed_button" macro:
<override_macro name="editor_embed_button">
    <n.if.visitor.is_in_group group="uploaders">
        <then.overridden/>
    </n.if.visitor.is_in_group>
</override_macro>
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: Newpaper comments and images

Harvey
Pedro, my group is called "Images"

I got this:

HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Newpaper comments and images

Hugo <Nabble>
Harvey, where did you try to change this? Forum, Magazine or Directory? If it was in your forum, then I found the problem. It was some old NAML code you had in your forum that was incompatible with the current Nabble core. I can make the change for you, but first I want to confirm this should go to your forum.
Reply | Threaded
Open this post in threaded view
|

Re: Odd error forum footer

Harvey
Same basic error again. I was trying to edit the text on the embed button for our FORUM:



I really didn't do anything unusual. Just found the macro, tried to override and edited the text.
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Odd error forum footer

Hugo <Nabble>
This was caused by some old NAML code, as explained here. Please reply to the other thread so that I can make the change for you.
Reply | Threaded
Open this post in threaded view
|

Re: Odd error forum footer

Harvey
This was in my forum. Thanks.
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Odd error forum footer

Hugo <Nabble>
I made the change for you. Now you should manage the "Images" user group in order to control who can embed content.
Reply | Threaded
Open this post in threaded view
|

Re: Odd error forum footer

Harvey
Thank you. It's just going to be me.

So now noone but me will see "embed" or "insert images." Right?
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Odd error forum footer

Hugo <Nabble>
Harvey44 wrote
So now noone but me will see "embed" or "insert images." Right?
I am confused now. The "embed" button will be hidden in the forum. The "Upload image" button will be hidden in the magazine. Is this what you requested?
Reply | Threaded
Open this post in threaded view
|

Re: Odd error forum footer

Harvey
None of these changes should apply to the forum. I wanted to hide embed and insert images from others in the magazine (newspaper)  mag.nyskiblog.com.
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Odd error forum footer

Harvey
I admit I am confused too - how did we end up in this thread?

Still just want to prevent images and video from being added to comments in the magazine.
HTTPS Please!
12