TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

April 18, 2024, 02:36:24 AM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,164
  • Total Topics: 21,219
  • Online today: 190
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 178
  • Total: 178

Tinyportal y post en Index

Started by Vice, June 22, 2009, 11:39:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Vice

Hola a todos, primero felicitar a los que idearon, al fin, un subforo para el idioma español  :up: :up: mi más sincera enhorabuena.

Segundo, quería comentar el tema por el cual os escribo. Bien...

Supongo que sea un problema del Theme, pero no aparece en la parte inferior de la página una serie de links en las que se paginen los posts que aparecieron anteriormente en portada, es decir solo aparecen 10 y conforme se van poniendo nuevos, los más antiguos van desapareciendo del index.

He visto que algunas personas que usan TP, tienen paginación con noticias antiguas. Es decir abajo del todo aparece:

1 2 3 4 [20]...

No sé si me he expresado bien. Lo siento y gracias por todo.

Herr Inoddorell

Deberías revisar el archivo Sources/TPortal.php y buscar lo siguiente:


// count boardnews to show pages for forum posts


Debajo de esa línea fijate que dice algo así como:

Quote
function TP_boardNewsCount($board, $limit = '50')

Ese 50 lo puedes reemplazar por otro número, pero veamos con este mismo ejemplo como trabaja la paginación:

Si allí aparece 50, te haria la paginación de 5 páginas con 'X' post recientes cada una (esto depende de como tengas configurado el TP, donde X debe ser reemplazado por el número deseado de noticias que aparezca por página).

En síntesis, tendrías que modificar los valores que te mencione que aparecen en TPortal.php, e ir probando hasta ver si encuentras la configuración que creas ideal.

Espero que sea lo que busques.

Saludos! ;)

Vice

#2
Voy a probar ahora mismo. Luego edito este mismo post y te cuento que tal fue. Muchas gracias Herr

