Aller au contenu

michael20fr

Actif
  • Compteur de contenus

    21
  • Inscrit(e) le

  • Dernière visite

Réputation sur la communauté

0 Neutre

À propos de michael20fr

  • Date de naissance 01/11/1970

Pour me contacter

  • Mon Site
    http://www.webdesign-x.fr

Information du profil

  • Genre
    Homme
  • Localisation
    Paris
  • Société
    http://www.webdesign-x.fr
  1. HELP!! SUR HEURE EN PHP Bonjour à tous, Voila je suis vraiment perdu dans un code en php qui donne l'heure . En effet à la base ce code donne l'heure GMT , c'est à dire deux heures de moin que l'heure de paris. J'ai chercher pas mal sur google avant de poste des exemples ,j'ai trouver mais je ne suis pas developper php donc je ne sais pas comment position c'est exemple sur mon code. voici le code: function transformDate($mysqlDate){ list($date, $time) = explode(' ', $mysqlDate); list($year, $month, $day) = explode('-', $date); list($hour, $minute, $second) = explode(':', $time); $time = mktime($hour, $minute, $second, $month, $day, $year); //If it's today just return time if(date("d-m-Y") == date("d-m-Y", $time)){ return date("H:i", $time); }else{ return date("d.m.Y H:i", $time); } } Ce code m'affiche deux heures de moin ... donc si on pouvez trouver une solution pour ajouter deux heures a ce bout de code. ci dessous le code que j'imagine avoir mais comme je sais pas le coder voici ce que j'aimerais. $time = mktime(<gras>$hour +2Heures</gras> , $minute, $second, $month, $day, $year); si quelqu'un pouvez me donner une solution en php çà serais top.. Merci de votre précieuse aide ...
  2. bonjour j'ai essayer mais çà marche pas :$Date_Formattee = strftime ("%H:%m:%i %A %d %B %Y", strtotime($comment->date_created)); voici le code entier : <?php defined('_JEXEC') or die('Restricted access'); ?> <?php if ( $this->user->guest ) { if ( !($this->wallSettings->enable_guest_view) ) { $mainframe->redirect(JRoute::_('index.php?option=com_wallfactory&view=login&Itemid=' . $Itemid, false), JText::_('Please login first !')); } else { $wallId = 0; $wallAlias = ""; } } else { if ( ($this->my_wall->id == null) && ($this->my_wall->alias == null)) { $mainframe->redirect(JRoute::_('index.php?option=com_wallfactory&view=newwall&Itemid=' . $Itemid, false), JText::_('Please register first !')); } else { $wallId = $this->my_wall->id; $wallAlias = $this->my_wall->alias; } } if ( !$this->user->guest || ($this->user->guest && $this->wallSettings->enable_guest_write) ) { ?> <div> <div id="main_post" class="wallfactory-left"> <form action="<?php echo $this->root; ?>index.php" method="post" id="wall_form"> <textarea class="round" id="post_message" cols="80" rows="3" name="post_message"></textarea> <div style="vertical-align: top;"> <?php if (!$this->user->guest): ?> <a href="#" class="save-button" style="margin: 8px; float:left;" id="show-attachments-form"><b><?php echo JText::_('Attacher Vidéo/MP3/URL..'); ?></b></a> <?php endif; ?> <div class="post-button"> <input type="submit" class="save-button" value="<?php echo JText::_('Poster sur le HALL'); ?>" /> </div> </div> <div class="wallfactory-clear wallfactory-maxwidth"></div> <div style="vertical-align: top; display: none; " id="attachments"> <div class="posts"> <?php require_once(JPATH_COMPONENT.DS.'views'.DS.'wall'.DS.'tmpl'.DS.'_upload.php') ?> </div> </div> <span id="status" class="wallfactory-none"></span> <input type="hidden" name="option" value="com_wallfactory" /> <input type="hidden" name="controller" value="post" /> <input type="hidden" name="task" value="save" /> <input type="hidden" name="wall_id" id="wall_id" value="<?php echo $wallId; ?>" /> <input type="hidden" name="current_wall_alias" id="current_wall_alias" value="<?php echo $wallAlias; ?>" /> <input type="hidden" name="Itemid" value="<?php echo $this->Itemid; ?>" /> </form> </div> </div> <div class="wallfactory-clear"></div> <?php } ?> <?php if (count($this->posts)): ?> <div class="wallfactory-table"> <div class="wallfactory-wrapper"> <?php foreach ($this->posts as $i => $post) { ?> <div class="main_message"> <!-- avatar style="background-color: #ddd;"--> <div class="avatar"> <?php if ($this->wallSettings->enable_avatars): ?> <?php if ($post->user_id == 0): ?> <img src="<?php echo JURI::root(); ?>components/com_wallfactory/assets/images/guest.png" class="guest-avatar" alt="avatar" /> <?php else: ?> <?php if ($post->avatar_type): ?> <a href="<?php echo JRoute::_('index.php?option=com_wallfactory&Itemid=' . $this->Itemid . '&view=wall&alias=' . $post->alias); ?>" class="alias-margin"> <?php echo $this->wallHelper->getAvatar($post->user_id, $post->avatar_type, $post->avatar_extension); ?> <!--<img src="<?php //echo JURI::root(); ?>components/com_wallfactory/storage/users/<?php //echo $post->user_id; ?>/avatar/avatar.<?php //echo $post->avatar_extension; ?>?<?php echo time(); ?>" class="user-avatar" alt="avatar" />--> </a> <?php endif; ?> <?php endif; ?> <?php endif; ?> <div> <?php if ($post->user_id != 0): ?> <?php if ( !$this->user->guest || ( $this->user->guest && $post->allow_profile_view == 1) ): ?> <a href="<?php echo JRoute::_('index.php?option=com_wallfactory&Itemid=' . $this->Itemid . '&view=wall&alias=' . $post->alias); ?>" class="alias-font"> <?php ($this->wallSettings->wall_title_display == 0) ? ($name = $post->name) : ($name = $post->alias); echo $name; ?> </a> <br /> <span><?php echo JText::_('Posts: '); echo $this->count[$post->user_id]; ?></span> <?php else: ?> <?php if ($this->user->guest && $post->allow_profile_view == 0): ?> <a href="<?php echo JRoute::_('index.php?option=com_wallfactory&view=login&Itemid=' . $this->Itemid, false); ?>" class="alias-font"> <?php ($this->wallSettings->wall_title_display == 0) ? ($name = $post->name) : ($name = $post->alias); echo $name; ?> </a> <br /> <span><?php echo JText::_('Posts: '); echo $this->count[$post->user_id]; ?></span> <?php endif; ?> <?php endif; ?> <?php else: ?> <span class="wallfactory-comment-content"><?php echo JText::_('Guest'); ?></span> <?php endif; ?> </div> </div> <div class="round_post"> <div class="action-bar"> <div class="wallfactory-action-header"> <span class="wallfactory-year wallfactory-action"> <?php $Date_Formattee = strftime ("%H:%m:%i %A %d %B %Y", strtotime($comment->date_created)); ?> </span> <span class="wallfactory-year right-icon"> <?php if ($this->user->id == $post->user_id): ?> <?php if ($post->user_id != 0): ?> <a class="wallfactory-icon wallfactory-page_edit" href="<?php echo JRoute::_('index.php?option=com_wallfactory&Itemid=' . $this->Itemid . '&view=writepost&alias=' . $post->alias.'&post_id='.$post->id) ; ?>"><?php echo JText::_('edit'); ?></a> | <?php endif; ?> <a class="wallfactory-icon wallfactory-page_delete" href="<?php echo JRoute::_('index.php?option=com_wallfactory&Itemid=' . $this->Itemid . '&controller=post&task=delete&alias=' . $post->alias.'&post_id='.$post->id) ; ?>"><?php echo JText::_('delete'); ?></a> | <?php endif; ?> <?php if ($this->wallSettings->enable_bookmarks && $post->user_id != 0): ?> <!-- Bookmarks --> <span class="wallfactory-icon wallfactory-share"> <a href="#" class="show-share-post" id="show-share-post<?php echo $post->id; ?>" rel="<?php echo $post->id; ?>"><?php echo JText::_(' partager'); ?></a> | </span> <?php endif; ?> <?php if ( ($this->wallSettings->allow_comments && !$this->user->guest) || ($this->wallSettings->allow_comments && $this->wallSettings->allow_guest_comments) ): ?> <span class="wallfactory-icon wallfactory-comment_add"> <a href="#" class="show-comment-form" id="show-comment-form<?php echo $post->id; ?>" rel="<?php echo $post->id; ?>"><?php echo JText::_('commenter'); ?></a> </span> <div class="wallfactory-comment-added" id="comment-message"> <?php echo JText::_('Your comment was added.'); ?> </div> <?php else: ?> <?php echo JText::_('Comments are not allowed!'); ?> <?php endif; ?> <span class="wallfactory-comment-report"> <?php if ($this->user->id != $post->user_id): ?> <?php if (!$this->user->guest && $post->reported == 0): ?> | <span class="wallfactory-icon wallfactory-report"> <a href="<?php echo JUri::root(); ?>index.php?option=com_wallfactory&controller=post&task=report&format=raw&type=2&alias=<?php echo $post->alias;?>&id=<?php echo $post->id; ?>" rel="<?php echo $post->id; ?>"> <?php echo JText::_('signaler'); ?> </a> </span> <?php endif; ?> <?php endif; ?> <?php if ($post->reported == 1): ?> | <span class="wallfactory-icon wallfactory-reported"><?php echo JText::_('message signaler'); ?></span> <?php endif; ?> </span> </span> </div> <span class="wallfactory-media-bookmark" id="share-post<?php echo $post->id; ?>"> <?php if ($this->wallSettings->enable_bookmarks && $post->user_id != 0): ?> <fieldset> <?php foreach ($this->bookmarks[$post->id] as $k=>$bookmark): ?> <a target="_blank" href="<?php echo $bookmark->full_link; ?>"><img src="<?php echo JURI::root(); ?>administrator/components/com_wallfactory/storage/bookmarks/<?php echo $bookmark->id; ?>.<?php echo $bookmark->extension; ?>" /></a> <?php endforeach; ?> </fieldset> <?php endif; ?> </span> <span class="wallfactory-comment-form" id="comment-form<?php echo $post->id; ?>"> <div class="cancel-comment-wrapper"> <a href="#" class="cancel-comment" rel="<?php echo $post->id; ?>" > </a> </div> <div> <table cellspacing="0" cellpadding="0" width="100%"> <tr> <td class="comment-column"> <textarea name="comment<?php echo $post->id; ?>" id="comment<?php echo $post->id; ?>" rows="2" cols="2" class="comment-textarea"></textarea> </td> <td><a href="#" class="submit-comment" rel="<?php echo $post->id; ?>"><?php echo JText::_('Submit'); ?></a> </td> </tr> </table> </div> <div class="wallfactory-comment-form" id="wallfactory-comment-loader<?php echo $post->id; ?>"> <img alt="ajax-loader" src="components/com_wallfactory/assets/images/ajax-loader-blue.gif" class="wallfactory-icon" /> <?php echo JText::_('Processing form...'); ?> </div> </span> </div><!-- action-bar --> <div class="wallfactory-post-content"> <div class="post_message"> <div style="padding: 2px 3px; font-size: 12px;"><?php echo nl2br(html_entity_decode($post->content)); ?></div> </div> </div> <div class="wallfactory-clear"></div> <div class="wallfactory-media-container"> <!-- display attached media for the post --> <div id="wallfactory-your-media<?php echo $post->id; ?>"> <?php if (!empty($this->urls[$post->id]) ){ ?> <div class="wallfactory-text"> <?php foreach ( $this->urls[$post->id] as $link) { if ( $link->url != '' ): if (isset($link->url_title) && $link->url_title != "") $url_title = $link->url_title; else $url_title = $link->url; if (isset($link->url_description)) $url_description = nl2br(html_entity_decode($link->url_description)); else $url_description = ''; ?> <div class="round_media"> <img alt="url" title="url" src="<?php echo JURI::root(); ?>components/com_wallfactory/assets/images/world_link.png"> <span class="media_title"><a target="_blank" href="<?php echo $link->url; ?>"><?php echo $url_title; ?></a> <?php if ($this->wallSettings->enable_bookmarks && $post->user_id != 0): ?> <span class="wallfactory-icon wallfactory-share"><a href="#" class="show-share-url" id="show-share-url<?php echo $post->id; ?>" rel="<?php echo $post->id; ?>"><?php echo JText::_('partager'); ?></a></span> <span class="wallfactory-media-bookmark" id="share-url<?php echo $post->id; ?>"> <!-- url Bookmarks --> <?php if ($this->wallSettings->enable_bookmarks): ?> <fieldset> <?php foreach ($this->url_bookmarks[$post->id] as $k=>$url_bookmark): ?> <a target="_blank" href="<?php echo $url_bookmark->full_link; ?>"><img src="<?php echo JURI::root(); ?>administrator/components/com_wallfactory/storage/bookmarks/<?php echo $url_bookmark->id; ?>.<?php echo $url_bookmark->extension; ?>" /></a> <?php endforeach; ?> </fieldset> <?php endif; ?> </span> </span> <?php endif; ?> <p style="padding: 5px 5px;"><?php echo $url_description; ?></p> </div> <?php endif; ?> <!-- video --> <?php if ( $link->video_link != '' ): $thumb_source = ($link->video_thumbnail != "") ? $link->video_thumbnail : $link->video_sourceThumb; if (isset($link->video_title) && $link->video_title != "") $video_title = stripslashes($link->video_title); else $video_title = $link->video_link; if (isset($link->video_description)) $video_description = nl2br(html_entity_decode(stripslashes($link->video_description))); else $video_description = ''; ?> <div class="round_media"> <?php if (strpos($link->video_link,'youtube')): ?> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <tr> <td class="media_width" rowspan="2"> <div class="media_thumbnail"> <a title="<?php echo $link->video_title; ?>" onclick="jQueryFactory.prettyPhoto.open('<?php echo $link->video_link; ?>', '', '')" href="javascript:void(0);"> <img src="<?php echo 'http://'.$thumb_source; ?>" alt="YouTube" class="media_width" /><br /> </a> </div> </td> <td><span class="media_share"> <?php if ($this->wallSettings->enable_bookmarks && $post->user_id != 0): ?> <div class="wallfactory-icon wallfactory-share"> <a href="#" class="show-share-video" id="show-share-video<?php echo $post->id; ?>" rel="<?php echo $post->id; ?>"><?php echo JText::_('share'); ?></a> </div> <?php else: ?> <?php endif; ?></span> </td> </tr> <tr> <td class="align-top"> <div class="video_content"> <span class="media_title"><?php echo strip_tags($video_title, '<a>'); ?></span> <div class="video-description"><?php echo strip_tags($video_description, '<a>'); ?></div> </div> </td> </tr> </table> <?php endif; ?> <?php if (strpos($link->video_link,'vimeo')): ?> <table width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="media_width" rowspan="2"> <div class="media_thumbnail"> <a title="<?php echo $link->video_title; ?>" onclick="jQueryFactory.prettyPhoto.open('<?php echo $link->video_link; ?>', '', '')" href="javascript:void(0);"> <img src="<?php echo 'http://'.$thumb_source; ?>" rel="prettyPhoto" alt="<?php echo $link->video_sitename; ?>" class="media_width" /><br /> </a> </div> </td> <td><span class="media_share"> <?php if ($this->wallSettings->enable_bookmarks && $post->user_id != 0): ?> <div class="wallfactory-icon wallfactory-share"> <a href="#" class="show-share-video" id="show-share-video<?php echo $post->id; ?>" rel="<?php echo $post->id; ?>"><?php echo JText::_('share'); ?></a> </div> <?php else: ?> <?php endif; ?> </span> </td> </tr> <tr> <td class="align-top"> <div class="video_content"> <span class="media_title"><?php echo strip_tags($video_title, '<a>'); ?></span> <div class="video-description"><?php echo strip_tags($video_description, '<a>'); ?></div> </div> </td> </tr> </table> <?php endif; ?> <?php if (strpos($link->video_link,'metacafe')): ?> <table width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="media_width" rowspan="2"> <div class="media_thumbnail"> <a href="<?php echo $link->video_link; ?>?width=70%&height=70%" rel="prettyPhoto" title="<?php echo $link->video_title; ?>"> <img src="<?php echo $thumb_source; ?>" class="media_width" alt="<?php echo $link->video_title; ?>"></a> </div> </td> <td><span class="media_share"> <?php if ($this->wallSettings->enable_bookmarks && $post->user_id != 0): ?> <div class="wallfactory-icon wallfactory-share"> <a href="#" class="show-share-video" id="show-share-video<?php echo $post->id; ?>" rel="<?php echo $post->id; ?>"><?php echo JText::_('share'); ?></a> </div> <?php else: ?> <?php endif; ?> </span> </td> </tr> <tr> <td class="align-top"> <div class="video_content"> <span class="media_title"><?php echo strip_tags($video_title, '<a>'); ?></span> <div class="video-description"><?php echo strip_tags($video_description, '<a>'); ?></div> </div> </td> </tr> </table> <?php endif; ?> <?php if (strpos($link->video_link,'myspace')): ?> <table width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="media_width" rowspan="2"> <div class="media_thumbnail"> <a title="<?php echo $link->video_title; ?>" onclick="jQueryFactory.prettyPhoto.open('<?php echo $link->video_link; ?>', '', '')" href="javascript:void(0);"> <img src="<?php echo $thumb_source; ?>" alt="<?php echo $link->video_sitename; ?>" class="media_width" /><br /> </a> </div> </td> <td><span class="media_share"> <?php if ($this->wallSettings->enable_bookmarks && $post->user_id != 0): ?> <div class="wallfactory-icon wallfactory-share"> <a href="#" class="show-share-video" id="show-share-video<?php echo $post->id; ?>" rel="<?php echo $post->id; ?>"><?php echo JText::_('share'); ?></a> </div> <?php else: ?> <?php endif; ?> </span> </td> </tr> <tr> <td class="align-top"> <div class="video_content"> <span class="media_title"><?php echo strip_tags($video_title, '<a>'); ?></spanp> <div class="video-description"><?php echo strip_tags($video_description, '<a>'); ?></div> </div> </td> </tr> </table> <?php endif; ?> <?php if (strpos($link->video_link,'howcast')): ?> <table width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="media_width" rowspan="2"> <div class="media_thumbnail"> <a href="<?php echo $link->video_link; ?>?width=500&height=350" rel="prettyPhoto" title="<?php echo $link->video_title; ?>"> <img src="<?php echo $link->video_sourceThumb; ?>" class="media_width" alt="<?php echo $link->video_title; ?>"></a> <br /> </div> </td> <td><span class="media_share"> <?php if ($this->wallSettings->enable_bookmarks && $post->user_id != 0): ?> <div class="wallfactory-icon wallfactory-share"> <a href="#" class="show-share-video" id="show-share-video<?php echo $post->id; ?>" rel="<?php echo $post->id; ?>"><?php echo JText::_('share'); ?></a> </div> <?php else: ?> <?php endif; ?> </span> </td> </tr> <tr> <td class="align-top"> <div class="video_content"> <span class="media_title"><?php echo strip_tags($video_title, '<a>'); ?></span> <div class="video-description"><?php echo strip_tags($video_description, '<a>'); ?></div> </div> </td> </tr> </table> <?php endif; ?> <div class="wallfactory-media-bookmark" id="share-video<?php echo $post->id; ?>"> <!-- video Bookmarks --> <?php if ($this->wallSettings->enable_bookmarks && $post->user_id != 0): ?> <fieldset> <?php foreach ($this->video_bookmarks[$post->id] as $k=>$video_bookmark): ?> <a target="_blank" href="<?php echo $video_bookmark->full_link; ?>"><img src="<?php echo JURI::root(); ?>administrator/components/com_wallfactory/storage/bookmarks/<?php echo $video_bookmark->id; ?>.<?php echo $video_bookmark->extension; ?>" /></a> <?php endforeach; ?> </fieldset> <?php endif; ?> </div> </div> <!-- end round videobox --> <?php endif; ?> <!-- end video link --> <?php } // end foreach link ?> </div><!-- class="wallfactory-text" --> <?php } // end exista links ?> <?php if (!empty($this->media[$post->id]) ) { ?> <div class="wallfactory-text"> <?php foreach ( $this->media[$post->id] as $m) { switch ($m->folder) { case 'images': ?> <div class="round_media"> <?php $filename = JPATH_SITE.DS.'components'.DS.'com_wallfactory'.DS.'storage'.DS.'users'.DS.$m->user_id.DS.$m->folder.DS.$m->name.'.'.$m->extension; if (file_exists($filename)) { $size = getimagesize($filename); $max_size = 80; if ($size[0] > $max_size || $size[1] > $max_size) { if ($size[0] > $size[1]) { $new_width = $max_size; $new_height = round($max_size * $size[1] / $size[0],0); } else { $new_width = round($max_size * $size[0] / $size[1],0); $new_height = $max_size; } } else { $new_width = $size[0]; $new_height = $size[1]; } } ?> <table width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="media_width" rowspan="2"> <div class="media_thumbnail"> <a title="name" onclick="jQueryFactory.prettyPhoto.open('<?php echo JURI::root(); ?>components/com_wallfactory/storage/users/<?php echo $m->user_id;?>/<?php echo $m->folder;?>/<?php echo $m->name; ?>.<?php echo $m->extension; ?>','<?php echo $m->name; ?>');" href="javascript:void(0);"> <img src="<?php echo JURI::root(); ?>components/com_wallfactory/storage/users/<?php echo $m->user_id;?>/<?php echo $m->folder;?>/<?php echo $m->name; ?>.<?php echo $m->extension; ?>" rel="prettyPhoto" style="width: <?php echo $new_width;?>px; height: <?php echo $new_height;?>px; cursor: pointer; padding: 3px;"><br /> </a> </div> </td> <td><span class="media_share"> <?php if ($this->wallSettings->enable_bookmarks && $post->user_id != 0): ?> <div class="wallfactory-icon wallfactory-share"> <a href="#" class="show-share-image" id="show-share-image<?php echo $post->id; ?>" rel="<?php echo $post->id; ?>"><?php echo JText::_('share'); ?></a> </div> <?php else: ?> <?php endif; ?> </span> </td> </tr> <tr> <td class="align-top"> <div class="wallfactory-left"> <?php if (isset($m->title)) $m_title = nl2br(html_entity_decode($m->title)); else $m_title = ''; if (isset($m->description)) $m_description = nl2br(html_entity_decode($m->description)); else $m_description = ''; ?> <span class="media_title" style="padding: 2px 0;"><?php echo $m_title; ?></span> <br /> <span class="media_description"><?php echo $m_description; ?></span><br /> </div> </td> </tr> </table> <div class="wallfactory-right"> <span class="wallfactory-media-bookmark" id="share-image<?php echo $post->id; ?>"> <!-- video Bookmarks --> <?php if ($this->wallSettings->enable_bookmarks && $post->user_id != 0): ?> <fieldset> <?php foreach ($this->image_bookmarks[$post->id] as $k=>$image_bookmark): ?> <a target="_blank" href="<?php echo $image_bookmark->full_link; ?>"><img src="<?php echo JURI::root(); ?>administrator/components/com_wallfactory/storage/bookmarks/<?php echo $image_bookmark->id; ?>.<?php echo $image_bookmark->extension; ?>" /></a> <?php endforeach; ?> </fieldset> <?php endif; ?> </span> </div> </div> <br /><br /> <?php break; case 'mp3': ?> <?php $link = JURI::root().'components/com_wallfactory/storage/users/'.$m->user_id.'/'.$m->folder.'/'.$m->name.'.'.$m->extension; $filename = JPATH_SITE.DS.'components'.DS.'com_wallfactory'.DS.'storage'.DS.'users'.DS.$m->user_id.DS.$m->folder.DS.$m->name.'.'.$m->extension; if (file_exists($filename)): ?> <div class="round_media"> <img alt="Mp3" title="Mp3" src="<?php echo JURI::root(); ?>components/com_wallfactory/assets/images/sound.png" style="padding: 1px; background-repeat: no-repeat;"> <span class="media_title"><?php echo $m->title; ?> <?php if ($this->wallSettings->enable_bookmarks && $post->user_id != 0): ?> <span class="media_share"><span class="wallfactory-icon wallfactory-share"> <a href="#" class="show-share-mp3" id="show-share-mp3<?php echo $post->id; ?>" rel="<?php echo $post->id; ?>"><?php echo JText::_('share'); ?></a> </span></span> <?php endif; ?> </span> <div class="media_file"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="220" height="25" id="flashContent"> <param name="movie" value="<?php echo JURI::root(); ?>components/com_wallfactory/assets/swfs/player.swf" /> <param name="FlashVars" value="playerID=1&noinfo=yes&bg=#ffffff&soundFile=<?php echo $link; ?>" /> <param name="wmode" value="transparent" /> <param name="quality" value="high"> <param name="menu" value="true"> <!--[if !IE]>--> <object type="application/x-shockwave-flash" data="<?php echo JURI::root(); ?>components/com_wallfactory/assets/swfs/player.swf" width="177" height="20"> <param name="FlashVars" value="playerID=1&noinfo=yes&bg=#ffffff&soundFile=<?php echo $link; ?>" /> <param name="wmode" value="transparent" /> <param name="quality" value="high"> <param name="menu" value="true"> <!--<![endif]--> <a href="<?php echo $link; ?>" class="wallfactory-text">Play Audio</a> <!--[if !IE]>--> </object> <!--<![endif]--> </object> </div> <span class="wallfactory-media-bookmark" id="share-mp3<?php echo $post->id; ?>"> <!-- mp3 Bookmarks --> <?php if ($this->wallSettings->enable_bookmarks && $post->user_id != 0): ?> <fieldset> <?php foreach ($this->mp3_bookmarks[$post->id] as $k=>$mp3_bookmark): ?> <a target="_blank" href="<?php echo $mp3_bookmark->full_link; ?>"><img src="<?php echo JURI::root(); ?>administrator/components/com_wallfactory/storage/bookmarks/<?php echo $mp3_bookmark->id; ?>.<?php echo $mp3_bookmark->extension; ?>" /></a> <?php endforeach; ?> </fieldset> <?php endif; ?> </span> </div> <br /> <?php endif; ?> <?php break; case 'files': ?> <?php $link = JURI::root().'components/com_wallfactory/storage/users/'.$m->user_id.'/'.$m->folder.'/'.$m->name.'.'.$m->extension; $filename = JPATH_SITE.DS.'components'.DS.'com_wallfactory'.DS.'storage'.DS.'users'.DS.$m->user_id.DS.$m->folder.DS.$m->name.'.'.$m->extension; ?> <?php if (file_exists($filename)): ?> <div class="round_media"> <span class="wallfactory-icon wallfactory-file" > <span class="media_title" style="padding: 5px 2px;"><?php echo $m->name; ?></span> <?php if ($this->wallSettings->enable_bookmarks): ?> <span class="media_share"><span class="wallfactory-icon wallfactory-share"> <a href="#" class="show-share-file" id="show-share-file<?php echo $post->id; ?>" rel="<?php echo $post->id; ?>"><?php echo JText::_('share'); ?></a> </span></span> <?php endif; ?> </span> <div class="media_file"> <img alt="file" title="file" src="<?php echo JURI::root(); ?>components/com_wallfactory/assets/images/arrow_down.png"> <?php require(JPATH_SITE.DS.'components'.DS.'com_wallfactory'.DS.'download.php'); ?> </div> <span class="wallfactory-media-bookmark" id="share-file<?php echo $post->id; ?>"> <!-- file Bookmarks --> <?php if ($this->wallSettings->enable_bookmarks && $post->user_id != 0): ?> <fieldset> <?php foreach ($this->file_bookmarks[$post->id] as $k=>$file_bookmark): ?> <a target="_blank" href="<?php echo $file_bookmark->full_link; ?>"><img src="<?php echo JURI::root(); ?>administrator/components/com_wallfactory/storage/bookmarks/<?php echo $file_bookmark->id; ?>.<?php echo $file_bookmark->extension; ?>" /></a> <?php endforeach; ?> </fieldset> <?php endif; ?> </span> </div> <?php endif; ?> <?php break; ?> <?php } } ?> </div> <!-- class="wallfactory-text" --> <?php } ?> </div> <div class="wallfactory-clear"></div> <!-- </div> --> <?php if ($this->wallSettings->allow_comments ): ?> <div class="wallfactory-text" id="post_comments<?php echo $post->id; ?>"> <div id="fieldset-comments"<?php echo $post->id; ?> class="<?php echo $post->id; ?>"> <a name="comments"></a> <div id="wallfactory-comments<?php echo $post->id; ?>" class="<?php echo $post->id; ?>"> <div class="loading"> <img alt="ajax-loader" src="components/com_wallfactory/assets/images/ajax-loader-blue.gif" class="wallfactory-icon" /> <?php echo JText::_('Please wait! Comments are being loaded...'); ?> </div> <div class="update"></div> </div> <?php if (!empty($this->comments[$post->id]) ): ?> <div class="round_comments"> <!--<div id="fieldset-comments"<?php //echo $post->id; ?> class="<?php //echo $post->id; ?>">--> <!--<a name="comments"></a> <div id="wallfactory-comments<?php //echo $post->id; ?>" class="<?php //echo $post->id; ?>"> <div class="loading"> <img alt="ajax-loader" src="components/com_wallfactory/assets/images/ajax-loader-blue.gif" class="wallfactory-icon" /> <?php //echo JText::_('Please wait! Comments are being loaded...'); ?> </div> <div class="update"></div>--> <?php //!$this->user->guest && ?> <?php if (!empty($this->comments[$post->id]) ) { ?> <div class="comments_list"> <?php foreach ( $this->comments[$post->id] as $comment) { ?> <div class="wallfactory-comment"> <div class="wallfactory-comments-latest"> <div class="wallfactory-left wallfactory-maxwidth"> <?php if ($comment->user_id != 0): ?> <a href="<?php echo JRoute::_('index.php?option=com_wallfactory&Itemid=' . $this->Itemid . '&view=wall&alias=' . $comment->author_alias); ?>" class="comment-alias"> <?php echo $comment->author_alias; ?> </a> <?php else: ?> <?php echo JText::_('Guest'); ?> <?php endif; ?> <span class="wallfactory-year wallfactory-action"><?php echo JHTML::_('date', $entry->gbdate, JText::_('DATE_FORMAT_LC')); ?></span> <?php if ($this->user->id == $comment->user_id): ?> <span class="wallfactory-comment-report"> <a class="wallfactory-button wallfactory-comment_delete" href="<?php echo JUri::root(); ?>index.php?option=com_wallfactory&controller=comment&task=delete&format=raw&type=2&alias=<?php echo $post->alias;?>&id=<?php echo $comment->id; ?>" > <?php echo JText::_('delete'); ?></a> </span> <?php endif; ?> <?php if ($this->user->id != $comment->user_id): ?> <?php if (!$this->user->guest && $comment->reported == 0): ?> <span class="wallfactory-comment-report"> <img src="<?php echo JURI::root(); ?>components/com_wallfactory/assets/images/flag_red.png" class="wallfactory-icon" /> <a href="<?php echo JUri::root(); ?>index.php?option=com_wallfactory&controller=comment&task=report&format=raw&type=2&alias=<?php echo $post->alias;?>&id=<?php echo $comment->id; ?>" rel="<?php echo $comment->id; ?>"> <?php echo JText::_('signaler'); ?></a> </span> <?php endif; ?> <?php endif; ?> <?php if ($comment->reported == 1): ?> <span class="wallfactory-icon wallfactory-reported"> <?php echo JText::_('message signaler'); ?></span> <?php endif; ?> <div><span class="wallfactory-comment-content"><?php echo $comment->content; ?></span></div> </div> </div> <div class="wallfactory-clear"></div> </div> <?php } ?> </div> <?php if ($post->no > $this->wallSettings->comments_per_page): ?> <div style="padding: 5px 0px;"><a class="wallfactory-button wallfactory-comments" href="<?php echo JUri::root(); ?>index.php?option=com_wallfactory&&view=comments&layout=_list&post_id=<?php echo $post->id; ?>&alias=<?php echo $post->alias;?>&Itemid=<?php echo $this->Itemid; ?>" rel="<?php echo $post->id; ?>"> <?php echo JText::_('View all comments'); ?></a> </div> <?php endif; ?> <?php } ?> <!--</div>--> </div> <!-- end wallfactory_text --> <?php endif; ?> </div> <!-- end round_comments --> </div> <?php endif; ?> </div> </div> <div class="wallfactory-clear"></div> </div><!-- main message --> <?php } ?> </div><!-- main div --> </div> <div class="wallfactory-clear"></div> <div> <div id="wallfactory-pagination"> <?php echo $this->pagination->getPagesLinks(); ?> </div> </div> <?php else: ?> <div> <div><?php echo JText::_('No posts found.'); ?></div> </div> <?php endif; ?> <script> var root = "<?php echo JUri::root(); ?>"; var PHPsessionID = "<?php echo session_id(); ?>"; var sessionName = "<?php echo $this->session->getName(); ?>"; var sessionId = "<?php echo $this->session->getId(); ?>"; </script> <script> jQueryFactory(document).ready(function ($) { $("a[rel^='prettyPhoto']").prettyPhoto( { theme: 'facebook', markup: '<div class="pp_pic_holder"> \ <div class="ppt"> </div> \ <div class="pp_top"> \ <div class="pp_left"></div> \ <div class="pp_middle"></div> \ <div class="pp_right"></div> \ </div> \ <div class="pp_content_container"> \ <div class="pp_left"> \ <div class="pp_right"> \ <div class="pp_content"> \ <div class="pp_loaderIcon"></div> \ <div class="pp_fade"> \ <a href="#" class="pp_expand" title="Expand the image">Expand</a> \ <div class="pp_hoverContainer"> \ <a class="pp_next" href="#">next</a> \ <a class="pp_previous" href="#">previous</a> \ </div> \ <div id="pp_full_res"></div> \ <div class="pp_details clearfix"> \ <p class="pp_description"></p> \ <a class="pp_close" href="#">Close</a> \ <div class="pp_nav"> \ <a href="#" class="pp_arrow_previous">Previous</a> \ <p class="currentTextHolder">0/0</p> \ <a href="#" class="pp_arrow_next">Next</a> \ </div> \ </div> \ </div> \ </div> \ </div> \ </div> \ </div> \ <div class="pp_bottom"> \ <div class="pp_left"></div> \ <div class="pp_middle"></div> \ <div class="pp_right"></div> \ </div> \ </div> \ <div class="pp_overlay"></div>' }); }); </script> <script src="components/com_wallfactory/assets/js/swfpostmessage.js"></script> merci de votre aide
  3. ah je vais voir çà merci je suis sur windows avec wampserver (apache serveur) il faut l'installer comment çà ? il le faut ou pas le FR ? merci de ta reponse
  4. Bonjour à tous, voila je viens demander de l'aider car la je suis un newbees en php , même en essayant de cherche sur manuel de PHP . Je ne serais pas interpréter ou positionner comme il faut ce code PHP. Voila mon probléme j'ai un module joomla qui est coder en anglais et qui marque l'heure aussi en anglais et pire et m'affche pas du tout l'heure exact du serveur. voici le code: <span class="wallfactory-year wallfactory-action"><?php echo date('H:m:s l, d F Y', JText::_(strtotime($comment->date_created))); ?></span> j'ai chercher sur internet et j'ai trouver ce code pour mettre en français : <? setlocale (LC_TIME, 'fr_FR'); print strftime("%A %d %B %Y %T"); ?> comment faire pour l'intégrer dans ce code et que çà marche ? Merci de votre aide .. voici ce que j'ai fais çà marche à moitier code : <? setlocale (LC_TIME, 'fr_FR.utf8','fra'); ?> <span class="wallfactory-year wallfactory-action"><?php echo date('H:m:s l, d F Y', JText::_(strtotime($post->date_created))); ?></span> en fait çà m'affiche l'heure mais j'ai toujours du retard au niveau de lheure et la date est en anglais ? MErci de m'aider à retrouver le bon code
  5. oui je pense faudras éviter de mettre des no follow ..
  6. pas évident de trouver des personnes honnête et correct dans ce domaine , il y a bcp qui promette mon et merveille et le résultat est pas au rendez vous ... pour trouver la personne vraiment compétente bonne chance ...
  7. Alors donc faut éviter ce qui il ya marquer ou quoi ? Quel est le just milieux ?
  8. oui je pense que faut eviter ,moi j'ai fait cette erreur et mon site est tomber ...
  9. d'accord avec capitaine torche ..
  10. moi je propose joomla ... qui est excelent en plus il y a une grande communauté et un forum ..
  11. il existe aussi progonline qui fais çà .. bonne chance
  12. çà fais comme peur ... si on pouvez savoir ce que çà va faire çà serais bien ....
  13. je pense que partout ou tu peu poster poste tout est bon à prendre ...
×
×
  • Créer...