OcToMaN 0 Denunciar post Postado Novembro 23, 2009 tenho esse script aqui, ele pega todos os topicos de um forum, e publica na parte de noticias da index da minha HP... mas com a atualização do forum para 3.0.4 eu perdi os recursos, ele continua postando a noticia... mas agora qdo eu posto alguma imagem ou algum link.. ele aparece o endereço do link somente.. e nao exibe a imagem como antes exibia e nem faz o link virar link, alguem pode me ajudar? www.tckclan.com.br www.tckclan.com.br/forum deem uma olhada, tudo oq eu posto no forum na parte de noticias, ele joga para index da HP... o codigo esta ai do script <html> <head> <title>The Conquerors King Clan</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- @import url("ind_style.css"); --> </style> </head> <body bgcolor="#000000" text="DEC896" link="DEC896" vlink="D69460" alink="B4540C" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <? $limit = "20"; //NUMEROS DE NEWS A MOSTRAR $pasta = "forum"; //SELECIONE A PASTA QUE SE LOCALIZA O FÓRUM // Não alterar esses campos if ($pasta == "") { require ("conf_global.php"); } else { require ("$pasta/conf_global.php"); } mysql_connect("".$INFO['sql_host']."","".$INFO['sql_user']."","".$INFO['sql_pass'].""); mysql_select_db("".$INFO['sql_database'].""); $tabela = mysql_query("SELECT * FROM ".$INFO['sql_tbl_prefix']."topics WHERE forum_id = 4 ORDER BY start_date DESC LIMIT $limit") or die (mysql_error()); while($r = mysql_fetch_array($tabela)){ $tid = $r["tid"]; $title = $r["title"]; $start_name = $r["start_name"]; $starter_id = $r["starter_id"]; $post_id = $r["post_id"]; $post = $r["post"]; $author_name = $r["author_name"]; $start_date = $r["start_date"]; $last_post = $r["last_post"]; $tabela2 = mysql_query("SELECT * FROM ".$INFO['sql_tbl_prefix']."posts, ".$INFO['sql_tbl_prefix']."topics WHERE tid = topic_id AND topic_id = '$tid'") or die (mysql_error()); $r2 = mysql_fetch_array($tabela2); // Naum usos while se não irá imprimir todos os posts :D $author_name = $r2["author_name"]; $post_date = $r2["post_date"]; $title = $r2["title"]; $post = $r2["post"]; $start_date = $r2["start_date"]; $last_post = $r2["last_post"]; $dataHora = date("jS F Y - h:i A", $start_date); $string = " <table width=\"100%\" height=\"28\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"> <tr> <td width=\"10\" background=\"figuras/prip-esquerdo.gif\"> </td> <td width=\"6\" background=\"figuras/prip-central.gif\"> </td> <td background=\"figuras/prip-central.gif\"> <font color=\"#D69460\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\"> <strong>$title</strong> </font> </td> <td width=\"220\" background=\"figuras/prip-central.gif\"> <div align=\"right\"> <font color=\"#D69460\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\"> <strong>$dataHora</strong> </font> </div> </td> <td width=\"6\" background=\"figuras/prip-central.gif\"> </td> <td width=\"10\" background=\"figuras/prip-direito.gif\"> </td> </tr> </table> <table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"> <tr> <td><img src=\"figuras/ind-transpixel.gif\" width=\"10\" height=\"10\"></td> </tr> </table> <table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"> <tr> <td width=\"10\"> </td> <td> <p align=\"justify\"><font size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">$post</font></p> </td> <td width=\"10\"> </td> </tr> </table> <table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"> <tr> <td><img src=\"figuras/ind-transpixel.gif\" width=\"10\" height=\"10\"></td> </tr> </table> <table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"> <tr> <td width=\"10\"><img src=\"figuras/ind-transpixel.gif\" width=\"10\" height=\"10\"></td> <td> <p align=\"right\"><font color=\"#D69460\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\"> By: </font><font size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">$author_name</font></p> </td> <td width=\"10\"><img src=\"figuras/ind-transpixel.gif\" width=\"10\" height=\"10\"></td> </tr> </table> <table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"> <tr> <td><img src=\"figuras/ind-transpixel.gif\" width=\"10\" height=\"10\"></td> </tr> </table> " ; echo(str_replace("style_emoticons/<#EMO_DIR#>/", "forum/style_emoticons/default/", $string)); } ?> </body> </html> outra coisa, tem como eu faze um sisteminnha de paginação nisso.. tipoa ssim...apresentar cada pagina de 5 em 5 noticias.. alguem poderia me ajudar...? mais o importante nao eh a paginacao.. eh soh a mostragem das noticias mesmo... Compartilhar este post Link para o post Compartilhar em outros sites
Silas Martins 0 Denunciar post Postado Novembro 24, 2009 Olha sobre o php não posso te ajudar, mas sobre o que você esta tentando fazer é bem diferente de alguns scripts que já vi, pois na maioria das vezes as pessoas querem que as ultimas do fórum apareça na home. Quanto aos bbcodes na versão 3.0 mudou muito a forma que se trata os bbcodes. Boa sorte e espero que o pessoal consiga te ajudar. Compartilhar este post Link para o post Compartilhar em outros sites
OcToMaN 0 Denunciar post Postado Novembro 24, 2009 Olha sobre o php não posso te ajudar, mas sobre o que você esta tentando fazer é bem diferente de alguns scripts que já vi, pois na maioria das vezes as pessoas querem que as ultimas do fórum apareça na home. Quanto aos bbcodes na versão 3.0 mudou muito a forma que se trata os bbcodes. Boa sorte e espero que o pessoal consiga te ajudar. Sou iniciante em php, esse script eu fiz faz a algum tempo e fiquei sem mexer com php muito tempo depois, acabei esquecendo muita coisa, mas estava intrigado, pq nao estou conseguindo mais deixar como antes, nao sei se é por falta de experiencia, creio que sim, mas ta dificil, espero conseguir em breve. OcToMaN, Seja bem vindo, caso ainda não tenha lido as regras recomendo fortemente que o faça para sua melhor participação: http://forum.imasters.com.br/index.php?app=core&module=help Obrigado, me desculpe. Compartilhar este post Link para o post Compartilhar em outros sites
OcToMaN 0 Denunciar post Postado Novembro 24, 2009 Alguem poderia ajudar eu fazer a paginação desse script? Compartilhar este post Link para o post Compartilhar em outros sites