[ABD] AJAX Quick Edit

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Anyasha
Registered User
Posts: 704
Joined: Mon Aug 07, 2006 4:02 am
Name: Anyasha

Re: [BETA] AJAX Quick Edit

Post by Anyasha »

I just found a big problem. When a user quickedits their posts, if they add smilies and there is NO bbcode ( or the likes) in that post, when searching their posts ("view users's posts" in their profile) the search results are GREATLY distorted. So what should be

Code: Select all

:lol:
Becomes

Code: Select all

<!-- s:lol: -->
The last smiley becomes <!-- s:l... which then hides the rest of the code! It will cut off the entire search page if it's the first result!

Here is an example of the source ---> http://i38.tinypic.com/j8pb2u.gif
Kiss me, I'm Polish!
User avatar
jmaraujo
Registered User
Posts: 240
Joined: Fri Jun 01, 2007 9:48 pm
Location: Rivera - Uruguay
Name: Juan

Re: [BETA] AJAX Quick Edit

Post by jmaraujo »

Wonderful mod. Thanks to the author! ;)

Some problems on IE, but working fine on both, Firefox and Opera.
DSL Line
Registered User
Posts: 168
Joined: Tue May 20, 2008 5:49 am

Re: [BETA] AJAX Quick Edit

Post by DSL Line »

I can edit the post but when i try to save the change, the post doesn`t save.I click at Save but nothing. no action. Why?

same problem

it's work with some post only i don't know why
User avatar
jmaraujo
Registered User
Posts: 240
Joined: Fri Jun 01, 2007 9:48 pm
Location: Rivera - Uruguay
Name: Juan

Re: [BETA] AJAX Quick Edit

Post by jmaraujo »

I have one question. How can I change the size of the font in the edit textarea?

Image

I tried changing it on the quickedit.html template, but there wasn't any changes (I did refresh forum, template, theme and browser caches).
User avatar
Pardis
Translator
Posts: 108
Joined: Sat Jun 21, 2008 11:14 pm

Re: [BETA] AJAX Quick Edit

Post by Pardis »

Thanks alot

It should be better if normal BBcode bottoms availabble in quick edit
Nemanja
Registered User
Posts: 8
Joined: Thu Sep 04, 2003 3:47 am

Re: [BETA] AJAX Quick Edit

Post by Nemanja »

I have problem with this mod.
When i click on quick edit button, text area is shown, but there is no text.
All variable is working, only POST_TEXT is not shown.
How to fix this?

I have phpbb 3.0.2.

EDIT:it was global announcement bug :(
autinhyeu
Registered User
Posts: 685
Joined: Mon Apr 14, 2008 6:34 am
Location: Vietnamese
Contact:

Re: [BETA] AJAX Quick Edit

Post by autinhyeu »

Smiles show text after edit post :o
is that bug???
phpBB Community in Vietnamese: http://www.phpbbvn.com

Sorry, my English language is fine impossible
User avatar
jmaraujo
Registered User
Posts: 240
Joined: Fri Jun 01, 2007 9:48 pm
Location: Rivera - Uruguay
Name: Juan

Re: [BETA] AJAX Quick Edit

Post by jmaraujo »

In my case smilies are working fine. I even can quickedit a post and add smilies that weren't there before...

Just make sure to add an space before and after the smilie text. Example:

Code: Select all

<-space->:smiliecode:<-space->
autinhyeu
Registered User
Posts: 685
Joined: Mon Apr 14, 2008 6:34 am
Location: Vietnamese
Contact:

Re: [BETA] AJAX Quick Edit

Post by autinhyeu »

phpBB Community in Vietnamese: http://www.phpbbvn.com

Sorry, my English language is fine impossible
User avatar
Eragon
Registered User
Posts: 218
Joined: Tue Oct 07, 2008 1:57 pm

Re: [BETA] AJAX Quick Edit

Post by Eragon »

save button is not working .. phpBb 3.0.2 :?:
nl2dav
Registered User
Posts: 105
Joined: Tue Jun 25, 2002 10:39 pm
Location: NOP, The Netherlands
Contact:

Re: [BETA] AJAX Quick Edit

Post by nl2dav »

flexx wrote:I know. I've already done this :|
Thats because the fix code is not complete

Find this piece of code:

Code: Select all

generate_text_for_storage($post_text, $uid, $bitfield, $options, $allow_bbcode, $allow_urls, $allow_smilies);

	$sql_ary = array(
		'post_text'			=> $post_text,
		'bbcode_uid'		=> $uid,
		'bbcode_bitfield'   => $bitfield,
	);

	$sql = 'UPDATE ' . POSTS_TABLE . ' SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " WHERE post_id = $post_id";
	$db->sql_query($sql);
	
	$text = generate_text_for_display($sql_ary['post_text'], $sql_ary['bbcode_uid'], $sql_ary['bbcode_bitfield'], 7);
This;

Code: Select all

'post_text'			=> $post_text,
Should be;

Code: Select all

'post_text'			=> utf8_recode($post_text, 'utf-8'),
Pay attention to RRRecode, not decode.. For people who think that I talk about something which is already discussed.

Editting posts with special characters like éèû should be OK now.

There is also a problem with the + sign

Replace this line inside quickedit.html ;

Code: Select all

  contents = contents.replace(/[&]/g,"%26");
with;

Code: Select all

contents = encodeURIComponent(contents);
User avatar
thejdm
Registered User
Posts: 438
Joined: Sun Dec 21, 2003 4:18 pm
Location: pennsylvania
Contact:

Re: [BETA] AJAX Quick Edit

Post by thejdm »

:thumbup:
www.thejdm.com ...turn it on, y0
User avatar
jmaraujo
Registered User
Posts: 240
Joined: Fri Jun 01, 2007 9:48 pm
Location: Rivera - Uruguay
Name: Juan

Re: [BETA] AJAX Quick Edit

Post by jmaraujo »

Did anyone have any problems quick-editing Global Announcements?

I can edit all posts but Global Announcements. When I tried to quick-edit a Global Announcements, no text appears on the editing area...
User avatar
spaceace
Registered User
Posts: 1993
Joined: Wed Jan 30, 2008 8:50 pm
Contact:

Re: [BETA] AJAX Quick Edit

Post by spaceace »

jmaraujo wrote:Did anyone have any problems quick-editing Global Announcements?

I can edit all posts but Global Announcements. When I tried to quick-edit a Global Announcements, no text appears on the editing area...
there's other mods that have global announcement problems. global announcements have no topic id.

i have debug enabled on my board and get this error when trying to quick edit a GA(global announcement)
[phpBB Debug] PHP Notice: in file /quickedit.php on line 158: Undefined index: bbcode_uid
User avatar
jmaraujo
Registered User
Posts: 240
Joined: Fri Jun 01, 2007 9:48 pm
Location: Rivera - Uruguay
Name: Juan

Re: [BETA] AJAX Quick Edit

Post by jmaraujo »

Thanks for the info, spaceace! ;)

It's a minor bug that I can totally live with. :D
Locked

Return to “[3.0.x] Abandoned MODs”