Ajax features ????

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!
Antworten
mariokaz
Beiträge: 222
Registriert: So 12.Jun, 2005 21:46

Ajax features ????

Beitrag von mariokaz »

Hello Oxpus! ;)

Well finally with a lot of help and many work I can installed the AJAX Features Mod in my board (phpbb2 Plus 1.52 2.0.19) :p , In the moment I don't see errors in the forum, the little problem is that some of the Features aren't working and I don't know why or If you have the same problem here. :(

## -> Forum index
## - Mark forums read: you can mark single forums as read by clicking the
## icon of the forum. You must be logged in to use this feature. If you
## are not logged in, the page will reload with the topic marked as read.
## -> Viewing forums
## - Edit topic titles from viewforum. Simply doubleclick the cell with the
## topic title to edit it. To save the new title, hit the return key or
## click the "Save changes" button. To cancel editing, hit the escape key
## or click the "Cancel" button. This also works when displaying search
## results by topics. You can edit all subjects you're authorized for;
## normal users may edit their own topics, moderators all topics.
## - Mark topics read: you can mark single topics as read by clicking the
## icon of the topic. You must be logged in to use this feature. If you
## are not logged in, the page will reload with the topic marked as read.
## -> Moderator control panel
## - Edit topic titles like on viewforum. Please note that the escape and
## return key have no function in this file. Hitting Return will simply
## submit the ModCP form, there is no way to work around this.
## -> Viewing topics
## - Edit post subjects and post texts directly on viewtopic.
## To edit the post title, simply doubleclick the title (including the
## words "Post subject"). To save the subject hit the return key or click
## the "Save changes" button. To cancel editing, hit the escape key or
## click the "Cancel" button.


And this one sometimes works in the posts (but not all) and sometimes not. ^6

## To edit the post text, click the edit button. To see the full editor,
## click the "Show full editor" link underneath the textbox. To save the
## message, click the "Save changes" button, and to cancel editing, simply
## hit the escape key or click the "Cancel" button. You can make the text
## box bigger and smaller by clicking the "+" and "-" buttons.
## These features also work when displaying search results by posts, but
## note that you can only edit the post title, and not the topic title.
## You can edit all posts you're authorized for; normal users may edit
## their own posts, moderators all posts.

What do u think ? ^q


Also I saw this FIX but I don't speak German so I don't know what is that fixes for the Ajax Mod.

http://www.oxpus.de/viewtopic.php?t=5065

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

Beitrag von oxpus »

The fix will enable to use a plus character "+" while edit a post with the AJAX function.
Without this fix each + char will be ignored on editing the text directly on viewtopic.php...
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 »

Ok thanx for the aclaration. ;)

One question...... Are all the features working like a charm in your board ??? ^6
Benutzeravatar
oxpus
Administrator
Beiträge: 28737
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Yes, the complete one.
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 »

Ok

I don't know why some of them aren't working in my board. ^q
Benutzeravatar
oxpus
Administrator
Beiträge: 28737
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Which one?
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!
JaneDoe
Beiträge: 230
Registriert: Sa 16.Jul, 2005 12:18

Beitrag von JaneDoe »

hmm, this
## - Instant preview: Clicking on the preview button will show the preview
## message instantly.

is not working here.
Benutzeravatar
oxpus
Administrator
Beiträge: 28737
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Sure this IS working.
Regard, that this Board will check and controll any more features as only the preview by Ajax ;)

And on topic review OXPUS.de will format many things, too, so this part alltimes reloads and the "fast" preview only works on editing a post!
Zuletzt geändert von oxpus am Fr 03.Mär, 2006 13:45, insgesamt 1-mal geändert.
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!
JaneDoe
Beiträge: 230
Registriert: Sa 16.Jul, 2005 12:18

Beitrag von JaneDoe »

So you do not use the instant preview feature at posting, replying, and in full edit mode ?

Ok, i tested it with a larg text and the preview bug is not appearing, so now i am worried. :eek:

Do you have a workaround or do you a normal preview after the ajax preview?
Benutzeravatar
oxpus
Administrator
Beiträge: 28737
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

The preview on new posts will not work, because the text must be transfered to the preview box.
On a new post or a reply the tools don't have a post id to controll the preview!
So this feature only works on post edits and the mod was still build to handle only post edits, 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!
JaneDoe
Beiträge: 230
Registriert: Sa 16.Jul, 2005 12:18

Ajax preview Frage

Beitrag von JaneDoe »

Ok, nun in Deutsch, das geht besser. :)
Also die Ajax preview Funktion hat ja den 4096 Zeichen Bug.
Der tritt hier weder beim editieren, noch beim antworten, noch beim Erstellen eines Postings auf.

Also wie zur hölle geht das :cool:

Und wie hast du das gelöst, dass nach der vorschau oder nach dem absenden des Postings der
Absendebutton disabled wird.
Weil bei mir hebelt das instant preview dieses

