News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

quick edit doesnt work

Started by Owdy, April 17, 2009, 02:23:35 AM

Previous topic - Next topic

Owdy

http://foorumi.hoitajat.net

If i click quick edit icon, it just flashes that animation but nothing happends. It works with default theme. I gont know what it suddenly stopped working. Only thng i did, i installed Gallery mod.

FF error log says this if i click that editinline icon:

QuoteVirhe: XMLDoc.getElementsByTagName("message")[0] is undefined
Lähdetiedosto: http://foorumi.hoitajat.net/Themes/default/scripts/xml_topic.js
Rivi: 135
QuoteVirhe: XML- tai tekstimäärittely ei ole olion alussa
Lähdetiedosto: http://foorumi.hoitajat.net/index.php?action=quotefast;quote=213218;sesc=b92b2c7f65e2f8698b5345629b42578b;modify;xml
Rivi: 2, Sarake: 1
Lähdekoodi:
<?xml version="1.0" encoding="UTF-8"?>

Its finnish i know, i hope it helps :(
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Aleksi "Lex" Kilpinen

Very roughly translated that error would be something like "XML- or text definition is not in the beginning of the element / object "

BTW, finns rule ;)
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

onepiece

There is a blank return at the top of XML given. It isn't easy to find which file it comes from. Check if there are any blank returns before <?php tag in index.php, Load.php, Subs.php files. Also, check if uninstalling gallery mod solves the issue.

Owdy

No blanks in those files, they all start with that <?php tag,
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Dragooon


Owdy

No. If i look source code from my page, thare are blank lines in top of file. Could this be it? Why tere are blanks?

http://foorumi.hoitajat.net/index.php

head of index.template.php

<?php
// Version: 2.0 RC1; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '2.0 RC1';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status separate from topic icons? */
$settings['separate_sticky_lock'] = true;

/* Does this theme use the strict doctype? */
$settings['strict_doctype'] = false;

/* Does this theme use post previews on the message index? */
$settings['message_index_preview'] = false;
}

// The main sub template above the content.
function template_html_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title_html_safe'], '" />
<meta name="keywords" content="'
$context['meta_keywords'], '" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/scripts/script.js?rc1"></script>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/scripts/theme.js?rc1"></script>
 <script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/scripts/menu.js?RC1"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_default_theme_url = "'
$settings['default_theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";'$context['show_pm_popup'] ? '
if (confirm("' 
$txt['show_personal_messages'] . '"))
window.open("' 
$scripturl '?action=pm");' '''
var ajax_notification_text = "'
$txt['ajax_in_progress'], '";
var ajax_notification_cancel_text = "'
$txt['modify_cancel'], '";
// ]]></script>
<title>'
$context['page_title_html_safe'], '</title>';

// Please don't index these Mr Robot.
if (!empty($context['robot_no_index']))
echo '
<meta name="robots" content="noindex" />'
;

// The ?b4 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style'$context['theme_variant'], '.css?b4" />';

echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/css/print.css?b4" media="print" />';

// IE7 needs some fixes for styles.
if ($context['browser']['is_ie7'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/css/ie7.css" />';
// ..and IE6!
elseif ($context['browser']['is_ie6'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/css/ie6.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name_html_safe'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="'
$scripturl'?board='$context['current_board'], '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
{
$options['collapse_header'] = !empty($_COOKIE['upshrink']);
$options['collapse_header_ic'] = !empty($_COOKIE['upshrinkIC']);
}

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
// Create the main header object.
var mainHeader = new smfToggle("upshrink", '
, empty($options['collapse_header']) ? 'false' 'true'');
mainHeader.useCookie('
$context['user']['is_guest'] ? 0');
mainHeader.setOptions("collapse_header", "'
$context['session_id'], '");
mainHeader.addToggleImage("upshrink", "/upshrink.gif", "/upshrink2.gif");
mainHeader.addTogglePanel("user_section");
mainHeader.addTogglePanel("news_section");
// ]]></script>'
;

echo '
</head>
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Adish - (F.L.A.M.E.R)

I think there is a bug report on this in SMF 2.0RC1. It could be recreated by one of the member..

Look here:- http://www.simplemachines.org/community/index.php?topic=296540.0

Aleksi "Lex" Kilpinen

EDITED: OK, you seem to have gotten a better lead there :)
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Owdy

Ok, but quick edit works in default theme, not in my own anymore.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Dragooon

So its a theme related issue. Hmm what all files does your theme has?

Owdy

Quote from: Owdy on April 17, 2009, 11:59:03 AM
No. If i look source code from my page, thare are blank lines in top of file. Could this be it? Why tere are blanks?
Default theme is okay, wonder what makes that in my own theme ?
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Owdy

Quote from: Dragooon on April 17, 2009, 12:12:20 PM
So its a theme related issue. Hmm what all files does your theme has?
Yes, but this worked before that mod installation.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Dragooon

I am leaning towards the languages folder, does your theme has one?

Adish - (F.L.A.M.E.R)

Try replacing the XML over which the error is found. It maybe something in there.

Owdy

Quote from: Dragooon on April 17, 2009, 12:14:27 PM
I am leaning towards the languages folder, does your theme has one?
Yes.

Quote from: F.L.A.M.E.R on April 17, 2009, 12:14:49 PM
Try replacing the XML over which the error is found. It maybe something in there.
I dont understand?
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Owdy

Whoaa, i removed those Gallery mod strings from my Modifications.finnish file and error is gone. Its fixed. Those blank lines are also gone.Honestly, thats all i did. This is so strange. How That can be related??  :o
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Adish - (F.L.A.M.E.R)


Dragooon

Can you post the languages folder in ZIP file? Or just attach the file in it indivisually? Also what other files does your theme has(I mean index.template.php, boardindex.template.php etc etc)?

Dragooon

Quote from: Owdy on April 17, 2009, 12:18:54 PM
Whoaa, i removed those Gallery mod strings from my Modifications.finnish file and error is gone. Its fixed. Those blank lines are also gone.Honestly, thats all i did. This is so strange. How That can be related??  :o
I told you it had to be something with the languages in that theme.

Owdy

Quote from: Dragooon on April 17, 2009, 12:20:36 PM
Quote from: Owdy on April 17, 2009, 12:18:54 PM
Whoaa, i removed those Gallery mod strings from my Modifications.finnish file and error is gone. Its fixed. Those blank lines are also gone.Honestly, thats all i did. This is so strange. How That can be related??  :o
I told you it had to be something with the languages in that theme.
Yeah, i know  thats why i tryed that. Thanks!! How that can be do something like that?  :D
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Dragooon

Well since the languages are the only files that are loaded from that theme during a XML call, it simply can exist only there. Since it worked in default theme, it couldn't have been XML.template.php. And no templates except that are loaded. But all language files are loaded.

Owdy

Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Dragooon

Your welcome, glad it works now :)

Owdy

Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Advertisement: