Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: tyty1234 on August 22, 2009, 07:45:23 AM

Title: Hide Topic Replies
Post by: tyty1234 on August 22, 2009, 07:45:23 AM
Hide Topic Replies

Written by: tyty1234 (http://www.simplemachines.org/community/index.php?action=profile;u=159909)
Current Version: 1.6
Compatible With: SMF 2.0
Available Languages: English, Italian, Portuguese, Portuguese-UTF8, Turkish

Download (http://custom.simplemachines.org/mods/index.php?mod=2082)




Summary
This mod adds an option in the admin panel to enable the ability hide the topic replies from guests, and *tempts* the guests to register to view the replies. This option can be accessed via Admin -> Forum -> Post and Topics -> Topic Settings.

Installation
This mod should be installed using the Package Manager. No manual edits should be necessary, but if it comes to that resort, please use the Package Parser (http://www.tytyweb.net/smf/package-parser/).

Changelog
What's new in this version?
Released for SMF 2.0
Dropped SMF 1.1.x compatibility
Added Portuguese support, thanks to Joomlamz.
Added Italian support, thanks to eng_HK.
Removed replies by users in profile view.
Title: Re: Hide Topic Replies
Post by: Groundhog on August 22, 2009, 10:10:21 AM
Works a treat tyty1234.

Many Thanks for the mod  :)

SMF 2.0 RC1
Title: Re: Hide Topic Replies
Post by: tyty1234 on August 22, 2009, 01:00:37 PM
your welcome! :D
Title: Re: Hide Topic Replies
Post by: Sevgiformu.com on August 22, 2009, 05:16:38 PM
Very nice Mod

Add Turkish Translate.

// Hide Topic Replies Mod
$txt['hideTopicReplies'] = 'Ziyaretçilerden Gizle Mesajları';
$txt['hideTopicReplies_notify'] = 'Merhaba Ziyaretçi! Bu Konudaki Cevapları Görmek İstiyorsan. Lütfen <a href="'.$scripturl.'?action=register"> <b>Kayıt Ol</b></a>  şayet üye isen <a href="'.$scripturl.'?action=login"> <b>Üye Girişi yap</b></a>  cevapları gör.';


Title: Re: Hide Topic Replies
Post by: tyty1234 on August 22, 2009, 06:52:10 PM
Thanks for the translations, Php Coder Turkish. :)
Title: Re: Hide Topic Replies
Post by: brianjw on August 23, 2009, 01:27:24 AM
Hi tyty1234,

I like the idea. But I think it might tempt the guests more if you were to keep all the replies in the actual position but just make it so they cannot read the replies. That way they know, there is replies, I just can't see them until I register, thus might tempt even more to register/login.
Title: Re: Hide Topic Replies
Post by: tyty1234 on August 23, 2009, 05:06:20 AM
@brianjw:

That's a good idea. I'll keep it in mind.

Btw, If anyone downloaded the package with the language error, I fixed that. ;)
Title: Re: Hide Topic Replies
Post by: Joe N on August 23, 2009, 02:23:41 PM
Nice Mod. Works Like A Charm
Title: Re: Hide Topic Replies
Post by: tyty1234 on August 23, 2009, 04:15:06 PM
Thanks Joe! :D
Title: Re: Hide Topic Replies
Post by: Harryf on August 23, 2009, 05:20:02 PM
Thanks tyty1234!  I've been looking for this for a long time!  Great mod!

Harry
Title: Re: Hide Topic Replies
Post by: minos on August 24, 2009, 05:12:46 PM
hello nice mod



spanish


// Hide Topic Replies Mod
$txt['hideTopicReplies'] = 'Ocultar respuestas del topic a Invitados';
$txt['hideTopicReplies_notify'] = '¡Hola Invitado! las respuestas de este topico han sido ocultadas. Por favor <a href="'.$scripturl.'?action=register">registrate</a> o <a href="'.$scripturl.'?action=login">Inicia Sesión</a> si quieres ver las respuestas.';
Title: Re: Hide Topic Replies
Post by: Sudhakar Arjunan on August 25, 2009, 09:47:37 PM
Excellent Mod Author.

When some user clicks on the Login button, they should have been placed back to the same post after successful login in.

This is most important.
Title: Re: Hide Topic Replies
Post by: tyty1234 on August 26, 2009, 02:43:41 AM
Quote from: minos on August 24, 2009, 05:12:46 PM
hello nice mod

spanish


// Hide Topic Replies Mod
$txt['hideTopicReplies'] = 'Ocultar respuestas del topic a Invitados';
$txt['hideTopicReplies_notify'] = '¡Hola Invitado! las respuestas de este topico han sido ocultadas. Por favor <a href="'.$scripturl.'?action=register">registrate</a> o <a href="'.$scripturl.'?action=login">Inicia Sesión</a> si quieres ver las respuestas.';

Thanks for these, minos. I will look into adding these over the weekend, if I have the time. :)

Quote from: A.SK on August 25, 2009, 09:47:37 PM
Excellent Mod Author.

When some user clicks on the Login button, they should have been placed back to the same post after successful login in.

This is most important.
I don't think the mod controls this feature. This may be an issue with your SMF forum.
Title: Re: Hide Topic Replies
Post by: chadon on September 10, 2009, 11:07:29 AM
Has this mod been tested on SMF 2.0 RC1.2? I installed it but members and admins can only access the first page of each topic.
The page menu only shows one page and when we access the next ones by entering their URL we are redirected to the first page.
Title: Re: Hide Topic Replies
Post by: Groundhog on September 10, 2009, 11:20:58 AM
Quote from: chadon on September 10, 2009, 11:07:29 AM
Has this mod been tested on SMF 2.0 RC1.2? I installed it but members and admins can only access the first page of each topic.
The page menu only shows one page and when we access the next ones by entering their URL we are redirected to the first page.

