Fork me on GitHub


 Bas   Précédent   Suivant

« 1 ... 4 5 6 (7) 8 9 10 »


probleme avec include rien ne s'affiche?
Aspirant
Inscrit: 05/04/2010 08:31
Messages: 94
Bonsoir,
Voici un problème que je trouve assez étrange, j'ai besoin d'inclure un fichier se trouvant sur un autre serveur dans ma page theme.html.
j'antre donc
<{includeq file="http://users.swing.be/dj-koody/playingnow2.html"}>

dans mon theme.html mais rien ne s'affiche?
pourriez vous m'éclairer sur ce problème et comment le résoudre svp merci

Posté le : 25/02/2011 20:17
Transférer la contribution vers d'autres applications Transférer


Re: modification de mainfile.php
Aspirant
Inscrit: 05/04/2010 08:31
Messages: 94
Un grand merci Régulier
Sa fonctionne ;)

Posté le : 20/02/2011 15:18
Transférer la contribution vers d'autres applications Transférer


modification de mainfile.php
Aspirant
Inscrit: 05/04/2010 08:31
Messages: 94
Bonjour
Je suis le tuto "transfert de son site" mais je ne trouve pas ou changer les infos d'accès a ma db voici ce que dit le tuto a ce propos
"// Your database user account on the host
define('XOOPS_DB_USER', 'root');

// Database Password
Indiquez ici le mot de passe que vous a donné votre hébergeur pour remplacer root qui est le user par défaut avec easyphp par exemple
// Password for your database user account
define('XOOPS_DB_PASS', 'password');

// Database Name
Remplacez xoops2 par le nom de base de données que vous a transmis votre hébergeur.
// The name of database on the host. The installer will attempt to create the database if not exist
define('XOOPS_DB_NAME', 'xoops2');"

Voici mon mainfile.php
********************************************************
<?php
/**
* XOOPS main configuration file
*
* You may not change or alter any portion of this comment or credits
* of supporting developers from this source code or any supporting source code
* which is considered copyrighted (c) material of the original comment or credit authors.
* 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.
*
* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
* @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
* @version $Id: mainfile.dist.php 5192 2010-09-06 09:00:36Z forxoops $
*/

