collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 462
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

Welcome to SimplePortal.net! You can download SimplePortal from the Downloads Area!

Author Topic: Editar Temas recientes de Simpleportal  (Read 12584 times)

0 Members and 1 Guest are viewing this topic.

Offline isacapo_888

  • Semi Newbie
  • *
  • Posts: 8
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Editar Temas recientes de Simpleportal
« on: October 30, 2010, 04:05:14 AM »
Hola gente!! Busque por todos lados pero no encuentro como hacerlo!! Quiero modificar la tabla de temas recientes de simple portal!!
En mi simpleportal aparece los temas recientes de la imagen de arriba y quiero modificarlo para que quede como el de abajo!!


Foro: 2.0RC3
Web: preguntanos.site40.net
Adjunto portalblock.php por las dudas.
Gracias!! :nervous-happy:

Offline 130860

  • Super Handsome Language Coordinator
  • Board Moderators
  • *
  • Posts: 1769
  • Gender: Male
  • You and I are not the same class of pirate!
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Editar Temas recientes de Simpleportal
« Reply #1 on: October 30, 2010, 08:14:49 PM »
dame un poco de tiempo para hacer la modificación, por el momento no tengo mucho tiempo libre.

Offline isacapo_888

  • Semi Newbie
  • *
  • Posts: 8
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Editar Temas recientes de Simpleportal
« Reply #2 on: October 30, 2010, 08:36:17 PM »
Gracias  130860! Te espero entonces!! :D

Offline isacapo_888

  • Semi Newbie
  • *
  • Posts: 8
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Editar Temas recientes de Simpleportal
« Reply #3 on: November 01, 2010, 11:38:25 PM »
130860 te molesto de vuelta!! Yo el diseño lo saque del archivo sitemap del componente de la pagina de simplemachine!! la verdad que nose como modificarlo pero lo saque de la parte donde dice topics y te muestra los ultimos! te adjunto el archivo del sitemap por si te facilita algo!!
Gracias de nuevo!

Offline 130860

  • Super Handsome Language Coordinator
  • Board Moderators
  • *
  • Posts: 1769
  • Gender: Male
  • You and I are not the same class of pirate!
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Editar Temas recientes de Simpleportal
« Reply #4 on: November 03, 2010, 11:30:22 AM »
ok en tu archivo  /Sources/PortalBlocks.php  busca esto


Code: (php) [Select]
elseif ($display == 'full')
{
echo '
<table class="sp_fullwidth">';

foreach ($items as $item)
echo '
<tr>
<td class="sp_recent_icon sp_center">
', sp_embed_image(empty($parameters['type']) ? 'post' : 'topic'), '
</td>
<td class="sp_recent_subject">
<a href="', $item['href'], '">', $item['subject'], '</a>
', $item['new'] ? '' : '<a href="' . $scripturl . '?topic=' . $item['topic'] . '.msg' . $item['new_from'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt['new'] . '" border="0" /></a>', '<br />[', $item['board']['link'], ']
</td>
<td class="sp_recent_info sp_right">
', $item['poster']['link'], '<br />', $item['time'], '
</td>
</tr>';

echo '
</table>';
}


y reemplazalo con esto:

Code: (php) [Select]
elseif ($display == 'full')
{
echo '
<table class="sp_fullwidth">
<tr class="catbg">
<td>Temas</td>
<td>Iniciado por</td>
<td>Vistas</td>
<td>Respuestas</td>
</tr>

';

foreach ($items as $item)
echo '
<tr class="windowbg">
<td><a href="', $item['href'], '">', $item['subject'], '</a></td>
<td>', $item['poster']['link'], '</td>
<td>', $item['views'], '</td>
<td>', $item['replies'], '</td>
</tr>';

echo '
</table>';
}



dos cosas,   esto solo funcionara para el modo "full"  o completo de el bloque y solo funcionara para los topics(temas)  no funcionara para los post (mensajes) ya que los post no tienen ni cantidad de vistas ni de rspuestas

Offline isacapo_888

  • Semi Newbie
  • *
  • Posts: 8
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Editar Temas recientes de Simpleportal
« Reply #5 on: November 03, 2010, 02:00:51 PM »
130860 Diossssss!! Sos el mas grosooooooooooooo!!!!!!! No se como agradecerte!! Mil gracias che! de verdad me salvaste!!!! Sos un capo!!!!!! ;D

Offline exterminator

  • Semi Newbie
  • *
  • Posts: 21
  • SMF Version: 1.1.10
  • SP Version: 2.3.1
Re: Editar Temas recientes de Simpleportal
« Reply #6 on: December 18, 2010, 01:18:20 AM »
Y si quisiera que solo me muestre los titulos de los temas recientes y nada mas solito los titulos