Estaba ya en 50, como me puso. Lo que me comenta... es que vaya variando la cifra hasta dar con una que aparezca? Lo digo porque abajo de la web no aparece ninguna paginación y debería haberla... la página no es nueva (lleva unos meses) y los mensajes más antiguos ya no aparecen y no tengo esa paginación  que me permita verlo sin pasar por el foro :(.

Podría ser el Theme?

Herr Inoddorell

Claro eso mismo te decia que vayas variando los valores a ver si encuentras la configuracion que deseas.




No creo que sea problema del theme. Los mensajes a los que te refieres son posts del foro o artículos? Porque para que se pagine hace falta publicar articulos (no hace falta que esten en el portal).

Saludos!

Vice


Iré probando, la cuestión es que no solo son artículos. En otra web (http://www.mundoxbox.net/) si te fijas, al final pone Páginas [1] 2 3 4... 98

Haciendo un click en la suya enlaza con http://www.mundoxbox.net/?;tpstart=9

Mi sorpresa es que pegando ese código, también pagina la mia:

http://www.clan-waza.net ---> http://www.clan-waza.net/?;tpstart=9

Si pinchas en las dos, fijate que me mueve a noticias (en posts) que ya no aparecen en el índice, pero que en su día si lo hicieron.

ZarPrime

Hola Vice,

Bienvenido a TinyPortal.

Me gustaría tratar de ayudar con este tema, pero estoy teniendo problemas para entender lo que usted está teniendo problemas. Ã,¿Es que las páginas no aparecen en la parte inferior o es algo más? Quizás Herr Inoddorell puede traducir para mí lo que me pueda understnad mejor.

Sin embargo, tengo otro problema con este tema. Ã,¿Está usted usando incluso TinyPortal? En el sitio en el enlace que le dio en su puesto más arriba (http://www.clan-waza.net/), no llegan a ver la TinyPortal los derechos de autor. Dado que es necesario que el derecho de autor TinyPortal ser visible, voy a ser capaz de ayudar con esto sólo si primero sustituir el derecho de autor.

ZarPrime

In English ...

Hello Vice,

Welcome to TinyPortal.

I would attempt to help with this issue but I am having trouble understanding what problem you are having.  Is it that the pages aren't showing up at the bottom or is it something else?  Perhaps Herr Inoddorell can translate for me so I will be able to understnad better.

However, I'm having another problem with this topic.  Are you even using TinyPortal?  On the site at the link you gave in your post above (http://www.clan-waza.net/), I don't even see the TinyPortal copyright.  Since we require that the TinyPortal copyright be visible, I will be able to help with this only if you first replace the copyright.

ZarPrime

Herr Inoddorell

#6
Ah ya te entiendo entonces, lo que quieres es que aparezca la paginación, creí que te estaba paginando mal. Sería bueno que dejes más datos: Qué versión de TinyPortal estas usando? Como tenes configurado las opciones de portada, es decir, que es lo que tenes habilitado para que te muestre en portada?

Creo que solo pagina el index del portal, cuando se publican nuevos articulos (no posts del foro, vale aclarar), como dije anteriormente. Teoricamente la paginacion deberia funcionar. Sino ahi si ya creo que es algun problema del theme, prueba con el default a ver si se pagina el index.

@ ZarPrime: His problem is that the portal index page doesn't show the pagination legend visible at the bottom of the portal page, so he wants to see it: Pages [1] 2 3 4... 98. I'm pretty sure he's using TP ;). Dunno 'bout the Copyright ???.



Vice

Quote from: ZarPrime on June 24, 2009, 02:19:09 PM
Hola Vice,

Bienvenido a TinyPortal.

Me gustaría tratar de ayudar con este tema, pero estoy teniendo problemas para entender lo que usted está teniendo problemas. Ã,¿Es que las páginas no aparecen en la parte inferior o es algo más? Quizás Herr Inoddorell puede traducir para mí lo que me pueda understnad mejor.

Sin embargo, tengo otro problema con este tema. Ã,¿Está usted usando incluso TinyPortal? En el sitio en el enlace que le dio en su puesto más arriba (http://www.clan-waza.net/), no llegan a ver la TinyPortal los derechos de autor. Dado que es necesario que el derecho de autor TinyPortal ser visible, voy a ser capaz de ayudar con esto sólo si primero sustituir el derecho de autor.

ZarPrime

In English ...

Hello Vice,

Welcome to TinyPortal.

I would attempt to help with this issue but I am having trouble understanding what problem you are having.  Is it that the pages aren't showing up at the bottom or is it something else?  Perhaps Herr Inoddorell can translate for me so I will be able to understnad better.

However, I'm having another problem with this topic.  Are you even using TinyPortal?  On the site at the link you gave in your post above (http://www.clan-waza.net/), I don't even see the TinyPortal copyright.  Since we require that the TinyPortal copyright be visible, I will be able to help with this only if you first replace the copyright.

ZarPrime

Disculpe, más o menos le he comprendido. Y poniendo el texto original en inglés mejor.

El problema del Copyright fue cosa de nuestro webmaster que diseñó la web y el theme y quizás se le escaparía la inclusión del Copyright. Se lo comentaré sin problemas, no es afán de tapar el nombre del mod que tantos frutos nos ha dado (y nos dará)

Herr Inoddorell

#8
Creo que ya lo tengo, revisa la configuración de la portada. Seguro no asignaste bien que mostrar en el indice, es algo muy común. Esto es lo que te ofrece para mostrar (en Administración -> TinyPortal -> Ajustes de la Portada -> Portada, Qué se muestra en la portada:):

* Solo posts del foro
* Posts del foro y artículos - ordenados por fecha
* Solo artículos
* Artículos destacados y bloques de portada
* Bloques de portada
* Ir directamente al foro principal

Prueba con la opción que te puse en negrita. En mi opinión debería paginar ;).

Sino llega a paginar, entonces lamentablemente vas a tener que decirte a mostrar ya sea: Solo artículos o Solo posts del foro. Sino lo que podrías hacer es crear una función para que muestre la paginación, pero se dificulta si no tienes conocimientos básicos de SSI y PHP.

Vice

Quote from: Herr Inoddorell on June 24, 2009, 04:17:16 PM
Creo que ya lo tengo, revisa la configuración de la portada. Seguro no asignaste bien que mostrar en el indice, es algo muy común. Esto es lo que te ofrece para mostrar (en Administración -> TinyPortal -> Ajustes de la Portada -> Portada, Qué se muestra en la portada:):

* Solo posts del foro
* Posts del foro y artículos - ordenados por fecha
* Solo artículos
* Artículos destacados y bloques de portada
* Bloques de portada
* Ir directamente al foro principal

Prueba con la opción que te puse en negrita. En mi opinión debería paginar ;).

Sino llega a paginar, entonces lamentablemente vas a tener que decirte a mostrar ya sea: Solo artículos o Solo posts del foro. Sino lo que podrías hacer es crear una función para que muestre la paginación, pero se dificulta si no tienes conocimientos básicos de SSI y PHP.

Bingo! Solucionado. Que error más tonto! jejeje

Muchas gracias :)

Herr Inoddorell

De nada, al fin me siento un poco util en este sitio. :2funny:

No te olvides de marcar este tema como Solucionado, poniendole el icono de Solved ;).