Your right, It does this with me also. I never noticed.  :-[

Maybe I've missed an update?
Title: Re: Hide Topic Replies
Post by: tyty1234 on September 11, 2009, 12:47:04 AM
Quote from: chadon on September 10, 2009, 11:07:29 AM
Has this mod been tested on SMF 2.0 RC1.2? I installed it but members and admins can only access the first page of each topic.
The page menu only shows one page and when we access the next ones by entering their URL we are redirected to the first page.

Yes, this mod was tested on both versions of SMF. Can you please link me to your site with the mod enabled?
Title: Re: Hide Topic Replies
Post by: chadon on September 11, 2009, 07:14:15 AM
I sent you a PM with the link. Thanks.
Title: Re: Hide Topic Replies
Post by: tyty1234 on September 11, 2009, 12:37:50 PM
Hi chadon!

I read your PM, and the whole point of the "Hide Topic Replies" mod is to hide all the topic replies in a thread, and guests will only be able to see the first post in the topic. If they click one of the pages on the MessageIndex for that topic, it will show the first post in the topic, once again, hiding the topic replies to the guests. This is just a nice way to *tempt* your guests to register to your forum. :D
Title: Re: Hide Topic Replies
Post by: chadon on September 11, 2009, 12:48:52 PM
Hi tyty1234
I understood what the mod does but what I am saying is that no member can see more than the first page. Not even the moderators or the administrators. It's good to have a tease for the guests but if the mod still hides the next pages once they become members, it could make them angry.  :D
This is why I also sent the login info in my PM, so you can see what members see. ;)
Title: Re: Hide Topic Replies
Post by: tyty1234 on September 11, 2009, 12:52:16 PM
Wow, I wonder how that happened. I'll see if I can look into it later on today. I got lots of stuff happening right now. If not, then the weekend. :)
Title: Re: Hide Topic Replies
Post by: chadon on September 11, 2009, 01:00:56 PM
Thank you.  :)
Title: Re: Hide Topic Replies
Post by: rob54 on September 12, 2009, 06:17:19 PM
For some reason, although it actually works well, the text in Topic Settings to Hide replies from Guests, is missing ??? Tickbox is there OK and works. Any ideas ???
Title: Re: Hide Topic Replies
Post by: tyty1234 on September 12, 2009, 07:16:20 PM
Quote from: rob54 on September 12, 2009, 06:17:19 PM
For some reason, although it actually works well, the text in Topic Settings to Hide replies from Guests, is missing ??? Tickbox is there OK and works. Any ideas ???
Are you using a different language than english? Or does your theme have its own Modifications.english.php file?
Title: Re: Hide Topic Replies
Post by: rob54 on September 12, 2009, 08:14:49 PM
Using English language. There is a Modifications.english.php that has been changed presumably as a result of the mod installation. There is still the Modifications.english.php~ here too. This is in the default theme. I have Anecdota theme as the only additional theme aside from the three standard ones that come with SMF.
I also have a Custom Profile Field Mod and a Go Up Button mod that is not applied as it doesn't work in Anecdota if that stuff is relevant.
Title: Re: Hide Topic Replies
Post by: tyty1234 on September 12, 2009, 09:39:03 PM
Which theme are you currently using, and does it come with its own Modifications.english.php?
Title: Re: Hide Topic Replies
Post by: tyty1234 on September 13, 2009, 06:14:06 AM
Important Update!

Please update your version of the mod to version 1.1. Here were the changes made.

1.1 - September 13, 2009
Fixed page index where logged in users (admins and mods too) couldn't see multi-page topics.
Title: Re: Hide Topic Replies
Post by: rob54 on September 13, 2009, 07:29:21 AM
I like and use Anecdota theme, and no it does not have its own Modifications.english.php. Before making the update you mention (and had to uninstall from the forum and the zip files from the server before it would work) I switched back to Default. But the text that was missing "Hide Replies from Guests" is still missing, aftee installation of 1.1, though again the tickbox is there to make the mod work.
Title: Re: Hide Topic Replies
Post by: Groundhog on September 13, 2009, 08:29:56 AM
That's it tyty1234

Works just fine now.

Many Thanks for a Great Mod  :)
Title: Re: Hide Topic Replies
Post by: tyty1234 on September 13, 2009, 02:14:41 PM
Quote from: rob54 on September 13, 2009, 07:29:21 AM
I like and use Anecdota theme, and no it does not have its own Modifications.english.php. Before making the update you mention (and had to uninstall from the forum and the zip files from the server before it would work) I switched back to Default. But the text that was missing "Hide Replies from Guests" is still missing, aftee installation of 1.1, though again the tickbox is there to make the mod work.
Can you please attach your Modifications.english.php file from your languages folder?
Title: Re: Hide Topic Replies
Post by: rob54 on September 13, 2009, 05:11:45 PM
Here is my Modifications.english.php file attached
Title: Re: Hide Topic Replies
Post by: tyty1234 on September 13, 2009, 06:43:44 PM
What version of SMF are you using?
Title: Re: Hide Topic Replies
Post by: rob54 on September 13, 2009, 07:09:00 PM
1.1.10
Title: Re: Hide Topic Replies
Post by: tyty1234 on September 13, 2009, 07:26:04 PM
Anything in the forum error log?
Title: Re: Hide Topic Replies
Post by: rob54 on September 14, 2009, 09:17:00 AM
The following occurs several times

my forum name
my IP address
action=postsettings;sa=topics
8: Undefined index: hideTopicReplies
(edit_topic_settings sub template - eval?)
Line: 1055

I tried a Thank You mod just before initially installing this Hide Topic Reply mod, which didn't work, so I uninstalled it.

Does that help?
Title: Re: Hide Topic Replies
Post by: tyty1234 on September 14, 2009, 12:58:57 PM
Well the strings are there, don't know what else could be causing the error...
Title: Re: Hide Topic Replies
Post by: rob54 on September 14, 2009, 02:56:21 PM
Well, ok just have to be like that - unless you have any other ideas. Thanks anyway, first of all for the mod and secondly for the help.
Title: Re: Hide Topic Replies
Post by: Richardgm on September 30, 2009, 07:21:38 PM
Great mod.
Title: Re: Hide Topic Replies
Post by: Realinfo on October 28, 2009, 07:13:58 AM
can search bot see replies of topic?
Title: Re: Hide Topic Replies
Post by: Afro on October 28, 2009, 12:57:41 PM
wont this mod affect the spiders that crawl your contents ?
Title: Re: Hide Topic Replies
Post by: Realinfo on October 29, 2009, 09:12:21 PM
I want that Bots specially feedburner bot not able to see my replies,

so What change I have to do in this mod, Please guide me.

I have SMF 1.1.10
Title: Re: Hide Topic Replies
Post by: tyty1234 on October 29, 2009, 11:33:14 PM
bots should be considered as guests, so they shouldn't be able to see the topic replies.
Title: Re: Hide Topic Replies
Post by: Realinfo on October 30, 2009, 09:05:19 PM
Quote from: tyty1234 on October 29, 2009, 11:33:14 PM
bots should be considered as guests, so they shouldn't be able to see the topic replies.

no sir

bots can see replies............. please guide me how to stop it..........
Title: Re: Hide Topic Replies
Post by: chadon on October 31, 2009, 01:46:59 PM
I can also see the replies in the two forums in your signature. Is the mod installed properly?
Title: Re: Hide Topic Replies
Post by: tyty1234 on October 31, 2009, 04:06:25 PM
Did you also enable the mod? (AAdmin -> Forum -> Post and Topics -> Topic Settings -> Hide Topic Replies From Guests)
Title: Re: Hide Topic Replies
Post by: Realinfo on October 31, 2009, 09:17:11 PM
Quote from: chadon on October 31, 2009, 01:46:59 PM
I can also see the replies in the two forums in your signature. Is the mod installed properly?

I install it in my other forum, and I see it works ok, but bots can see replies ( feedburner bot can make update of replies also)........ Due to some reason i need that bots not able to see my replies may guest can see......... I guess by some changes we can able to do that.......... so guide me if any one knows that.................
Title: Re: Hide Topic Replies
Post by: franklinrony on November 03, 2009, 08:34:33 PM
Great and usefull mod, only have a issue,when user click in "recent post" show all topics and hide replies,there is a way to hide this info?thanks again
Title: Re: Hide Topic Replies
Post by: tyty1234 on November 07, 2009, 04:14:08 AM
Quote from: frony on November 03, 2009, 08:34:33 PM
Great and usefull mod, only have a issue,when user click in "recent post" show all topics and hide replies,there is a way to hide this info?thanks again
can you clarify a bit on what you mean? which recent post are you talking about? "?action=recent", "?action=unread"?
Title: Re: Hide Topic Replies
Post by: simplebeer on November 20, 2009, 05:10:31 PM
This one works great but guest can still use the button print, is it possible to disable this to?

