News:

Wondering if this will always be free?  See why free is better.

Main Menu

nouvelle installation

Started by john013, June 14, 2011, 12:36:07 PM

Previous topic - Next topic

maximus23

#40
Bonsoir,

Oups je t'ai oublié ... je m'en occuppe :)

Edit : Je vois que pour les sondages on t'a répondu ici : http://www.tinyportal.net/index.php?topic=34193.0

donc je suppose que cela est résolu ?

Pas de support par PM ou Courrier...Veuillez utiliser le forum pour vous avoir une réponse rapide à votre demande d'aide. Merci.
Amitiés et à Bientôt...
No support by PM or Mail...You will get better and faster responses in the support forums. Thank you.
Have a nice day...

john013

Bonsoir suite a l'install du calendrier parlé antérieurement j'ai des defaut qui s'inscrivent en haut de ma page calendrier qui sont  :
"

Warning: Cannot modify header information - headers already sent by (output started at /calendrier_google.php:2) in Subs.php on line 3340

Warning: Cannot modify header information - headers already sent by (output started at /calendrier_google.php:2) in Subs.php on line 3341

Warning: Cannot modify header information - headers already sent by (output started at /calendrier_google.php:2) in Subs.php on line 3347

Warning: Cannot modify header information - headers already sent by (output started at /calendrier_google.php:2) in Subs.php on line 3350

"
pourriez vous me dire se qui ne va pas et comment y remédier merci .

maximus23

Bonjour,

Quel est le code ?

Comment est-il mis ?

Ou est-il mis ?

:)
Pas de support par PM ou Courrier...Veuillez utiliser le forum pour vous avoir une réponse rapide à votre demande d'aide. Merci.
Amitiés et à Bientôt...
No support by PM or Mail...You will get better and faster responses in the support forums. Thank you.
Have a nice day...

john013

#43
c le meme que vous m'avais  conseillais dans les ancien message du post
<?php
$ssi_ban 
true;
require(
dirname(__FILE__) . '/SSI.php');
$context['page_title_html_safe'] = 'Calendrier Google';

template_header();

$context['linktree'] = array(  'href' => $scripturl,  );

echo
'
 <span class="clear upperframe"><span></span></span>
  <div class="roundframe"><div class="innerframe">'
;
echo
'
  <div class="cat_bar">
   <h3 class="catbg">Agenda de la Salamandre</h3>
  </div>
     <p>
 voici l agenda de la Salamandre </br>
 
 </p>'
;
echo

     </div></div>
       <span class="lowerframe"><span></span></span>'
;

echo
'
      <iframe src="https://www.google.com/calendar(code persso)></iframe> 
      </br> Gestion pour le moment par John013 le contacter si modification ou ajout a faire merci.

 
 
'
;
template_footer();
?>



il est ecrit dans un bloc spécifique a lui en php.
il est mis dans la base général de mon serveur.( en sachant que j'ai un thème épic 2.0 sur le forum .)

maximus23

Bonjour,

Moi j'ai pas la moindre erreur pour cette page. Si tu mets cette page sans le code de google tu as une erreur ?

Pas de support par PM ou Courrier...Veuillez utiliser le forum pour vous avoir une réponse rapide à votre demande d'aide. Merci.
Amitiés et à Bientôt...
No support by PM or Mail...You will get better and faster responses in the support forums. Thank you.
Have a nice day...

john013

#45
Bonsoir,
oui même sans code
voici un exemple dans le sub.php qu'il relève en Erreur . Ou est le problème
header('Content-Type: text/' . (isset($_REQUEST['xml']) ? 'xml' : 'html') . '; charset=' . (empty($context['character_set']) ? 'ISO-8859-1' : $context['character_set']));
Le problème pourrai venir que le fichier n'ait pas dans le bon dossier?

maximus23

Bonjour,

Là a mon avis l'erreur vient de la façon dont tu as mis ton menu vers la page que tu as créé.

Mets moi le fichier subs pour voir comment tu as fait :)

Pas de support par PM ou Courrier...Veuillez utiliser le forum pour vous avoir une réponse rapide à votre demande d'aide. Merci.
Amitiés et à Bientôt...
No support by PM or Mail...You will get better and faster responses in the support forums. Thank you.
Have a nice day...

john013

voici le code sub.php
// Make sure the user isn't posting over and over again.
function spamProtection($error_type)
{
global $modSettings, $txt, $user_info, $smcFunc;

// Certain types take less/more time.
$timeOverrides = array(
'login' => 2,
'register' => 2,
'sendtopc' => $modSettings['spamWaitTime'] * 4,
'sendmail' => $modSettings['spamWaitTime'] * 5,
'reporttm' => $modSettings['spamWaitTime'] * 4,
'search' => !empty($modSettings['search_floodcontrol_time']) ? $modSettings['search_floodcontrol_time'] : 1,
);

// Moderators are free...
if (!allowedTo('moderate_board'))
$timeLimit = isset($timeOverrides[$error_type]) ? $timeOverrides[$error_type] : $modSettings['spamWaitTime'];
else
$timeLimit = 2;

// Delete old entries...
$smcFunc['db_query']('', '
DELETE FROM {db_prefix}log_floodcontrol
WHERE log_time < {int:log_time}
AND log_type = {string:log_type}',
array(
'log_time' => time() - $timeLimit,
'log_type' => $error_type,
)
);

// Add a new entry, deleting the old if necessary.
$smcFunc['db_insert']('replace',
'{db_prefix}log_floodcontrol',
array('ip' => 'string-16', 'log_time' => 'int', 'log_type' => 'string'),
array($user_info['ip'], time(), $error_type),
array('ip', 'log_type')
);

// If affected is 0 or 2, it was there already.
if ($smcFunc['db_affected_rows']() != 1)
{
// Spammer!  You only have to wait a *few* seconds!
fatal_lang_error($error_type . 'WaitTime_broken', false, array($timeLimit));
return true;
}

// They haven't posted within the limit.
return false;
}

// Get the size of a specified image with better error handling.
function url_image_size($url)
{
global $sourcedir;

// Make sure it is a proper URL.
$url = str_replace(' ', '%20', $url);

// Can we pull this from the cache... please please?
if (($temp = cache_get_data('url_image_size-' . md5($url), 240)) !== null)
return $temp;
$t = microtime();

// Get the host to pester...
preg_match('~^\w+://(.+?)/(.*)$~', $url, $match);

// Can't figure it out, just try the image size.
if ($url == '' || $url == 'http://' || $url == 'https://')
{
return false;
}
elseif (!isset($match[1]))
{
$size = @getimagesize($url);
}
else
{
// Try to connect to the server... give it half a second.
$temp = 0;
$fp = @fsockopen($match[1], 80, $temp, $temp, 0.5);

// Successful?  Continue...
if ($fp != false)
{
// Send the HEAD request (since we don't have to worry about chunked, HTTP/1.1 is fine here.)
fwrite($fp, 'HEAD /' . $match[2] . ' HTTP/1.1' . "\r\n" . 'Host: ' . $match[1] . "\r\n" . 'User-Agent: PHP/SMF' . "\r\n" . 'Connection: close' . "\r\n\r\n");

// Read in the HTTP/1.1 or whatever.
$test = substr(fgets($fp, 11), -1);
fclose($fp);

// See if it returned a 404/403 or something.
if ($test < 4)
{
$size = @getimagesize($url);

// This probably means allow_url_fopen is off, let's try GD.
if ($size === false && function_exists('imagecreatefromstring'))
{
include_once($sourcedir . '/Subs-Package.php');

// It's going to hate us for doing this, but another request...
$image = @imagecreatefromstring(fetch_web_data($url));
if ($image !== false)
{
$size = array(imagesx($image), imagesy($image));
imagedestroy($image);
}
}
}
}
}

// If we didn't get it, we failed.
if (!isset($size))
$size = false;

// If this took a long time, we may never have to do it again, but then again we might...
if (array_sum(explode(' ', microtime())) - array_sum(explode(' ', $t)) > 0.8)
cache_put_data('url_image_size-' . md5($url), $size, 240);

// Didn't work.
return $size;
}

function determineTopicClass(&$topic_context)
{
// Set topic class depending on locked status and number of replies.
if ($topic_context['is_very_hot'])
$topic_context['class'] = 'veryhot';
elseif ($topic_context['is_hot'])
$topic_context['class'] = 'hot';
else
$topic_context['class'] = 'normal';

$topic_context['class'] .= $topic_context['is_poll'] ? '_poll' : '_post';

if ($topic_context['is_locked'])
$topic_context['class'] .= '_locked';

if ($topic_context['is_sticky'])
$topic_context['class'] .= '_sticky';

// This is so old themes will still work.
$topic_context['extended_class'] = &$topic_context['class'];
}

