Anonymous Board Mod

Started by JMV290, November 04, 2007, 07:12:46 PM

Previous topic - Next topic

susb

We use this mod on our "Send a Message to your Loved One" board.  Ours is a grief and loss support site.

http://www.healingafterloss.org/newforum/index.php/board,4.0.html

We had been using the "hide post" mod for members to keep their messages private, but many of our users are not technically savvy and I often had to go behind them to make sure the message was truly hidden.

This anon mod, on the other hand, makes this task simple.  ;D The most technologically challenged of my membership can understand "Post this message with your username (NOT ANONYMOUS)" and make the appropriate selection. 


Kindred

limiting the non-anonymous option would be complicated.

However, to remove the ability to make something non-anonymous, just edit post.template.php and remove the checkbox that sets the value.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

2pac

I find that some of my users find it kind of annoying that they have to check teh box to post as themselves... they've told me that they would rather post as themselves and click the check box when they want to post as anonymous


so i was wondering... how can i make it so that it reads

"post as ANONYMOUS"

and have them click the check box on when they want to post anonymously


would it be easy to implement, or would it be like reinventing the wheel?

thanks for your help!

Kindred

try reading the other pots in the thread?

Modify the post.template.php changes to make the box "post as yourself" default to "checked"
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

2pac

Quote from: Kindred on March 18, 2008, 09:11:12 AM
try reading the other pots in the thread?

Modify the post.template.php changes to make the box "post as yourself" default to "checked"

yes, I read every post.... but I would really like to set it up the way I described it. I just think it seems a little bit more professional the way I described it, instead of having them to uncheck a box.

anyway, I can understand it its too hard to implement, or if you're just not interested. either way, thank you for a great mod! :)

Kindred

well, the change would be more complicated than it first seems, because the variable is used in a few places.

I don't plan to released a modified version of the mod at this time...  except to upgrade the mod to 2.0 code.  However, if it occurs to me when I am updating it for 2.0, I may add an admin choice.  we'll see...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

rumfa

Can you make the same stuff for a singel topic so when i make a new topic, that a have the same option as in board (make this topic anonymous).
There are sometimes only single topics witch better to make anonymous for the normal users, Rather then making the whole broad anonymous.
Good mod by the way, once again ;)


Kindred

it might be possible... but again, beyond what I intend this mod for.

This mod serves a specific purpose: Allow a board to be set for anonymous posting. That's all it does, and that's all I intend it to do.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

soyabiatch

Is this available for smf 2.0? I tried to install it and failed almost all tests.

Kindred

I have not updated it for 2.0 yet.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Aleksi "Lex" Kilpinen

Hiya :) Nice mod, the folks on my forum like it, and I don't hate it either :P

But - after I installed this, and made one of our child-boards anonymous and open for registered users only,
I've had a few errors on my log from that board...

They all indicate an Undefined index: url
in /Sources/Subs.php
Lines, 3177, 3164, and 3161. All those lines seem to have something to do with avatars.

Lines 3160-3182:

// Figure out the avatar... uploaded?
if ($user_info['avatar']['url'] == '' && !empty($user_info['avatar']['ID_ATTACH']))
$context['user']['avatar']['href'] = $user_info['avatar']['custom_dir'] ? $modSettings['custom_avatar_url'] . '/' . $user_info['avatar']['filename'] : $scripturl . '?action=dlattach;attach=' . $user_info['avatar']['ID_ATTACH'] . ';type=avatar';
// Full URL?
elseif (substr($user_info['avatar']['url'], 0, 7) == 'http://')
{
$context['user']['avatar']['href'] = $user_info['avatar']['url'];

if ($modSettings['avatar_action_too_large'] == 'option_html_resize' || $modSettings['avatar_action_too_large'] == 'option_js_resize')
{
if (!empty($modSettings['avatar_max_width_external']))
$context['user']['avatar']['width'] = $modSettings['avatar_max_width_external'];
if (!empty($modSettings['avatar_max_height_external']))
$context['user']['avatar']['height'] = $modSettings['avatar_max_height_external'];
}
}
// Otherwise we assume it's server stored?
elseif ($user_info['avatar']['url'] != '')
$context['user']['avatar']['href'] = $modSettings['avatar_url'] . '/' . htmlspecialchars($user_info['avatar']['url']);

if (!empty($context['user']['avatar']))
$context['user']['avatar']['image'] = '<img src="' . $context['user']['avatar']['href'] . '"' . (isset($context['user']['avatar']['width']) ? ' width="' . $context['user']['avatar']['width'] . '"' : '') . (isset($context['user']['avatar']['height']) ? ' height="' . $context['user']['avatar']['height'] . '"' : '') . ' alt="" class="avatar" border="0" />';
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Kindred

I have never seen that error with this mod before
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Aleksi "Lex" Kilpinen

I've never seen that error before :) And it only comes up on the anonymous board. So I'm pretty confident it has something to do with this mod. Could be a conflict with some other mod though... *think*

Installed is:

Mod Name Version 
1. Admins Can Post As Alternative User 1.0
2. Case Insensitive Smileys 1.0
3. Enable/Disable Themes 1.0.2
4. Googlebot & Spiders Mod 2.0.3
5. Karma Description Mod 2.3
6. SMF 1.1.4 Search "brd" Bug Fix (1.0.1) 1.0.1
7. vReportBoard Mod 1.03
8. Moderator Activity Report for SMF1.1.2 1.2
9. No Spam by Guests! 0.2
10. Spoiler Tag 0.3.2
11. Centerfold World 1.0 (avatarpack)
12. Member posts recount 0.5
13. Auto Embed Video Clips 2.1.4
14. Anonymous Boards 0.3b
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Kindred

the problem is... I don't modify THAT code at all in this mod....
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Aleksi "Lex" Kilpinen

Strange... Really, since it really is isolated to the anonymous board alone. But I'll have to try and dig in to this then.. Try to find what actually triggers the error...
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

rumfa

HEy, isn't it to much asked for the following (no need for a mod, just some hints where to change the code):

Now you check in order to post WITH A NAME (if the borad i set to anonymous) and the default is anonymous. But for my forum, and some I saw, i would be more conveniant to have this same mod but inverted. Only when you check the box , to post anonimoulsy.

So in fact everything stays the same, only the "make this board anonimous" does't have effect till you check the box "post anomimosly" underneath the post for example.

rumfa

Actually the think i am asking for could be done in a much more simpeler way. What is the code i need to add, to make the box underneath the post cheked ON. Is that way everyabodys name would be shown, unless UNchecked. IT's more sompeler than my first question i think.

Kindred

Change the code in post.template.php to add a "CHECKED" in the checkbox tag.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

rumfa

OK..thanks. To clarify for the rest.

For the ones that are using the anonymous mod only when needed, you can make the default display your name unless UNchecked.

Find post.template.php
<input type="checkbox" name="post_unanon" />

Change in:
<input type="checkbox" checked name="post_unanon" />

It would be good to add a make this topic anonymous for the admins. But that can wait, this mod i good as well.

Cheers

Aleksi "Lex" Kilpinen

Quote from: rumfa on April 14, 2008, 08:35:56 AM
It would be good to add a make this topic anonymous for the admins. But that can wait, this mod i good as well.
http://custom.simplemachines.org/mods/index.php?mod=1123 ? :)

Or did you mean a completely anonymous topic, as in all who post are anonymous?
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Advertisement: