Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: ^HeRaCLeS^ on July 17, 2011, 09:43:31 PM

Title: Topic Private
Post by: ^HeRaCLeS^ on July 17, 2011, 09:43:31 PM
Link to the mod (https://custom.simplemachines.org/index.php?mod=3094)

Topic Private 1.0

(http://www.smfpersonal.net/Adkmods/logo.png) (http://www.smfpersonal.net/)

(http://www.smfpersonal.net/famfamfam/user.png) Autor/Author:
     ^HeRaCLeS^ (http://www.smfpersonal.net/profiles/heracles-u259.html)
    
(http://www.smfpersonal.net/famfamfam/page_white_flash.png) Características:

     Esta aplicación nos permitira agregar una opcion en los temas, para convertirlos en privados.
     Características:
          Activar/Desactivar el mod.
         Ingresar las id de los foros donde se quiere activar.
     En caso de no ingresar ninguna id, se activara en todos los foros.

     Si se pone el tema como privado solo lo podran ver los usuarios registrados,
     mostrando a los visitantes una nueva pagina en lugar del tema.
    
Las opciones de este mod se encuentran en:
Admin -> Modificaciones

Copyright 2011 by SMF Personal @ visita www.smfpersonal.net (http://www.smfpersonal.net) para soporte oficial.

Si tu quieres ayudarnos, por favor visita nuestra seccion de contribuciones: Contribuir (http://www.smfpersonal.net/about.html;sa=contritube-spanish)



(http://www.smfpersonal.net/famfamfam/page_white_flash.png) Features:

     This application will allow us to add an option in the topics, to make them private.
     Features:
          Enable/Disable the mod.
          Enter the id of the forums where you want to enable.
     If you do not enter any id, was activated in all the forums.

     If put the topic in private, only what users will see,
     taking visitors a new page instead of the topic.

The options of this mod are in:
Admin -> Modification Settings

Copyright 2011 by SMF Personal @ visit www.smfpersonal.net (http://www.smfpersonal.net) for official support.

If you want help, please visit our contributions section: Contribute (http://www.smfpersonal.net/about.html;sa=contribute)




(http://www.smfpersonal.net/Themes/default/images/post/topicsolved.gif) Idiomas/Languages:

o English
o English-utf8
o Spanish_es
o Spanish_es-utf8
o Spanish_latin
o Spanish_latin-utf8

(http://www.smfpersonal.net/Themes/default/images/post/topicsolved.gif) Compatibilidad/Compatibility:
     SMF 2.0.x

(http://www.smfpersonal.net/Themes/default/images/post/topicsolved.gif) Desarrollador/Developer:
     Adk-Team (http://www.smfpersonal.net)
Title: Re: Adk Topic Private
Post by: Slug1 on July 17, 2011, 11:40:57 PM
Interested in this Mod.

I'm using the SMF Default Theme - Curve as the theme for my forum and the Test Failed was visible for the: /Themes/default/Display.template.php    Test failed

Possible to upload that file for ya to take a look at since I loaded the Mod anyway?

Also... in the settings:

QuoteEnter the id of the forums where they will be active:
The id must be separated by commas (,)
Ej: 1,2,32

How do we determine the ID for each of the boards in the forum?
Title: Re: Adk Topic Private
Post by: Adk-Team on July 18, 2011, 12:05:05 AM
Not understanding the problem well
Unable to install?

QuoteHow do we determine the ID for each of the boards in the forum?
example:
http://www.simplemachines.org/community/index.php?board=59.0

ID = 59.
Id forums and not id of topics
Title: Re: Adk Topic Private
Post by: Slug1 on July 18, 2011, 12:38:39 AM
Quote from: Adk-Team on July 18, 2011, 12:05:05 AM
Not understanding the problem well
Unable to install?

When I was ready to install the Mod, I got the red "warning" and then looking down the list of files that the Mod will effect, the display.template.php was the file that failed the test.

I loaded it anyway.

If I upload the file for you, is it possible to find what is wrong?



QuoteHow do we determine the ID for each of the boards in the forum?

example:
http://www.simplemachines.org/community/index.php?board=59.0

ID = 59.
Id forums and not id of topics

OK, thanks on this part... I'll check it out.
Title: Re: Adk Topic Private
Post by: Adk-Team on July 18, 2011, 01:49:03 AM
QuoteIf I upload the file for you, is it possible to find what is wrong?
yes, attach the file

QuoteOK, thanks on this part... I'll check it out.
If you do not put anything there, worked in all forums.
Title: Re: Adk Topic Private
Post by: vladok on July 18, 2011, 07:22:40 AM
Mode "Put the topic as private" is not disabled after you edit the old topic and save it.
RC5
Title: Re: Adk Topic Private
Post by: Adk-Team on July 18, 2011, 09:32:19 AM
Quote from: vladok on July 18, 2011, 07:22:40 AM
Mode "Put the topic as private" is not disabled after you edit the old topic and save it.
RC5

url of the topic Please
Title: Re: Adk Topic Private
Post by: vladok on July 18, 2011, 03:45:55 PM
http://www.newsdozor.ru/index.php?topic=87793.0

I activated the mod. Edited topic, using "Put the topic as private" option for the topic. All OK.
Guest did not see the contents of the topic...
Then tried to disable this option in the topic. Can not turn off.  :(
Title: Re: Adk Topic Private
Post by: Adk-Team on July 18, 2011, 07:02:09 PM
Sorry!!  I understood that the mod is not activated..

When editing the first post does not seem an option to enable or disable?

The error log reports something?
Title: Re: Adk Topic Private
Post by: Adk-Team on July 18, 2011, 08:17:21 PM
url and user demo please!
Title: Re: Adk Topic Private
Post by: Adk-Team on July 18, 2011, 09:27:38 PM
user demo please!
to test
Title: Re: Adk Topic Private
Post by: Adk-Team on July 18, 2011, 11:58:00 PM
Test ..

Search in file .sources/post.php:

if (!empty($_REQUEST['private']))
{
$new = (int) $_POST['private'];
$smcFunc['db_query']('','


Replace with:

if (isset($_REQUEST['private']))
{
$new = (int) $_POST['private'];
$smcFunc['db_query']('','
Title: Re: Adk Topic Private
Post by: Adk-Team on July 19, 2011, 12:19:24 AM
Perfect!

Thank you both for reporting the problem!  ;)
Title: Re: Adk Topic Private
Post by: watchhorse on July 19, 2011, 06:44:11 AM
Are there permissions by membergroup?
Can it be that only the moderators can make it private?
Title: Re: Adk Topic Private
Post by: Adk-Team on July 19, 2011, 07:32:29 AM
It is designed for the next version.

For now you can not.
Title: Re: Adk Topic Private
Post by: watchhorse on July 19, 2011, 11:12:36 AM
Thanks, then I'll wait
Title: Re: Adk Topic Private
Post by: MaXiForum.cz on July 19, 2011, 01:47:30 PM
Nice idea ;)
Title: Re: Adk Topic Private
Post by: Adk-Team on July 20, 2011, 03:17:49 PM
 ???
attach file Post.template.php

At what point the error? In what action?
Title: Re: Adk Topic Private
Post by: Grosraisin on July 20, 2011, 04:00:03 PM
Its not working for me: /

Yet its installation without a problem I set the forum to private, I created a topic and al I check box to put it in private but if I connect with the tale of the test subject is clearly visible.

http://prez-me-all.redheberg.com/elevenn/

user: Dev
mdp: dev

Thank you for your help, super Mod. You put an option to directly set the subject in private? And also to hide the name of the index on newly created?
Title: Re: Adk Topic Private
Post by: Adk-Team on July 20, 2011, 04:06:18 PM
Grosraisin

I do not understand the problem.

As a visitor: active mod
As a user : inactive mod
Works well.
Title: Re: Adk Topic Private
Post by: Grosraisin on July 20, 2011, 04:14:51 PM
Oupss

I misunderstood the operation of mod xD I thought it was for users.

You do not know a mod that allows you to create the topic readable by the creator and certain group member. I know that one exists in smf smf 2.0 1.1.xx but I found none.
Title: Re: Adk Topic Private
Post by: Adk-Team on July 20, 2011, 04:21:41 PM
mmm nop.

The next version will have permissions for groups.
Title: Re: Adk Topic Private
Post by: Grosraisin on July 20, 2011, 04:26:41 PM
In case I will encourage you to leave as soon as possible :D

Good luck.

I have a small question: Your mod will he hide the topics in the forum, not just block access to the subject?
Title: Re: Adk Topic Private
Post by: Adk-Team on July 20, 2011, 05:38:39 PM
QuoteI have a small question: Your mod will he hide the topics in the forum, not just block access to the subject?

No, only  blocks access
Title: Re: Adk Topic Private
Post by: Grosraisin on July 20, 2011, 06:06:42 PM
Too bad so I'll have to put the hand in the code.

Thank you for your response.
Title: Re: Adk Topic Private
Post by: anakmacan on July 21, 2011, 12:33:47 PM
How to specifically make the topic open not for all users but only buddies ?
Title: Re: Adk Topic Private
Post by: watchhorse on August 13, 2011, 08:44:05 AM
Quote from: Adk-Team on July 20, 2011, 04:21:41 PM
The next version will have permissions for groups.

Still waiting  ;D
Title: Re: Adk Topic Private
Post by: Slug1 on August 13, 2011, 11:53:51 AM
Quote from: Adk-Team on July 20, 2011, 05:38:39 PM
QuoteI have a small question: Your mod will he hide the topics in the forum, not just block access to the subject?

No, only  blocks access

Is there a plan for making topics in a specified board hidden from other members and only the person starting a thread and only the board leadership or only designated leadership member-groups, can see the thread(s)? That way, private discussion can take place.
Title: Re: Adk Topic Private
Post by: butchs on August 14, 2011, 07:04:10 PM
Interesting mod.
Title: Re: Adk Topic Private
Post by: watchhorse on September 03, 2011, 03:20:24 PM
Is there a way to place an icon for other members to see that a topic is private?
Title: Re: Adk Topic Private
Post by: Adk-Team on September 22, 2011, 11:24:32 AM
Updated to SMF 2.0.1  ;)

Regards enik...
Title: Re: Adk Topic Private
Post by: Eclipse16V on October 05, 2011, 05:47:35 AM
Thanks for this nice Mod
Title: Re: Adk Topic Private
Post by: watchhorse on November 16, 2011, 02:01:55 PM
Quote from: watchhorse on September 03, 2011, 03:20:24 PM
Is there a way to place an icon for other members to see that a topic is private?

Up
Title: Re: Adk Topic Private
Post by: anakmacan on November 24, 2011, 11:05:48 PM
Just an idea, the private option could be better if it's set to specifically open to Buddies Only.
Title: Re: Adk Topic Private
Post by: Adk-Team on January 20, 2012, 01:44:43 PM
Updated to 2.0.2
Title: Re: Adk Topic Private
Post by: babalola olasehinde on February 10, 2012, 09:11:52 PM
pls i installed this mod on my site via smf 2.0 and i tick the box to activate the box but i did not select any id so as to see if all members will be unable to view the topic but to my surprise they are still able to see it. What do i do?
Title: Re: Adk Topic Private
Post by: impreza on February 19, 2012, 01:24:04 PM
Useful, another addition from you to me. thanks
Title: Re: Adk Topic Private
Post by: Michael Pfaff on March 01, 2012, 03:26:17 PM
Hiya. I'm looking for a mod similar to this one. See my mod request here: http://www.simplemachines.org/community/index.php?topic=468406.0

I'm willing to donate to this mods creator if you add the ability to invite only specific members to the topic.

Thanks!
Title: Re: Adk Topic Private
Post by: Iomega0318 on April 29, 2012, 01:17:00 AM
Just wondering, is there an option to only allow certain groups to use this button yet?
I want to use this mod but prefer only certain members have access to it.
Title: Re: Adk Topic Private
Post by: OilLeak on May 01, 2012, 06:45:51 AM
I'm a little confused, maybe even stupid (LOL), but WHO is this private FROM and WHO can actually read it? I'm not seeing permission settings?

OK, went back through EVERYTHING, and finally realized after seeing the screenshots, that this mod is for public forums that allow guest, and that this mod will make a topic private in the sense that no GUEST can see it, but ANY registered user can see it. I agree with a previous poster, this should really be GROUPS based, yes?  ???
Title: Re: Adk Topic Private
Post by: Iomega0318 on May 04, 2012, 03:01:38 PM
I was wondering if anyone can help me with an error.. I am using a drafts mod and I am getting this error:
Drafts (http://custom.simplemachines.org/mods/index.php?mod=1264)

Undefined index: private
File: /***/Themes/default/Drafts.template.php (main sub template - eval?)
Line: 250


When looking into the file line 250 doesn't even exist, the reason I am asking for help here is that the drafts file is attempting to "save" the private topic information but can't.. Is there any way to exclude it from checking?
Title: Re: Adk Topic Private
Post by: Iomega0318 on May 29, 2012, 01:40:08 PM
Ok got an update on the error, it wasn't related to the drafts mod at all but it was hiding the real error..
http://www.uofreeshards.net/index.php?action=post2;start=0;board=30
Undefined index: private
File: /***/Themes/default/Post.template.php (main sub template - eval?)
Line: 239
Title: Re: Adk Topic Private
Post by: Adk-Team on May 29, 2012, 06:49:00 PM
The error may be because the file "Drafts.template.php" has no modifications of the "private"

attach the file "Drafts.template.php"
Title: Re: Adk Topic Private
Post by: Iomega0318 on May 29, 2012, 08:26:22 PM
I uninstalled the drafts mod, now it's an error on the post template.
Title: Re: Adk Topic Private
Post by: Adk-Team on July 15, 2012, 02:59:42 PM
please show the error
Title: Re: Adk Topic Private
Post by: FireDitto on January 16, 2013, 10:18:30 AM
Quote from: Adk-Team on July 20, 2011, 04:21:41 PM
mmm nop.

The next version will have permissions for groups.

I was wondering if there was any word on this? I'd love to be able to privatise on a per-membergroup basis!

Thank you :D
Title: Re: Adk Topic Private
Post by: Skaty on January 16, 2013, 11:03:51 AM
hi, can i entegrate this mod with member awards (http://www.simplemachines.org/community/index.php?topic=114701.0). i wanna make prive posts for member who received some awards, maybe particularly the award i choose.


it would be great feature if it is easy to do.
Title: Re: Adk Topic Private
Post by: Skaty on January 16, 2013, 01:38:10 PM
Quote from: Iomega0318 on May 04, 2012, 03:01:38 PM
I was wondering if anyone can help me with an error.. I am using a drafts mod and I am getting this error:
Drafts (http://custom.simplemachines.org/mods/index.php?mod=1264)

Undefined index: private
File: /***/Themes/default/Drafts.template.php (main sub template - eval?)
Line: 250


When looking into the file line 250 doesn't even exist, the reason I am asking for help here is that the drafts file is attempting to "save" the private topic information but can't.. Is there any way to exclude it from checking?

you have to "turn off template evaluation" from server settings. and then you will se the actual file and line for this error.

Quote from: FireDitto on January 16, 2013, 10:18:30 AM
Quote from: Adk-Team on July 20, 2011, 04:21:41 PM
mmm nop.

The next version will have permissions for groups.

I was wondering if there was any word on this? I'd love to be able to privatise on a per-membergroup basis!

Thank you :D

i'm waiting for this too :)
Title: Re: Adk Topic Private
Post by: Adk-Team on February 08, 2013, 08:15:35 PM
SMF 2.0.4 updated  ;)

Regards enik...
Title: Re: Adk Topic Private
Post by: Apllicmz on June 30, 2013, 12:26:31 PM
when Update dont forget portuguese files

Title: Re: Adk Topic Private
Post by: cereleus on July 12, 2013, 08:12:46 PM
/forum-kurallari-b2.0/     
this is my page
How do I setup Id
Title: Re: Adk Topic Private
Post by: Adk-Team on September 14, 2013, 02:48:37 PM
Admin -> Modificaciones
Enter the id of the forums where you want to enable.
Title: Re: Adk Topic Private
Post by: Rozayz on September 20, 2013, 05:01:35 PM
Hey there,

Great mod, operates almost exactly how I want it to. I have it enabled and it's working successfully.

I have one question; are you able to edit my post.php so this sets topics to private by default in the boards I have the mod activated for?

I also wonder when you will release new version so only people with a certain membergroup will have access.

post.php attached ~


Thanks.
Title: Re: Adk Topic Private
Post by: Dzonny on September 20, 2013, 06:10:34 PM
Just a suggestion - it would be great if admins can choose who should have access to such topics:
- only registered members
- members of some specific membergroup (as Rozayz suggested above)
- members with age of 18+
- only male/female members

Just thought that it would be good to mention :)

Anyway, great mod, thanks for this! :)
Title: Re: Adk Topic Private
Post by: Adk-Team on September 20, 2013, 10:14:12 PM
We are working to update all the mods.
Any suggestions will be debated and tent in mind! ;)

Rozayz You want private by default all?
Title: Re: Adk Topic Private
Post by: Arantor on September 20, 2013, 10:20:05 PM
There's only one small problem - or a large one depending on how you look at it.

Topics marked private are only protected from the main topic view. They're not protected from being viewed by the action=recent page, nor search results, nor RSS feeds, nor SSI. Any topics that are private are still visible to anyone who would otherwise be able to see the board in question through any of those methods.
Title: Re: Adk Topic Private
Post by: ^HeRaCLeS^ on September 20, 2013, 10:33:09 PM
Very good point!

It's something that was solved in the next version!

Thanks ;)