Annonce

#31 2006-04-20 23:24:56

dreamer
Membre
St Cyr/mer (83)
2006-02-26
1048

Re: mod new 3

Voici la page complete :

<?php
// +-----------------------------------------------------------------------+
// | PhpWebGallery - a PHP based picture gallery                           |
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
// | Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net |
// +-----------------------------------------------------------------------+
// | branch        : BSF (Best So Far)
// | file          : $RCSfile$
// | last update   : $Date: 2005-10-31 14:47:58 +0100 (lun, 31 oct 2005) $
// | last modifier : $Author: plg $
// | revision      : $Revision: 919 $
// +-----------------------------------------------------------------------+
// | 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                                          |
// |                                                                       |
// | 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.                                                                  |
// +-----------------------------------------------------------------------+

//--------------------------------------------------------------------- include
define('PHPWG_ROOT_PATH','./');
include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
//---------------------------------------------------------------------- logout
// BEGIN News MOD
if ($conf['news_bbcode_enabled'])
{
  include(PHPWG_ROOT_PATH.'include/functions_news.inc.php');
}
// END News MOD
if ( isset( $_GET['act'] )
     and $_GET['act'] == 'logout'
     and isset( $_COOKIE['id'] ) )
{
  // cookie deletion if exists
  setcookie( 'id', '', 0, cookie_path() );
  $url = 'category.php';
  redirect( $url );
}
//-------------------------------------------------- access authorization check
if (isset($_GET['cat']))
{
  check_cat_id($_GET['cat']);
}
check_login_authorization();
if (isset($page['cat']) and is_numeric($page['cat']))
{
  check_restrictions($page['cat']);
}
//-------------------------------------------------------------- initialization
// detection of the start picture to display
if ( !isset( $_GET['start'] )
     or !is_numeric( $_GET['start'] )
     or ( is_numeric( $_GET['start'] ) and $_GET['start'] < 0 ) )
{
  $page['start'] = 0;
}
else
{
  $page['start'] = $_GET['start'];
}

// Sometimes, a "num" is provided in the URL. It is the number
// of the picture to show. This picture must be in the thumbnails page.
// We have to find the right $page['start'] that show the num picture
// in this category
if ( isset( $_GET['num'] )
     and is_numeric( $_GET['num'] )
     and $_GET['num'] >= 0 )
{
  $page['start'] = floor( $_GET['num'] / $user['nb_image_page'] );
  $page['start']*= $user['nb_image_page'];
}

initialize_category();

// caddie filling :-)
if (isset($_GET['caddie']))
{
//  include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
 
  $query = '
SELECT DISTINCT(id)
  FROM '.IMAGES_TABLE.' AS i
    INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON id = ic.image_id
  '.$page['where'].'
;';
  fill_caddie(array_from_query($query, 'id'));
}

// creation of the array containing the cat ids to expand in the menu
// $page['tab_expand'] contains an array with the category ids
// $page['expand'] contains the string to display in URL with comma
$page['tab_expand'] = array();
if ( isset( $page['cat'] ) and is_numeric( $page['cat'] ) )
{
  // the category displayed (in the URL cat=23) must be seen in the menu ->
  // parent categories must be expanded
  $uppercats = explode( ',', $page['uppercats'] );
  foreach ( $uppercats as $uppercat ) {
    array_push( $page['tab_expand'], $uppercat );
  }
}
// in case of expanding all authorized cats $page['tab_expand'] is empty
if ( $user['expand'] )
{
  $page['tab_expand'] = array();
}
//----------------------------------------------------- template initialization
//
// Start output of page
//
$title = $page['title'];
$page['body_id'] = 'theCategoryPage';
include(PHPWG_ROOT_PATH.'include/page_header.php');

$template->set_filenames( array('category'=>'category.tpl') );
//-------------------------------------------------------------- category title
if (isset($page['cat']) and is_numeric($page['cat']))
{
  $template_title = get_cat_display_name($page['cat_name'],
                                         'category.php?cat=',
                                         false);
}
else
{
  $template_title = $page['title'];
}