// Sets up the basic theme context stuff.
function setupThemeContext($forceload = false)
{
global $modSettings, $user_info, $scripturl, $context, $settings, $options, $txt, $maintenance;
global $user_settings, $smcFunc;
static $loaded = false;

// Under SSI this function can be called more then once.  That can cause some problems.
//   So only run the function once unless we are forced to run it again.
if ($loaded && !$forceload)
return;

$loaded = true;

$context['in_maintenance'] = !empty($maintenance);
$context['current_time'] = timeformat(time(), false);
$context['current_action'] = isset($_GET['action']) ? $_GET['action'] : '';
$context['show_quick_login'] = !empty($modSettings['enableVBStyleLogin']) && $user_info['is_guest'];

// Get some news...
$context['news_lines'] = explode("\n", str_replace("\r", '', trim(addslashes($modSettings['news']))));
$context['fader_news_lines'] = array();
for ($i = 0, $n = count($context['news_lines']); $i < $n; $i++)
{
if (trim($context['news_lines'][$i]) == '')
continue;

// Clean it up for presentation ;).
$context['news_lines'][$i] = parse_bbc(stripslashes(trim($context['news_lines'][$i])), true, 'news' . $i);

// Gotta be special for the javascript.
$context['fader_news_lines'][$i] = strtr(addslashes($context['news_lines'][$i]), array('/' => '\/', '<a href=' => '<a hre" + "f='));
}
$context['random_news_line'] = $context['news_lines'][mt_rand(0, count($context['news_lines']) - 1)];

if (!$user_info['is_guest'])
{
$context['user']['messages'] = &$user_info['messages'];
$context['user']['unread_messages'] = &$user_info['unread_messages'];

// Personal message popup...
if ($user_info['unread_messages'] > (isset($_SESSION['unread_messages']) ? $_SESSION['unread_messages'] : 0))
$context['user']['popup_messages'] = true;
else
$context['user']['popup_messages'] = false;
$_SESSION['unread_messages'] = $user_info['unread_messages'];

if (allowedTo('moderate_forum'))
$context['unapproved_members'] = (!empty($modSettings['registration_method']) && $modSettings['registration_method'] == 2) || !empty($modSettings['approveAccountDeletion']) ? $modSettings['unapprovedMembers'] : 0;
$context['show_open_reports'] = empty($user_settings['mod_prefs']) || $user_settings['mod_prefs'][0] == 1;

$context['user']['avatar'] = array();

// Figure out the avatar... uploaded?
if ($user_info['avatar']['url'] == '' && !empty($user_info['avatar']['id_attach']))
$context['user']['avatar']['href'] = $user_info['avatar']['custom_dir'] ? $modSettings['custom_avatar_url'] . '/' . $user_info['avatar']['filename'] : $scripturl . '?action=dlattach;attach=' . $user_info['avatar']['id_attach'] . ';type=avatar';
// Full URL?
elseif (substr($user_info['avatar']['url'], 0, 7) == 'http://')
{
$context['user']['avatar']['href'] = $user_info['avatar']['url'];

if ($modSettings['avatar_action_too_large'] == 'option_html_resize' || $modSettings['avatar_action_too_large'] == 'option_js_resize')
{
if (!empty($modSettings['avatar_max_width_external']))
$context['user']['avatar']['width'] = $modSettings['avatar_max_width_external'];
if (!empty($modSettings['avatar_max_height_external']))
$context['user']['avatar']['height'] = $modSettings['avatar_max_height_external'];
}
}
// Otherwise we assume it's server stored?
elseif ($user_info['avatar']['url'] != '')
$context['user']['avatar']['href'] = $modSettings['avatar_url'] . '/' . htmlspecialchars($user_info['avatar']['url']);

if (!empty($context['user']['avatar']))
$context['user']['avatar']['image'] = '<img src="' . $context['user']['avatar']['href'] . '"' . (isset($context['user']['avatar']['width']) ? ' width="' . $context['user']['avatar']['width'] . '"' : '') . (isset($context['user']['avatar']['height']) ? ' height="' . $context['user']['avatar']['height'] . '"' : '') . ' alt="" class="avatar" />';

// Figure out how long they've been logged in.
$context['user']['total_time_logged_in'] = array(
'days' => floor($user_info['total_time_logged_in'] / 86400),
'hours' => floor(($user_info['total_time_logged_in'] % 86400) / 3600),
'minutes' => floor(($user_info['total_time_logged_in'] % 3600) / 60)
);
}
else
{
$context['user']['messages'] = 0;
$context['user']['unread_messages'] = 0;
$context['user']['avatar'] = array();
$context['user']['total_time_logged_in'] = array('days' => 0, 'hours' => 0, 'minutes' => 0);
$context['user']['popup_messages'] = false;

if (!empty($modSettings['registration_method']) && $modSettings['registration_method'] == 1)
$txt['welcome_guest'] .= $txt['welcome_guest_activate'];

// If we've upgraded recently, go easy on the passwords.
if (!empty($modSettings['disableHashTime']) && ($modSettings['disableHashTime'] == 1 || time() < $modSettings['disableHashTime']))
$context['disable_login_hashing'] = true;
elseif ($context['browser']['is_ie5'] || $context['browser']['is_ie5.5'])
$context['disable_login_hashing'] = true;
}

// Setup the main menu items.
setupMenuContext();

if (empty($settings['theme_version']))
$context['show_vBlogin'] = $context['show_quick_login'];

// This is here because old index templates might still use it.
$context['show_news'] = !empty($settings['enable_news']);

// This is done to allow theme authors to customize it as they want.
$context['show_pm_popup'] = $context['user']['popup_messages'] && !empty($options['popup_messages']) && (!isset($_REQUEST['action']) || $_REQUEST['action'] != 'pm');

// Resize avatars the fancy, but non-GD requiring way.
if ($modSettings['avatar_action_too_large'] == 'option_js_resize' && (!empty($modSettings['avatar_max_width_external']) || !empty($modSettings['avatar_max_height_external'])))
{
$context['html_headers'] .= '
<script type="text/javascript"><!-- // --><![CDATA[
var smf_avatarMaxWidth = ' . (int) $modSettings['avatar_max_width_external'] . ';
var smf_avatarMaxHeight = ' . (int) $modSettings['avatar_max_height_external'] . ';';

if (!$context['browser']['is_ie'] && !$context['browser']['is_mac_ie'])
$context['html_headers'] .= '
window.addEventListener("load", smf_avatarResize, false);';
else
$context['html_headers'] .= '
var window_oldAvatarOnload = window.onload;
window.onload = smf_avatarResize;';

// !!! Move this over to script.js?
$context['html_headers'] .= '
// ]]></script>';
}

// This looks weird, but it's because BoardIndex.php references the variable.
$context['common_stats']['latest_member'] = array(
'id' => $modSettings['latestMember'],
'name' => $modSettings['latestRealName'],
'href' => $scripturl . '?action=profile;u=' . $modSettings['latestMember'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $modSettings['latestMember'] . '">' . $modSettings['latestRealName'] . '</a>',
);
$context['common_stats'] = array(
'total_posts' => comma_format($modSettings['totalMessages']),
'total_topics' => comma_format($modSettings['totalTopics']),
'total_members' => comma_format($modSettings['totalMembers']),
'latest_member' => $context['common_stats']['latest_member'],
);

if (empty($settings['theme_version']))
$context['html_headers'] .= '
<script type="text/javascript"><!-- // --><![CDATA[
var smf_scripturl = "' . $scripturl . '";
// ]]></script>';

if (!isset($context['page_title']))
$context['page_title'] = '';

// Set some specific vars.
$context['page_title_html_safe'] = $smcFunc['htmlspecialchars'](un_htmlspecialchars($context['page_title']));
$context['meta_keywords'] = !empty($modSettings['meta_keywords']) ? $smcFunc['htmlspecialchars']($modSettings['meta_keywords']) : '';
}

// This is the only template included in the sources...
function template_rawdata()
{
global $context;

echo $context['raw_data'];
}

function template_header()
{
global $txt, $modSettings, $context, $settings, $user_info, $boarddir, $cachedir;

setupThemeContext();

// Print stuff to prevent caching of pages (except on attachment errors, etc.)
if (empty($context['no_last_modified']))
{
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');

// Are we debugging the template/html content?
if (!isset($_REQUEST['xml']) && isset($_GET['debug']) && !$context['browser']['is_ie'] && !WIRELESS)
header('Content-Type: application/xhtml+xml');
elseif (!isset($_REQUEST['xml']) && !WIRELESS)
header('Content-Type: text/html; charset=' . (empty($context['character_set']) ? 'ISO-8859-1' : $context['character_set']));
}

header('Content-Type: text/' . (isset($_REQUEST['xml']) ? 'xml' : 'html') . '; charset=' . (empty($context['character_set']) ? 'ISO-8859-1' : $context['character_set']));

$checked_securityFiles = false;
$showed_banned = false;
foreach ($context['template_layers'] as $layer)
{
loadSubTemplate($layer . '_above', true);

// May seem contrived, but this is done in case the body and main layer aren't there...
if (in_array($layer, array('body', 'main')) && allowedTo('admin_forum') && !$user_info['is_guest'] && !$checked_securityFiles)
{
$checked_securityFiles = true;
$securityFiles = array('install.php', 'webinstall.php', 'upgrade.php', 'convert.php', 'repair_paths.php', 'repair_settings.php', 'Settings.php~', 'Settings_bak.php~');
foreach ($securityFiles as $i => $securityFile)
{
if (!file_exists($boarddir . '/' . $securityFile))
unset($securityFiles[$i]);
}

if (!empty($securityFiles) || (!empty($modSettings['cache_enable']) && !is_writable($cachedir)))
{
echo '
<div class="errorbox">
<p class="alert">!!</p>
<h3>', empty($securityFiles) ? $txt['cache_writable_head'] : $txt['security_risk'], '</h3>
<p>';

foreach ($securityFiles as $securityFile)
{
echo '
', $txt['not_removed'], '<strong>', $securityFile, '</strong>!<br />';

if ($securityFile == 'Settings.php~' || $securityFile == 'Settings_bak.php~')
echo '
', sprintf($txt['not_removed_extra'], $securityFile, substr($securityFile, 0, -1)), '<br />';
}

if (!empty($modSettings['cache_enable']) && !is_writable($cachedir))
echo '
<strong>', $txt['cache_writable'], '</strong><br />';

echo '
</p>
</div>';
}
}
// If the user is banned from posting inform them of it.
elseif (in_array($layer, array('main', 'body')) && isset($_SESSION['ban']['cannot_post']) && !$showed_banned)
{
$showed_banned = true;
echo '
<div class="windowbg alert" style="margin: 2ex; padding: 2ex; border: 2px dashed red;">
', sprintf($txt['you_are_post_banned'], $user_info['is_guest'] ? $txt['guest_title'] : $user_info['name']);

if (!empty($_SESSION['ban']['cannot_post']['reason']))
echo '
<div style="padding-left: 4ex; padding-top: 1ex;">', $_SESSION['ban']['cannot_post']['reason'], '</div>';

if (!empty($_SESSION['ban']['expire_time']))
echo '
<div>', sprintf($txt['your_ban_expires'], timeformat($_SESSION['ban']['expire_time'], false)), '</div>';
else
echo '
<div>', $txt['your_ban_expires_never'], '</div>';

echo '
</div>';
}
}

if (isset($settings['use_default_images']) && $settings['use_default_images'] == 'defaults' && isset($settings['default_template']))
{
$settings['theme_url'] = $settings['default_theme_url'];
$settings['images_url'] = $settings['default_images_url'];
$settings['theme_dir'] = $settings['default_theme_dir'];
}
}

// Show the copyright...
function theme_copyright($get_it = false)
{
global $forum_copyright, $context, $boardurl, $forum_version, $txt, $modSettings;

// Don't display copyright for things like SSI.
if (!isset($forum_version))
return;

// Put in the version...
$forum_copyright = sprintf($forum_copyright, $forum_version);

echo '
<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;">' . $forum_copyright . '
</span>';
}

function template_footer()
{
global $context, $settings, $modSettings, $time_start, $db_count;

// Show the load time?  (only makes sense for the footer.)
$context['show_load_time'] = !empty($modSettings['timeLoadPageEnable']);
$context['load_time'] = round(array_sum(explode(' ', microtime())) - array_sum(explode(' ', $time_start)), 3);
$context['load_queries'] = $db_count;

if (isset($settings['use_default_images']) && $settings['use_default_images'] == 'defaults' && isset($settings['default_template']))
{
$settings['theme_url'] = $settings['actual_theme_url'];
$settings['images_url'] = $settings['actual_images_url'];
$settings['theme_dir'] = $settings['actual_theme_dir'];
}

foreach (array_reverse($context['template_layers']) as $layer)
loadSubTemplate($layer . '_below', true);

}

// Debugging.
function db_debug_junk()
{
global $context, $scripturl, $boarddir, $modSettings, $boarddir;
global $db_cache, $db_count, $db_show_debug, $cache_count, $cache_hits, $txt;

// Add to Settings.php if you want to show the debugging information.
if (!isset($db_show_debug) || $db_show_debug !== true || (isset($_GET['action']) && $_GET['action'] == 'viewquery') || WIRELESS)
return;

if (empty($_SESSION['view_queries']))
$_SESSION['view_queries'] = 0;
if (empty($context['debug']['language_files']))
$context['debug']['language_files'] = array();
if (empty($context['debug']['sheets']))
$context['debug']['sheets'] = array();

$files = get_included_files();
$total_size = 0;
for ($i = 0, $n = count($files); $i < $n; $i++)
{
if (file_exists($files[$i]))
$total_size += filesize($files[$i]);
$files[$i] = strtr($files[$i], array($boarddir => '.'));
}

$warnings = 0;
if (!empty($db_cache))
{
foreach ($db_cache as $q => $qq)
{
if (!empty($qq['w']))
$warnings += count($qq['w']);
}

$_SESSION['debug'] = &$db_cache;
}

// Gotta have valid HTML ;).
$temp = ob_get_contents();
if (function_exists('ob_clean'))
ob_clean();
else
{
ob_end_clean();
ob_start('ob_sessrewrite');
}

echo preg_replace('~</body>\s*</html>~', '', $temp), '
<div class="smalltext" style="text-align: left; margin: 1ex;">
', $txt['debug_templates'], count($context['debug']['templates']), ': <em>', implode('</em>, <em>', $context['debug']['templates']), '</em>.<br />
', $txt['debug_subtemplates'], count($context['debug']['sub_templates']), ': <em>', implode('</em>, <em>', $context['debug']['sub_templates']), '</em>.<br />
', $txt['debug_language_files'], count($context['debug']['language_files']), ': <em>', implode('</em>, <em>', $context['debug']['language_files']), '</em>.<br />
', $txt['debug_stylesheets'], count($context['debug']['sheets']), ': <em>', implode('</em>, <em>', $context['debug']['sheets']), '</em>.<br />
', $txt['debug_files_included'], count($files), ' - ', round($total_size / 1024), $txt['debug_kb'], ' (<a href="javascript:void(0);" onclick="document.getElementById(\'debug_include_info\').style.display = \'inline\'; this.style.display = \'none\'; return false;">', $txt['debug_show'], '</a><span id="debug_include_info" style="display: none;"><em>', implode('</em>, <em>', $files), '</em></span>)<br />';

if (!empty($modSettings['cache_enable']) && !empty($cache_hits))
{
$entries = array();
$total_t = 0;
$total_s = 0;
foreach ($cache_hits as $cache_hit)
{
$entries[] = $cache_hit['d'] . ' ' . $cache_hit['k'] . ': ' . sprintf($txt['debug_cache_seconds_bytes'], comma_format($cache_hit['t'], 5), $cache_hit['s']);
$total_t += $cache_hit['t'];
$total_s += $cache_hit['s'];
}

echo '
', $txt['debug_cache_hits'], $cache_count, ': ', sprintf($txt['debug_cache_seconds_bytes_total'], comma_format($total_t, 5), comma_format($total_s)), ' (<a href="javascript:void(0);" onclick="document.getElementById(\'debug_cache_info\').style.display = \'inline\'; this.style.display = \'none\'; return false;">', $txt['debug_show'], '</a><span id="debug_cache_info" style="display: none;"><em>', implode('</em>, <em>', $entries), '</em></span>)<br />';
}

echo '
<a href="', $scripturl, '?action=viewquery" target="_blank" class="new_win">', $warnings == 0 ? sprintf($txt['debug_queries_used'], (int) $db_count) : sprintf($txt['debug_queries_used_and_warnings'], (int) $db_count, $warnings), '</a><br />
<br />';

if ($_SESSION['view_queries'] == 1 && !empty($db_cache))
foreach ($db_cache as $q => $qq)
{
$is_select = substr(trim($qq['q']), 0, 6) == 'SELECT' || preg_match('~^INSERT(?: IGNORE)? INTO \w+(?:\s+\([^)]+\))?\s+SELECT .+$~s', trim($qq['q'])) != 0;
// Temporary tables created in earlier queries are not explainable.
if ($is_select)
{
foreach (array('log_topics_unread', 'topics_posted_in', 'tmp_log_search_topics', 'tmp_log_search_messages') as $tmp)
if (strpos(trim($qq['q']), $tmp) !== false)
{
$is_select = false;
break;
}
}
// But actual creation of the temporary tables are.
elseif (preg_match('~^CREATE TEMPORARY TABLE .+?SELECT .+$~s', trim($qq['q'])) != 0)
$is_select = true;

// Make the filenames look a bit better.
if (isset($qq['f']))
$qq['f'] = preg_replace('~^' . preg_quote($boarddir, '~') . '~', '...', $qq['f']);

echo '
<strong>', $is_select ? '<a href="' . $scripturl . '?action=viewquery;qq=' . ($q + 1) . '#qq' . $q . '" target="_blank" class="new_win" style="text-decoration: none;">' : '', nl2br(str_replace("\t", '&nbsp;&nbsp;&nbsp;', htmlspecialchars(ltrim($qq['q'], "\n\r")))) . ($is_select ? '</a></strong>' : '</strong>') . '<br />
&nbsp;&nbsp;&nbsp;';
if (!empty($qq['f']) && !empty($qq['l']))
echo sprintf($txt['debug_query_in_line'], $qq['f'], $qq['l']);

if (isset($qq['s'], $qq['t']) && isset($txt['debug_query_which_took_at']))
echo sprintf($txt['debug_query_which_took_at'], round($qq['t'], 8), round($qq['s'], 8)) . '<br />';
elseif (isset($qq['t']))
echo sprintf($txt['debug_query_which_took'], round($qq['t'], 8)) . '<br />';
echo '
<br />';
}

echo '
<a href="' . $scripturl . '?action=viewquery;sa=hide">', $txt['debug_' . (empty($_SESSION['view_queries']) ? 'show' : 'hide') . '_queries'], '</a>
</div></body></html>';
}

// Get an attachment's encrypted filename.  If $new is true, won't check for file existence.
function getAttachmentFilename($filename, $attachment_id, $dir = null, $new = false, $file_hash = '')
{
global $modSettings, $smcFunc;

// Just make up a nice hash...
if ($new)
return sha1(md5($filename . time()) . mt_rand());

// Grab the file hash if it wasn't added.
if ($file_hash === '')
{
$request = $smcFunc['db_query']('', '
SELECT file_hash
FROM {db_prefix}attachments
WHERE id_attach = {int:id_attach}',
array(
'id_attach' => $attachment_id,
));

if ($smcFunc['db_num_rows']($request) === 0)
return false;

list ($file_hash) = $smcFunc['db_fetch_row']($request);
$smcFunc['db_free_result']($request);
}

// In case of files from the old system, do a legacy call.
if (empty($file_hash))
return getLegacyAttachmentFilename($filename, $attachment_id, $dir, $new);

// Are we using multiple directories?
if (!empty($modSettings['currentAttachmentUploadDir']))
{
if (!is_array($modSettings['attachmentUploadDir']))
$modSettings['attachmentUploadDir'] = unserialize($modSettings['attachmentUploadDir']);
$path = $modSettings['attachmentUploadDir'][$dir];
}
else
$path = $modSettings['attachmentUploadDir'];

return $path . '/' . $attachment_id . '_' . $file_hash;
}

// Older attachments may still use this function.
function getLegacyAttachmentFilename($filename, $attachment_id, $dir = null, $new = false)
{
global $modSettings, $db_character_set;

$clean_name = $filename;
// Remove international characters (windows-1252)
// These lines should never be needed again. Still, behave.
if (empty($db_character_set) || $db_character_set != 'utf8')
{
$clean_name = strtr($filename,
"\x8a\x8e\x9a\x9e\x9f\xc0\xc1\xc2\xc3\xc4\xc5\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd1\xd2\xd3\xd4\xd5\xd6\xd8\xd9\xda\xdb\xdc\xdd\xe0\xe1\xe2\xe3\xe4\xe5\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf1\xf2\xf3\xf4\xf5\xf6\xf8\xf9\xfa\xfb\xfc\xfd\xff",
'SZszYAAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy');
$clean_name = strtr($clean_name, array("\xde" => 'TH', "\xfe" =>
'th', "\xd0" => 'DH', "\xf0" => 'dh', "\xdf" => 'ss', "\x8c" => 'OE',
"\x9c" => 'oe', "\c6" => 'AE', "\xe6" => 'ae', "\xb5" => 'u'));
}
// Sorry, no spaces, dots, or anything else but letters allowed.
$clean_name = preg_replace(array('/\s/', '/[^\w_\.\-]/'), array('_', ''), $clean_name);

$enc_name = $attachment_id . '_' . strtr($clean_name, '.', '_') . md5($clean_name);
$clean_name = preg_replace('~\.[\.]+~', '.', $clean_name);

if ($attachment_id == false || ($new && empty($modSettings['attachmentEncryptFilenames'])))
return $clean_name;
elseif ($new)
return $enc_name;

maximus23

Bonjour,

Mettre le fichier Subs en fichier joint merci :)

Pas de support par PM ou Courrier...Veuillez utiliser le forum pour vous avoir une réponse rapide à votre demande d'aide. Merci.
Amitiés et à Bientôt...
No support by PM or Mail...You will get better and faster responses in the support forums. Thank you.
Have a nice day...

john013


maximus23

Bonjour,

Effectivement ta syntaxe est incorrecte pour ton fichier :)