Code: Alles auswählen

		//formObj.preview.disabled = true;
		//formObj.submit.disabled = true;
		setTimeout("document.post.post.disabled = true; document.post.post.value='Übertrage'", 0);
		return true;
aus.
Benutzeravatar
oxpus
Administrator
Beiträge: 28737
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Auch hier nochmal in deutsch:

Beim Erstellen eines neuen Beitrags oder einer Antwort/einem Zitat ist noch keine Post-ID vorhanden, mit der die Vorschau kontrolliert werden könnte.
Daher sind die AJAX Features auch nur für Edit Post ausgelegt!
Dazu kommt die Textbegrenzung, an der allerdings alcaeus bereits arbeitet.

Und das deaktivieren des Post-Buttons ist ein anderes Thema und ist über die Suche zu finden ;)
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!
JaneDoe
Beiträge: 230
Registriert: Sa 16.Jul, 2005 12:18

Beitrag von JaneDoe »

[quote="oxpus - Fr 03.März, 2006 15:10";p="54904"]
Beim Erstellen eines neuen Beitrags oder einer Antwort/einem Zitat ist noch keine Post-ID vorhanden, mit der die Vorschau kontrolliert werden könnte.
Daher sind die AJAX Features auch nur für Edit Post ausgelegt!
[/quote]

Also eine Eigenart von deinem Forum hier. Gut das hab ich nicht berücksichtigt.
Die Deaktivieren Funktion hab ich ja von hier. Nur bei mir hab ich eben beim Posten und antworten
die Instantpreview und dann klappt das Deaktivieren nicht mehr.

Der Bug ist allerdings nicht problematisch, dass mit der Zeichenbegrenzung schon eher.

// Nachtrag: Nur dass wir uns nicht missverstehen. Im alcaeus Testboard hat man freilich Instantpreview beim Topicerstellen und Antworten.
mariokaz
Beiträge: 222
Registriert: So 12.Jun, 2005 21:46

Beitrag von mariokaz »

[quote="oxpus - Fri 03.Mar, 2006 01:28";p="54888"]Which one?[/quote]

These Ones: ^6

## -> Forum index
## - Mark forums read: you can mark single forums as read by clicking the
## icon of the forum. You must be logged in to use this feature. If you
## are not logged in, the page will reload with the topic marked as read.
## -> Viewing forums
## - Edit topic titles from viewforum. Simply doubleclick the cell with the
## topic title to edit it. To save the new title, hit the return key or
## click the "Save changes" button. To cancel editing, hit the escape key
## or click the "Cancel" button. This also works when displaying search
## results by topics. You can edit all subjects you're authorized for;
## normal users may edit their own topics, moderators all topics.
## - Mark topics read: you can mark single topics as read by clicking the
## icon of the topic. You must be logged in to use this feature. If you
## are not logged in, the page will reload with the topic marked as read.
## -> Moderator control panel
## - Edit topic titles like on viewforum. Please note that the escape and
## return key have no function in this file. Hitting Return will simply
## submit the ModCP form, there is no way to work around this.
## -> Viewing topics
## - Edit post subjects and post texts directly on viewtopic.
## To edit the post title, simply doubleclick the title (including the
## words "Post subject"). To save the subject hit the return key or click
## the "Save changes" button. To cancel editing, hit the escape key or
## click the "Cancel" button.



And this one sometimes works in the posts (but not all) and sometimes not. ^q

## To edit the post text, click the edit button. To see the full editor,
## click the "Show full editor" link underneath the textbox. To save the
## message, click the "Save changes" button, and to cancel editing, simply
## hit the escape key or click the "Cancel" button. You can make the text
## box bigger and smaller by clicking the "+" and "-" buttons.
## These features also work when displaying search results by posts, but
## note that you can only edit the post title, and not the topic title.
## You can edit all posts you're authorized for; normal users may edit
## their own posts, moderators all posts.


What do u think ? :confused:
Benutzeravatar
oxpus
Administrator
Beiträge: 28737
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

@mariokaz
Do you use the original subSilver theme?

@JaneDoe
Warum heisst das Forum auch Testboard???
Im Ernst: Laut der Original Anleitung der Ajax Features kommt die schnelle Vorschau Version nur beim Edit zum Tragen. Es wird ja auch in der posting.php so eingetragen, also mit if ($mode == 'editpost')...
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!
JaneDoe
Beiträge: 230
Registriert: Sa 16.Jul, 2005 12:18

Beitrag von JaneDoe »

hmm, wenn ich das laut Anleitung hier in der posting_body.tpl

Code: Alles auswählen