//if ( isset( $page['cat_nb_images'] ) and $page['cat_nb_images'] > 0 )
//{
//  $template_title.= ' ['.$page['cat_nb_images'].']';
//}

$icon_recent = get_icon(date('Y-m-d'));

$template->assign_vars(
  array(
  'NB_PICTURE' => count_user_total_images(),
  'TITLE' => $template_title,
  'USERNAME' => $user['username'],
  'TOP_NUMBER'=>$conf['top_number'],
  'MENU_CATEGORIES_CONTENT'=>get_categories_menu(),

  'L_CATEGORIES' => $lang['categories'],
  'L_HINT_CATEGORY' => $lang['hint_category'],
  'L_SUBCAT' => $lang['sub-cat'],
  'L_IMG_AVAILABLE' => $lang['images_available'],
  'L_TOTAL' => $lang['total'],
  'L_SPECIAL_CATEGORIES' => $lang['special_categories'],
  'L_SUMMARY' => $lang['title_menu'],
  'L_UPLOAD' => $lang['upload_picture'],
  'L_COMMENT' => $lang['comments'],
  'L_IDENTIFY' => $lang['identification'],
  'L_PASSWORD' => $lang['password'],
  'L_HELLO' => $lang['hello'],
  'L_REGISTER' => $lang['ident_register'],
  'L_LOGOUT' => $lang['logout'],
  'L_ADMIN' => $lang['admin'],
  'L_ADMIN_HINT' => $lang['hint_admin'],
  'L_PROFILE' => $lang['customize'],
  'L_PROFILE_HINT' => $lang['hint_customize'],
  'L_REMEMBER_ME' => $lang['remember_me'],
   // BEGIN News MOD
  'L_NEWS_TITLE' => $lang['title_news'],
  'L_HINT_NEWS'  => $lang['hint_news'],
  'L_NO_NEWS_TRANSLATION'=>$lang['no_news_translation'],
  'L_READ_MORE' =>$lang['read_more'],
 
  'U_NEWS' => add_session_id( PHPWG_ROOT_PATH.'news.php'),
  // END News MOD

  'F_IDENTIFY' => add_session_id( PHPWG_ROOT_PATH.'identification.php' ),
  'T_RECENT' => $icon_recent,

  'U_HOME' => add_session_id( PHPWG_ROOT_PATH.'category.php' ),
  'U_REGISTER' => add_session_id( PHPWG_ROOT_PATH.'register.php' ),
  'U_LOGOUT' => PHPWG_ROOT_PATH.'category.php?act=logout',
  'U_ADMIN'=>add_session_id( PHPWG_ROOT_PATH.'admin.php' ),
  'U_PROFILE'=>add_session_id(PHPWG_ROOT_PATH.'profile.php')
  )
);
//-------------------------------------------------------------- external links
if (count($conf['links']) > 0)
{
  $template->assign_block_vars('links', array());

  foreach ($conf['links'] as $url => $label)
  {
    $template->assign_block_vars(
      'links.link',
      array(
        'URL' => $url,
        'LABEL' => $label
        ));
  }
}
// BEGIN News MOD
$template->assign_block_vars('summary', array(
'TITLE'=>$lang['hint_news'],
'NAME'=>$lang['news'],
'U_SUMMARY'=>add_session_id( 'news.php' ),
));
// END News MOD
//---------------------------------------------------------- special categories
// favorites categories
if ( !$user['is_the_guest'] )
{
  $template->assign_block_vars('username', array());

  $template->assign_block_vars(
    'special_cat',
    array(
      'URL' => add_session_id(PHPWG_ROOT_PATH.'category.php?cat=fav'),
      'TITLE' => $lang['favorite_cat_hint'],
      'NAME' => $lang['favorite_cat']
      ));
}
// most visited
$template->assign_block_vars(
  'special_cat',
  array(
    'URL' => add_session_id(PHPWG_ROOT_PATH.'category.php?cat=most_visited'),
    'TITLE' => $lang['most_visited_cat_hint'],
    'NAME' => $lang['most_visited_cat']
    ));