Recherche :


            'site' => array(
                'title' => 'Calendrier',
                'href' => 'calendrier_google.php',
                'show' => true,
                'sub_buttons' => array(
            ),
   ),



Et remplace par ceci :


            'calendrier' => array(
                'title' => 'Calendrier',
                'href' => 'http://www.xxxxxxx.com/calendrier_google.php" target="_blank',
                'show' => true,
                'sub_buttons' => array(
    ),
   ),


A savoir que tu dois remplacer les xxxxx.com par ton nom de domaine :)

Pas de support par PM ou Courrier...Veuillez utiliser le forum pour vous avoir une réponse rapide à votre demande d'aide. Merci.
Amitiés et à Bientôt...
No support by PM or Mail...You will get better and faster responses in the support forums. Thank you.
Have a nice day...

john013

Bonsoir
merci Problème  résolut et mon 2eme souci pour le même problème,  un retour à la ligne ET un espace devant <?php
lol un souci de débutant ^^

maximus23

Bonsoir,

Ok mais pour ta 2ème demande là j'ai pas très bien saisi soit plus explicite merci :)

Pas de support par PM ou Courrier...Veuillez utiliser le forum pour vous avoir une réponse rapide à votre demande d'aide. Merci.
Amitiés et à Bientôt...
No support by PM or Mail...You will get better and faster responses in the support forums. Thank you.
Have a nice day...