Saludos!

ZarPrime

Vice,

Pedimos que los derechos de autor tinyPortal se muestre en su sitio cuando se utiliza TP. Por favor, tenga a su webmaster que el TP coyright atrás pulg

Yo no sé qué versión de TinyPortal que usted está utilizando. Que hace que sea más difícil decidir si se trata de un error en TP 1.0 beta 4 o no.

Parece que si selecciona "Foro de los puestos y artículos - ordenados por fecha de" las páginas no se muestran. Dado que parece que no tienen artículos, hay que seleccionar para mostrar "Sólo foro-puestos" y esto permitirá a las páginas que se mostrarán.

Esto puede ser un error en la forma en la primera página se hace de modo que ponga esto en el bugtracker bloque y, a continuación, será consciente de ello y buscar en ella.

ZarPrime

In English ...

Vice,

We do require that the tinyPortal copyright be displayed on your site when you are using TP.  Please have your webmaster put the TP coyright back in.

I don't even know what version of TinyPortal you are using.  That makes it more difficult to decide if this is a bug in TP 1.0 beta 4 or not.

It seems that if you select "Forum-posts and articles - sorted on date" the pages aren't displayed.  Since it looks like you have no articles, you should select to show "Only forum-posts" and this will allow the pages to be displayed.

This may be a bug in the way the Front Page is rendered so I will put this in the bugtracker and then Bloc will be aware of it and look into it.

ZarPrime

Herr Inoddorell

Don't worry ZarPrime he has just solved the OP issue ;).

ZarPrime

Herr Inoddorell,

So, what selection finally worked for him, so that I can decide whether this is a bug or not?

ZarPrime

Herr Inoddorell

#14
It's not a bug, I hope, he just selected another option than the required one (not the "Forum-posts and articles - sorted on date" option). So I tell him to select that option, and that solved it.

So, apparently, no bugs here ;D.

ZarPrime

Ah, OK, I appreciate your help on this then.  I would also appreciate it if you would encourage him to get that TP copyright back on his site if you could.

Thanks for your help,
ZarPrime

Herr Inoddorell

#16
Glad to help.

I'll try that out if I can, too :up:

Please, could someone mark this thread as solved?

Cheers!

ZarPrime

Thanks, topic marked solved. :up:

ZP

Vice

ZarPrime if you could stick the code that I must put to place the copyright... The version is 0.98;)

Or would it be correct to put alone TinyPortal Ã,© with a link to the official web?


Sorry about my English

ZarPrime

Vice,

Si tiene problemas para entender lo que está escrito más adelante en Inglés hágamelo saber y voy a tratar de traducirlo al español para usted.

I will attempt to help you put the TP copyright back in but I need to know if it is removed from your SMF default core theme as well.  However, on your site, Guests are not allowed to view the site in the SMF default theme.  Could you temporarily allow Guests to switch to the default theme by doing this ...
Admin --> Configuration --> Themes and Layout Settings and put a check mark in the 2 boxes that say
"Allow members to select their own themes." and  "Allow members to select the "Default" theme."  That way I will be able to see if the TP copytight is missing from the SFM default theme.