// best rated
if ($conf['rate'])
{
  $template->assign_block_vars(
    'special_cat',
    array(
      'URL' => add_session_id(PHPWG_ROOT_PATH.'category.php?cat=best_rated'),
      'TITLE' => $lang['best_rated_cat_hint'],
      'NAME' => $lang['best_rated_cat']
      )
    );
}
// random
$template->assign_block_vars(
  'special_cat',
  array(
    'URL' => add_session_id(PHPWG_ROOT_PATH.'random.php'),
    'TITLE' => $lang['random_cat_hint'],
    'NAME' => $lang['random_cat']
    ));
// recent pics
$template->assign_block_vars(
  'special_cat',
  array(
    'URL' => add_session_id(PHPWG_ROOT_PATH.'category.php?cat=recent_pics'),
    'TITLE' => $lang['recent_pics_cat_hint'],
    'NAME' => $lang['recent_pics_cat']
    ));
// recent cats
$template->assign_block_vars(
  'special_cat',
  array(
    'URL' => add_session_id(PHPWG_ROOT_PATH.'category.php?cat=recent_cats'),
    'TITLE' => $lang['recent_cats_cat_hint'],
    'NAME' => $lang['recent_cats_cat']
    ));
// calendar
$template->assign_block_vars(
  'special_cat',
  array(
    'URL' => add_session_id(PHPWG_ROOT_PATH.'category.php?cat=calendar'),
    'TITLE' => $lang['calendar_hint'],
    'NAME' => $lang['calendar']
    ));
//--------------------------------------------------------------------- summary

if ($user['is_the_guest'])
{
  $template->assign_block_vars('register', array());
  $template->assign_block_vars('login', array());
 
  $template->assign_block_vars('quickconnect', array());
  if ($conf['authorize_remembering'])
  {
    $template->assign_block_vars('quickconnect.remember_me', array());
  }
}
else
{
  $template->assign_block_vars('hello', array());
  $template->assign_block_vars('profile', array());

  // the logout link has no meaning with Apache authentication : it is not
  // possible to logout with this kind of authentication.
  if (!$conf['apache_authentication'])
  {
    $template->assign_block_vars('logout', array());
  }

  if ('admin' == $user['status'])
  {
    $template->assign_block_vars('admin', array());
  }
}

// search link
//$template->assign_block_vars('summary', array(
//'TITLE'=>$lang['hint_search'],
//'NAME'=>$lang['search'],
//'U_SUMMARY'=>add_session_id( 'search.php' ),
//));

// comments link
//$template->assign_block_vars('summary', array(
//'TITLE'=>$lang['hint_comments'],
//'NAME'=>$lang['comments'],
//'U_SUMMARY'=>add_session_id( 'comments.php' ),
//));

// about link
//$template->assign_block_vars('summary', array(
//'TITLE'=>$lang['about_page_title'],
//'U_SUMMARY'=>add_session_id( 'about.php?'.str_replace( '&', '&amp;', $_SERVER['QUERY_STRING'] ) )
//));

// notification
//$template->assign_block_vars(
//  'summary',
//  array(
//    'TITLE'=>l10n('notification'),
//    'NAME'=>l10n('Notification'),
//    'U_SUMMARY'=>add_session_id(PHPWG_ROOT_PATH.'notification.php')
//));

//if (isset($page['cat'])
//    and is_numeric($page['cat'])
//    and 'admin' == $user['status'])
//{
//  $template->assign_block_vars(
//    'edit',
//    array(
//      'URL' =>
//        add_session_id(
//          PHPWG_ROOT_PATH.'admin.php?page=cat_modify'
//          .'&amp;cat_id='.$page['cat']
//          )
//      )
//    );
//}

