Grafikproblem med bloggmod
Moderatorer: Moderatorgrupp, Supportgrupp
Grafikproblem med bloggmod
Se här
Vad gör man åt detta ? Precis som om den inte hittar mitt tema och så blir det blankt istället.
windsurf.se
windsurf.se
Och var/hur gör jag det ? jag tror det är weblog_posting.php som kommer upp när sidan ser ut så....Du kan förmodligen helt enkelt länka till CSS-filen i den filen som visas i screenshotet så fixas det av sig självt.
windsurf.se
Det kan inte vara i weblog_posting.php där den eventuellt kan länka fel på någotvis ?
windsurf.se
Kod: Markera allt
<?php
/***************************************************************************
* weblog_posting.php
* ------------------------
* begin : Monday, September 5, 2004
* copyright : (C) 2005 Hyperion
* email : vinng86@hotmail.com
*
* $Id: weblog_posting.php,v 1.0.0 2004/09/05, 13:17:43 Hyperion Exp $
*
***************************************************************************/
/***************************************************************************
*
* 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; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
define('IN_PHPBB', true);
define('IN_PORTAL', true);
//$phpbb_root_path = './';
$mx_root_path = '../../';
$module_root_path = './';
include($mx_root_path . 'extension.inc');
include($mx_root_path . 'common.'.$phpEx);
if (!function_exists('prepare_message'))
{
include_once($phpbb_root_path . 'includes/functions_post.'.$phpEx);
}
$board_config['smilies_path'] = $phpbb_root_path . $board_config['smilies_path'];
if (!defined('PHPBB_URL'))
{
define('PHPBB_URL', $phpbb_root_path);
}
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_POSTING);
init_userprefs($userdata);
//
// End session management
//
//include($phpbb_root_path . 'includes/weblogs_common.'.$phpEx);
include($module_root_path . 'includes/weblogs_constants.'. $phpEx);
include($module_root_path . 'includes/weblogs_common.'.$phpEx);
if ( isset($HTTP_POST_VARS[POST_REPLY_URL]) || isset($HTTP_GET_VARS[POST_REPLY_URL]) )
{
$reply_id = ( isset($HTTP_POST_VARS[POST_REPLY_URL]) ) ? $HTTP_POST_VARS[POST_REPLY_URL] : $HTTP_GET_VARS[POST_REPLY_URL];
$reply_id = intval($reply_id);
}
else
{
$reply_id = 0;
}
if ( isset($HTTP_POST_VARS[POST_ENTRY_URL]) || isset($HTTP_GET_VARS[POST_ENTRY_URL]) )
{
$entry_id = ( isset($HTTP_POST_VARS[POST_ENTRY_URL]) ) ? $HTTP_POST_VARS[POST_ENTRY_URL] : $HTTP_GET_VARS[POST_ENTRY_URL];
$entry_id = intval($entry_id);
}
else
{
$entry_id = 0;
}
if ( isset($HTTP_POST_VARS[POST_WEBLOG_URL]) || isset($HTTP_GET_VARS[POST_WEBLOG_URL]) )
{
$weblog_id = ( isset($HTTP_POST_VARS[POST_WEBLOG_URL]) ) ? $HTTP_POST_VARS[POST_WEBLOG_URL] : $HTTP_GET_VARS[POST_WEBLOG_URL];
$weblog_id = intval($weblog_id);
}
else
{
$weblog_id = 0;
}
if ( isset($HTTP_POST_VARS[POST_TRACKBACK_URL]) || isset($HTTP_GET_VARS[POST_TRACKBACK_URL]) )
{
$tb_id = ( isset($HTTP_POST_VARS[POST_TRACKBACK_URL]) ) ? $HTTP_POST_VARS[POST_TRACKBACK_URL] : $HTTP_GET_VARS[POST_TRACKBACK_URL];
$tb_id = intval($tb_id);
}
else
{
$tb_id = 0;
}
if ( isset($HTTP_GET_VARS['popup']) )
{
$popup = intval($HTTP_GET_VARS['popup']);
}
if ( isset($HTTP_POST_VARS['mode']) || isset($HTTP_GET_VARS['mode']) )
{
$mode = ( isset($HTTP_POST_VARS['mode']) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode'];
}
else
{
$mode = '';
}
//
// Text based parameters
//
$params = array('username' => 'username', 'uploaded_images' => 'uploaded_images', 'subject' => 'subject', 'action_text' => 'action_text');
while( list($var, $param) = @each($params) )
{
if ( !empty($HTTP_POST_VARS[$param]) )
{
$$var = htmlspecialchars($HTTP_POST_VARS[$param]);
}
else
{
$$var = '';
}
}
//
// Integer parameters
//
$params = array('entry_access' => 'entry_access', 'mood' => 'mood', 'action' => 'action', 'year' => 'year', 'month' => 'month', 'day' => 'day');
while( list($var, $param) = @each($params) )
{
if ( !empty($HTTP_POST_VARS[$param]) )
{
$$var = intval($HTTP_POST_VARS[$param]);
}
else
{
$$var = 0;
$mood = -1;
}
}
//
// Parameters with only on or off
//
$params = array('memorable' => 'memorable', 'disable_replies' => 'disable_replies', 'disable_html' => 'disable_html', 'disable_bbcode' => 'disable_bbcode', 'disable_smilies' => 'disable_smilies', 'attach_sig' => 'attach_sig');
while( list($var, $param) = @each($params) )
{
if ( !empty($HTTP_POST_VARS[$param]) )
{
$$var = ( !empty($HTTP_POST_VARS[$param]) ) ? 1 : 0;
}
else
{
$$var = 0;
}
}
function check_image_type(&$type)
{
switch( $type )
{
case 'jpeg':
case 'pjpeg':
case 'jpg':
return '.jpg';
break;
case 'gif':
return '.gif';
break;
case 'png':
return '.png';
break;
default:
break;
}
return false;
}
$hour = create_date ("G", time(), $board_config['board_timezone']);
$minute = create_date ("i", time(), $board_config['board_timezone']);
if ( !$month )
{
$month = create_date("n", time(), $board_config['board_timezone']);
}
else if ( $month < 1 || $month > 12 )
{
$month = 1;
}
if ( !$day )
{
$day = create_date("j", time(), $board_config['board_timezone']);
}
else if ( $day < 1 || $day > 31 )
{
$day = 1;
}
if ( $year < 1970 || $year > 2038 || !$year )
{
$year = create_date("Y", time(), $board_config['board_timezone']);
}
$hidden_form_fields = '';
//
// Was cancel pressed? If so then redirect to the appropriate
// page, no point in continuing with any further checks
//
if ( isset($HTTP_POST_VARS['cancel']) )
{
if ( $reply_id )
{
$redirect = "modules/mx_blogs/weblog_entry.$phpEx?" . POST_REPLY_URL . "=$reply_id";
$post_append = "#$reply_id";
}
else if ( $entry_id )
{
$redirect = "modules/mx_blogs/weblog_entry.$phpEx?" . POST_ENTRY_URL . "=$entry_id";
$post_append = '';
}
else if ( $weblog_id )
{
$redirect = "modules/mx_blogs/weblog.$phpEx?" . POST_WEBLOG_URL . "=$weblog_id";
$post_append = '';
}
else
{
$redirect = "index.$phpEx?" . $weblog_config['mx_weblog_list'];
$post_append = '';
}
redirect(append_sid($mx_root_path . $redirect, true) . $post_append);
}
//
// Check to make sure whatever is requested actually exists
//
if ( $tb_id )
{
$tb_data = '';
$sql = "SELECT * FROM " . WEBLOG_TRACKBACKS_TABLE . " WHERE tb_id = $tb_id";
if ( !($result = $db->sql_query($sql)) )
{
mx_message_die(GENERAL_ERROR, 'Error getting trackback information', '', __LINE__, __FILE__, $sql);
}
$tb_data = array();
if ( $row = $db->sql_fetchrow($result) )
{
$tb_data = $row;
}
else
{
mx_message_die(GENERAL_ERROR, $lang['Trackback_not_exist']);
}
// Also get the entry data
$sql = "SELECT * FROM " . WEBLOG_ENTRIES_TABLE . " WHERE entry_id = " . $tb_data['tb_entry'] . " AND entry_deleted <> " . TRUE;
if ( !($result = $db->sql_query($sql)) )
{
mx_message_die(GENERAL_ERROR, 'Error getting reply information', '', __LINE__, __FILE__, $sql);
}
$entry_data = array();
if ( $row = $db->sql_fetchrow($result) )
{
$entry_data = $row;
}
else
{
mx_message_die(GENERAL_ERROR, $lang['Entry_not_exist']);
}
$sql = "SELECT w.*, u.user_id FROM " . WEBLOGS_TABLE . " w, " . USERS_TABLE . " u
WHERE w.weblog_id = " . $entry_data['weblog_id'] . "
AND w.weblog_id = u.user_weblog";
if ( !($result = $db->sql_query($sql)) )
{
mx_message_die(GENERAL_ERROR, 'Error retrieving the trackback\'s weblog', '', __LINE__, __FILE__, $sql);
}
if ( $row = $db->sql_fetchrow($result) )
{
$weblog_data = $row;
}
else
{
// If a reply doesn't belong to a weblog or an entry, it doesn't exist.
mx_message_die(GENERAL_ERROR, $lang['Weblog_not_exist']);
}
$weblog_id = $weblog_data['weblog_id'];
}
else if ( $reply_id )
{
$reply_data = '';
$sql = "SELECT * FROM " . WEBLOG_REPLIES_TABLE . " WHERE reply_id = $reply_id";
if ( !($result = $db->sql_query($sql)) )
{
mx_message_die(GENERAL_ERROR, 'Error getting reply information', '', __LINE__, __FILE__, $sql);
}
$reply_data = array();
if ( $row = $db->sql_fetchrow($result) )
{
$reply_data = $row;
}
else
{
mx_message_die(GENERAL_ERROR, $lang['Reply_not_exist']);
}
// Also get the entry data
$sql = "SELECT * FROM " . WEBLOG_ENTRIES_TABLE . " WHERE entry_id = " . $reply_data['entry_id'] . " AND entry_deleted <> " . TRUE;
if ( !($result = $db->sql_query($sql)) )
{
mx_message_die(GENERAL_ERROR, 'Error getting reply information', '', __LINE__, __FILE__, $sql);
}
$entry_data = array();
if ( $row = $db->sql_fetchrow($result) )
{
$entry_data = $row;
}
else
{
mx_message_die(GENERAL_ERROR, $lang['Reply_not_exist']);
}
$sql = "SELECT w.*, u.user_id FROM " . WEBLOGS_TABLE . " w, " . USERS_TABLE . " u
WHERE w.weblog_id = " . $entry_data['weblog_id'] . "
AND w.weblog_id = u.user_weblog";
if ( !($result = $db->sql_query($sql)) )
{
mx_message_die(GENERAL_ERROR, 'Error retrieving the reply\'s weblog', '', __LINE__, __FILE__, $sql);
}
$weblog_data = array();
if ( $row = $db->sql_fetchrow($result) )
{
$weblog_data = $row;
}
else
{
// If a reply doesn't belong to a weblog or an entry, it doesn't exist.
mx_message_die(GENERAL_ERROR, $lang['Reply_not_exist']);
}
$weblog_id = $weblog_data['weblog_id'];
}
else if ( $entry_id )
{
$entry_data = '';
$sql = "SELECT * FROM " . WEBLOG_ENTRIES_TABLE . " WHERE entry_id = $entry_id AND entry_deleted <> " . TRUE;
if ( !($result = $db->sql_query($sql)) )
{
mx_message_die(GENERAL_ERROR, 'Error getting entry information', '', __LINE__, __FILE__, $sql);
}
if ( $row = $db->sql_fetchrow($result) )
{
$entry_data = $row;
}
else
{
mx_message_die(GENERAL_ERROR, $lang['Entry_not_exist']);
}
$sql = "SELECT w.*, u.user_id FROM " . WEBLOGS_TABLE . " w, " . USERS_TABLE . " u
WHERE w.weblog_id = " . $entry_data['weblog_id'] . "
AND w.weblog_id = u.user_weblog";
if ( !($result = $db->sql_query($sql)) )
{
mx_message_die(GENERAL_ERROR, 'Error retrieving the entry\'s weblog', '', __LINE__, __FILE__, $sql);
}
if ( $row = $db->sql_fetchrow($result) )
{
$weblog_data = $row;
}
else
{windsurf.se
Vilka är online
Användare som besöker denna kategori: 2 och 0 gäster


