Foros del Web » Creando para Internet » Sistemas de gestión de contenidos »

Codigo de noticias

Estas en el tema de Codigo de noticias en el foro de Sistemas de gestión de contenidos en Foros del Web. ola quiero paginar unas noticias solo usando php no quiero usar BD pero nose como hacerlo me recomendaron unos scrips pero no sabia utilizarlos asiq ...
  #1 (permalink)  
Antiguo 28/02/2006, 17:16
Borjimante
Invitado
 
Mensajes: n/a
Puntos:
Codigo de noticias

ola quiero paginar unas noticias solo usando php no quiero usar BD pero nose como hacerlo me recomendaron unos scrips pero no sabia utilizarlos asiq por favor alguien me puede decir un codigo php para hacer una oja de noticias

Gracias
  #2 (permalink)  
Antiguo 01/03/2006, 03:00
Avatar de jam1138
/** @package Moderador */
 
Fecha de Ingreso: julio-2004
Ubicación: sèveR led onieR lE
Mensajes: 9.368
Antigüedad: 19 años, 8 meses
Puntos: 102
... y de dónde tienes almacenadas esas noticias?, de qué manera?, ¿por qué la negativa a usar un DB?.

Un sistema de noticias usualmente trabaja con una BD, es ahí donde se almacenan, para paginar solo se consultan determinadas partes de los registros.

Explica bien tu caso por qué daz a entender solo quieres paginar "algo" (lo que ya tienes), ve en ese caso Paginator de jpinedo: http://jpinedo.webcindario.com

__________________
٩(͡๏̯͡๏)۶
» Cómo hacer preguntas de manera inteligente «

"100 años después, la revolución no es con armas, es intelectual y digital"
  #3 (permalink)  
Antiguo 01/03/2006, 08:21
Borjimante
Invitado
 
Mensajes: n/a
Puntos:
pues mira me gustaria poner las noticias como las de la web http://www.ageofempires3-web.com y si hay que usar BD la uso pero esq no tengo muxa idea de ello y ademas que la base es de un servidor gratuito y nose cuanto espacio tengo ademas q tengo q instalar un foro y mas cosas nose si ocuparia muxo o no pero vamos que si hay que usar base de datos no pasa nada pero por favor diganme como hacerlo por favor gracias
  #4 (permalink)  
Antiguo 01/03/2006, 08:24
Avatar de carlosfocus  
Fecha de Ingreso: enero-2006
Ubicación: Venezuela
Mensajes: 823
Antigüedad: 18 años, 3 meses
Puntos: 0
Amigo.......

en www.hotscripts.com hay bastante scritps de noticias, solamente tienes que adaptarlo a tus necesidades

Aqui tambien hay varios

http://www.phpfacil.net/web/index.ph...&publicidad=no

Suerte
__________________
Carlos Herrera
Web Developer
www.carlos.com.ve
Para descargar archivos propios a su Teléfono Mobil? www.carlosfocus.com
  #5 (permalink)  
Antiguo 01/03/2006, 11:52
Borjimante
Invitado
 
Mensajes: n/a
Puntos:
esq los scrips no se utilizarlos si me dijerais como hacerlo os lo agradeceria me e bajado el cutenews.1.3.6 y no se como aplicarlo a mi web me podeis decir como aplicarlo por favor gracias
  #6 (permalink)  
Antiguo 01/03/2006, 12:01
Avatar de carlosfocus  
Fecha de Ingreso: enero-2006
Ubicación: Venezuela
Mensajes: 823
Antigüedad: 18 años, 3 meses
Puntos: 0
Amigo si quieres aprender lee bien las instrucciones de los scripts, cutenews trae un manual de como instalarlo y todo eso ;) si tienes alguna duda con alguna parte con gusto te ayudaremos.
__________________
Carlos Herrera
Web Developer
www.carlos.com.ve
Para descargar archivos propios a su Teléfono Mobil? www.carlosfocus.com
  #7 (permalink)  
Antiguo 01/03/2006, 12:41
Borjimante
Invitado
 
Mensajes: n/a
Puntos:
ok lo he instalado pero esq nose ve nada de noticias supongo q tendre que poner alguna para q se vea el resultado , pero esq nose poner noticias haber si me podeis ayudar a poner las noticias con el cutenews.1.3.6 por favor gracias
  #8 (permalink)  
Antiguo 01/03/2006, 15:10
Borjimante
Invitado
 
Mensajes: n/a
Puntos:
como pongo las noticias por favorrrrr
  #9 (permalink)  
Antiguo 01/03/2006, 15:32
Avatar de carlosfocus  
Fecha de Ingreso: enero-2006
Ubicación: Venezuela
Mensajes: 823
Antigüedad: 18 años, 3 meses
Puntos: 0
Lee el manual amigo........... es sencillo entras a un admin el cual no recuerdo si es directorio o admin.php y colocas login y password y buscar Insert New o Insertar noticia y la agregas......
__________________
Carlos Herrera
Web Developer
www.carlos.com.ve
Para descargar archivos propios a su Teléfono Mobil? www.carlosfocus.com
  #10 (permalink)  