john013

un retour à la ligne ET un espace devant <?php 
mon crée un petit bug d'affichage que j'ai corriger

maximus23

Bonsoir,

Ok tout est en ordre alors :)

Pas de support par PM ou Courrier...Veuillez utiliser le forum pour vous avoir une réponse rapide à votre demande d'aide. Merci.
Amitiés et à Bientôt...
No support by PM or Mail...You will get better and faster responses in the support forums. Thank you.
Have a nice day...

john013

bonjour ,
j'ai voulu installer "ColorsAndIcons.zip"
ne marchant pas je l'ai désinstaller mais plusieurs bug.
donc par étape qu'elle changement est a faire pour  la première erreur? :
"Unknown column 'color' in 'field list'
Fichier: /Sources/Subs-Editor.php
Ligne: 987"
Quote// Otherwise load the icons, and check we give the right image too...
   else
   {
      if (($temp = cache_get_data('posting_icons-' . $board_id, 480)) == null)
      {
         $request = $smcFunc['db_query']('select_message_icons', '
            SELECT title, filename, color
            FROM {db_prefix}message_icons
            WHERE id_board IN (0, {int:board_id})',
            array(
               'board_id' => $board_id,
            )
         );
         $icon_data = array();
         while ($row = $smcFunc['db_fetch_assoc']($request))
            $icon_data[] = $row;
         $smcFunc['db_free_result']($request);

         cache_put_data('posting_icons-' . $board_id, $icon_data, 480);
      }
      else
         $icon_data = $temp;

      $icons = array();
      foreach ($icon_data as $icon)
      {
         $icons[$icon['filename']] = array(
            'value' => $icon['filename'],
            'name' => $icon['title'],
            'url' => $settings[file_exists($settings['theme_dir'] . '/images/post/' . $icon['filename'] . '.gif') ? 'images_url' : 'default_images_url'] . '/post/' . $icon['filename'] . '.gif',
            'is_last' => false,
            'color' => $icon['color'],
         );
      }
   }

   return array_values($icons);
}