Offline 130860

  • Super Handsome Language Coordinator
  • Board Moderators
  • *
  • Posts: 1769
  • Gender: Male
  • You and I are not the same class of pirate!
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Editar Temas recientes de Simpleportal
« Reply #7 on: December 18, 2010, 09:05:54 AM »
es decir, sin los iconos ni las respuestas?

Code: [Select]
<a href="', $item['href'], '">', $item['subject'], '</a>


Offline exterminator

  • Semi Newbie
  • *
  • Posts: 21
  • SMF Version: 1.1.10
  • SP Version: 2.3.1
Re: Editar Temas recientes de Simpleportal
« Reply #8 on: December 18, 2010, 10:53:33 AM »
es decir, sin los iconos ni las respuestas?

Code: [Select]
<a href="', $item['href'], '">', $item['subject'], '</a>
ni la fecha que sale abajo de cada titulo del tema
« Last Edit: December 18, 2010, 10:56:36 AM by exterminator »

Offline 130860

  • Super Handsome Language Coordinator
  • Board Moderators
  • *
  • Posts: 1769
  • Gender: Male
  • You and I are not the same class of pirate!
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Editar Temas recientes de Simpleportal
« Reply #9 on: December 18, 2010, 07:07:22 PM »
ya probaste con lo que te puse?  hace exactamente lo que tu pides.

Offline 130860

  • Super Handsome Language Coordinator
  • Board Moderators
  • *
  • Posts: 1769
  • Gender: Male
  • You and I are not the same class of pirate!
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Editar Temas recientes de Simpleportal
« Reply #10 on: January 01, 2011, 02:39:53 PM »
para el icono  solamente tienes que poner $item['icon']  en donde tu queiras que aparezca el icono,   dime donde queires que aparezca el icono?  como una nueva celda?

es algo complicado poner el nombre del ultimo usuario que respondió,  ya que en si, el campo "iniciado por"  te debe de aparecer el nombre de la ultima persona en lugar de el nombre de quien creo ese tema.


Offline red_ant

  • Semi Newbie
  • *
  • Posts: 11
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Editar Temas recientes de Simpleportal
« Reply #11 on: January 02, 2011, 02:58:52 PM »
Si, me gustaría que aparezca el icono respectivo de cada tema.. en una celda aparte estaría bueno también..

otra cosa que he visto es que la etiqueta de ''nuevo'' no aparece, como se puede hacer para que aparezca la etiqueta ''nuevo''?

Eso seria los únicos problemas.

Saludos..




Foro SMF 2.0 RC4 - Simple Portal 2.3.3 - Theme Animated Arena Desing by Completevb. Adapted by Skinmod.

Offline 130860

  • Super Handsome Language Coordinator
  • Board Moderators
  • *
  • Posts: 1769
  • Gender: Male
  • You and I are not the same class of pirate!
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Editar Temas recientes de Simpleportal
« Reply #12 on: January 02, 2011, 07:29:14 PM »
usa este

Code: [Select]
elseif ($display == 'full')
{
echo '
<table class="sp_fullwidth">
<tr class="catbg">
<td>Icono</td>
<td>Temas</td>
<td>Iniciado por</td>
<td>Vistas</td>
<td>Respuestas</td>
</tr>

';

foreach ($items as $item)
echo '
<tr class="windowbg">
<td>',$item['icon'],'</td>
<td> <a href="', $item['href'], '">', $item['subject'], '</a>
', $item['new'] ? '' : '<a href="' . $scripturl . '?topic=' . $item['topic'] . '.msg' . $item['new_from'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt['new'] . '" border="0" /></a></td>
<td>', $item['poster']['link'], '</td>
<td>', $item['views'], '</td>
<td>', $item['replies'], '</td>
</tr>';

echo '
</table>';
}

Offline 130860

  • Super Handsome Language Coordinator
  • Board Moderators
  • *
  • Posts: 1769
  • Gender: Male
  • You and I are not the same class of pirate!
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Editar Temas recientes de Simpleportal
« Reply #13 on: January 03, 2011, 10:21:02 AM »
dos cosas,   esto solo funcionara para el modo "full"  o completo de el bloque y solo funcionara para los topics(temas)  no funcionara para los post (mensajes) ya que los post no tienen ni cantidad de vistas ni de rspuestas


ok, use este:

