Mod Adk Portal (2.1.1)

Adk portal is a portal integrated to SMF, with multiple extensions and features.
The portal is aimed at simple and intuitive to the Administrator.
It has all the characteristics of portal, in addition to having a great set of downloads, system of internal pages, etc.

Mod Adk Seo (3.0)

Adk Seo is an internal system of SMF to improve your ranking.
It has powerful features to appear on the top of major search engines.
With this product, you can change your urls, choose your format, encouraging social activity on your site, place their own sitemaps, etc.
Mod Adk Blog (3.0)

Adk blog is an internal system of SMF to help encourage business users.
This product will create a space where your users can use as your own blog, creating categories, entries, and managing your comments.


[TIP] Agregar un mensaje al crear tema.


Board:

Tutoriales

Topic:

[TIP] Agregar un mensaje al crear tema.


Description:

Foro de tutoriales para smf

Author Topic: [TIP] Agregar un mensaje al crear tema.  (Read 1531 times)

0 Members and 1 Guest are viewing this topic.

[TIP] Agregar un mensaje al crear tema.

[TIP] Agregar un mensaje al crear tema.
« on: December 16, 2010, 11:37:20 AM »
Agregar un mensaje al crear nuevos temas

Con este pequeño tip pretendo explicar como podemos poner un mensaje al crear un nuevo tema en nuestro foro,
con el podremos mostrar la forma correcta de hacer un post o lo que nosotros creamos conveniente.

El mensaje solo aparecerá cuando un usuario cree un nuevo tema. (No en respuestas o modificaciones)

Necesitaremos modificar solamente dos archivos
  • Post.template.php
  • index.tuidioma.php


Modificacion en Post.template.php

Buscar:
Code: [Select]
// Now show the subject box for this post.

Agregar abajo:
Code: [Select]
// Now show the subject box for this post.
if ($context['page_title'] == $txt['start_new_topic'])
{
echo '
<div class="errorbox">
<div align="center">
<strong>
'.$txt['Titulo_reglas'].'
</strong>
</div>
<br />
<ul>
<li>'.$txt['regla_1'].'</li>
<li>'.$txt['regla_2'].'</li>
<li>'.$txt['regla_3'].'</li>
<li>'.$txt['regla_4'].'</li>
<li>'.$txt['regla_5'].'</li>
<li>'.$txt['regla_6'].'</li>
</ul>
</div>';
}

Modificacion en index.tuidioma.php
Buscar:
Code: [Select]
?>
Agregar antes:
Code: [Select]
$txt['Titulo_reglas'] = 'Pasos para recibir un buen soporte';
$txt['regla_1'] = 'Escribir un titulo descriptivo a tu problema. (No usar "Ayuda" "Urgente" etc...)';
$txt['regla_2'] = 'No escribir en Mayúsculas. (A nadie le gusta que le griten)';
$txt['regla_3'] = 'Escribir la mayor cantidad de detalles del problema. (Imágenes ayudaran)';
$txt['regla_4'] = 'Escribir la url de tu sitio.';
$txt['regla_5'] = 'Escribir la versión de smf que usas.';
$txt['regla_6'] = 'Ser paciente para la respuesta.';



Bueno en mi ejemplo lo use para poner algunas reglas para hacer un buen post, pero se puede poner lo que nosotros queramos.





Edito:
      Bueno aca añado el  codigo con el cual se podra seleccionar en que foros queremos que se vea el mensaje.

Code: [Select]
$array = array(1,3); //Todas las id de los foros

global $board;
   // Now show the subject box for this post.
if(in_array($board,$array))
{
   if ($context['page_title'] == $txt['start_new_topic'])
   {
   echo '
   <div class="errorbox">
      <div align="center">
         <strong>
            '.$txt['Titulo_reglas'].'
         </strong>
      </div>
      <br />
      <ul>
         <li>'.$txt['regla_1'].'</li>
         <li>'.$txt['regla_2'].'</li>
         <li>'.$txt['regla_3'].'</li>
         <li>'.$txt['regla_4'].'</li>
         <li>'.$txt['regla_5'].'</li>
         <li>'.$txt['regla_6'].'</li>
      </ul>
   </div>';
   }
}


Solo hay que modificar array(1,3) por las id de los foros, siempre separando las id con comas (,)


Bueno esto es todo, espero que le sea de utilidad a alguien.

Saludos!!

^HeRaCLeS^

  • *
  • Posts: 7607
  • ♥ Valen ♥



Sorry visitor. To access the SMF Personal answers, you need to Register or Login.

Atte. SMF Personal

Tags

post - aviso - crear - smf - poner - -
 


 
Application Parser To Mod

It is a system developed by SMF Personal, similar to parse smf, but with the difference that it not only show us the steps to install mods but also show us the steps to uninstall and update mods.
The mods that can be analyzed are obviously those who are raised in SMF Personal.
Section Mods

In this section you will find all mods done by the staff and users of SMF Personal.
The mods are displayed in a simple and easy to read.
Section Tutorials

In this section you will find all the tutorials made by our staff and users of SMF Personal.
The tutorials are displayed in a simple and easy to read.

SMF 2.0.2 | SMF © 2011, Simple Machines | Adk Portal 2.1.1 © SMF personal  & Adk Seo 3.0
This site is not affiliated with or endorsed by Simple Machines