Gr
Title: Re: Hide Topic Replies
Post by: tyty1234 on November 26, 2009, 01:30:15 AM
Quote from: Welb on November 20, 2009, 05:10:31 PM
This one works great but guest can still use the button print, is it possible to disable this to?

Gr

I've implemented this in the latest release. The mod also works for 2.0 RC2. ;D
Title: Re: Hide Topic Replies
Post by: simplebeer on November 29, 2009, 04:30:31 PM
Quote from: tyty1234 on November 07, 2009, 04:14:08 AM
Quote from: frony on November 03, 2009, 08:34:33 PM
Great and usefull mod, only have a issue,when user click in "recent post" show all topics and hide replies,there is a way to hide this info?thanks again
can you clarify a bit on what you mean? which recent post are you talking about? "?action=recent", "?action=unread"?

I noticed it to at ?action=recent  ::)
Title: Re: Hide Topic Replies
Post by: simplebeer on November 29, 2009, 04:33:59 PM
At the latest version you say
QuoteWarning now shows right below the first post

Is it useful the give this line a color like red, so you can quickle notice it?

Gr
Title: Re: Hide Topic Replies
Post by: tyty1234 on December 19, 2009, 01:22:58 AM
version 1.3 of the mod should now show the notification in red. :)
Title: Re: Hide Topic Replies
Post by: franklinrony on January 04, 2010, 11:26:37 PM
thanks for the new version,however, have the same issue, in recent post action show all messages,first post or not
Title: Re: Hide Topic Replies
Post by: Cal O'Shaw on January 04, 2010, 11:57:28 PM
Confirmed it on my 1.1.11 system.  Guest goes to Recent Posts area of Info Center, clicks on the little icon to the left, and sees 10 screens worth of the most recent posts.

Suggested fix: disable the icon link so it does nothing for Guests.

Grazie,

Cal
Title: Re: Hide Topic Replies
Post by: tyty1234 on January 09, 2010, 03:53:00 AM
Quote from: Welb on November 29, 2009, 04:30:31 PM
Quote from: tyty1234 on November 07, 2009, 04:14:08 AM
Quote from: frony on November 03, 2009, 08:34:33 PM
Great and usefull mod, only have a issue,when user click in "recent post" show all topics and hide replies,there is a way to hide this info?thanks again
can you clarify a bit on what you mean? which recent post are you talking about? "?action=recent", "?action=unread"?

I noticed it to at ?action=recent  ::)
Quote from: frony on January 04, 2010, 11:26:37 PM
thanks for the new version,however, have the same issue, in recent post action show all messages,first post or not
Quote from: Cal O'Shaw on January 04, 2010, 11:57:28 PM
Confirmed it on my 1.1.11 system.  Guest goes to Recent Posts area of Info Center, clicks on the little icon to the left, and sees 10 screens worth of the most recent posts.

Suggested fix: disable the icon link so it does nothing for Guests.

Grazie,

Cal

I will try to work on this as soon as I can. :)
Title: Re: Hide Topic Replies
Post by: tyty1234 on January 12, 2010, 10:12:03 PM
Version 1.4 of the mod released.

It should now hide replies shown on ?action=recent ;)
Title: Re: Hide Topic Replies
Post by: franklinrony on January 13, 2010, 07:43:14 PM
thanks for the update :)
Title: Re: Hide Topic Replies
Post by: Cal O'Shaw on January 14, 2010, 12:52:23 AM
Grazie

However, you might want to mention on the MOD page that if one uninstalls a version to install the latest version, the checkbox to use the feature is CLEARED!

I had a small panic when I went to test how the new version handled the recent posts link and discovered everything was again visible!  And then searching to find where the checkbox was located!

Otherwise, looks great.  Grazie!

Cal
Title: Re: Hide Topic Replies
Post by: tyty1234 on January 14, 2010, 01:27:45 AM
Oh yeah, you have to re-enable the feature. It's very strange how it does that...
Title: Re: Hide Topic Replies
Post by: Cal O'Shaw on January 15, 2010, 01:30:21 AM
Unfortunately, 1.4 has introduced a new problem:  Members clicking on "Recent Posts" only see one post as well.  This includes Admins...

I was so busy checking it out by being a Guest I never thought to check it by being a member... one of our members told me about it.

Cal
Title: Re: Hide Topic Replies
Post by: tyty1234 on January 16, 2010, 11:48:02 PM
What SMF version are you encountering this on? It is very strange how you encountered this error...
Title: Re: Hide Topic Replies
Post by: Cal O'Shaw on January 17, 2010, 12:43:45 AM
I am running 1.1.11. 

Here is what happens when the "Recent Posts" link is clicked (to the left of the individual posts shown in the Recent Posts box):
Guests - Recent Posts page says it has pages 1 thru 10.  It displays the first post in the most recent topic.  Clicking on pages 2 thru 10 show no posts.

Members - Recent Posts page says it has pages 1 thru 10.  It displays the most recent post of the most recent topic.  Clicking on pages 2 thru 10 show the same single post.

Does that help in isolating the problem?

I would roll back to 1.3 of the MOD, except I deleted my local copy and the MOD page does not show anything other than the current version.  I realise it leaves the "Recent Posts" wide open to guests, but my members are complaining and I'm sure you'll sort this out fairly quickly, so I have no problems with leaving that hole for a bit.

Grazie
Title: Re: Hide Topic Replies
Post by: tyty1234 on January 17, 2010, 01:28:42 AM
May I get a link to your forum please?
And in case you want it, I attached the 1.3 version of the mod.
Title: Re: Hide Topic Replies
Post by: Cal O'Shaw on January 17, 2010, 01:35:54 AM
Grazie... saved the 1.3 version.

http://mcgarden.org/forum/index.php
Title: Re: Hide Topic Replies
Post by: tyty1234 on January 17, 2010, 01:39:11 AM
Thanks. I'll go start hunting for the problem, as I think I know what could be causing the empty pages for guests. :)
Title: Re: Hide Topic Replies
Post by: Cal O'Shaw on January 17, 2010, 01:45:59 AM
Grazie mille!
Title: Re: Hide Topic Replies
Post by: tyty1234 on January 17, 2010, 04:13:16 AM
Can anyone running SMF 2.0 RC2 confirm the errors Cal O'Shaw reported? Thanks.
Title: Re: Hide Topic Replies
Post by: Cal O'Shaw on January 22, 2010, 08:19:07 PM
Just wondering if you've had the chance to address this?

Grazie,

Cal
Title: Re: Hide Topic Replies
Post by: tyty1234 on January 22, 2010, 11:52:33 PM
I've had the chance, yes, but however I am waiting for confirmation on this error on RC2 to prevent myself from wasting a revision.
Title: Re: Hide Topic Replies
Post by: Pellets on January 26, 2010, 09:32:10 AM
I run SMF 2.0 RC2 with hideTopicReplies_1.4.zip.

When the mod is activated all replies in a thread is gone when visiting as guest, but the message isn't there.

Modifications.swedish-utf8.php and Modifications.english.php
contain:

<?php
// Version: 2.0 RC2; Modifications