//------------------------------------------------------ main part : thumbnails
if (isset($page['cat'])
    and ((is_numeric($page['cat']) and $page['cat_nb_images'] != 0)
         or in_array($page['cat'],
                     array('search'
                           ,'most_visited'
                           ,'recent_pics'
                           ,'best_rated'
                           ,'list'
                           ,'fav'
                       ))))
{
  include(PHPWG_ROOT_PATH.'include/category_default.inc.php');

  if ('admin' == $user['status'])
  {
    $template->assign_block_vars(
      'caddie',
      array(
        'URL' =>
          add_session_id(
            PHPWG_ROOT_PATH.'category.php'
            .get_query_string_diff(array('caddie')).'&amp;caddie=1')
        )
      );
  }
}
elseif (isset($page['cat']) and $page['cat'] == 'calendar')
{
  include(PHPWG_ROOT_PATH.'include/category_calendar.inc.php');
}
elseif (isset($page['cat']) and $page['cat'] == 'recent_cats')
{
  include(PHPWG_ROOT_PATH.'include/category_recent_cats.inc.php');
}
else
{
  include(PHPWG_ROOT_PATH.'include/category_subcats.inc.php');
}
//------------------------------------------------------- category informations
if ( isset ( $page['cat'] ) )
{
  // upload a picture in the category
  if (is_numeric($page['cat'])
      and $page['cat_site_id'] == 1
      and $page['cat_dir'] != ''
      and $page['cat_uploadable'])
  {
    $url = PHPWG_ROOT_PATH.'upload.php?cat='.$page['cat'];
    $template->assign_block_vars(
      'upload',
      array('U_UPLOAD'=>add_session_id( $url ))
      );
  }

  if ( $page['navigation_bar'] != ''
       or ( isset( $page['comment'] ) and $page['comment'] != '' ) )
  {
    $template->assign_block_vars('cat_infos',array());
  }
 
  // navigation bar
  if ( $page['navigation_bar'] != '' )
  {
    $template->assign_block_vars(
      'cat_infos.navigation',
      array('NAV_BAR' => $page['navigation_bar'])
      );
  }
  // category comment
  if ( isset( $page['comment'] ) and $page['comment'] != '' )
  {
    $template->assign_block_vars(
      'cat_infos.comment',
      array('COMMENTS' => $page['comment'])
      );
  }
}
// BEGIN News MOD
//------------------------------------------------------------ news

 
  if ( !isset( $page['cat'] ) )
{
    $query = '
( SELECT n.id AS news_id
      , n.date
      , n.author
      FROM '.NEWS_GROUP_ACCESS_TABLE.' AS nga
      INNER JOIN '.NEWS_TRANSLATION_TABLE.' AS ntt ON ntt.id = nga.new_id
      INNER JOIN '.NEWS_TABLE.' AS n ON n.id = ntt.news_id
      INNER JOIN '.USER_GROUP_TABLE.' AS ug ON ug.group_id = nga.group_id
      WHERE ug.user_id = '.$user['id'].'
      AND ntt.language = \''.$user['language'].'\')
      UNION DISTINCT
      ( SELECT pn.id AS news_id
      , pn.date
      , pn.author
      FROM '.NEWS_TRANSLATION_TABLE.' AS nt
      INNER JOIN '.NEWS_TABLE.' AS pn ON pn.id = nt.news_id
      WHERE nt.status = \'public\'
      AND nt.language = \''.$user['language'].'\')
      ORDER BY date DESC
LIMIT '.$conf['nb_news_homepage'].'
;';
    $result = pwg_query($query);
   
    if (mysql_num_rows($result) > 0)
    {
        $template->assign_block_vars('news', array());
    }
   
   
    $start=0;
    while ($row = mysql_fetch_array($result))
    {
        $news_id = $row['news_id'];
   
        //get the news translation
        $query = '
        SELECT id AS news_translation_id,language,title,content
            FROM '.NEWS_TRANSLATION_TABLE.'
            WHERE news_id = '.$news_id.'
        ';
       
        $no_news_translation=false;
       
        $subresult = pwg_query($query.'AND language = \''.$user['language'].'\';');
        $subrow = mysql_fetch_array($subresult);
           
        //there is a no translation for the user language
        if (empty($subrow))
        {
            $no_news_translation=true;
       
            //get the default translation   
            $subresult = pwg_query($query.'AND language = \''.$conf['language'].'\';');
            $subrow = mysql_fetch_array($subresult);
               
            //there is no translation for the default language
            if (empty($subrow))
            {
                //get the first translation           
                $subresult = pwg_query($query.'LIMIT 1;');
                $subrow = mysql_fetch_array($subresult);
            }       
        }

        $message=summary_bbcode_message($subrow['content']);
   
    $read_more=(strlen($message)!=strlen($subrow['content']));

    //bbcode
    $message=($conf['news_bbcode_enabled'])?show_bbcode_message($message,$bbcode_uid):$message;

        $template->assign_block_vars(
            'news.a_news',
            array(
                'NEWS_AUTHOR'=>$row['author'],
                'NEWS_DATE'=>format_date($row['date'],'mysql_datetime',true),
                'TITLE'=>$subrow['title'],
                'CONTENT'=>$message
        ));
       

        //there is no tranlstation for this news
        if ($no_news_translation)
        {
            $template->assign_block_vars('news.a_news.no_news_translation', array());
        }
       
        //news has been cuted
        if ($read_more)
        {
            $template->assign_block_vars(
                'news.a_news.read_more',
                array(
                    'URL' => add_session_id(PHPWG_ROOT_PATH.'news.php?nb_news_page=1&amp;start='.$start)
                )
            );
        }
        $start++;
    }
}
// END News MOD
//------------------------------------------------------------ log informations

pwg_log( 'category', $page['title'] );

$template->parse('category');
include(PHPWG_ROOT_PATH.'include/page_tail.php');
?>

Pour l'instant je remets ma version intermediaire pour que les gens voient les photos .

Au dodo , demain boulot .

A +


Photos, Musiques, Camping-car,, Vidéo et le tout nouveau Recettes le tout en 14.2.0

Hors ligne

#32 2006-04-21 01:36:41

Niko
Membre
South of France
2006-04-16
40

Re: mod new 3


http://www.bibliotobec.org : Documentation sur les marques Motobécane / Motoconfort
________________________________________________________________________
PhpWebGallery 2.1.2, et quelques plugins...

Hors ligne

#33 2006-04-26 22:06:57

dreamer
Membre
St Cyr/mer (83)
2006-02-26
1048

Re: mod new 3

Salut à tous

Toujours pas d'idée sur mon soucis de news ;

A +


Photos, Musiques, Camping-car,, Vidéo et le tout nouveau Recettes le tout en 14.2.0

Hors ligne

#34 2006-04-27 22:15:17

Drakeus
Membre
2006-04-27
1

Re: mod new 3

Bonjour, j'ai installer PWG depuis quelques jours parceque je suis en stage au Canada...
J'ai récement voulu installé le MOD news 3, mais je ne peu malheureusement changer les news.
Je m'explique, lorsque je veux changer les news donc dans Administration/nouvelles/gestion j'obtient ce message d'erreur:

Fatal error: Cannot redeclare news_language_select() (previously declared in /var/www/free.fr/4/4/mrgautier.alexis/admin/news.php:32) in /var/www/free.fr/4/4/mrgautier.alexis/news.php on line 32

Si quelqu'un est suceptible de m'aider je l'en remercierai fort bien !
Merci D'avance...

Hors ligne

#35 2006-04-29 11:40:13

flc
Membre
2006-04-29
4

Re: mod new 3

Bonjour,
j'ai le même soucis que drakeus....
Fatal error: Cannot redeclare news_language_select() (previously declared in /var/www/free.fr/1/9/f.leclerc/admin/news.php:32) in /var/www/free.fr/1/9/f.leclerc/news.php on line 32

Après recherche j'ai trouvé c'est que la function est déjà déclaré pour une simple raison c'est que le fichier news.php se trouve aussi dans le répertoire admin, il suffit de le supprimer et maintenant celà fonctionne...

Dernière modification par flc (2006-04-29 11:44:25)

Hors ligne

#36 2006-05-01 11:33:54

jikod
Invité

Re: mod new 3

Bonjour,
Je viens de découvrir PhpWebGallery c'est super et en plus en open :o) maintenant je voudrais me lancer dans l'installation du Mod News 2, j'avais pas vu qu'il existait une 3 mais pas grave on est  parti sur la  2, j'ai commencé par installer la partie sql, pas de problème mais maintenant dans les fichiers à modifier sous template/default j'ai aucun des trois fichiers, du coup je sais pas quoi faire quelqu'un peut m'aider, merci.
##    template/default/admin.tpl = pas présent
##    template/default/category.tpl = pas présent
##    template/default/default.css = pas présent

PS: j'ai installé la version PhpWebGallery  1.6.0RC1, j'avais pas capté que c'était une beta, mais j'ai pas de soucis avec alors...
Mon url => http://jikod.free.fr/

#37 2006-05-03 12:17:52

cestludovic
Membre
Paris
2005-10-11
100

Re: mod new 3

flc a écrit:

Bonjour,
j'ai le même soucis que drakeus....
Fatal error: Cannot redeclare news_language_select() (previously declared in /var/www/free.fr/1/9/f.leclerc/admin/news.php:32) in /var/www/free.fr/1/9/f.leclerc/news.php on line 32

Après recherche j'ai trouvé c'est que la function est déjà déclaré pour une simple raison c'est que le fichier news.php se trouve aussi dans le répertoire admin, il suffit de le supprimer et maintenant celà fonctionne...

Aucun fichier news.php se trouve dans le repertoire admin !!!

Je comprend pas là

Hors ligne

#38 2006-05-03 12:22:51

cestludovic
Membre
Paris
2005-10-11
100

Re: mod new 3

dreamer a écrit:

Salut à tous

Toujours pas d'idée sur mon soucis de news ;

A +

Dreamer je suis franchement désolé, je ne vois pas ce qui ne marche pas, je pense que c'est du à la version PHP ou SQL qui n'accepte pas tel ou tel function.

Je ne m'y connait pas suffisamment en PHP ou SQL pour t'aider plus.

Et ce que je ne comprend pas c'est que moi tout fonctionne à merveille, sans bug et pour plein d'autre aussi.

Je n'aime pas rester sur un échec mais là je cale complètement, il nous faudrait de l'aide de personne expert en la matière pour te dégoter de là.

Bon courage, enfin je suis toujours là !!!

Hors ligne

#39 2006-05-03 20:47:32

dreamer
Membre
St Cyr/mer (83)
2006-02-26
1048

Re: mod new 3

Bonsoir

Merci Cestludovic d'avoir essayé , je suis arrivé à la même conclusion que toi .......Dommage .

J'ai l'espoir que quelqu'un trouvera la solution , mais je n'en fais pas une fixation .

A bientôt


Photos, Musiques, Camping-car,, Vidéo et le tout nouveau Recettes le tout en 14.2.0

Hors ligne

#40 2006-05-12 01:50:38

Nicco
Invité

Re: mod new 3

jikod a écrit:

Bonjour,
Je viens de découvrir PhpWebGallery c'est super et en plus en open :o) maintenant je voudrais me lancer dans l'installation du Mod News 2, j'avais pas vu qu'il existait une 3 mais pas grave on est  parti sur la  2, j'ai commencé par installer la partie sql, pas de problème mais maintenant dans les fichiers à modifier sous template/default j'ai aucun des trois fichiers, du coup je sais pas quoi faire quelqu'un peut m'aider, merci.
##    template/default/admin.tpl = pas présent
##    template/default/category.tpl = pas présent
##    template/default/default.css = pas présent

PS: j'ai installé la version PhpWebGallery  1.6.0RC1, j'avais pas capté que c'était une beta, mais j'ai pas de soucis avec alors...
Mon url => http://jikod.free.fr/

Salut voila ca fait un petit bout de temps que je kiff PWG mais jamais osé intervenir ...

donc je me lance, comme toi je suis en 1.6 RC1 et je voulais le mod News 3 car je l utlise depuis la premiere version !!!!

du coup j ai bidouillé pour que ca marche MAIS je ne suis pas un des developpeur donc je ne sais pas si c est bien correcte ce que j ai
fais donc c est juste pour patienter ...   ;o)

donc si vous pouviez m indiquer comment publier mes remarques pour que le MOD nEws 3b passe avec la 1.6 RC1 ca serai cool
comme ca je partagerai !

a+

#41 2006-05-12 10:24:52

cestludovic
Membre
Paris
2005-10-11
100

Re: mod new 3

nicco je me suis pas encore penché sur le mod news 3 pour la 1.6, ce que tu peut faire c'est de créer un topic nommé "Adaptation Mod news 3 pour 1.6RC1" et tu y insère les modifications que tu a apporté, tes messages d'erreurs s'il y a, est-ce que tu fonctionne etc...

De cette facon on pourra te dire si tes modifs sont correct.

Hors ligne

#42 2006-05-12 21:17:18

Nicco
Membre
Paris - Val de Marne
2006-05-12
1794

Re: mod new 3

Salut,

alors la suite du MOD News 3 pour 1.6 RC1 ( News 4 ) ici :

http://forum.phpwebgallery.net/viewtopi … 835#p35835

a+


Nicco Starrrr ..... voici ma galerie http://gallery-nicco.no-ip.org & ma passion http://bd-nicco.no-ip.org
version PWG 1.7.1 + de nombreux plugins actifs (trop pour les énumérer)

Hors ligne

#43 2006-06-04 22:51:53

dreamer
Membre
St Cyr/mer (83)
2006-02-26
1048

Re: mod new 3

Bonsoir à tous

Je refais un petit up pour mon problème de mod news 3 , je pense de plus en plus que c'est un problème de codes , car à priori les autres utilisateurs de MySQL et PHP n'ont pas de soucis , mes versions ne doivent pas être compatibles , sniff!!!!!!!!

A +


Photos, Musiques, Camping-car,, Vidéo et le tout nouveau Recettes le tout en 14.2.0

Hors ligne

#44 2006-11-29 14:58:21

G0rG
Invité

Re: mod new 3

Bonjour ,

J'utilise PWG depuis longtemps et je viens d'installer le mod_news3 sur la version 1.5.2 template Jillij (merci à lui :-)))

