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.
Works a treat tyty1234.
Many Thanks for the mod :)
SMF 2.0 RC1
your welcome! :D
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.';
Thanks for the translations, Php Coder Turkish. :)
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.
@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. ;)
Nice Mod. Works Like A Charm
Thanks Joe! :D
Thanks tyty1234! I've been looking for this for a long time! Great mod!
Harry
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.';
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.
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.
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.
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?
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?
I sent you a PM with the link. Thanks.
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
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. ;)
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. :)
Thank you. :)
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 ???
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?
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.
Which theme are you currently using, and does it come with its own Modifications.english.php?
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.
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.
That's it tyty1234
Works just fine now.
Many Thanks for a Great Mod :)
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?
Here is my Modifications.english.php file attached
What version of SMF are you using?
1.1.10
Anything in the forum error log?
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?
Well the strings are there, don't know what else could be causing the error...
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.
Great mod.
can search bot see replies of topic?
wont this mod affect the spiders that crawl your contents ?
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
bots should be considered as guests, so they shouldn't be able to see the topic replies.
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..........
I can also see the replies in the two forums in your signature. Is the mod installed properly?
Did you also enable the mod? (AAdmin -> Forum -> Post and Topics -> Topic Settings -> Hide Topic Replies From Guests)
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.................
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
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"?
This one works great but guest can still use the button print, is it possible to disable this to?
Gr
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
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 ::)
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
version 1.3 of the mod should now show the notification in red. :)
thanks for the new version,however, have the same issue, in recent post action show all messages,first post or not
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
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. :)
Version 1.4 of the mod released.
It should now hide replies shown on ?action=recent ;)
thanks for the update :)
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
Oh yeah, you have to re-enable the feature. It's very strange how it does that...
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
What SMF version are you encountering this on? It is very strange how you encountered this error...
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
May I get a link to your forum please?
And in case you want it, I attached the 1.3 version of the mod.
Grazie... saved the 1.3 version.
http://mcgarden.org/forum/index.php
Thanks. I'll go start hunting for the problem, as I think I know what could be causing the empty pages for guests. :)
Grazie mille!
Can anyone running SMF 2.0 RC2 confirm the errors Cal O'Shaw reported? Thanks.
Just wondering if you've had the chance to address this?
Grazie,
Cal
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.
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ör att läsa alla svar i detta ämne så måste du registrera ett konto och logga in på forumet. Det är helt gratis och tar bara några sekunder.<br>
<a href="http://www.XXXXX.se/index.php?action=register">Klicka här för att skapa ett konto på XXXXX.se!</a> Om du redan har ett konto, logga in!';
?>
:-[
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?
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
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
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.
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? :(
Seems a great mod.. Ill give it a try later
Anyone can solve my problem? When I install this mod, action=recent show an error.
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. :)
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
very nice mod.. will wait until the "Missing X" thingy is done :) this is lovely just what I was looking for :)
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.
@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. :)
tyty1234, after put that Recent.php file, nothing really changed. Guests can freely browse the forum. :'(
Can you provide a link to your forum? Did it fix the error at least?
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 :)
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?
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 :*
Nice Mod
Please update it for SMF 2.0RC3 ;)
Thanks
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
hi i installed this mod on smf2.0rc3 is not workin i can see n read the replies from it wich is not good :(
On my RC3 works it.
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>
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á 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á 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>
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.
Does it works on SMF 2.0 RC4? :)
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.
Care to share the edits? I plan on using this when i upgrade to RC4 next month.
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.
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.
I got this working since then :)
hi, thanks for mod!!
gives a problem with google or other bot????
thanks
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...
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...
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
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/).
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 ñ_ñ
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
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
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
I updated, and my problem ("show posts") is gone.
Thank you! That was quick, indeed.
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
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?
Hello,
It's at http://www.bbs.protonic.com
Thanks. Let me know
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. :)
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 ;)
You can do a manual edit for that if you'd like.
// Get all the messages...
// 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.
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!!! ;)
Haha that's okay. Here's what you do.
<div class="content alert" style="text-align: center;">
<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. :)
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?
Display.template.php located in Themes/default :)
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?
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 =/
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?
I'll see what I can do about it :)
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.
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%.
Thanks buddy. All Sorted. Thanks alot. You've probably been one of the helpful person on this site to be honest.
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
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. :)
Your one in a Million!!!! Thanks!!
Ermm...Where is the directory to change the message?
I'll leave ya alone after lol :P
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
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 :)
Both side of what?
Can you do the code thing again as it make it alot easier to understand...Nice One!! :D
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>
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
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
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
Did you do the edits to the top and bottom?
Yep..worked miracles...But something happens and now I have TOP being Good and the Bottom Giving me two?
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. :-\
Hi,
I know this is cheeky, but could take a quick look? I did check myself, but I could have missed something.
thank you tyty1234, =) regards
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 :)
Can you please up date this mod to 2.2?
PLEASE
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).
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.
Also no install, is it because tyty1234 is Inactive ?
Is there another mod like this one? Can't find it :-[
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.
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.';
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
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
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
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.
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.
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.
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)
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.
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.