// Important! Before editing these language files please read the text at the top of index.english.php.

// Hide Topic Replies Mod.
$txt['hideTopicReplies'] = 'Hide Topic Replies from Guests';
$txt['hideTopicReplies_notify'] = 'F&ouml;r att l&auml;sa alla svar i detta &auml;mne s&aring; m&aring;ste du registrera ett konto och logga in p&aring; forumet. Det &auml;r helt gratis och tar bara n&aring;gra sekunder.<br>
<a href="http://www.XXXXX.se/index.php?action=register">Klicka h&auml;r f&ouml;r att skapa ett konto p&aring; XXXXX.se!</a> Om du redan har ett konto, logga in!'
;

?>


:-[
Title: Re: Hide Topic Replies
Post by: tyty1234 on January 27, 2010, 04:39:33 AM
Quote from: Pellets on January 26, 2010, 09:32:10 AM
I run SMF 2.0 RC2 with hideTopicReplies_1.4.zip.

When the mod is activated all replies in a thread is gone when visiting as guest, but the message isn't there.

Can you please provide me with a link to your site with the mod installed and enabled?
Title: Re: Hide Topic Replies
Post by: Mabangis on February 09, 2010, 10:38:06 PM
This is a great Mod and I installed it in an SMF 2 version without a hitch.

I just wanted to ask a feature you can add on the comments like this:

"Hello Guest! Replies in this topic have been hidden from view. You are currently missing "X" number of replies to this post.  Please register or login if you want to view the replies. Thank you."

The on that X would have to be replaced with the number of unseen replies to the topic.  This will add more interest to the Guest if they know what they are missing.

What do you think?  Maybe not all need this feature so maybe you can also have it turned on and off in the Admin area.


Mabangis



Title: Re: Hide Topic Replies
Post by: waruna on February 12, 2010, 05:58:25 AM
Guys, need help. Can I edit the message "Hello Guest! Replies in this topic have been hidden from view. Please register or login if you want to view the replies." I wanted to add the link to registration page.

Thanks guys
Title: Re: Hide Topic Replies
Post by: waruna on February 12, 2010, 08:35:05 AM
I got error message when trying to install. Something like conflict between previous package. I already uninstall the previous mode and try to install a new one (but with same mode). It says the testing error from these 2 files (Display.php and Printpage.php). Already attached the files. Anyone can take a look?

A very thanks in advance.
Title: Re: Hide Topic Replies
Post by: waruna on February 13, 2010, 02:40:45 AM
Also, I got this error when done installing.

url: action=recent
Quote
"Not unique table/alias: 't'
File: /home/mydomain/domains/mydomain.net/public_html/v10/Sources/Recent.php
Line: 279"

How to solve this? :(
Title: Re: Hide Topic Replies
Post by: tbk22 on February 13, 2010, 08:01:59 AM
Seems a great mod.. Ill give it a try later
Title: Re: Hide Topic Replies
Post by: waruna on February 16, 2010, 01:08:26 AM
Anyone can solve my problem? When I install this mod, action=recent show an error.
Title: Re: Hide Topic Replies
Post by: tyty1234 on February 17, 2010, 12:27:52 AM
Quote from: waruna on February 13, 2010, 02:40:45 AM
Also, I got this error when done installing.

url: action=recent
Quote
"Not unique table/alias: 't'
File: /home/mydomain/domains/mydomain.net/public_html/v10/Sources/Recent.php
Line: 279"

How to solve this? :(

Can you attach the Recent.php file?

Quote from: waruna on February 12, 2010, 05:58:25 AM
Guys, need help. Can I edit the message "Hello Guest! Replies in this topic have been hidden from view. Please register or login if you want to view the replies." I wanted to add the link to registration page.

Thanks guys

You may change it in the Modifications.english.php file. I might make this a feature. ;)

Quote from: Mabangis on February 09, 2010, 10:38:06 PM
This is a great Mod and I installed it in an SMF 2 version without a hitch.

I just wanted to ask a feature you can add on the comments like this:

"Hello Guest! Replies in this topic have been hidden from view. You are currently missing "X" number of replies to this post.  Please register or login if you want to view the replies. Thank you."

The on that X would have to be replaced with the number of unseen replies to the topic.  This will add more interest to the Guest if they know what they are missing.

What do you think?  Maybe not all need this feature so maybe you can also have it turned on and off in the Admin area.


Mabangis

Sounds like a good idea. :)
Title: Re: Hide Topic Replies
Post by: waruna on February 18, 2010, 06:51:16 AM
Ok, I'll attach the recent.php later on as I'm not at home right now. :)


Quote from: Mabangis on February 09, 2010, 10:38:06 PM
This is a great Mod and I installed it in an SMF 2 version without a hitch.

I just wanted to ask a feature you can add on the comments like this:

"Hello Guest! Replies in this topic have been hidden from view. You are currently missing "X" number of replies to this post.  Please register or login if you want to view the replies. Thank you."

The on that X would have to be replaced with the number of unseen replies to the topic.  This will add more interest to the Guest if they know what they are missing.

What do you think?  Maybe not all need this feature so maybe you can also have it turned on and off in the Admin area.


Mabangis

Yes this sounds like a very good idea. :D
Title: Re: Hide Topic Replies
Post by: sherwinaval on February 21, 2010, 03:03:16 PM
very nice mod.. will wait until the "Missing X" thingy is done :) this is lovely just what I was looking for :)
Title: Re: Hide Topic Replies
Post by: waruna on February 24, 2010, 10:42:18 AM
Quote from: tyty1234 on February 17, 2010, 12:27:52 AM
Quote from: waruna on February 13, 2010, 02:40:45 AM
Also, I got this error when done installing.

url: action=recent
Quote
"Not unique table/alias: 't'
File: /home/mydomain/domains/mydomain.net/public_html/v10/Sources/Recent.php
Line: 279"

How to solve this? :(

Can you attach the Recent.php file?

Recent.php attached. Thank you sir.
Title: Re: Hide Topic Replies
Post by: tyty1234 on February 28, 2010, 02:33:06 AM
@waruna: I apologize deeply about the delay. I've been caught up with school work, and a couple of projects, but I attached the recent.php file. It should fix the problem.

As a note to everyone else who wants the suggested features, I'll try to do that when I can. As I mentioned above, I've been getting caught up with school work, and I'm also actively involved in a couple SMF projects, so please bear with me. :)
Title: Re: Hide Topic Replies
Post by: waruna on February 28, 2010, 01:34:37 PM
tyty1234, after put that Recent.php file, nothing really changed. Guests can freely browse the forum.  :'(
Title: Re: Hide Topic Replies
Post by: tyty1234 on March 01, 2010, 03:52:51 AM
Can you provide a link to your forum? Did it fix the error at least?
Title: Re: Hide Topic Replies
Post by: waruna on March 01, 2010, 05:15:16 AM
Quote from: tyty1234 on March 01, 2010, 03:52:51 AM
Can you provide a link to your forum? Did it fix the error at least?

I think not.

First, I install this mod and yes, guest can only see first post of a thread. But action=recent still show the error. Then I replaced the Recent.php file attached by you, and action=recent back to normal, but guest can browse freely back.

I PM-ed you my link. Thanks :)
Title: Re: Hide Topic Replies
Post by: tyty1234 on March 01, 2010, 05:55:23 AM
Quote from: waruna on March 01, 2010, 05:15:16 AM
Quote from: tyty1234 on March 01, 2010, 03:52:51 AM
Can you provide a link to your forum? Did it fix the error at least?

I think not.

First, I install this mod and yes, guest can only see first post of a thread. But action=recent still show the error. Then I replaced the Recent.php file attached by you, and action=recent back to normal, but guest can browse freely back.

I PM-ed you my link. Thanks :)
Did you verify that you enabled the "Hide topic replies from guests" option found in Admin -> Forum -> Post and Topics -> Topic Settings?
Title: Re: Hide Topic Replies
Post by: waruna on March 01, 2010, 06:43:53 AM
Quote from: tyty1234 on March 01, 2010, 05:55:23 AM
Quote from: waruna on March 01, 2010, 05:15:16 AM
Quote from: tyty1234 on March 01, 2010, 03:52:51 AM
Can you provide a link to your forum? Did it fix the error at least?

I think not.

First, I install this mod and yes, guest can only see first post of a thread. But action=recent still show the error. Then I replaced the Recent.php file attached by you, and action=recent back to normal, but guest can browse freely back.

I PM-ed you my link. Thanks :)
Did you verify that you enabled the "Hide topic replies from guests" option found in Admin -> Forum -> Post and Topics -> Topic Settings?

Ah my bad :D. Sorry I forgot to enable that option. Thanks tyty1234. It works now!. Great, thanks a bunch :*
Title: Re: Hide Topic Replies
Post by: Eclipse16V on March 15, 2010, 02:21:23 AM
Nice Mod

Please update it for SMF 2.0RC3  ;)

Thanks
Title: Re: Hide Topic Replies
Post by: rbeuker on May 02, 2010, 03:04:16 PM
I just wanted to say: thanks for this great mod! I love it :D

Oh, and one question, about this:

$txt['hideTopicReplies_notify'] = 'Hello Guest! Replies in this topic have been hidden from view. You are currently missing %1$d replies. Please register or login if you want to view the replies.';

If there is only 1 reply, it reads like 'You are currently missing 1 replies'. It would be nice if it could read '1 reply' instead. How could I do that? ;)

Thanks again!

Ronald
Title: Re: Hide Topic Replies
Post by: Dennissmith on June 01, 2010, 05:00:21 PM
hi i installed this mod on smf2.0rc3 is not workin i can see n read the replies from it wich is not good :(
Title: Re: Hide Topic Replies
Post by: Eclipse16V on June 02, 2010, 04:36:52 PM
On my RC3 works it.
Title: Re: Hide Topic Replies
Post by: eng_HK on August 16, 2010, 08:47:56 AM
This mod is really greate!

Here the translation you for Italian.
You have to add this part to install-languages.xml

Thanks again.

<file name="$languagedir/Modifications.italian.php" error="skip">
      <operation>
         <search position="end" />
         <add><![CDATA[
// Hide Topic Replies Mod.
$txt['hideTopicReplies'] = 'Nascondi Risposte a ospiti';
$txt['hideTopicReplies_notify'] = 'Benvenuto ospite! Le risposte a questa discussione sono %1$d . Le risposte non sono visibili agli utenti non registrati.';]]></add>
      </operation>
   </file>

Title: Re: Hide Topic Replies
Post by: Apllicmz on November 06, 2010, 12:41:40 AM
portuguese

<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
// Hide Topic Replies Mod
$txt['hideTopicReplies'] = 'Esconder respostas dos topicos aos visitantes';
$txt['hideTopicReplies_notify'] = 'Ol&aacute; Visitante! As respostas deste topico foram ocultas a visitantes. Por Favor <a href="'.$scripturl.'?action=register">registe-se</a> ou <a href="'.$scripturl.'?action=login">Entre</a> para poder ter acesso a todo o Forum.';]]></add>
        </operation>
    </file>
    <file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
// Hide Topic Replies Mod
$txt['hideTopicReplies'] = 'Esconder respostas dos topicos aos visitantes';
$txt['hideTopicReplies_notify'] = 'Ol&aacute; Visitante! As respostas deste topico foram ocultas a visitantes. Por Favor <a href="'.$scripturl.'?action=register">registe-se</a> ou <a href="'.$scripturl.'?action=login">Entre</a> para poder ter acesso a todo o Forum.';]]></add>
        </operation>
    </file>
Title: Re: Hide Topic Replies
Post by: hcfwesker on December 01, 2010, 06:54:47 PM
Very , very handy MOd to have.  One question, i looked but couldn't find where to change the text color for the guests message under the first post.  The default is red.
Title: Re: Hide Topic Replies
Post by: Sakae on December 01, 2010, 08:30:39 PM
Does it works on SMF 2.0 RC4? :)
Title: Re: Hide Topic Replies
Post by: rbeuker on December 06, 2010, 02:24:41 PM
Quote from: Sakae on December 01, 2010, 08:30:39 PM
Does it works on SMF 2.0 RC4? :)
I can confirm it works! :) I had to update the install-rc2.xml and package-info.xml files though.
Title: Re: Hide Topic Replies
Post by: hcfwesker on December 06, 2010, 07:06:55 PM
Care to share the edits?  I plan on using this when i upgrade to RC4 next month.
Title: Re: Hide Topic Replies
Post by: hcfwesker on December 09, 2010, 08:36:53 PM
Quote from: Sakae on December 01, 2010, 08:30:39 PM
Does it works on SMF 2.0 RC4? :)

I emulated my version down to RC3, and downloaded the first zip, and installed with no errors, and works fine.
Title: Re: Hide Topic Replies
Post by: tyty1234 on December 13, 2010, 03:42:42 PM
Quote from: hcfwesker on December 09, 2010, 08:36:53 PM
Quote from: Sakae on December 01, 2010, 08:30:39 PM
Does it works on SMF 2.0 RC4? :)

I emulated my version down to RC3, and downloaded the first zip, and installed with no errors, and works fine.

Yes if you emulate to RC3, you should be fine :)
If I do find the time this week to update, then I will update the mod.
Title: Re: Hide Topic Replies
Post by: Sakae on December 13, 2010, 05:25:59 PM
I got this working since then :)
Title: Re: Hide Topic Replies
Post by: italo_anonimo on February 07, 2011, 07:44:27 AM
hi, thanks for mod!!

gives a problem with google or other bot????

thanks
Title: Re: Hide Topic Replies
Post by: italo_anonimo on March 08, 2011, 08:48:36 AM
hi thanks for mod, i have a this problem...

log error:

Type of error: Database

Guest
ip

http://www.perumoviles.net/comunidad/index.php?action=recent

Database Error: Not unique table/alias: 't'

File: /var/www/html/comunidad/Sources/Recent.php
Line: 280

----
Type of error: Database

user (italo)
ip

http://www.perumoviles.net/comunidad/index.php?action=recent

Database Error: Not unique table/alias: 't'

File: /var/www/html/comunidad/Sources/Recent.php
Line: 280



message to link recent:

Database Error
Please try again. If you come back to this error screen, report the error to an administrator.

