Aller au contenu

scarface7

Actif
  • Compteur de contenus

    47
  • Inscrit(e) le

  • Dernière visite

Messages postés par scarface7

  1. Bonjour en effet je viens d'installer un template joomla achaque fois je vais sur le site j'ai ce message

    Your are currently browsing this site with Internet Explorer 6 (IE6).

    NOTE: This template is compatible with IE6, however your experience will be enhanced with a newer browser.

    The last version of Internet Explorer 6 was called Service Pack 1 for Internet Explorer 6 and was released in December of 2004. By continuing to run Internet Explorer 6 you are open to any and all security vulnerabilities discovered since that date. In October of 2006, Microsoft released version 7 of Internet Explorer that, in addition to providing greater safety in navigation, which allows the Internet Explorer browser to identify as' modern browsers'. Microsoft has launched Internet Explorer 7 as a high-priority update, and is now available to download for free without any certification requirements. As of Feb 12th, 2008 Microsoft is forcing updates to Internet Explorer 6 in order to move people towards the much improved and secure version 7. Please ensure you don't hamper this process. It's for your own good!

    Download Internet Explorer 7 NOW!

    J'aimerai savoir comment désactivé cela ....

    merci d'avance

  2. Bonjour,

    Je voudrais vous demander un renseignement:

    Comment faites vous, en PHP / MySQl pour détecter automatiquement la langue du navigateur et par la suite, de redirectionner l'internaute vers la page acceuil de sa langue préférence?

    www.monsite.com/fr/

    www.monsite/com/en/

    Si la langue n'est pas idetifié sur le navigateur de l'internaute, la page d'accueil par défaut sera affichée : -www.monsite.com/fr/

    Est ce qui vous connaissez un script tout fait qui permettra de faire cela?

    Merci d'avance!

  3. Je viens d'activé l'option SEF (Search Engine Friendly) dans le menu site/configuration globale.ensuite j'ai modifier le fichier. htaccess.txt en .htaccess (via FTP )

    les liens en changé sauf que j'ai ce message comme erreur quand je clique sur les liens

    404 - Component not found

    You may not be able to visit this page because of:

    an out-of-date bookmark/favourite

    a search engine that has an out-of-date listing for this site

    a mistyped address

    you have no access to this page

    The requested resource was not found.

    An error has occurred while processing your request.

    Please try one of the following pages:

    Home Page

    If difficulties persist, please contact the System Administrator of this site.

    Component not found

    A l'aide s'il vous plait

  4. Voici le contenu du fichier helper.php

    <?php
    /**
    * _AT_version $Id: helper.php 9764 2007-12-30 07:48:11Z rhuk $
    * _AT_package RocketTheme
    * _AT_copyright Copyright © 2005 - 2008 RocketTheme, LLC. All rights reserved.
    * _AT_license GNU/GPL, see LICENSE.php
    */

    // no direct access
    defined('_JEXEC') or die('Restricted access');

    require_once (JPATH_SITE.DS.'components'.DS.'com_content'.DS.'helpers'.DS.'route.php');

    class modRokMiniNewsHelper
    {

    function getSection(&$params) {

    $db =& JFactory::getDBO();
    $user =& JFactory::getUser();
    $userId = (int) $user->get('id');

    $secid = trim( $params->get('secid') );
    $aid = $user->get('aid', 0);

    $contentConfig = &JComponentHelper::getParams( 'com_content' );
    $access = !$contentConfig->get('shownoauth');

    $query = 'SELECT s.id, s.title, s.alias' .
    ' FROM #__sections AS s' .
    ' WHERE s.id > 0 ' .
    ($access ? ' AND s.access <= ' .(int) $aid : '').
    ' AND s.published = 1 AND s.id = ' . $secid;

    $db->setQuery($query);
    $section = $db->loadObject();

    return ($section);

    }

    function getCategories(&$params) {

    $db =& JFactory::getDBO();
    $user =& JFactory::getUser();
    $userId = (int) $user->get('id');

    $secid = trim( $params->get('secid') );
    $aid = $user->get('aid', 0);

    $contentConfig = &JComponentHelper::getParams( 'com_content' );
    $access = !$contentConfig->get('shownoauth');

    $query = 'SELECT c.id, c.title, c.alias' .
    ' FROM #__categories AS c' .
    ' WHERE c.id > 0 ' .
    ($access ? ' AND c.access <= ' .(int) $aid : '').
    ' AND c.published = 1 AND c.section = ' . $secid;

    $db->setQuery($query);
    $categories = $db->loadObjectList();

    return ($categories);

    }

    function getList(&$params)
    {
    global $mainframe;

    $db =& JFactory::getDBO();
    $user =& JFactory::getUser();
    $userId = (int) $user->get('id');

    $count = 15; //hardcode a max of 15 as that is the max available to display
    $catid = trim( $params->get('catid') );
    $secid = trim( $params->get('secid') );
    $show_front = $params->get('show_front', 1);
    $aid = $user->get('aid', 0);

    $text_length = intval($params->get( 'preview_count', 200) );

    $contentConfig = &JComponentHelper::getParams( 'com_content' );
    $access = !$contentConfig->get('shownoauth');

    $nullDate = $db->getNullDate();

    $date =& JFactory::getDate();
    $now = $date->toMySQL();

    $where = 'a.state = 1'
    . ' AND ( a.publish_up = '.$db->Quote($nullDate).' OR a.publish_up <= '.$db->Quote($now).' )'
    . ' AND ( a.publish_down = '.$db->Quote($nullDate).' OR a.publish_down >= '.$db->Quote($now).' )'
    ;

    // User Filter
    switch ($params->get( 'user_id' ))
    {
    case 'by_me':
    $where .= ' AND (created_by = ' . (int) $userId . ' OR modified_by = ' . (int) $userId . ')';
    break;
    case 'not_me':
    $where .= ' AND (created_by <> ' . (int) $userId . ' AND modified_by <> ' . (int) $userId . ')';
    break;
    }

    // Ordering
    switch ($params->get( 'ordering' ))
    {
    case 'm_dsc':
    $ordering = 'a.modified DESC, a.created DESC';
    break;
    case 'c_dsc':
    default:
    $ordering = 'a.created DESC';
    break;
    }

    if ($catid)
    {
    $ids = explode( ',', $catid );
    JArrayHelper::toInteger( $ids );
    $catCondition = ' AND (cc.id=' . implode( ' OR cc.id=', $ids ) . ')';
    }
    if ($secid)
    {
    $ids = explode( ',', $secid );
    JArrayHelper::toInteger( $ids );
    $secCondition = ' AND (s.id=' . implode( ' OR s.id=', $ids ) . ')';
    }

    // Content Items only
    $query = 'SELECT a.*, ' .
    ' CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END as slug,'.
    ' CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END as catslug'.
    ' FROM #__content AS a' .
    ($show_front == '0' ? ' LEFT JOIN #__content_frontpage AS f ON f.content_id = a.id' : '') .
    ' INNER JOIN #__categories AS cc ON cc.id = a.catid' .
    ' INNER JOIN #__sections AS s ON s.id = a.sectionid' .
    ' WHERE '. $where .' AND s.id > 0' .
    ($access ? ' AND a.access <= ' .(int) $aid. ' AND cc.access <= ' .(int) $aid. ' AND s.access <= ' .(int) $aid : '').
    ($catid ? $catCondition : '').
    ($secid ? $secCondition : '').
    ($show_front == '0' ? ' AND f.content_id IS NULL ' : '').
    ' AND s.published = 1' .
    ' AND cc.published = 1' .
    ' ORDER BY '. $ordering;
    $db->setQuery($query, 0, $count);
    $rows = $db->loadObjectList();

    $i = 0;
    $lists = array();
    foreach ( $rows as $row )
    {
    $lists[$i]->id = $row->id;
    $lists[$i]->thumb = $i > 1 ? false : modRokMiniNewsHelper::getThumb($row->introtext);
    $lists[$i]->created = $row->created;
    $lists[$i]->modified = $row->modified;
    $lists[$i]->link = JRoute::_(ContentHelperRoute::getArticleRoute($row->slug, $row->catslug, $row->sectionid));
    $lists[$i]->title = htmlspecialchars( $row->title );
    $lists[$i]->introtext = $i > 4 ? false : modRokMiniNewsHelper::prepareContent( $row->introtext, $text_length);
    $i++;
    }

    return $lists;
    }

    function getThumb($text, $size=70, $reflections=false) {

    preg_match( "'src=(?:\"|\')?(?<imgSrc>[^>]*[^/].(?:jpg|bmp|gif|png))(?:\"|\')?'", $text, $matches );

    if (isset($matches[1])) {
    $image_path = $matches[1];

    //remove any protocol/site info from the image path
    $uri = $_SERVER['REQUEST_URI'];
    if (strpos($image_path,$uri) !== false ) {
    $image_path = substr($image_path,strpos($image_path, $uri)+strlen($uri));
    }

    //if after removing the uri, still has protocol then the image
    //is remote and we don't support thumbs for external images
    if (strpos($image_path,'http://') !== false ||
    strpos($image_path,'https://') !== false) {
    return false;
    }

    // create a thumb filename
    $file_div = strrpos($image_path,'.');
    $thumb_ext = substr($image_path, $file_div);
    $thumb_prev = substr($image_path, 0, $file_div);
    $thumb_path = $thumb_prev . "_thumb" . $thumb_ext;

    // check to see if this file exists, if so we don't need to create it
    if (!file_exists($thumb_path)) {
    // file doens't exist, so create it and save it
    include_once('thumbnail.inc.php');
    $thumb = new Thumbnail($image_path);
    $thumb->resize($size);
    if ($reflections) {
    $thumb->createReflection(30,30,60,false);
    }
    if (!is_writable(dirname($thumb_path))) {
    $thumb->destruct();
    return false;
    }
    $thumb->save($thumb_path);
    $thumb->destruct();
    }
    return ($thumb_path);
    } else {
    return false;
    }
    }

    function prepareContent( $text, $length=200 ) {
    // strips tags won't remove the actual jscript
    $text = preg_replace( "'<script[^>]*>.*?</script>'si", "", $text );



    $text = preg_replace( '/{.+?}/', '', $text);
    // replace line breaking tags with whitespace
    $text = strip_tags(preg_replace( "'<(br[^/>]*?/|hr[^/>]*?/|/(div|h[1-6]|li|p|td))>'si", ' ', $text ));
    // cut off text at word boundary if required
    if (strlen($text) > $length) {
    $text = substr($text, 0, strpos($text, ' ', $length)) . "..." ;
    }
    return $text;
    }
    }

  5. Bonjour je viens d'installer joomla et le theme Terran tribune.

    mais il ya un module qui ne marche pas bien il affiche les erreures suivantes :

    Warning: preg_match() [function.preg-match]: Compilation failed: unrecognized character after (?< at offset 16 in /home/automeca/public_html/modules/mod_rokmininews/helper.php on line 170

    Warning: preg_match() [function.preg-match]: Compilation failed: unrecognized character after (?< at offset 16 in /home/automeca/public_html/modules/mod_rokmininews/helper.php on line 170

    lien du site http://www.automecanik.ro/

    merci pour votre aide

  6. Bonjour

    En effet je viens d'installer le module Mogulus sous joomla 10.15

    Afin de mettre des vidéos dans mon site le problème c'est que je ne sais pas comment ajouté les vidéos car dans l'administration je retrouve pas les options d'ajout de vidéo... si quelque parmi vous a déjà utiliser ce module please aidez moi.

    Merci

  7. je recherche un script php avec des services proposant la création de votre propre webTV 24h/24, 7j/7 avec une programmation de vidéos personnelles ou en direct à partir de votre webcam ou encore de vidéos issues de Youtube . Avec une certaine aisance, vous pourrez personnaliser facilement votre chaîne Webtv avec un logo.

    Merci

  8. Comment faire pour activer un module joomla en page daccueil ?

    En effet je suis nouveau dans lunivers joomla

    Je viens dinstaller joomla 1.0.15

    Avec le thème rt_versatility_III.

    Jaimerai que les modules qui accompagnent le thème soient affichés en page daccueil.

    Par contre dans mon cas cest les modules par défaut de joomla qui saffiche.

    Comment dois je faire pour désactivé les modules par défaut et affiché les modules du thème Versatility III

    bot_rokslimbox

    mod_rokflickr

    mod_roklogin

    Merci davance

  9. Bonjour

    jai deux site d'actualités j'aimerai aficher les news du site A www.monsite.com sur le site B www.sitemont.info a base d'un fil RSS du site A.

    Voici comment j'ai créer le fil RSS du site A

    <?php

    header("Content-Type: application/xml");

    $sql['hote'] = 'localhost';

    $sql['user'] = 'monsite';

    $sql['password'] = 'monsiteperso';

    $sql['base'] = 'monsiteperso';

    $sql['connection'] = _AT_mysql_connect($sql['hote'], $sql['user'], $sql['password']);

    mysql_select_db($sql['base'], $sql['connection']);

    ?>

    <?echo "<?";?>xml version="1.0" encoding="iso-8859-1"<?echo "?>\n";?>

    <!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" &quot;http://my.netscape.com/publish/formats/rss-0.91.dtd">

    <rss version="0.91">

    <channel>

    <title>monsiteperso</title>

    <link&gt;http://www.monsiteperso.info/</link>

    <description>monsiteperso</description>

    <language>fr</language>

    <?

    $rub=$_GET['rub'];

    if($rub<>NULL){$da="where id_rubrique='".$rub."'";}

    $res=mysql_query("SELECT * FROM site_articles $da order by id_article DESC limit 10");

    while ($row=mysql_fetch_array($res)){?>

    <item>

    <title><?=$row["titre"];?></title>

    <link&gt;http://www.monsiteperso/tout_larticle.php?id_article=<?=$row["id_article"];?></link>

    <description><?=strip_tags($row["chapo"]);?></description>

    </item>

    <?}?>

    </channel>

    </rss>

    Mon problème c'est que je veux récupéré sur le site B toute l'actualité du site A en intégralité titre + description + Image + développement de l'article entière

    Je cherche comment définir les balises : Image de l'article et le corps de l'article à ajouté sur le Fichier RSS du site A afin que le site B soit mis ajour automatiquement à Base du fichier RSS du site A

    J'espère que je me fais comprendre

  10. Bonsoir a tous

    en effet j'ai petit probleme de mise en page mon site s'affiche bien sur le navigateur Internet explorer et sur Firefox le site ne s'affiche pas bien car la mise en page est en désorde des amùis mon dit de refaire tout le site ?

    je ne sais pas quoi faire si vous avez une solution aidez moi

  11. Bonjour a tous

    En effet jai un petit problème que je narrive pas à résoudre

    Jai un site www.xxxx.com/news/ et je veux faire appelle au dossier news sur un sous domaine news.xxxx.com juste pour faire une illusion optique car le script news est installer a la racine du site mais jairai quelle soit aussi accessible sur le sous domaines

    Merci

  12. Bonjour à tous!

    En effet jai un petit problème je veux mettre un fil RSS dans mon site et je veux que ces info soit lu dans mon site et je ne sais pas comment y procéder .

    Merci davance

×
×
  • Créer...