#-----[ FIND ]------------------------------------------------ 
# 
	  <td class="catBottom" colspan="2" align="center" height="28"> {S_HIDDEN_FORM_FIELDS}<input type="submit" tabindex="5" name="preview" class="mainoption" value="{L_PREVIEW}" />&nbsp;<input type="submit" accesskey="s" tabindex="6" name="post" class="mainoption" value="{L_SUBMIT}" /></td>


# 
#-----[ IN-LINE FIND ]---------------------------------------- 
# 
name="preview"


# 
#-----[ IN-LINE AFTER, ADD ]---------------------------------- 
# Note the leading space!
 onclick="return AJAXPreview({S_IS_PM}, {S_EDIT_POST_ID});"
einbaue, hab ich bei allen posting funktionen eine instantpreview funktion, genauso wie im Testboard auch.

Und in der posting.php steht nur dieses:

Code: Alles auswählen

# 
#-----[ OPEN ]------------------------------------------------ 
# 
posting.php


# 
#-----[ FIND ]------------------------------------------------ 
# 
	'U_REVIEW_TOPIC' => ( $mode == 'reply' ) ? append_sid("posting.$phpEx?mode=topicreview&" . POST_TOPIC_URL . "=$topic_id") : '', 


# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
	
	'S_AJAX_BLUR' => ($mode == 'newtopic') ? 'onblur="AJAXSearch(this.value);"' : '',
	'S_IS_PM' => 0,
	'S_DISPLAY_PREVIEW' => ($preview) ? '' : 'style="display:none;"',
	'S_EDIT_POST_ID' => ($mode == 'editpost') ? $post_id : 0,
	'L_SEARCH_RESULTS' => $lang['AJAX_search_results'],
	'L_SEARCH_RESULT' => $lang['AJAX_search_result'],
	'L_EMPTY_SUBJECT' => $lang['Empty_subject'],

Bin ich jetzt zu blöd das einzubauen ?
mariokaz
Beiträge: 222
Registriert: So 12.Jun, 2005 21:46

Beitrag von mariokaz »

[quote="oxpus - Fri 03.Mar, 2006 12:44";p="54915"]@mariokaz
Do you use the original subSilver theme?[/quote]

No, I have two templates, the Fisubsilversh and the Fiblue3d.

This template of this board isn't the original subsilver so I think this have a solution, Am I right ?
Benutzeravatar
oxpus
Administrator
Beiträge: 28737
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

@JanoDoe
Schau mal genau hin:

Code: Alles auswählen

'S_EDIT_POST_ID' => ($mode == 'editpost') ? $post_id : 0,
Wann bekommt die Funktion eine Post-ID???


Korrekt: Nur beim Editieren!


@mariokaz
Both Styles are different to subSilver and you must find the correct positions to enter the AJAX code.
I don't know them, so I can't say, that you're right...
Check you have insert the ajax_core.js and ajax_...functions.js on the right places...
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!
JaneDoe
Beiträge: 230
Registriert: Sa 16.Jul, 2005 12:18

Beitrag von JaneDoe »

Hab mir mal den Htmlcode angesehen, wenn ich ich posten will, da steht dann

Code: Alles auswählen

<input type="submit" tabindex="5" name="preview" onclick="return AJAXPreview(0, 0);" class="mainoption" value="Preview" />
also wahrscheinlich auch deine Post-Id 0.

Nur wieso funktioniert es dann ? Das hab ich doch schon hundertmal benutzt. Es ist die Instantpreview
beim Posten, antworten usw.
Den Unterschied merkt man doch sofort.

Aber egal. Du sagst es geht theoretisch nicht, ich weiss dass es praktisch geht, belassen wir es dabei. ;)
mariokaz
Beiträge: 222
Registriert: So 12.Jun, 2005 21:46

Beitrag von mariokaz »

[quote="oxpus - Fri 03.Mar, 2006 16:54";p="54928"]Check you have insert the ajax_core.js and ajax_...functions.js on the right places...[/quote]

Yes they are in the right place......... includes/javascript/....
Benutzeravatar
oxpus
Administrator
Beiträge: 28737
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

In the scripts, not the save places...
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 »

Ok ^q
JaneDoe
Beiträge: 230
Registriert: Sa 16.Jul, 2005 12:18

Beitrag von JaneDoe »

Huch, plötzlich geht die Instantpreview hier bei der Vorschau.
Was ist passiert? :)
Benutzeravatar
oxpus
Administrator
Beiträge: 28737
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Die war vorher auch schon da.
Nur habe ich einige Prüfungen abgeschaltet, so daß die "vermeindlich" schneller angezeigt wird.
Hängt auch mit den aktuell nicht vorhandenen Confirmation Topic MOD zusammen...
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!
JaneDoe
Beiträge: 230
Registriert: Sa 16.Jul, 2005 12:18

Beitrag von JaneDoe »

Ich finde das erheblich schneller. kein Nachladen, piff und da :)
Und nun tritt auch der 4096 Bug auf, vorher war der nicht da.
Antworten