maximus23

Bonjour,

Cette erreur te dit que le code est toujours présent et fait appel à ce champ qui se trouvait dans la bdd et qui a été retiré.

Il faut désinstaller le mod manuellement dans son entièreté.

Il est a savoir qu'il ne faut jamais appliquer un mod qui indique des erreurs au niveau de l'application .

:)
Pas de support par PM ou Courrier...Veuillez utiliser le forum pour vous avoir une réponse rapide à votre demande d'aide. Merci.
Amitiés et à Bientôt...
No support by PM or Mail...You will get better and faster responses in the support forums. Thank you.
Have a nice day...

john013

#57
et comment je fais? je suprime les bloque ?
donc toute les erreur sont a suprimé?
je ne doit pas toucher la bdd?

maximus23

#58
Bonjour,

Non ne pas toucher a la bdd.

Comme dis plus haut désinstaller le code manuellement dans tout les fichiers concernés.

C'est le mod de bulakbol ?

Si c'est le cas en lisant tu aurais vu que je viens de faire un nouveau mod pour mettre en couleur les titres des sujets :)


Edit fichiers que tu dois modifier :

Sources/Subs.php
Sources/ManagePosts.php
Sources/Subs-Editor.php
Sources/ManageSmileys.php
Sources/MessageIndex.php
Sources/Display.php

Themes :

Post.template.php
ManageSmileys.template.php

... Y en a quelques-un ...

Maintenant plus simple si une copie est faite sous .php~ il suffit de remettre ceux là uniquement pour les fichiers mentionnés ci-dessus  :)

:)
Pas de support par PM ou Courrier...Veuillez utiliser le forum pour vous avoir une réponse rapide à votre demande d'aide. Merci.
Amitiés et à Bientôt...
No support by PM or Mail...You will get better and faster responses in the support forums. Thank you.
Have a nice day...

john013

bonjour,
j'ai fais la modification , c'est ok.
mon problème est que la première fois j'en avais enlevais un peut trop.

Advertisement: