News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Topic Private

Started by ^HeRaCLeS^, July 17, 2011, 09:43:31 PM

Previous topic - Next topic

^HeRaCLeS^

Link to the mod

Topic Private 1.0


Autor/Author:
     ^HeRaCLeS^
    
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 para soporte oficial.

Si tu quieres ayudarnos, por favor visita nuestra seccion de contribuciones: Contribuir



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 for official support.

If you want help, please visit our contributions section: Contribute




Idiomas/Languages:

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

Compatibilidad/Compatibility:
     SMF 2.0.x

Desarrollador/Developer:
     Adk-Team
^HeRaCLeS^
*¤×• Ni te molestes en enviarme un Mp porque el soporte lo doy solo por el foro •×¤*


SMFPersonal

Slug1

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?
Slug1--out

~My blessings are as many as the miles I marched all these years~

Adk-Team

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

Slug1

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.
Slug1--out

~My blessings are as many as the miles I marched all these years~

Adk-Team

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.

vladok

Mode "Put the topic as private" is not disabled after you edit the old topic and save it.
RC5

Adk-Team

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

vladok

#7
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.  :(

Adk-Team

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?

Adk-Team

url and user demo please!

Adk-Team

user demo please!
to test

Adk-Team

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']('','

Adk-Team

Perfect!

Thank you both for reporting the problem!  ;)

watchhorse

Are there permissions by membergroup?
Can it be that only the moderators can make it private?
Wij zoeken diergerelateerde fora ter overname.
Pb gerust als je geen tijd of zin meer hebt om uw forum te onderhouden.

Adk-Team

It is designed for the next version.

For now you can not.

watchhorse

Wij zoeken diergerelateerde fora ter overname.
Pb gerust als je geen tijd of zin meer hebt om uw forum te onderhouden.

MaXiForum.cz


Adk-Team

 ???
attach file Post.template.php

At what point the error? In what action?

Grosraisin

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?

SMF / Le Partage et l'Entraide
SMF / Sharing and Caring


Mes modifications de Mods / Templates



Adk-Team

Grosraisin

I do not understand the problem.

As a visitor: active mod
As a user : inactive mod
Works well.

Advertisement: