créer un site


Probleme installation script de news de IPB

Poster un nouveau sujet sur php   Répondre au sujet à php:Probleme installation script de news de IPB    Accueil Forum -> php
Voir le sujet précédent :: Voir le sujet suivant  
Auteur Message
drick-hose_c
frontpage mioche
frontpage mioche
MessageProbleme installation script de news de IPB , Posté le: 13-06-2005 16:26

Salut à tous,

Voila j'ai un probleme avec l'installation d'un script, c'est un script pour que les news afficher sur le forum s'affiche sur le site graçe au forum IPB.
Le probleme que j'ai c'est que les news ne s'affiche pas ! Sad
Ceci est en PHP.

Url du site:
http://www.50cent-bulletproof.fr.tc
Url du forum:
http://www.50cent-bulletproof.fr.tc/forum/
Url de l'hebergeur :
http://laxbaxtm1.free.fr

Merci de m'aider car la je suis déséspérer !!
Nevinrhal
html mioche
html mioche
MessageProbleme installation script de news de IPB , Posté le: 13-06-2005 18:23

donne le code du script php de newsscript.php.
c'est un problème de sql, je promet rien mais je vais voir ce que je peut faire.
drick-hose_c
frontpage mioche
frontpage mioche
MessageProbleme installation script de news de IPB , Posté le: 13-06-2005 18:52

Voila le script :

___________________________________________________________
<?php

#####################################################
##### IPB News Script v1.1 by Adam Stasiniewicz #####
##### Copyright © 2004 Adam Stasiniewicz #####
##### http://www.adamscs.com #####
#####################################################

# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


##############################################################################################
##### Configuration section, please edit this info to meet your specific setup and needs #####
##############################################################################################

//database address
$databaseip = 'sql.free.fr';
//name of the database the stores IPB
$databasename = '******';
//database username
$username = '*******';
//database password
$password = '*******';
//the forum id of the news forum (look for the XX in index.php?showforum=XX part of the forums URL)
$forumid = '2';
//how many news post you want to show
$topicrows = '10';

##
## IPB 2.0-only Settings
##
// enter the name of the emoticons set you want to use on the homepage (look in your skin config setting, or else leave it as is)
$emoticons = 'default';
// Enter the name of the image directory that you want the script to use (look in your skin config setting, or else leave it as is)
$img_dir = '1';

##########################################################
##### Code starts here, scroll down to edit template #####
##########################################################

mysql_connect ($databaseip, $username, $password);
mysql_select_db ($databasename);
$topicq = mysql_query ("select* from ibf_topics where forum_id=".$forumid." order by start_date desc");
for ($i=0; $i <$topicrows; $i++)
{
$topicrow = mysql_fetch_array($topicq);
$titleid = $topicrow["tid"];
$topictitle = ($topicrow["title"]);
$postq = mysql_query ("SELECT * FROM `ibf_posts` where topic_id = ".$titleid." and new_topic = 11 order by post_date");
$postfetch = mysql_fetch_array($postq);
$postrow = $postfetch["post"];
$unixdate = $topicrow["start_date"];
$date = date("F jS, Y",$unixdate);
$writter = $topicrow["starter_name"];
$postrow = str_replace('<#EMO_DIR#>', $emoticons, $postrow);
$postrow = str_replace('<#IMG_DIR#>', $img_dir, $postrow);

#########################################################################################################################
##### Everything between the echo (' and '); is the template for the "repeating" section. #####
##### Useful variables: #####
##### '.$topictitle.' = The title of the news post. #####
##### '.$postrow.' = The actual text of the news post. #####
##### '.$writter.' = The name of the person that wrote the news post. #####
##### '.$date.' = The date of the news post. #####
##### '.$titleid.' = The numeric number IPB givies to the topic. Useful if you want to generate a "comments" link. #####
##### #####
##### Below is an example, edit it to meet your needs. #####
#########################################################################################################################
echo ('

<p>'.$topictitle.'</p>
<p>'.$postrow.'</p>
<p>'.$writter.'</p>
<p>'.$date.'</p>
<p><a href="http://laxbaxtm1.free.fr/forum/index.php?showtopic='.$titleid.'">Commentaires</a></p>
<p><hr></p>

');
}
?>

________________________________________________________

J'ai endever mes identifiant Very Happy

Nevinrhal
html mioche
html mioche
MessageProbleme installation script de news de IPB , Posté le: 13-06-2005 19:43

il y a une ligne comme ca:
Code:
$topicq = mysql_query ("select* from ibf_topics where forum_id=".$forumid." order by start_date desc");

il faut qu'elle soit comme ca:
Code:
$topicq = mysql_query ("select * from ibf_topics where forum_id=".$forumid." order by start_date desc");
drick-hose_c
frontpage mioche
frontpage mioche
MessageProbleme installation script de news de IPB , Posté le: 14-06-2005 9:10


J'ai essayer c'est toujours pareil ! Crying or Very sad
Nevinrhal
html mioche
html mioche
MessageProbleme installation script de news de IPB , Posté le: 14-06-2005 13:46

Je suis désolé mais je ne peut pas t'aider Sad Le Sql n'est pas mon fort (je demande de l'aide souvant) et ton code est assez compliqué. Encore désolé.

Ta table existe ? Je croit que ton forum s'occupe de lui même de ses tables, je sais pas si ca fait des bases de données valides qui peuvent etre reprises.
drick-hose_c
frontpage mioche
frontpage mioche
MessageProbleme installation script de news de IPB , Posté le: 14-06-2005 14:05

Moi on ma dit que c'etait la base de donnée qui merder mais moi j'mis connais pas du tout en sql etc.... Aucune table on etait crée pour le script, on ma dis qu'il en faller pas mais dans les identifiant il demande la base de donnée donc a mona vis si mais sa change rien tout est dans la même, si tu connaitré quelqu'un qui si connait bien est qui pourrais m'aider sa serait super !
Nevinrhal
html mioche
html mioche
MessageProbleme installation script de news de IPB , Posté le: 14-06-2005 14:08

Je connais pas grand monde qui aide en SQL, a part poster dans ce forum (et encore, c'est pas leur spécialité), je vois pas
drick-hose_c
frontpage mioche
frontpage mioche
MessageProbleme installation script de news de IPB , Posté le: 14-06-2005 14:14

Merci quand même j'ai eu une fausse joie mais c'est pas grave merci.
@+ Crying or Very sad
Montrer les messages depuis:   
Poster un nouveau sujet sur php   Répondre au sujet à php:Probleme installation script de news de IPB    Accueil Forum -> php Toutes les heures sont au format GMT + 1 Heure
Page 1 sur 1

 
Sauter vers:  
S'enregistrerS'enregistrer
ProfilProfil
Se connecter pour vérifier ses messages privésSe connecter pour vérifier ses messages privés
RechercherRechercher
Liste des MembresMembres
FAQFAQ
ConnexionConnexion 


© Mentions Légales