Page 6 of 6

Posted: Wed Nov 08, 2006 10:10 pm
by Quezza
I may start developing this mod again soon. It will probably be like 2-3 weeks before I do though. I shall keep you posted, but if anyone else works out fixes then posting them here would be a great help.

Posted: Wed Nov 08, 2006 10:19 pm
by Narnian
ericsh6 can you send me your functions_post.php?
cause my functions_post is very modificated

Posted: Wed Nov 08, 2006 10:31 pm
by ericsh6
ericsh6 can you send me your functions_post.php?



here is a link to the zipped file:

http://markopuff.com/animations/functions_post.zip

Posted: Wed Nov 08, 2006 10:54 pm
by Narnian
replace your line 314 with

Code: Select all

	$sql = ($mode != 'editpost') ? "INSERT INTO " . POSTS_TEXT_TABLE . " (post_id, post_subject, bbcode_uid, post_text, scribble_string) VALUES ($post_id, '$post_subject', '$bbcode_uid', '$post_message', '".stripslashes($scribble_string)."')" : "UPDATE " . POSTS_TEXT_TABLE . " SET post_text = '".mysql_real_escape_string ($post_message)."',  bbcode_uid = '$bbcode_uid', post_subject = '$post_subject', scribble_string = '".stripslashes($scribble_string)."' WHERE post_id = $post_id";
and try again

Posted: Thu Nov 09, 2006 1:01 am
by ericsh6
I replaced my code with the code above. It doesn't quite work yet. This is what happens:

1a) I click "new topic" button, enter a subject and this text in the white text box: "it isn't eight yet" (without the quotes of course but with the apostraphe).

1b) I check the "This post may be edited by other users." box

1c) I submit the post and it works as expected


2a) I edit the post

2b) I enter "it is now eight" in the white text box

2c) I enter a comment

2d) I press the submit button


Now the first line I entered says "it isn''t eight yet"
notice that a second apostraphe was added.



But if I click on the "all revisions" link and revert back to the first entry - that all works just fine.

Posted: Thu Nov 09, 2006 3:52 pm
by ericsh6
I think the way to make this work is to detect if it is "edit mode" and also a "revert" operation and then add the backslashes for this case only. Is there a way to detect if a "revert" is being done?

Posted: Thu Nov 09, 2006 4:14 pm
by Narnian
That will be a patch, bu the real problem is the $post_message
If it comes from the normal phpbb edition it comes escaped, but do not come escaped from teh qwiki revert.

Now i'm busy, but tonight I will check that.

Posted: Thu Nov 09, 2006 6:17 pm
by ericsh6
That will be a patch, bu the real problem is the $post_message


I agree 100% and I observed that the $post_message has the added apostrophe characters unless it goes throught the wiki process.

Working demo?

Posted: Mon Nov 13, 2006 5:34 pm
by stevemagruder
Is there a working demo of this somewhere? The link in the first post doesn't seem to lead to a demo.

Posted: Fri Dec 01, 2006 2:56 am
by yexusbeliever
Can anyone share the download link?

Posted: Thu Mar 08, 2007 10:59 pm
by Freitag
Dead thread?

Re: [RC] QWiki (Combining the Wiki and the Bulletin Board)

Posted: Mon May 28, 2007 8:37 am
by sitwi
Outstanding job, guys - a great example of people teaming up to rescue a MOD. I just stumbled across it today and was able to fix most of my problems.

This is an old thread, but if anyone's able to help with my one remaining problem, I'd be grateful. It's actually the same as the one Narnian has earlier, but the fix quoted doesn't work.

If I try to turn an old post into a Wiki post (i.e. edit it and check the wiki check-box), it gives me an error message: "You must specify a subject when posting...".

No idea why the fix mentioned earlier doesn't work, as everything else has been so helpful.

Thanks all.

Re: [RC] QWiki (Combining the Wiki and the Bulletin Board)

Posted: Mon May 28, 2007 7:02 pm
by Narnian
I'm really sorry im too busy with tests in my univ. now... but I hope someone could help you soon...

Re: [RC] QWiki (Combining the Wiki and the Bulletin Board)

Posted: Sat Aug 02, 2008 5:54 pm
by digitaldoctor
Any chance of something like this for phpBB3 ?
Wikis are super important for sites that are trying to create information, not just the back and forth banter of a forum.
Interesting how the phpBB team uses a wiki ...
:)