After I have looked at the site in the default theme I will let you know and you can switch it back.  It is possible that something you added caused the TP copyright to be removed from all themes.

If you are using TP 0.98, then I will need to see the following file which you can attach to your next post ...
/public_html/YOUR-Site-Folder/Themes/YOUR-Custom-Theme/index.template.php

Just attach that file to your next post so that I can look at it, and if it needs to be edited, I will do the edit and return the file to you to upload.

If the TP copyright is missing from the SMF default theme when I look at it as well, I will need to see that file from the /Themes/default/ folder as well, but we will deal with that later.

ZarPrime

Vice

I believe that more or less I have understood him.

Seen the topic SMF's core, only it has been the Theme that is used, I checked several PHP of which you comment, less in the indicated theme. 

Probably the webmaster passed to place it in my site. I will comment on it to him.

I suppose that what he does will be late a time. Just now he is in period of examinations in the University.

I might edit it, but first I will wait for your response.


PD: Sorry about my English  :-\

ZarPrime

Vice,

Lo que estoy diciendo es que la ubicación de los derechos de autor es diferente para TP 0,98 que para TP 1.x. Si está utilizando TP 0,98, la información sobre derechos de autor se encuentra en el index.template.php, tanto en el tema por defecto de SMF y en su tema personalizado.

La línea de buscar en ese archivo es ...


echo '<div>', tportal_version (), '</ div>';


Si no aparece esa línea en ese fichero, entonces hay que añadir por encima de (la mayoría de las veces) o justo debajo de la SMF información de copyright. En cuanto a su sitio, probablemente, se añadirá justo encima.

ZarPrime

In English ...

Vice,

What I am saying is that the location for the copyright information is different for TP 0.98 than it is for TP 1.x.  If you are using TP 0.98, the copyright information is located in the index.template.php, both in the default SMF theme and in your custom theme.

The line to look for in that file is ...


echo '<div>' , tportal_version() , '</div>';


If you don't see that line in that file, then it should be added right above (most of the time) or right below the SMF copyright information.  Looking at your site, it should probably be added right above.

ZarPrime

Herr Inoddorell

#22
Yo en mi caso lo que hice fue borrarlo del TPBlocksLayout.php, y copiarlo por mi cuenta como estaba y lo coloqué al lado del copyright de SMF, ya que con el codigo que estaba en TPBlocksLayout.php no lo pude poner. Lo importante es hacer mención del Copyright y poner el link de Tinyportal ahora edito y te muestro como lo coloqué en mi index.template.php.

EDIT: Esta es una forma práctica de poner el copyright en un lugar que no "moleste".

buscar:

', theme_copyright(), '

Añadir luego:


<span style="font-size: 10px;"> TinyPortal v1.0.5 beta 1© <a href="http://www.tinyportal.net/">Bloc</a></span>


En tu caso en lugar de poner v1.0.5 beta 1, deberias poner tu version de TP ;).

Saludos!

Vice


Lo he puesto algo distinto, Ã,¿sería válido así? Está abajo a la derecha!

Herr Inoddorell

Mmm en mi opinión así está bien también, porque menciona la licencia de TP y muestra el redireccionamiento hacia la web de TP, aunque mejor dejemos que ZarPrime responda, a ver qué opina ;).

ZarPrime

No es exactamente la derecha, pero es lo suficientemente cerca para no preocuparse por ella. Como ya he dicho, en el TP 0,98, la línea que falta es que en mi último post anterior, y se encuentra en el archivo index.template.php, pero en el TP versiones 1.x, la información sobre derechos de autor se encuentra en el TPBlocksLayout.php archivo como Herr Inoddorell mencionado. Y si al actualizar a 1.0 beta 4 TP, tendrá que desinstalar TP 0.98 primero y es posible que obtenga errores al hacer en caso de que algunas líneas no se puede encontrar.

ZarPrime