thanks for help...
Title: Re: Hide Topic Replies
Post by: Freerider727 on April 18, 2011, 11:41:03 PM
Hello TYTY,  I just installed 1.5 with errors and tried 1.3 with errors.
The hide topics form guests text does not show up in the Topic Settings menu, however there is a blank check box. I have tried clicking the box and nothing happens.
I am using smf 1.1.13 with the default theme and get many errors in the log;

8: Undefined index: hideTopicReplies
File: /home/colorxxx/public_html/forum/Themes/default/languages/Aeva.english.php (edit_topic_settings sub template - eval?)
Line: 1090

+ on many other lines.

Can you help me fix this?
Thank You for Your time.
D

woops, may not work with my version of smf...
Title: Re: Hide Topic Replies
Post by: tyty1234 on June 16, 2011, 06:04:41 AM
Hey guys,

I want to apologize for not updating the mod periodically and addressing your errors. I've been real busy and it's been so long since I coded for SMF, but with the release of SMF 2.0, the mod will need to be updated. Before I do that however, if you guys would go here (http://www.tytyweb.net/forum/mod-support/hide-topic-replies/) to report some bugs or errors that you found in the mod so that I can fix those bugs and errors and the next version of this mod can be bug-free and is working smoothly. I promise that I will do my best to update and fix the mod in a timely manner as I have a little free time on my hands.

Thanks,
tyty1234
Title: Re: Hide Topic Replies
Post by: tyty1234 on June 23, 2011, 07:30:52 PM
Version 1.6 has been released! It supports SMF 2.0, but no longer supports SMF 1.1.x forums. Please refer to the OP for what's new in this version. This mod, along with the other mods that I wrote are also available on my site (http://www.tytyweb.net/forum/mod-support/).
Title: Re: Hide Topic Replies
Post by: Sapinho® on July 21, 2011, 06:13:16 AM
hi tyty, i have some dudes.

When i active, hide reply to guess, this mod work fine, but my dude is...

In the resumen of perfil of one user, when i try see the all msji can´t see, including when i have logging, i only can see post but not reply.

i attach images i think that user must see all msj in the profile. regards and ty advance :)

sorry for my bad english not know more of english

edit:

smf ver 2.0 gold
hide ver 1.6

and sorry i forget say i love this mod and i not sure if i me explain good ñ_ñ
Title: Re: Hide Topic Replies
Post by: tyty1234 on July 28, 2011, 07:16:09 AM
Hi there.

Thank you for submitting that bug, I am aware of where the error is and will be taken care of. Please look for an update very soon.

Regards,
tyty1234
Title: Re: Hide Topic Replies
Post by: Richardgm on July 28, 2011, 06:58:51 PM
I have a bug report! With this mod installed the "show posts" option in member's profile would only show the first post of a thread.

See the below thread for my problem.

http://www.simplemachines.org/community/index.php?topic=440222.0
Title: Re: Hide Topic Replies
Post by: tyty1234 on July 29, 2011, 03:38:18 AM
Richardgm,

That's also related to the bug that Sapinho reported, however I now see that the constructPageIndex() is also affected. I will look into those, and fix the problem quickly. Please look for an update very soon.

Thanks for your report,
tyty1234
Title: Re: Hide Topic Replies
Post by: Richardgm on July 29, 2011, 06:38:51 PM
I updated, and my problem ("show posts") is gone.

Thank you! That was quick, indeed.
Title: Re: Hide Topic Replies
Post by: Martingonnella on July 29, 2011, 07:49:45 PM
Hi,

I wondering if the Publisher or anyone can help me. I'm running 2.0 Gold and went to install your Mod. I got all Ok except the Display.template have a "Failed".

It was the:

Find: [Select]
global $context, $settings, $options, $txt, $scripturl, $modSettings;

Add After: [Select]
global $smcFunc;


I done the manual edits and installed the Mod, still getting a failed. I went to the admin, -> topic -> Enabled the mod.

I logged out and went into a guest and went to search for a forum...I notied it says "Register to comment"...so I know it's done half of it, BUT I could see the red writing "Hello Guest, replies......" Message.

I checked all the manual codes to the pharse and they all seem fine...I'm at a lost.

You can check my Display.Template which is attached Which I;m sure I did correctly...Any help would be appreciated.
Thanks
Title: Re: Hide Topic Replies
Post by: tyty1234 on July 30, 2011, 01:12:44 AM
Quote from: Richardgm on July 29, 2011, 06:38:51 PM
I updated, and my problem ("show posts") is gone.

Thank you! That was quick, indeed.

You're welcome! I hope you enjoy the mod. :)

Quote from: Martingonnella on July 29, 2011, 07:49:45 PM
Hi,

I wondering if the Publisher or anyone can help me. I'm running 2.0 Gold and went to install your Mod. I got all Ok except the Display.template have a "Failed".

It was the:

Find: [Select]
global $context, $settings, $options, $txt, $scripturl, $modSettings;

Add After: [Select]
global $smcFunc;


I done the manual edits and installed the Mod, still getting a failed. I went to the admin, -> topic -> Enabled the mod.

I logged out and went into a guest and went to search for a forum...I notied it says "Register to comment"...so I know it's done half of it, BUT I could see the red writing "Hello Guest, replies......" Message.

I checked all the manual codes to the pharse and they all seem fine...I'm at a lost.

You can check my Display.Template which is attached Which I;m sure I did correctly...Any help would be appreciated.
Thanks

Everything is there in place...maybe you can post the link to your site and then I can see what the problem is from a guest pov?
Title: Re: Hide Topic Replies
Post by: Martingonnella on July 30, 2011, 01:19:48 AM
Hello,

It's at http://www.bbs.protonic.com

Thanks. Let me know
Title: Re: Hide Topic Replies
Post by: tyty1234 on July 30, 2011, 01:25:05 AM
When viewing this topic (http://bbs.protonic.com/SMF/index.php/topic,1048.0.html), which has 3 replies, I see the message "Hello Guest! Replies in this topic have been hidden from view. You are currently missing 3 replies. Please register or login if you want to view the replies." being displayed correctly. :)
Title: Re: Hide Topic Replies
Post by: Martingonnella on July 30, 2011, 01:33:33 AM
OMG! its Actually working now LOL.. I promise you last might it wasn't working at all.. That's really odd.

Now hmmm... Is there a way to get the message '
Hello Guest! Replies in this topic have been hidden from view. You are currently missing 3 replies. Please register or login if you want to view the replies'

Is there a way to get it up the top as well... As not many people scroll down? Also a colour and font change?

Your help would be appreciated... You have been great so far and so kind ;)
Title: Re: Hide Topic Replies
Post by: tyty1234 on July 30, 2011, 01:59:14 AM
You can do a manual edit for that if you'd like.

Code (Find) Select

// Get all the messages...


Code (Add before) Select

// If the replies are hidden, let the guest know.
if (isset($modSettings['hideTopicReplies']) && $modSettings['hideTopicReplies'] && $context['user']['is_guest'] && $context['num_replies'] > 0)
echo '
<div class="windowbg2">
<span class="topslice"><span><!-- // --></span></span>
<div class="content alert" style="text-align: center;">' . sprintf($txt['hideTopicReplies_notify'], $context['num_replies'], $context['num_replies'] != 1 ? $smcFunc['strtolower']($txt['replies']) : $smcFunc['strtolower']($txt['reply'])) . '</div>
<span class="botslice"><span><!-- // --></span></span>
</div>';