Antiguo 01/03/2006, 15:56
Borjimante
Invitado
 
Mensajes: n/a
Puntos:
El problema esq no veo ningun manual y menos en castellano y tampoko veo ningun archivo llamado admin.php mira esto es lo que tiene el cutenews.1.3.6

  #11 (permalink)  
Antiguo 01/03/2006, 15:59
Avatar de carlosfocus  
Fecha de Ingreso: enero-2006
Ubicación: Venezuela
Mensajes: 823
Antigüedad: 18 años, 3 meses
Puntos: 0
lee el

README.HTML

o busca otro sistema que hay bastantes y muy sencillos.........

Suerte
__________________
Carlos Herrera
Web Developer
www.carlos.com.ve
Para descargar archivos propios a su Teléfono Mobil? www.carlosfocus.com
  #12 (permalink)  
Antiguo 01/03/2006, 16:02
Borjimante
Invitado
 
Mensajes: n/a
Puntos:
el readme lo e traducido pero no se q hay que hacer con los codigos que pone te pongo lo q dice el readme

Cita:
Information About The Script

CuteNews v1.3.6 by CutePHP Team.

Cute news is a powerful and easy for using news management system that use flat files to store its database. It supports
comments and archives that can be organized by months.
This script is licensed under GNU GPL license and you must leave any copyright notices that come with it. You can use, modify and distribute the script but you can charge for it only the distribution taxes. If you have questions please contact us (not for problems and issues)


Installing CuteNews

The installation of CuteNews is really easy and you should do it without any problems if you fallow these steps:

1) Create a directory on your server ( e.g. cutenews )
2) Upload the content of the cutenews.1.3.6.zip to the directory you created in step 1
3) Now You must CHMOD the the directory cutenews/data/ and all files and
folders under the data/ directory must be also chmod'ed to 777.
4) Finally, go to http://yoursite.com/cutenews/index.php with you favorite browser and fallow the instructions.


Getting The News On Your Page...

You can show the news, archives on your page by using some of the following php codes in your page.
The page where you include news, should be with extension .php


--------------------------------------------------------------------------------

General

when showing news, archives you can use $number = x; to limit the to x the number of maximum showed news on one page. If you use $number, "next >>" link to remaining news will be displayed.

if you want to show news, archives from certain category you can use $category = "ID"; where ID is the id of the category, you can choose and more that one category like this: $category = "ID1,ID2,ID3";

when you want to display news and headlines on one page for example, and want when a headline is clicked, the article to be displayed on the place of the news you must use $static = TRUE; before including headlines.

Showing Active News

<?PHP
include("path/to/show_news.php");
?>


Showing with Different Template

<?PHP
$template = "YOUR_TEMPLATE_NAME";
include("path/to/show_news.php");
?>

Showing Archives

<?PHP
include("path/to/show_archives.php");
?>

Showing 5 Latest News

<?PHP
$number = "5";
include("path/to/show_news.php");
?>

Showing 5 News from Category with ID 2

<?PHP
$number = "5";
$category = "2";
include("path/to/show_news.php");
?>

Showing All Headlines And The 1 Latest News Article On One Page

<?PHP
$static = TRUE;
$template = "Headlines";
include("path/to/show_news.php");

$number = "1";
include("path/to/show_news.php");
?>



--------------------------------------------------------------------------------

Remember that:

in all of the above examples you must replace path/to/... to with your path where you installed CuteNews
and not to use the URL but the path
WRONG: include("http://site.com/cutenews/show_news.php);
CORRECT: include("cutenews/show_news.php);
in most cases when you include news and headlines in one page, you must use $static = TRUE; .
when you use $number, $category, $template or any other variable, it must be BEFORE include("show_news.php");
if you have any problems, you can always go to our support forums and we'll be more than glad to help you


Help & Support

If you have some problems with CuteNews you can go to our support forum.
But before posting your problem on our forums, please look at the included Help Documentation with CuteNews. You can access it through CuteNews > Help > CuteNews internal Help Documentation
Me podrias decir si esto es pa poner las noticias y como se hace?
  #13 (permalink)  
Antiguo 04/03/2006, 08:55
 
Fecha de Ingreso: marzo-2006
Mensajes: 3
Antigüedad: 18 años, 1 mes
Puntos: 0
Consulta parecida

Hola gente:
Lo que me gustaría es poder colocar los titulares de las noticias que están en mi blog a mi Web. Sé que necesito un script para ello, pero no lo sé hacer. Tal vez puedan orientarme.
Gracias mil
Sassie
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 11:32.