Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Matthew K. on June 17, 2009, 10:42:50 AM

Title: Hide Post Authors from Guests
Post by: Matthew K. on June 17, 2009, 10:42:50 AM
Hide Post Authors From Guests

Written by: Labradoodle-360 (http://www.simplemachines.org/community/index.php?action=profile;u=182638)
Current version: 1.5
Updates: Mod Support Topic
Suitable for: SMF 1.1.10, SMF 1.1.11,
SMF 2.0 RC1-1, SMF 2.0 RC1.2, SMF 2.0 RC2
Supported languages: (http://www.simplemachines.org/site_images/lang/english.gif) (http://www.simplemachines.org/site_images/lang/swedish.gif) (http://www.simplemachines.org/site_images/lang/spanish.gif)

Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1892) | Donate (https://www.paypal.com/cgi-bin/webscr&cmd=_s-xclick&hosted_button_id=10240245)




Summary

This mod alters the template (default theme only) so that if a guest attempts to view the board, no posters' names are displayed, but simply (Hidden).

Installation

Package Manager should work in most cases. If you need to make any edits, the full list can be obtained from the Parse function on the right..

Useful links
Manual Installation Of Mods (http://docs.simplemachines.org/index.php?topic=402)
How Do I Modify Files? (http://www.simplemachines.org/community/index.php?topic=24110.0)

Support

Questions should be address to the mod support topic (http://www.simplemachines.org/community/index.php?topic=318299.0).

Updating

See changelog for v1.5 updates.

Changelog

1.5 - 1 January 2010
Version 1.5 of Hide Post Authors from Guests brings SMF 2.0 RC2 compatibility, also adding Spanish, British, as well as utf-8 for all compatible languages.
(RC2 includes Printpage.template.php)

1.3 - 3 December 2009
Updated mod for use with SMF 1.1.10 and 1.1.11, Print view is now added into 1.1. versions (will be added to 2.0 version shortly.)

1.2 - 31 July 2009
Fixed hiding the latest member name on the Info Center.

1.1 - 18 June 2009
Added support for Swedish translation - listed as (Medlem), meaning member, thanks to totaltutankoll.

1.0 - 17 June 2009
First release

Files modified by Hide Post Authors From Guests

./Sources/Subs.php
./Themes/yourtheme/languages/Modifications.english.php
./Themes/yourtheme/languages/Modifications.swedish.php
./Themes/yourtheme/BoardIndex.template.php
./Themes/yourtheme/MessageIndex.template.php
./Themes/yourtheme/Display.template.php
./Themes/yourtheme/Printpage.template.php
Title: Re: Hide Post Authors from Guests
Post by: babjusi on June 17, 2009, 04:57:39 PM
Nice mod. Very useful for privacy.
Title: Re: Hide Post Authors from Guests
Post by: sAce on June 18, 2009, 07:43:41 AM
congo dude !

so finally into modding huh?? :D
Title: Re: Hide Post Authors from Guests
Post by: LadyC on June 19, 2009, 12:39:58 AM
well this one is brilliant.... can't believe nobody ever thought of it before!
Title: Re: Hide Post Authors from Guests
Post by: MaXiForum.cz on June 20, 2009, 03:13:26 PM
Uau! Realy nice!
For 1.1.9 no? :(
Title: Re: Hide Post Authors from Guests
Post by: 3wasef on June 21, 2009, 06:59:41 PM
Hi,

Thanks for this great MOD  :D

But unfortunately for manual modification for SUB.php I only found 1 line to modified :
Code: [Select]
'before' => '<div class="quoteheader">' . $txt['quote_from'] . ': {author}</div><blockquote>',

and no luck to find the others, the other files are fine. Every thing seem to be ok except when I click on topic I got an error msg!

Any help will much appreciated.

SMF 2.0 RC1-1,
Custom Theme,

Title: Re: Hide Post Authors from Guests
Post by: Keith Tysinger on July 29, 2009, 01:39:17 AM
Are robots considered guests? I assume they are.

I see this variable in the SMF sourcecode: $user_info['possibly_robot']
I assume it is in addition to the guest status. Anyone know for sure?

I think it would be nice to filter out my member's names when the search engines index the board. At the moment I have all bots disabled via robots.txt and within SMF.

I think non-robots should be able to see the member's name since guest can post on my board anyway (each post must be approved from guests).

If I replace all occurrence in your mod from "($context['user']['is_guest'])" to "$user_info['possibly_robot']" would that do the trick? Is this the best way?
Title: Re: Hide Post Authors from Guests
Post by: Shades. on August 23, 2009, 10:36:47 PM
I think this is a very nice mod but I am using the "Simple Portal" mod and the user names do show up on the portal although they do not show up on the forum page. How do I fix this to work on the portal pages as well?

Thanks!
Title: Re: Hide Post Authors from Guests
Post by: king kratos on September 30, 2009, 10:48:03 PM
Very useful mod Arantor (I don't think I've found one of yours that isn't useful in some way)!

I noticed tonight that when a guest clicks the "Print" button, it shows who started the topic and who made what posts. This basically makes this mod useless as users are able to easily discover who made posts. I just wanted to bring this to your attention.

Also, I just noticed that the "users active in past x minutes" in the info center shows the full user name to guests.

One more, the "show the most recent posts" in the info center also shows the user name instead of (HIDDEN).

P.S. I am still using this mod and banking on the fact that most guests probably will NOT click on the print button.

Kratos
Title: Re: Hide Post Authors from Guests
Post by: Rhyme on September 30, 2009, 10:54:32 PM
This is quite the interesting idea.  Before I go messing with it though I have one question.  Sorry if this seems kind of a newbish question too, just starting out in file editing myself.

Anyways, the question is this.

When you say default theme only, are you referring to the SMF core theme that comes in the forum download package, or does it automatically install to whatever theme you have set as your forum default?
Title: Re: Hide Post Authors from Guests
Post by: king kratos on September 30, 2009, 11:01:57 PM
When mods refer to the default theme, they are referring to ../Themes/default (where SMF comes with Default, Classic, and Babylon). If you are using version 2.0 RC 1.2 (and maybe some other versions), when you test your files for install, you should see a +Install in Other Themes. Click the + and if your theme has automatic install support, you will see it listed with the file test results. (It may list all themes, this I am not sure of since I only have one add on theme installed)

Kratos
Title: Re: Hide Post Authors from Guests
Post by: Rhyme on October 01, 2009, 07:53:24 AM
Thanks guys, now I understand. ^_^
Title: Re: Hide Post Authors from Guests
Post by: king kratos on October 17, 2009, 01:23:19 AM
In playing with this mod, I have noticed that guests can see authors with the Simple Portal mod in recent posts/topics blocks.

Just wanted to give you a heads up that these (as well as what I pointed out before) are still showing authors to guests.

Kratos
Title: Re: Hide Post Authors from Guests
Post by: vinston84 on October 22, 2009, 03:20:29 PM
this doesnt work with smf 1.10
Title: Re: Hide Post Authors from Guests
Post by: Spoogs on November 17, 2009, 03:40:36 AM
Is RC2 in the work on this 1?
Title: Re: Hide Post Authors from Guests
Post by: Spoogs on November 17, 2009, 11:45:17 AM
Fair enough
(in my defense your post above mine, did say "needs fixing soon" so i just assumed that fix would be in RC2)

If you do decide to look into updating, maybe there is a way to hide the print function from guests (if its possible that may work)

This is such a decent mod i guarantee you that most or all of us that use it bet on the fact that a guest doesnt have much reach to want to print anything (depending on what the site is all about). It would only be a small percentage of guests that may consider printing IMO, so privacy is still preserved for the most part.

Its a great mod despite the bug TBH.
Title: Re: Hide Post Authors from Guests
Post by: Spoogs on November 17, 2009, 11:56:51 AM
awesome, sounds good. Thanks
Title: Re: Hide Post Authors from Guests
Post by: Matthew K. on December 04, 2009, 09:57:28 AM
I have located a bug in Hide Post Authors from Guests in Display.template.php for v1.3 for SMF 1.1.10 and 1.1.11.

This will be resolved in v1.4 coming shortly!

Labradoodle-360
Title: Re: Hide Post Authors from Guests
Post by: Matthew K. on December 04, 2009, 10:00:27 AM
The issue is with the following edit:

Find:
Code: [Select]
&#171; <i>', $txt[211], ': ', $message['modified']['time'], ' ', $txt[525], ' ', $message['modified']['name'], '</i> &#187;';Replace with:
Code: [Select]
&#171; <i>', $txt['last_edit'], ': ', $message['modified']['time'], ' ', $txt['525'], ' ', (($context['user']['is_guest']) ? $txt['user_hidden'] : $message['modified']['name']) , '</i> &#187;';
Replace with should be:
Code: [Select]
&#171; <i>', $txt['211'], ': ', $message['modified']['time'], ' ', $txt['525'], ' ', (($context['user']['is_guest']) ? $txt['user_hidden'] : $message['modified']['name']) , '</i> &#187;';
I have located a bug in Hide Post Authors from Guests in Display.template.php for v1.3 for SMF 1.1.10 and 1.1.11.

This will be resolved in v1.4 coming shortly!

Labradoodle-360
Title: Re: Hide Post Authors from Guests
Post by: Matthew K. on December 11, 2009, 06:23:18 PM
Issue with 1.1.10 and 1.1.11 are fixed in v1.4 of Hide Post Authors from Guests.

If you have a previous version, uninstall it before installing the latest version (1.4)
Title: Re: Hide Post Authors from Guests
Post by: Matthew K. on January 01, 2010, 07:40:06 PM
Expect v1.5 of Hide Post Authors from Guests very shortly!

Version 1.5 Updates:

SMF RC.2
Languages Supported for RC.2: Spanish (with UTF-8), British (with UTF-8), and English (with UTF-8).
Version 1.5 will also include Printpage for RC.2 which version 1.4 (For RC1.2) does not include.

Labradoodle-360
Title: Re: Hide Post Authors from Guests
Post by: Spoogs on January 01, 2010, 07:49:39 PM
looking forward to it 8)
Title: Re: Hide Post Authors from Guests
Post by: TDNY on January 22, 2010, 03:53:43 PM
Hi,
  I installed this via package manager error free on my 1.1.11 vers. default core and I was unable to use the "mark read" feature. It didn't matter if I clicked on the "mark read" button/ tab or if I opened a post and returned to the message list and hit refresh or if I hit the read new posts since last visit and tried to mark as read from there.
  All the posts on the site always showed the "new" icon as if it was a new post.
  Just to be sure I uninstalled and installed this mod twice, both times I uninstalled it everything worked like it should.
  I have other mods so I don't know what the actual conflict is that was causing my issue, but I was glad to find it, I've been trying to fix this bug for days.
Title: Re: Hide Post Authors from Guests
Post by: Matthew K. on January 22, 2010, 04:12:56 PM
Thank you for bringing this up, I will definitely look into it.
Title: Re: Hide Post Authors from Guests
Post by: TDNY on January 22, 2010, 04:21:40 PM
Thank you for bringing this up, I will definitely look into it.

Your welcome and good luck.

 Arantor got me looking at the mods that made changes to the message index.php and message index. template from this thread here where you will also see the list of my mods that share these files. Hope that helps.

http://www.simplemachines.org/community/index.php?topic=360420.0
Title: Re: Hide Post Authors from Guests
Post by: Matthew K. on January 22, 2010, 04:55:59 PM
I did some checking into this, I uploaded a clean set of SMF 1.1.11 files and a clean set of Hide Post Authors from Guests, received no installation errors, and was able to mark all topics as read without any issues.

If this problem is in fact related to my mod, it is two mods conflicting, not standalone Hide Post Authors from Guests.
Labradoodle-360
Title: Re: Hide Post Authors from Guests
Post by: Fotoforofos.com on January 28, 2010, 12:37:59 PM
Same problem here with v1.11 ... "new" text shows everywhere :(

These are the other mods installed.

Redirect Banned Users 1.0 
SMF Articles 1.2
Pretty URLs 1.0RC
Flickr Gallery Browse 0.4
Enhanced Profile Header    1.2
Highslide Image Viewer 1.6
Enhanced Profile Header Language Pack 1.2
Google Analytics Code 1.1

Any idea?
Title: Re: Hide Post Authors from Guests
Post by: Matthew K. on January 28, 2010, 12:40:49 PM
What do you mean by the new text shows everywhere?

Do you mean that "Hidden" shows up everywhere in place of the Author name, despite the fact you're logged in or what? A screenshot or providing a link may help.

Thanks,
Labradoodle-360
Title: Re: Hide Post Authors from Guests
Post by: Fotoforofos.com on January 28, 2010, 02:32:18 PM
Sorry, i mean that the "unread" text shown when you have a unread post in a topic is shown in every topic, even if i have read all the posts in the topic.

I don't know if the text says "unread", "new" or whatever, cause my forum is in spanish, but i hope you know what i mean.
Title: Re: Hide Post Authors from Guests
Post by: Matthew K. on January 28, 2010, 02:35:02 PM
Could you attach Messageindex.template.php and Display.template.php please.
Title: Re: Hide Post Authors from Guests
Post by: Joomlamz on November 06, 2010, 12:59:27 AM
portuguese

Code: [Select]
<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
// Labradoodle-360's Mod:Hide_Post_Authors
$txt['user_hidden'] = '(Esconder)';
]]></add>
        </operation>
    </file>
   
    <file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
// Labradoodle-360's Mod:Hide_Post_Authors
$txt['user_hidden'] = '(Esconder)';
]]></add>
        </operation>
    </file>
Title: Re: Hide Post Authors from Guests
Post by: Scoobymaniac on November 17, 2010, 07:33:46 PM
After installing this mod on 1.1.11 and now upgraded to 1.1.12 I noticed that all posts have the "new" after them even when there are no new posts in the thread.
Title: Re: Hide Post Authors from Guests
Post by: DesuChan on February 18, 2011, 01:39:15 AM
Hi,

I've been trying to install this on two different forums but it keeps telling me 'The package you are trying to download or install is either corrupt or not compatible with this version of SMF.'

I'm using 1.1.11 (I know, I should upgrade) on one and 1.1.13 on the other and it keeps giving me the same error.

Please help!!!
Title: Re: Hide Post Authors from Guests
Post by: squad on February 20, 2011, 09:49:55 PM

Hi I would also like to know if this will install on 1.1.13. I'd really
like to use this modification and be able to re-open more of my
forum to 'guests'

I also received the same reply over the weekend when I tried to
install: 'The package you are trying to download or install is either
corrupt or not compatible with this version of SMF.'


Thanks heaps.
Title: Re: Hide Post Authors from Guests
Post by: Matthew K. on February 20, 2011, 11:30:20 PM
I apologize, but this is not going to be updated...especially for the 1.1x series. If anyone would like to take this mod over...feel free to shoot me a PM.
Title: Re: Hide Post Authors from Guests
Post by: squad on February 21, 2011, 03:21:57 AM


Thanks for replying Labradoodle-360 it's a shame but thats life :)
Title: Re: Hide Post Authors from Guests
Post by: Matthew K. on February 21, 2011, 03:21:04 PM
I just reviewed the edits - It's been a while. Have you tried using Version Emulate or manually installing it on 1.1.13? It's very possible it'll work.


Thanks for replying Labradoodle-360 it's a shame but thats life :)
Title: Re: Hide Post Authors from Guests
Post by: squad on February 22, 2011, 09:31:30 AM
I just reviewed the edits - It's been a while. Have you tried using Version Emulate or manually installing it on 1.1.13? It's very possible it'll work

No not as yet, that would take yet another learning curve for me. I'll have a look at it over the weekend and see if I can get my head around it.

Thank you again :)
Title: Re: Hide Post Authors from Guests
Post by: Matthew K. on February 22, 2011, 10:38:06 AM
Version emulate is just a mod you'd intall
Title: Re: Hide Post Authors from Guests
Post by: squad on February 22, 2011, 12:08:45 PM


Thank you,mind you I doubt there isn't a day goes by, especially lately I don't learn
new things :) Thanks heaps, I give that a go now. Yes I have backed up, Heaven
help me if I need to use it hehehe I'd cry.
Title: Re: Hide Post Authors from Guests
Post by: Matthew K. on February 22, 2011, 02:50:34 PM
No problem
Title: Re: Hide Post Authors from Guests
Post by: laudia on October 14, 2011, 03:13:52 PM
I apologize for the bad English.

You can add , hide the name moderators
Title: Re: Hide Post Authors from Guests
Post by: distante on March 10, 2012, 12:29:15 PM
I apologize, but this is not going to be updated...especially for the 1.1x series. If anyone would like to take this mod over...feel free to shoot me a PM.
This mod isn't going to be updated then? for 2.0 series
Title: Re: Hide Post Authors from Guests
Post by: Matthew K. on March 10, 2012, 06:23:22 PM
Not by me it's not. Although...I might actually consider it.
Title: Re: Hide Post Authors from Guests
Post by: distante on March 10, 2012, 08:18:02 PM
hehe, I'm looking for a way to make some boards "anymous" but the "anonymous boards" in the mod site mess too much with the DB.
Title: Re: Hide Post Authors from Guests
Post by: MadTogger on May 30, 2012, 12:43:00 PM
Really like this MOD.

I am using SMF 2.0.2 and had to make a few tweaks from the parsed code to manually insert this in my forum but not too many really, mainly in the Subs.php file.

I did notice one thing though, when I click the link 'View the most recent posts on the forum.' in my forum stats, the recoent posts were shown as they should but the Authors names were also been shown.

I made a quick tweak to ./Themes/default/Recent.template.php

Find
Code: [Select]
<span class="smalltext">&#171;&nbsp;', $txt['last_post'], ' ', $txt['by'], ' <strong>', $post['poster']['link'], ' </strong> ', $txt['on'], '<em> ', $post['time'], '</em>&nbsp;&#187;</span>
Replace with
Code: [Select]
<span class="smalltext">&#171;&nbsp;', $txt['last_post'], ' ', $txt['by'], ' <strong>', (($context['user']['is_guest']) ? $txt['user_hidden'] : $post['poster']['link']), ' </strong> ', $txt['on'], '<em> ', $post['time'], '</em>&nbsp;&#187;</span>
Regards..,

MT
Title: Re: Hide Post Authors from Guests
Post by: Matthew K. on May 31, 2012, 12:04:42 PM
Better to modify things source side, which is always possible.
Title: Re: Hide Post Authors from Guests
Post by: Impsat-1 on April 29, 2014, 03:30:36 AM
Ufff!!!... Pleaseee, UpDate for SMF 2.0.7... Thanks ;)


Thanks & Regards 8).-
Title: Re: Hide Post Authors from Guests
Post by: hibikimod on June 29, 2018, 06:40:51 PM
Uninstalled this mod but it still says "hidden user"
How can i revert to showing the username back? Thanks.