To change the color and font, you can do that in the "style attribute" where the message is being displayed in the div element. Be sure to remove the alert class before changing the color.
Title: Re: Hide Topic Replies
Post by: Martingonnella on July 30, 2011, 02:04:59 AM
Hey,

Thanks for your help... I can defienty do the first edit you done to get it up the top too which is easier enough, But the colour change and font sounds tricky.... Hmmmm... Don't think I can do that.. Dam!!! ;)
Title: Re: Hide Topic Replies
Post by: tyty1234 on July 30, 2011, 02:08:20 AM
Haha that's okay. Here's what you do.

Code (Find) Select

<div class="content alert" style="text-align: center;">


Code (Replace with) Select

<div class="content" style="text-align: center; color: [COLOR]; font-family: [FONT NAME];">


And replace [COLOR] with a color name or a hexadecimal value, and replace [FONT NAME] with the name of the font you would like to use. :)
Title: Re: Hide Topic Replies
Post by: Martingonnella on July 30, 2011, 02:13:20 AM
Thanks you!!! I'm sure this will help alot.. I'll give it a go soon.
What's index directory (.php) are those codes both in?

Title: Re: Hide Topic Replies
Post by: tyty1234 on July 30, 2011, 02:20:59 AM
Display.template.php located in Themes/default :)
Title: Re: Hide Topic Replies
Post by: Martingonnella on July 30, 2011, 02:24:01 AM
Thanks alot.. You've been a big help!

Question, I saw it being mention in the thread somewhere about where if a gues gets the message clicks 'Register to comment', does the guest return to the same page? Was this implemented?
Title: Re: Hide Topic Replies
Post by: tyty1234 on July 30, 2011, 02:40:15 AM
You're welcome. I was glad to help :)
It was implemented at one point, but then I removed it because it caused a color change for the link when it was in the message. I couldn't change it to red =/
Title: Re: Hide Topic Replies
Post by: Martingonnella on July 30, 2011, 02:44:06 AM
Ooo..Ok Shame thought because that's quite an important part "Returning a guest to the same page" he came back from? Think your have another go on it or are you updating this soon?
Title: Re: Hide Topic Replies
Post by: tyty1234 on July 30, 2011, 03:00:50 AM
I'll see what I can do about it :)
Title: Re: Hide Topic Replies
Post by: Martingonnella on July 30, 2011, 03:10:19 AM
Nice One. I got it on Top and Bottom now..Great

I think I done it....How do I add a size to the text too?

I added:

<div class="content" style="text-align: center; color: [#0000FF]; font-family: Times New Roman">

Problem: I set it to #0000FF, which is Blue, but it goes Black instead...Not sure mate.

Title: Re: Hide Topic Replies
Post by: tyty1234 on July 30, 2011, 03:13:45 AM
Get rid of the brackets and you'll be good lol. As for size, you set it as "font-size: [SIZE];". So it'll be like...


<div class="content" style="text-align: center; color: #0000FF; font-family: Times New Roman; font-size: [SIZE];">


Example sizes are 12 pt, 16 px, 100%.
Title: Re: Hide Topic Replies
Post by: Martingonnella on July 30, 2011, 03:24:55 AM
Thanks buddy. All Sorted. Thanks alot. You've probably been one of the helpful person on this site to be honest.
Title: Re: Hide Topic Replies
Post by: Martingonnella on July 30, 2011, 03:27:22 AM
Is it possible to put a image each side of the text....I could make some .gif or Jpeg picture saying "Wait" or "Locked" or something. How will I go ahead and add that to the code? Thanks
Title: Re: Hide Topic Replies
Post by: tyty1234 on July 30, 2011, 03:33:44 AM
Quote from: Martingonnella on July 30, 2011, 03:24:55 AM
Thanks buddy. All Sorted. Thanks alot. You've probably been one of the helpful person on this site to be honest.

I used to give support a lot back in 2009. Then I was busy with school and etc and found myself being away from SMF haha. I have a whole history explained on my site here (http://www.tytyweb.net/smf/history/). Glad I'm able to help :)

Quote from: Martingonnella on July 30, 2011, 03:27:22 AM
Is it possible to put a image each side of the text....I could make some .gif or Jpeg picture saying "Wait" or "Locked" or something. How will I go ahead and add that to the code? Thanks

You'll need to use the <img /> element. Like so...


<div class="content" style="text-align: center; color: #0000FF; font-family: Times New Roman; font-size: 12pt;"><img src="http://www.linkto.img/here/" alt="" /> ' . sprintf($txt['hideTopicReplies_notify'], $context['num_replies'], $context['num_replies'] != 1 ? $smcFunc['strtolower']($txt['replies']) : $smcFunc['strtolower']($txt['reply'])) . '</div>


And replace "http://www.linkto.img/here/" with the link to the image icon. You probably wanna find a image about 16x16 pixels in size. :)
Title: Re: Hide Topic Replies
Post by: Martingonnella on July 30, 2011, 03:39:30 AM
Your one in a Million!!!! Thanks!!

Ermm...Where is the directory to change the message?

I'll leave ya alone after lol :P
Title: Re: Hide Topic Replies
Post by: Martingonnella on July 30, 2011, 04:07:25 AM
Yeay!!!...I done it...Got an image there too now...Now do I put it on both side of the text mate?

and the change of message too? Thanks..I'll leave ya alone now...I know your a busy guy
Title: Re: Hide Topic Replies
Post by: tyty1234 on July 30, 2011, 05:11:47 AM
Yes it goes on both sides if that's what you want. And if you would like to change the message, you would have to change it in Modifications.english.php.
I have no problem helping you at all haha so I'm glad to help and be here when you need it :)
Title: Re: Hide Topic Replies
Post by: Martingonnella on July 30, 2011, 05:13:47 AM
Both side of what?

Can you do the code thing again as it make it alot easier to understand...Nice One!! :D
Title: Re: Hide Topic Replies
Post by: tyty1234 on July 30, 2011, 06:38:16 AM
Just like this :)


<div class="content" style="text-align: center; color: #0000FF; font-family: Times New Roman; font-size: 12pt;"><img src="http://www.linkto.img/here/" alt="" /> ' . sprintf($txt['hideTopicReplies_notify'], $context['num_replies'], $context['num_replies'] != 1 ? $smcFunc['strtolower']($txt['replies']) : $smcFunc['strtolower']($txt['reply'])) . ' <img src="http://www.linkto.img/here/" alt="" /></div>
Title: Re: Hide Topic Replies
Post by: Martingonnella on July 30, 2011, 06:45:54 AM
Thank you....See you around.

Let me know when you do the "Returning a guest to the same page" Code? So all I have to do is do the manual edits.

Thanks again
Title: Re: Hide Topic Replies
Post by: Martingonnella on July 31, 2011, 06:26:11 PM
Hi Mate,

I finally did all the editing and it looks great.

I even added the pics...Take a look..Those are animated esclamations move left and right which make it stand out. I've had to disable the mod as this would attract many clients.

1. Could you code another option feature made available on "features and option" where it will give a similar message, but would not retrict the pages not shown..mainly give the message.

Your more then welcome to use my message font type and animated picture for your coding.

