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] Añadir tag [Solucionado] a los titulos de temas.


Board:

Tutoriales

Topic:

[Tip] Añadir tag [Solucionado] a los titulos de temas.


Description:

Foro de tutoriales para smf

Author Topic: [Tip] Añadir tag [Solucionado] a los titulos de temas.  (Read 1144 times)

0 Members and 1 Guest are viewing this topic.

[Tip] Añadir tag [Solucionado] a los titulos de temas.

[Tip] Añadir tag [Solucionado] a los titulos de temas.
« on: September 06, 2011, 01:48:51 AM »
Añadir tag [Solucionado] a los titulos de temas

Este tip requiere tener instalado el mod Topic Solved

Con este pequeño tip pretendo explicar la forma de agregarle un tag [Solucionado] a la lista de temas.
Para ello vamos a modificar 2 archivos mas los archivos de idioma que se tengan en el sitio.
    Archivos a modificar:
    • MessageIndex.php
    • MessageIndex.template.php
    • Modifications.english.php
    • Modifications.spanish_latin/_es.php



En el archivo MessageIndex.php
Buscar:
Code: [Select]
$result = $smcFunc['db_query']('substring', '
SELECT
t.id_topic, t.num_replies, t.locked, t.num_views, t.is_sticky, t.id_poll, t.id_previous_board,
Reemplazar con:
Code: [Select]
$result = $smcFunc['db_query']('substring', '
SELECT
t.is_solved, t.id_topic, t.num_replies, t.locked, t.num_views, t.is_sticky, t.id_poll, t.id_previous_board,

Buscar:
Code: [Select]
// 'Print' the topic info.
$context['topics'][$row['id_topic']] = array(
'id' => $row['id_topic'],
Reemplazar con:
Code: [Select]
// 'Print' the topic info.
$context['topics'][$row['id_topic']] = array(
'solved' => $row['is_solved'],
'solved_link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">'.$txt['TSolved'].'</a>',
'id' => $row['id_topic'],




En el archivo MessageIndex.template.php
Buscar:
Code: [Select]
<td class="subject ', $alternate_class, '">
<div ', (!empty($topic['quick_mod']['modify']) ? 'id="topic_' . $topic['first_post']['id'] . '" onmouseout="mouse_on_div = 0;" onmouseover="mouse_on_div = 1;" ondblclick="modify_topic(\'' . $topic['id'] . '\', \'' . $topic['first_post']['id'] . '\');"' : ''), '>
', $topic['is_sticky'] ? '<strong>' : '', '<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], (!$context['can_approve_posts'] && !$topic['approved'] ? '&nbsp;<em>(' . $txt['awaiting_approval'] . ')</em>' : ''), '</span>', $topic['is_sticky'] ? '</strong>' : '';

Reemplazar con:
Code: [Select]
<td class="subject ', $alternate_class, '">
<div ', (!empty($topic['quick_mod']['modify']) ? 'id="topic_' . $topic['first_post']['id'] . '" onmouseout="mouse_on_div = 0;" onmouseover="mouse_on_div = 1;" ondblclick="modify_topic(\'' . $topic['id'] . '\', \'' . $topic['first_post']['id'] . '\');"' : ''), '>
', $topic['is_sticky'] ? '<strong>' : '', '<span id="msg_' . $topic['first_post']['id'] . '">'.(!empty($topic['solved']) ? $topic['solved_link'] : '').' ', $topic['first_post']['link'], (!$context['can_approve_posts'] && !$topic['approved'] ? '&nbsp;<em>(' . $txt['awaiting_approval'] . ')</em>' : ''), '</span>', $topic['is_sticky'] ? '</strong>' : '';





En el archivos Modifications.english.php
Añadimos al final:
Code: [Select]
$txt['TSolved'] = '[ Solved ]';
En el archivos Modifications.spanish_latin/_es.php
Añadimos al final:
Code: [Select]
$txt['TSolved'] = '[ Solucionado ]';



Antes

Despues





Bueno eso es todo, espero que les guste y sirva.

Saludos ;)

^HeRaCLeS^

  • *
  • Posts: 7607
  • ♥ Valen ♥



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

Atte. SMF Personal

Tags

smfpersonal - smf - google - com - - tags -
 


 
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