Don't want all the time enabled the Ajax QuickEdit

Allgemeiner Support zum phpBB 2 Board und phpBB 2 Modifikationen
Forumsregeln
Auch wenn hier der Support für phpBB 2 weiterhin aufrecht erhalten bleibt, weisen wir darauf hin, dass das phpBB 2 nicht mehr offiziell unterstützt und weiterentwickelt wird!
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

@mariokaz
Which errors? Can you please post the complete error messages????? I can't help without more details!!!

@Blisk
Try this:

Code: Alles auswählen

#
#-----[ OPEN ]-----
#
viewtopic.php

#
#-----[ FIND ]-----
#
	if ( ( $userdata['user_id'] == $poster_id && $is_auth['auth_edit'] && ($forum_topic_data['topic_status'] != TOPIC_LOCKED)) || $is_auth['auth_mod'] )
	{
		$edit_url = append_sid("posting.$phpEx?mode=editpost&" . POST_POST_URL . "=" . $postrow[$i]['post_id']);
		$edit_img = '<a href="'. $edit_url .'"><img src="' . $images['icon_edit'] . '" alt="' . $lang['Edit_delete_post'] . '" title="' . $lang['Edit_delete_post'] . '" border="0" /></a>';
		$edit = '<a id="editlink_'. $postrow[$i]['post_id'] .'" onclick="return AJAXPostEdit('. $postrow[$i]['post_id'] .');" href="' . $edit_url . '" style="text-decoration: none;">[ ' . $lang['Edit_quick_post'] . ' ]</a>';
	else
	{
		$edit_img = '';
		$edit = '';
		$edit_url = '';

	}

#
#-----[ AFTER, ADD ]-----
#
	if ($userdata['user_level'] == USER && $postrow[$i]['post_id'] != $forum_topic_data['topic_last_post_id'])
	{
		$edit_img = '';
		$edit = '';
		$edit_url = '';

	}
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
mariokaz
Beiträge: 222
Registriert: So 12.Jun, 2005 21:46

Beitrag von mariokaz »

Mmmm ok no errors, but the problem that the buttons of the Ajax Mod Functions don't works in my forum when I clicked it. ¦4
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

[quote="mariokaz";p="66182"]Mmmm ok no errors, but the problem that the buttons of the Ajax Mod Functions don't works in my forum when I clicked it. ¦4[/quote]
All the time you wrote about javascript errors (displayed in the browser status line).
Can you please post them?????????
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

ThanK you, this works great.
:respect:

as I noticed on my forum CASH mod doesn't work with ajax.
Zuletzt geändert von Blisk am Mo 06.Nov, 2006 13:38, insgesamt 1-mal geändert.
mariokaz
Beiträge: 222
Registriert: So 12.Jun, 2005 21:46

Beitrag von mariokaz »

Ok Oxpus, I put here a screenshot with a little explanation of my problem.

Bild

The only problem is I clicked in the buttons of the functions for the Ajax Mod and nothing happen, so I can't edit, move, change, delete, etc. nothing of my forum with the Ajax Mod in one of my templates.

Thanx! ;)
Zuletzt geändert von mariokaz am Mo 06.Nov, 2006 19:07, insgesamt 1-mal geändert.
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

that's happend when I have installed CASH mod!
mariokaz
Beiträge: 222
Registriert: So 12.Jun, 2005 21:46

Beitrag von mariokaz »

I don't have installed that Mod in my Plus 1.53a.

And I have two templates installed and the Ajax is working very well in my other template, so for sure is an error in any of my files(ajax), because also it was working very well in both templates a little time ago.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

And the error message is?????
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
mariokaz
Beiträge: 222
Registriert: So 12.Jun, 2005 21:46

Beitrag von mariokaz »

The only error message that appears in my site you can see it in the screenshot that I put up here.

When I click in the buttons "nothing happen" only the appears message that say "Error on page" in my explorer.

What I said is if we can do something like this?

http://www.oxpus.de/viewtopic.php?t=6390
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

.....
What is the error message?????
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
mariokaz
Beiträge: 222
Registriert: So 12.Jun, 2005 21:46

Beitrag von mariokaz »

I don't have other error message that the "Error on page" message that appears in the explorer window. :(

What can I do to know what is the problem?, if I don't have any error message in my forum, only in my explorer window and the Ajax buttons don't do nothing. ^6
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

:hh:
When you see the message "Error on Page" you can open the error window for this (double click on this message). And in this window you can see the complete Error Message..........................
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
mariokaz
Beiträge: 222
Registriert: So 12.Jun, 2005 21:46

Beitrag von mariokaz »

I am so sorry Oxpus, I didn't know that, sorry again and don't get mad with me please. :!:

I put here the window error messages (screenshots) and also my files. ¢¦

Bild

Bild


Thanx! ;)

[ Attachment gelöscht am Di 07.Nov, 2006 19:40 von oxpus ]
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Okay, the first question:
Look into your overall_header.tpl and search for this code block:

Code: Alles auswählen

<script type="text/javascript">
<!--
var S_SID = '{S_SID}';
var ajax_core_defined = 0;
var phpbb_root_path = '{PHPBB_ROOT_PATH}';
var phpEx = '{PHPEX}';
var POST_FORUM_URL = '{POST_FORUM_URL}';
var POST_TOPIC_URL = '{POST_TOPIC_URL}';
var POST_POST_URL = '{POST_POST_URL}';
var ajax_page_charset = '{S_CONTENT_ENCODING}';
//-->
</script>

<script type="text/javascript" src="ajax/ajax_core.js"></script>
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
mariokaz
Beiträge: 222
Registriert: So 12.Jun, 2005 21:46

Beitrag von mariokaz »

In the template(Fiblack3dblue) that is not working correctly the AJAX Mod I found it like this:

Code: Alles auswählen

<script type="text/javascript">
<!--
var S_SID = '{S_SID}';
var ajax_core_defined = 0;
var phpbb_root_path = '{PHPBB_ROOT_PATH}';
//-->
</script>

<script type="text/javascript" src="ajax/ajax_core.js"></script>
And in the template(Fisubsilversh) that yes it is working very well the functions of the AJAX Mod I found this:

Code: Alles auswählen

<script type="text/javascript">
<!--
var phpEx = '{PHPEX}';
var POST_FORUM_URL = '{POST_FORUM_URL}';
var POST_TOPIC_URL = '{POST_TOPIC_URL}';
var POST_POST_URL = '{POST_POST_URL}';
var ajax_page_charset = '{S_CONTENT_ENCODING}';
var S_SID = '{S_SID}';
var ajax_core_defined = 0;
var phpbb_root_path = '{PHPBB_ROOT_PATH}';
//-->
</script>

<script type="text/javascript" src="ajax/ajax_core.js"></script>

So I have to change it in the template Fiblack3dblue ?? :p

Thank you my friend!! :D
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Yes and check all other template files from fiblack3dblue, too.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
mariokaz
Beiträge: 222
Registriert: So 12.Jun, 2005 21:46

Beitrag von mariokaz »

WOOOWWW thank you again Oxpus, that was all the problem and now my super AJAX Mod is working again great in my both templates, thank you for helping me. :D

The only thing is only I edited my overall_header.tpl file because I didn't find that code or similar in my other template files. ^6

Also I did the little Mod for Blink and is it worinking awesome, thank you for that.

Cheers!

Mario
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

No problem...
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Antworten