Code: [Select]
elseif ($display == 'full')
{
echo '
<table class="sp_fullwidth">
<tr class="catbg">
<td>Icono</td>
<td>Temas</td>
<td>Iniciado por</td>
<td>Vistas</td>
<td>Respuestas</td>
</tr>';

foreach ($items as $item)
echo '
<tr class="windowbg">
<td>',$item['icon'],'</td>
<td><a href="', $item['href'], '">', $item['subject'], '</a>', $item['new'] ? '' : '<a href="' . $scripturl . '?topic=' . $item['topic'] . '.msg' . $item['new_from'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt['new'] . '" border="0" /></a>','</td>
<td>', $item['poster']['link'], '</td>
<td>', $item['views'], '</td>
<td>', $item['replies'], '</td>
</tr>';

echo '
</table>';
}

Offline red_ant

  • Semi Newbie
  • *
  • Posts: 11
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Editar Temas recientes de Simpleportal
« Reply #14 on: January 08, 2011, 11:35:38 AM »
Muchas gracias quedo genia!

Se puede agregar el NOMBRE foro en donde fue publicado el post?

asi como sale en el bloque sin la modificación

PD: para cambiar el tamaño de las fuentes de los bloques del portal, hay que tocar algo en portal.css o como hace dicha modificación?

Saludos y muchas gracias por la ayuda!
« Last Edit: January 08, 2011, 11:38:10 AM by red_ant »




Foro SMF 2.0 RC4 - Simple Portal 2.3.3 - Theme Animated Arena Desing by Completevb. Adapted by Skinmod.

Offline 130860

  • Super Handsome Language Coordinator
  • Board Moderators
  • *
  • Posts: 1769
  • Gender: Male
  • You and I are not the same class of pirate!
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Editar Temas recientes de Simpleportal
« Reply #15 on: January 11, 2011, 01:25:27 PM »
usando opera /dragonfly   o firefox firebug es muy facil saber cual es la clase que controla el tipo de fuente que utilizan los bloques y ya sabiendo la clase puedes facilmente cambiarle el tamaño, estilo, etc.

para agregar el nombre de el foro se usa  $item['board']['name']

como no me dices en que parte lo quieres poner, voy a pesar que lo quieres al principio, usa este:

Code: [Select]
elseif ($display == 'full')
{
echo '
<table class="sp_fullwidth">
<tr class="catbg">
<td>Icono</td>
<td>Foro</td>
<td>Temas</td>
<td>Iniciado por</td>
<td>Vistas</td>
<td>Respuestas</td>
</tr>';

foreach ($items as $item)
echo '
<tr class="windowbg">
<td>',$item['icon'],'</td>
<td>',$item['board']['name'],'</td>
<td><a href="', $item['href'], '">', $item['subject'], '</a>', $item['new'] ? '' : '<a href="' . $scripturl . '?topic=' . $item['topic'] . '.msg' . $item['new_from'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt['new'] . '" border="0" /></a>','</td>
<td>', $item['poster']['link'], '</td>
<td>', $item['views'], '</td>
<td>', $item['replies'], '</td>
</tr>';

echo '
</table>';
}

Offline red_ant

  • Semi Newbie
  • *
  • Posts: 11
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Editar Temas recientes de Simpleportal
« Reply #16 on: January 30, 2011, 05:41:09 AM »
gracias,-...

he usado el firebug y algunas cosas pude cambiar, pero se complica un poco

he agregado, font-weight: bold; a:

Code: [Select]
.information {
    background: none repeat scroll 0 0 #FFFFFF;
    border: 1px solid #C4C4C4;
    color: #3E3E3E;
    font-size: 0.9em;
    line-height: 1.3em;
    margin: 0.2em 1px 1em;
    padding: 0.5em 1em;

pero me pone todo en negrita..  :S




Foro SMF 2.0 RC4 - Simple Portal 2.3.3 - Theme Animated Arena Desing by Completevb. Adapted by Skinmod.

Offline 130860

  • Super Handsome Language Coordinator
  • Board Moderators
  • *
  • Posts: 1769
  • Gender: Male
  • You and I are not the same class of pirate!
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Editar Temas recientes de Simpleportal
« Reply #17 on: January 30, 2011, 08:30:48 PM »
url a tu foro?

Offline red_ant

  • Semi Newbie
  • *
  • Posts: 11
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Editar Temas recientes de Simpleportal
« Reply #18 on: January 30, 2011, 09:44:09 PM »
130860 , la tengo agregada en mi perfil, asi como la version de SMF y SP que uso..

saludos.




Foro SMF 2.0 RC4 - Simple Portal 2.3.3 - Theme Animated Arena Desing by Completevb. Adapted by Skinmod.

Offline dhayzon

  • Jr. Member
  • **
  • Posts: 63
  • Gender: Male
  • http://dhayzon.com/
    • wWw.club-dhayzone.net
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Editar Temas recientes de Simpleportal
« Reply #19 on: February 16, 2013, 09:16:08 PM »
esto me interesa funciona perfectamente pero como puedo yo cambiar el nombre por el avatar del usuario