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: 367
  • 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]

Installation errors? Mod incompatibilities? Upgrade problems? Make your way over to the Install and Upgrade Support board for all your solutions!

Author Topic: Modificar el Recientes Post/Temas  (Read 7392 times)

0 Members and 1 Guest are viewing this topic.

Offline lucas

  • Semi Newbie
  • *
  • Posts: 18
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Modificar el Recientes Post/Temas
« on: May 27, 2010, 10:55:43 PM »
Hola talves alguien sabe como puedo modificar en el simple portal en la sección de Recientes Post/Temas me gustaria,que solo se muestre el tema y el ultimo usuario que respondió, mas no la respuesta de cada usuario debido a que se duplica varias veces el mismo tema

Tambiem me gustaria saber como hago para que el texto  de Recientes Post/Temas se desplaze de abajo hacia arriba de manera automatica
como si se usase marquesinas para cada tema/post

Saludos y Gracias

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: Modificar el Recientes Post/Temas
« Reply #1 on: May 28, 2010, 11:04:21 AM »
el primer caso no  es posible debido a como funciona el bloque,   si un tema por ejemplo es el unico que tiene respuestas, el bloque ultimos temas/mensajes   solo aparecerán las respuestas de ese tema porque son las ultimas respuestas que ha tenido el foro.


para hacer un marquee abre tu archivo  /Sources/Portalblocks.php


busca esto:

Code: [Select]
if ($display == 'compact')
{
foreach ($items as $key => $item)
echo '
<a href="', $item['href'], $truncated , '</a> <span class="smalltext">', $txt[525], ' ',  empty($item['is_last']) ? '<hr />' : '';
   
}



y lo reemplazas con esto

Code: [Select]
if ($display == 'compact')

echo '<marquee>';

{
foreach ($items as $key => $item)
echo '
<a href="', $item['href'], $truncated , '</a> <span class="smalltext">', $txt[525], ' ',  empty($item['is_last']) ? '<hr />' : '';
   
}

echo '</marquee>';


como ves solo le agregué el marquee,   modificalo a tu gusto

Offline lucas

  • Semi Newbie
  • *
  • Posts: 18
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Modificar el Recientes Post/Temas
« Reply #2 on: May 29, 2010, 11:33:33 AM »
hize tal y cual me dijiste pero me sale
Parse error: syntax error, unexpected T_ELSEIF in /home/ftaecuad/public_html/Sources/PortalBlocks.php  on line 1057...saludos
« Last Edit: May 29, 2010, 12:10:07 PM by lucas »

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: Modificar el Recientes Post/Temas
« Reply #3 on: May 29, 2010, 01:21:34 PM »
adjunta aqui tu archivo Sources/portalblocks.php  al parecer cometi un typo.

Offline lucas

  • Semi Newbie
  • *
  • Posts: 18
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Modificar el Recientes Post/Temas
« Reply #4 on: May 29, 2010, 01:35:12 PM »
Aqui esta el archivo que me pediste..gracias por tu tiempo y ayuda

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: Modificar el Recientes Post/Temas
« Reply #5 on: May 29, 2010, 10:08:10 PM »
prueba este


si quieres cambiar al velocidad busca esto:

echo '<marquee direction="up" loop="true" scrolldelay="200" >';


y  cambia el 200 por lo que tu quieras

Offline lucas

  • Semi Newbie
  • *
  • Posts: 18
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Modificar el Recientes Post/Temas
« Reply #6 on: May 29, 2010, 10:27:01 PM »
Me quedo de pelicula .....muchas gracias

Offline lucas

  • Semi Newbie
  • *
  • Posts: 18
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Modificar el Recientes Post/Temas
« Reply #7 on: June 03, 2010, 08:09:11 PM »
Una consulta como hago en este mismo espacio para que cuando pongo el cursor del mouse sobre un mensaje este se detenga y sea mas facil visualizar el titulo de dicho mensaje ya que todos los mensajes suben y no se detienen hay que cazarlos para agarrar el link...saludos

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: Modificar el Recientes Post/Temas
« Reply #8 on: June 04, 2010, 02:29:22 PM »
a tu etiqueta marquee agregale esto:

onmouseover="this.stop();" onmouseout="this.start();"

para que te quede algo como esto:

<marquee behavior="scroll" direction="left" onmouseover="this.stop();" onmouseout="this.start();">
   aqui mi contenido
   
   </marquee>

Offline lucas

  • Semi Newbie
  • *
  • Posts: 18
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Modificar el Recientes Post/Temas
« Reply #9 on: June 04, 2010, 08:31:10 PM »
Amigo hize lo que me dijiste y me salio esto

Parse error: syntax error, unexpected '=' in /home/ftaecuad/public_html/Sources/PortalBlocks.php on line 1050

porque será...saludos

Offline lucas

  • Semi Newbie
  • *
  • Posts: 18
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Modificar el Recientes Post/Temas
« Reply #10 on: June 05, 2010, 09:42:04 PM »
Talves alguien me puede ayudar...gracias

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: Modificar el Recientes Post/Temas
« Reply #11 on: June 06, 2010, 06:32:16 PM »
adjunta aqui tu archivo,  lo hiciste mal por eso te dio error.