if (!defined("XOOPS_MAINFILE_INCLUDED")) {
define("XOOPS_MAINFILE_INCLUDED", 1);

// XOOPS Physical Paths

// Physical path to the XOOPS documents (served) directory WITHOUT trailing slash
define('XOOPS_ROOT_PATH', '/Site_1');

// For forward compatibility
// Physical path to the XOOPS library directory WITHOUT trailing slash
define('XOOPS_PATH', './xoops_lib');
// Physical path to the XOOPS datafiles (writable) directory WITHOUT trailing slash
define('XOOPS_VAR_PATH', './xoops_data');
// Alias of XOOPS_PATH, for compatibility, temporary solution
define("XOOPS_TRUST_PATH", XOOPS_PATH);

// URL Association for SSL and Protocol Compatibility
$http = 'http://';
if (!empty($_SERVER['HTTPS'])) {
$http = ($_SERVER['HTTPS']=='on') ? 'https://' : 'http://';
}
define('XOOPS_PROT', $http);

// XOOPS Virtual Path (URL)
// Virtual path to your main XOOPS directory WITHOUT trailing slash
// Example: define('XOOPS_URL', 'http://bmfm.tonsite.biz');
define('XOOPS_URL', 'http://127.0.0.1:9888/Site_1/');

// Shall be handled later, don't forget!
define("XOOPS_CHECK_PATH", 0);
// Protect against external scripts execution if safe mode is not enabled
if (XOOPS_CHECK_PATH && !@ini_get("safe_mode")) {
if (function_exists("debug_backtrace")) {
$xoopsScriptPath = debug_backtrace();
if (!count($xoopsScriptPath)) {
die("XOOPS path check: this file cannot be requested directly");
}
$xoopsScriptPath = $xoopsScriptPath[0]["file"];
} else {
$xoopsScriptPath = isset($_SERVER["PATH_TRANSLATED"]) ? $_SERVER["PATH_TRANSLATED"] : $_SERVER["SCRIPT_FILENAME"];
}
if (DIRECTORY_SEPARATOR != "/") {
// IIS6 may double the \ chars
$xoopsScriptPath = str_replace(strpos($xoopsScriptPath, "\\\", 2) ? "\\\" : DIRECTORY_SEPARATOR, "/", $xoopsScriptPath);
}
if (strcasecmp(substr($xoopsScriptPath, 0, strlen(XOOPS_ROOT_PATH)), str_replace(DIRECTORY_SEPARATOR, "/", XOOPS_ROOT_PATH))) {
exit("XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run.");
}
}

// Secure file
require XOOPS_VAR_PATH . '/data/secure.php';

define('XOOPS_GROUP_ADMIN', '1');
define('XOOPS_GROUP_USERS', '2');
define('XOOPS_GROUP_ANONYMOUS', '3');

if (!isset($xoopsOption["nocommon"]) && XOOPS_ROOT_PATH != "") {
include XOOPS_ROOT_PATH."/include/common.php";
}

}

?>
********************************************************
Déjà un grand merci pour votre aide

Posté le : 20/02/2011 14:52
Transférer la contribution vers d'autres applications Transférer


Re: modifier system_siteclosed.html
Aspirant
Inscrit: 05/04/2010 08:31
Messages: 94
Ok j'ai trouver je faisais fausse route en faite tous ce passe dans le thème.
Désoler pour le dérangement.
Merci pour votre aide.

Posté le : 11/02/2011 20:39
Transférer la contribution vers d'autres applications Transférer


modifier system_siteclosed.html
Aspirant
Inscrit: 05/04/2010 08:31
Messages: 94
Bonsoir,
Je cherche a modifier la page de maintenance du site, j'ai trouver le fichier system_siteclosed.html qui ce trouve dans modules/system/templates/..
mais bizarrement j'ai bon le modifier rien ne ce passe?
Pouvez vous m'aider svp merci

Posté le : 11/02/2011 20:24
Transférer la contribution vers d'autres applications Transférer


Re: Rafraichire un code php dans le module ghost sans recharger la page entiere?
Aspirant
Inscrit: 05/04/2010 08:31
Messages: 94
Bonjour,
Déjà un grand merci a tous les deux.
J'ai essayer avec mytabs mais sans succès j'ai bon lire la documentation mais pas moyen de faire quelque chose de correct.
Ghia je débute et je comprend pas tres bien votre dernier topic sur ajax.

Posté le : 11/02/2011 12:14
Transférer la contribution vers d'autres applications Transférer


Rafraichire un code php dans le module ghost sans recharger la page entiere?
Aspirant
Inscrit: 05/04/2010 08:31
Messages: 94
Bonjour,
Je cherche un moyen de rafraichir ce code php d'un module xoops mais je ne connais pas le moyen d'y arriver.
on ma proposer ce code mais sa ne change rien:
<head>
<script type="text/javascript">

function writediv(texte, endroit)

{

document.getElementById(endroit).innerHTML = texte;

}



function afficher()

{



if(texte = file('index.php'')) // Ton fichier à inclure dans la <div>

{

writediv('<p align="left">'+texte+'</p>', 'ghost'); // chat = <div id='ghost'>, c'est l'emplacement où tu veux placer ta page

}

}



function file(fichier)

{

if(window.XMLHttpRequest) // FIREFOX

xhr_object = new XMLHttpRequest();

else if(window.ActiveXObject) // IE

xhr_object = new ActiveXObject("Microsoft.XMLHTTP");

else

return(false);

xhr_object.open("GET", fichier, false);

xhr_object.send(null);

if(xhr_object.readyState == 4) return(xhr_object.responseText);
.
else return(false);

}



setInterval('afficher()', 10000); // nombre de milisecondes entre deux rafraichissements : ici 10 secondes

</script>
</head>
<div id="ghost">
<?

// Récupération de la date et de l'heure.
$jour=date('w');
$h=date('H');

// Affichage du jour selon la variable $jour
switch($jour)
{

// Dimanche

case 0:
// Affichage du message selon la variable d'heures $h
switch($h)
{
////// Pour ajouter plus de message ajoutez ceci après break; :
// case $h>=00 && $h<10:
// echo 'Texte';
// break;
////// Vous pouvez éxécuter autre chose que du texte comme des autres script, des conditions if,else, etc...
case $h>=00 && $h<12:
echo '24h00 - Les nocturnes<br>A suivre:<br>12h00 - BmFm week-end avec Patrick';
break;
case $h>=12 && $h<15:
echo '12h00 - BmFm week-end avec Patrick<br>A suivre:<br>15h00 - L essenciel de la musique';
break;
case $h>=15 && $h<16:
echo '15h00 - L essenciel de la musique<br>A suivre:<br>16h00 - L afternoon du week-end avec Fab';
break;
case $h>=16 && $h<20:
echo '16h00 - L afternoon du week-end avec Fab<br>A suivre:<br>20h00 - Night Fever avec Joseph';
break;
case $h>=20 && $h<24:
echo '20h00 Night Fever avec Joseph<br>A suivre:<br>24h00 - Les nocturnes';
break;
default :
echo 'Probleme avec l\heure'; // Les heures doivent être continuent donc 00 à 10 de 10 à 20 et de 20 à 24
}
break;

// Lundi

case 1:
switch($h)
{
case $h>=00 && $h<06:
echo '24h00 - Les nocturnes<br>A suivre:<br>06h00 - Le Wake UP avec Vince & Cristina';
break;
case $h>=06 && $h<10:
echo '06h00 - Le Wake UP avec Vince & Cristina<br>A suivre:<br>10h00 - Les Matinales avec Michel';
break;
case $h>=10 && $h<13:
echo '10h00 - Les Matinales avec Michel<br>A suivre:<br>13h00 - Bmfm sélection actualité des stars avec Eric';
break;
case $h>=13 && $h<15:
echo '13h00 - Bmfm sélection actualité des stars avec Eric<br>A suivre:<br>15h00 - Michel';
break;
case $h>=15 && $h<17:
echo '15h00 - Michel<br>A suivre:<br>17h00 - Si On Se Faisit Plaisir! avec Marco et Natacha';
break;
case $h>=17 && $h<19:
echo '17h00 - Si On Se Faisit Plaisir! avec Marco et Natacha<br>A suivre:<br>19h00 - Les Soirées 80 avec Albert Georges';
break;
case $h>=19 && $h<22:
echo '19h00 - Les Soirées 80 avec Albert Georges<br>A suivre<br>22h00 - LatinAfrica avec Campbell';
break;
break;
case $h>=22 && $h<24:
echo '22h00 - LatinAfrica avec Campbell<br>A suivre<br>24h00 - Les nocturnes';
break;
echo 'Probleme avec l\heure';
}
break;

//Mardi

case 2:
switch($h)
{
case $h>=00 && $h<06:
echo '24h00 - Les nocturnes<br>A suivre:<br>06h00 - Le Wake UP avec Vince & Cristina';
break;
case $h>=06 && $h<10:
echo '06h00 - Le Wake UP avec Vince & Cristina<br>A suivre:<br>10h00 - Les Matinales avec Michel';
break;
case $h>=10 && $h<13:
echo '10h00 - Les Matinales avec Michel<br>A suivre:<br>13h00 - Bmfm sélection actualité des stars avec Eric';
break;
case $h>=13 && $h<15:
echo '13h00 - Bmfm sélection actualité des stars avec Eric<br>A suivre:<br>15h00 - Michel';
break;
case $h>=15 && $h<17:
echo '15h00 - Michel<br>A suivre:<br>17h00 - Si On Se Faisit Plaisir! avec Marco et Natacha';
break;
case $h>=17 && $h<19:
echo '17h00 - Si On Se Faisit Plaisir! avec Marco et Natacha<br>A suivre:<br>19h00 - Les Soirées 80 avec Albert Georges';
break;
case $h>=19 && $h<22:
echo '19h00 - Les Soirées 80 avec Albert Georges<br>A suivre<br>22h00 - LatinAfrica avec Campbell';
break;
break;
case $h>=22 && $h<24:
echo '22h00 - LatinAfrica avec Campbell<br>A suivre<br>24h00 - Les nocturnes';
break;
default :
echo 'Probleme avec l\heure';
}
break;

// Mercredi

case 3:
switch($h)
{
case $h>=00 && $h<06:
echo '24h00 - Les nocturnes<br>A suivre:<br>06h00 - Le Wake UP avec Vince & Cristina';
break;
case $h>=06 && $h<10:
echo '06h00 - Le Wake UP avec Vince & Cristina<br>A suivre:<br>10h00 - Les Matinales avec Michel';
break;
case $h>=10 && $h<13:
echo '10h00 - Les Matinales avec Michel<br>A suivre:<br>13h00 - Bmfm sélection actualité des stars avec Eric';
break;
case $h>=13 && $h<15:
echo '13h00 - Bmfm sélection actualité des stars avec Eric<br>A suivre:<br>15h00 - Michel';
break;
case $h>=15 && $h<17:
echo '15h00 - Michel<br>A suivre:<br>17h00 - Si On Se Faisit Plaisir! avec Marco et Natacha';
break;
case $h>=17 && $h<19:
echo '17h00 - Si On Se Faisit Plaisir! avec Marco et Natacha<br>A suivre:<br>19h00 - Les Soirées 80 avec Albert Georges';
break;
case $h>=19 && $h<22:
echo '19h00 - Les Soirées 80 avec Albert Georges<br>A suivre<br>22h00 - LatinAfrica avec Campbell';
break;
break;
case $h>=22 && $h<24:
echo '22h00 - LatinAfrica avec Campbell<br>A suivre<br>24h00 - Les nocturnes';
break;
default :
echo 'Probleme avec l\heure';
}
break;

// Jeudi

case 4:
switch($h)
{
case $h>=00 && $h<06:
echo '24h00 - Les nocturnes<br>A suivre:<br>06h00 - Le Wake UP avec Vince & Cristina';
break;
case $h>=06 && $h<10:
echo '06h00 - Le Wake UP avec Vince & Cristina<br>A suivre:<br>10h00 - Les Matinales avec Michel';
break;
case $h>=10 && $h<13:
echo '10h00 - Les Matinales avec Michel<br>A suivre:<br>13h00 - Bmfm sélection actualité des stars avec Eric';
break;
case $h>=13 && $h<15:
echo '13h00 - Bmfm sélection actualité des stars avec Eric<br>A suivre:<br>15h00 - Michel';
break;
case $h>=15 && $h<17:
echo '15h00 - Michel<br>A suivre:<br>17h00 - Si On Se Faisit Plaisir! avec Marco et Natacha';
break;
case $h>=17 && $h<19:
echo '17h00 - Si On Se Faisit Plaisir! avec Marco et Natacha<br>A suivre:<br>19h00 - Les Soirées 80 avec Albert Georges';
break;
case $h>=19 && $h<22:
echo '19h00 - Les Soirées 80 avec Albert Georges<br>A suivre<br>22h00 - LatinAfrica avec Campbell';
break;
break;
case $h>=22 && $h<24:
echo '22h00 - LatinAfrica avec Campbell<br>A suivre<br>24h00 - Les nocturnes';
break;
default :
echo 'Probleme avec l\heure';
}
break;

//Vendredi

case 5:
switch($h)
{
case $h>=00 && $h<06:
echo '24h00 - Les nocturnes<br>A suivre:<br>06h00 - Le Wake UP avec Vince & Cristina';
break;
case $h>=06 && $h<10:
echo '06h00 - Le Wake UP avec Vince & Cristina<br>A suivre:<br>10h00 - Les Matinales avec Michel';
break;
case $h>=10 && $h<13:
echo '10h00 - Les Matinales avec Michel<br>A suivre:<br>13h00 - Bmfm sélection actualité des stars avec Eric';
break;
case $h>=13 && $h<15:
echo '13h00 - Bmfm sélection actualité des stars avec Eric<br>A suivre:<br>15h00 - Michel';
break;
case $h>=15 && $h<17:
echo '15h00 - Michel<br>A suivre:<br>17h00 - Si On Se Faisit Plaisir! avec Marco et Natacha';
break;
case $h>=17 && $h<19:
echo '17h00 - Si On Se Faisit Plaisir! avec Marco et Natacha<br>A suivre:<br>19h00 - Les Soirées 80 avec Albert Georges';
break;
case $h>=19 && $h<22:
echo '19h00 - Les Soirées 80 avec Albert Georges<br>A suivre<br>22h00 - LatinAfrica avec Campbell';
break;
break;
case $h>=22 && $h<24:
echo '22h00 - LatinAfrica avec Campbell<br>A suivre<br>24h00 - Les nocturnes';
break;
default :
echo 'Probleme avec l\heure';
}
break;

// Samedi

case 6:
switch($h)
{
case $h>=00 && $h<12:
echo '24h00 - Les nocturnes<br>A suivre:<br>12h00 - BmFm week-end avec Patrick';
break;
case $h>=12 && $h<15:
echo '12h00 - BmFm week-end avec Patrick<br>A suivre:<br>15h00 - L essenciel de la musique';
break;
case $h>=15 && $h<16:
echo '15h00 - L essenciel de la musique<br>A suivre:<br>16h00 - L afternoon du week-end avec Fab';
break;
case $h>=16 && $h<20:
echo '16h00 - L afternoon du week-end avec Fab<br>A suivre:<br>20h00 - Night Fever avec Joseph';
break;
case $h>=20 && $h<24:
echo '20h00 Night Fever avec Joseph<br>A suivre:<br>24h00 - Les nocturnes';
break;
default :
echo 'Probleme avec l\heure';
}
break;
default:
echo 'Probleme avec le jour';
}
?>
<div>


Sa fait 3 jours que je cherche sans résultat je me tourne vers votre savoir
Merci de m'aider

Posté le : 10/02/2011 17:28
Transférer la contribution vers d'autres applications Transférer


Re: probleme avec doctype
Aspirant
Inscrit: 05/04/2010 08:31
Messages: 94
Merci Wailers,
J'ai réusis grace a votre aide, maintenant sa fonctionne.
mille merci

Posté le : 07/02/2011 17:15
Transférer la contribution vers d'autres applications Transférer


Re: probleme avec doctype
Aspirant
Inscrit: 05/04/2010 08:31
Messages: 94
Non ce ne sont pas ceux d'origine je les ais effectivement saisis

Posté le : 07/02/2011 12:29
Transférer la contribution vers d'autres applications Transférer


Re: probleme avec doctype
Aspirant
Inscrit: 05/04/2010 08:31
Messages: 94
Merci pour ta réponse rapide Wailers
j'ai trouver ce doctype qui fonctionne pour les caractere accentué
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
mais sa déforme tout mon theme.??

Posté le : 07/02/2011 12:21
Transférer la contribution vers d'autres applications Transférer



 Haut
« 1 ... 4 5 6 (7) 8 9 10 »




Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

78 Personne(s) en ligne (52 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 78 | Plus ...