Thanks

Title: Re: Hide Topic Replies
Post by: Martingonnella on July 31, 2011, 06:28:19 PM
Also do you have any idea why it's given me the one I done a manul edit on and given me the default one too? How do I clean the old font type red one out...see screenshot attached/. Thanks
Title: Re: Hide Topic Replies
Post by: tyty1234 on July 31, 2011, 06:57:57 PM
Did you do the edits to the top and bottom?
Title: Re: Hide Topic Replies
Post by: Martingonnella on July 31, 2011, 06:59:37 PM
Yep..worked miracles...But something happens and now I have TOP being Good and the Bottom Giving me two?
Title: Re: Hide Topic Replies
Post by: tyty1234 on July 31, 2011, 07:09:25 PM
The only thing I can think of is that you duplicated the code on the bottom. Other than that, I'm not sure what could cause the message to appear twice on the bottom. :-\
Title: Re: Hide Topic Replies
Post by: Martingonnella on July 31, 2011, 07:16:36 PM
Hi,

I know this is cheeky, but could take a quick look? I did check myself, but I could have missed something.
Title: Re: Hide Topic Replies
Post by: Sapinho® on August 01, 2011, 02:29:14 AM
thank you tyty1234, =) regards
Title: Re: Hide Topic Replies
Post by: tyty1234 on August 01, 2011, 04:23:02 AM
Quote from: Martingonnella on July 31, 2011, 07:16:36 PM
Hi,

I know this is cheeky, but could take a quick look? I did check myself, but I could have missed something.

Everything looks like its there...maybe clear the forum cache?

Quote from: Sapinho® on August 01, 2011, 02:29:14 AM
thank you tyty1234, =) regards

You're welcome :)
Title: Re: Hide Topic Replies
Post by: moguns on January 14, 2012, 02:05:27 AM
Can you please up date this mod to 2.2?

PLEASE
Title: Re: Hide Topic Replies
Post by: shyrax on September 18, 2012, 12:49:53 AM
Is it possible to apply this mod to a specific membergoup and only on one certain board? ie. I want membergroup "Allies" (which is group 15) to not see the replies on board "Upcoming Events" (which is board 11).
Title: Re: Hide Topic Replies
Post by: lttung on February 25, 2014, 07:36:02 AM
I installed this MOD very long time, now working good with new update (SMF 2.0.7)

But now, i don't need user this mod, when i go to packages, can't uninstall, Hide topic Replies in:  Not Uninstallable (no uninstall section for this version of SMF)

How to uninstall. Thanks.
Title: Re: Hide Topic Replies
Post by: simplebeer on May 11, 2015, 05:53:09 AM
Also no install, is it because tyty1234 is  Inactive ?

Is there another mod like this one? Can't find it  :-[
Title: Re: Hide Topic Replies
Post by: margarett on May 11, 2015, 07:03:36 AM
You have emulate 2.0
How can I install a mod that doesn't work in my SMF version? (http://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version)

edit: same for lttung and his "uninstall" problem.
Title: Re: Hide Topic Replies
Post by: simplebeer on May 11, 2015, 08:54:16 AM
Thanks it works!

Here is the dutch version  ;)

Quote// Hide Topic Replies Mod.
$txt['hideTopicReplies'] = 'Verberg Topic reacties voor gasten';
$txt['hideTopicReplies_notify'] = 'Hallo Gast! De %2$s in topics zijn verborgen voor gasten. Je mist op dit moment %1$d %2$s. Registreer jezelf of login om de %2$s te bekijken.';
Title: Re: Hide Topic Replies
Post by: veggiemate on June 07, 2015, 08:43:38 PM
I'm looking at installing the version 1.7 on my forum which is presently running 2.0.5.

The installation can't be done via the package manager as it appears that the support ended at 2.0.

So I'm looking to do things the manual way.....which is a first for me.

Anyhow, I hit the "Parse" button for 2.0 and was presented with the necessary file/code changes which I've made to the relevant files and am now ready to upload/overwrite via FTP.

However, I'm unsure as to what to do with the db_settings.php file. Could someone please point me in the right direction?

Cheers
Title: Re: Hide Topic Replies
Post by: margarett on June 09, 2015, 05:48:56 AM
Don't go manual... Just emulate version 2.0
How can I install a mod that doesn't work in my SMF version? (http://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version)

If you still want to go with the manual changes, upload db_settings.php to you forum root (where SSI.php is) and run the file via browser, eg: www.yourforum.com/db_settings.php
Title: Re: Hide Topic Replies
Post by: veggiemate on June 09, 2015, 05:58:49 AM
Yes, thanks for the reply. I eventually figured out earlier today that one could install an older mod via the last emulated version for this mod which happened to be 2.0 in this instance. I backed up everything before I attempted this and kept my fingers crossed.....and hey presto, it worked like a charm.  Didn't even have to use my manually modded files after all.

Now that I've done this once, I'll be right to install the next 'older' mod  ;)

Thanks again.

Cheers
Title: Re: Hide Topic Replies
Post by: BillLeeDee on March 25, 2017, 08:27:17 AM
Sorry to revive an old thread, but I have a real need to use this mod (or one that provides similar functionality) but I haven't been able to get this to install or work with 2.0.13. I attempted it under emulation and the install still fails. The only thing I haven't tried is attempting to install it to a clean 2.0.13 install as I would have to shut down my forum to do so.

It appears the developer is MIA and haven't heard back to the email inquiry I sent them. If anybody can provide me with a working solution I would be most grateful.
Title: Re: Hide Topic Replies
Post by: Portugal on March 25, 2017, 02:58:12 PM
Cool mod and very useful, if a bit changed on certain funtions, like to permit select boards to this funtion be active. If that mod gets new update, please let me know.


Thanks

Quote from: radiocitybill on March 25, 2017, 08:27:17 AM
Sorry to revive an old thread, but I have a real need to use this mod (or one that provides similar functionality) but I haven't been able to get this to install or work with 2.0.13. I attempted it under emulation and the install still fails. The only thing I haven't tried is attempting to install it to a clean 2.0.13 install as I would have to shut down my forum to do so.

It appears the developer is MIA and haven't heard back to the email inquiry I sent them. If anybody can provide me with a working solution I would be most grateful.
Title: Re: Hide Topic Replies
Post by: BillLeeDee on March 26, 2017, 05:40:44 AM
I'm actually working with a paid coder to update the mod to work with 2.0.13. Perhaps I'll run this by them to see if it's economically feasible to add that feature.
Title: Re: Hide Topic Replies
Post by: Arantor on March 26, 2017, 06:05:43 AM
Problem is you'd not be legally allowed to redistribute it since there's no licence on the mod granting redistribution so unless your paid coder rewrote it from scratch, you'd not be able to give the mod to people (on the basis that the original code is still copyrighted and no permissive licence)
Title: Re: Hide Topic Replies
Post by: BillLeeDee on March 26, 2017, 03:32:57 PM
I'm not planning on giving it to anyone, I just need its functionality for my forums. If the original developer was still around I would ask them to update it.
Title: Re: Hide Topic Replies
Post by: Arantor on March 26, 2017, 04:32:26 PM
That part is fine. It's the part where you were going to ask your dev to add something, as if you were going to share the result... that part would be a problem.