Le mod fonctionne bien mais j'aimerais savoir comment utiliser la fonction read more ... , ou se trouve le flag qui détermine le nombre de caractères à afficher .

MErci pour votre aide et merci aux développer pour leur bon boulot.

G0rg

#45 2006-11-29 16:37:22

Gorg
Membre
Switzerland
2004-05-12
19

Re: mod new 3

Je suis un peu naze désolé :-S

J'ai examiné le code et j'ai trouvé la balise miracle "[SUM] [/SUM]" donc , plus de soucis pour moi.
En fait , la balise ne réagi pas en mode Administrateur si on visualise toutes les news --> toutes les news y sont affichées en entier --> c'est logique...

y-a pas d'autres balises bbcode miracles par hasard ?? :-)))

a+

GorG

mon site


GorG
PWG 1.5.2 + mod_news + jillij template sur mon site PWG 1.6.2 en test pour l'instant .... mais que fait Jillij ;-)
hébergé chez moi sur ma Linux Ubuntu 6.06 server Dapper Drake
(Apache2 - Mysql5 - PHP5 - Bind9 - Proftpd géré via PhpMyAdmin)

Hors ligne

Pied de page des forums

Propulsé par FluxBB

github twitter newsletter Faire un don Piwigo.org © 2002-2024 · Contact