Offline lucas

  • Semi Newbie
  • *
  • Posts: 18
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Modificar el Recientes Post/Temas
« Reply #12 on: June 06, 2010, 07:54:54 PM »
Aqui te adjunto el archivo que me pediste....Muchas gracias
« Last Edit: June 06, 2010, 07:57:14 PM by lucas »

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: Modificar el Recientes Post/Temas
« Reply #13 on: June 06, 2010, 09:39:51 PM »
usa este:


Offline lucas

  • Semi Newbie
  • *
  • Posts: 18
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Modificar el Recientes Post/Temas
« Reply #14 on: June 06, 2010, 09:59:31 PM »
Amigo subi el archivo tal como lo modificaste y me aparece el block de ultimos temas bien grande y los post van todos juntos de derecha a izquierda ....saludos

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: Modificar el Recientes Post/Temas
« Reply #15 on: June 07, 2010, 12:06:04 PM »
link a tu foro?

Offline lucas

  • Semi Newbie
  • *
  • Posts: 18
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Modificar el Recientes Post/Temas
« Reply #16 on: June 07, 2010, 04:41:05 PM »
Amigo acabe de poner el back up del archivo y lo tengo como antes si te doy la url del foro tendria que volverlo a poner el archivo que me modificaste y como te decia no es grato a los ojos de los usuarios porque no esta sincronizado el bloque como te decia esta el bloque bien grande y se mueve los temas de derecha  a izquierda sera que me avisas el momento que estes on line para Yo volver a poner el archivo y lo veas como esta por favor...saludos

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: Modificar el Recientes Post/Temas
« Reply #17 on: June 08, 2010, 10:51:44 AM »
necesito ver tu foro oneline de otro forma no puedo ayudarte.

Offline lucas

  • Semi Newbie
  • *
  • Posts: 18
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Modificar el Recientes Post/Temas
« Reply #18 on: June 08, 2010, 11:00:03 AM »
Este es la url de mi foro


saludos y gracias
« Last Edit: June 29, 2010, 02:33:43 AM by lucas »

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: Modificar el Recientes Post/Temas
« Reply #19 on: June 08, 2010, 03:45:46 PM »
a mi con opera me funciona perfectamente el bloque, que navegador estas usando?

lo unico que hace falta es cambiar la dirección:

y es solo cambiar esto:   direction="left"

por esto:  direction="up"


ten en cuante que los marqueees  no son reconocidos oficialmente y mucho navegadores los muestran de distintas formas


tambien puedes agregarle un acho:  width="35%"   o width="35px"

Offline lucas

  • Semi Newbie
  • *
  • Posts: 18
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Modificar el Recientes Post/Temas
« Reply #20 on: June 08, 2010, 06:04:06 PM »
Gracias mi amigo una cosa mas por favor no te enojes......el archivo esta perfecto lo unico que quiero es bajarle el tiempo de la marquesina lo he buscado pero no lo encuentro solo veo que esta asi:

echo '<marquee behavior="scroll" direction="up" onmouseover="this.stop();" onmouseout="this.start();">';   

en que lugar deberia poner el scrolldelay="180" > y como le pondria...me gustaria ponerlo en 180 mira mi foro esta muy rapido



saludos y gracias
« Last Edit: June 09, 2010, 11:19:04 PM by lucas »

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: Modificar el Recientes Post/Temas
« Reply #21 on: June 09, 2010, 01:38:07 PM »
ponlo espues del direction="up"  asi:  direction="up" scrolldelay="180"

Offline lucas

  • Semi Newbie
  • *
  • Posts: 18
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Modificar el Recientes Post/Temas
« Reply #22 on: June 09, 2010, 11:19:46 PM »
Muchas gracias amigo ahora esta super bien :D

Offline lucas

  • Semi Newbie
  • *
  • Posts: 18
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Modificar el Recientes Post/Temas
« Reply #23 on: September 04, 2010, 11:50:38 AM »
Amigo me podrias decirme si todos los themes son iguales Por favor lo que pasa es que he cambiado de theme en este momento estoy utilizando un theme llamado Anecdota_alt by Crip RC3 y he puesto lo mismo que tu modificaste anteriormente del archivo Portalblocks.php del theme X-mas para poner las marquesinas en el bloque de Recientes Post/Temas pero me sale el siguiente error

Parse error: syntax error, unexpected T_IF in /home/ftaecuad/public_html/Sources/PortalBlocks.php on line 1

este es mi foro
www.ftaecuadorclub.com.ec

me podrias darme una manita por favor te adjunto el archivo
Gracias por tu tiempo y paciencia

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: Modificar el Recientes Post/Temas
« Reply #24 on: September 04, 2010, 05:40:14 PM »
cada theme es independiente de la carpeta sources, eso quiere decir que el archivo que te di, sirve para cada theme que uses, no debias de modificar nada,  tu archivo esta bien, ¿que queires hacer?   solo usa el que adjunté en post anteriores, deberá de servir para cualquier theme que uses.

ningun theme va a tener un archivo llamado Portalblocks.php  ese archivo es exclusivo de SP y se encuentra en al carpeta sources