FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  Who is OnlineWho is Online   Join! (free) Join! (free)  
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  • Welcome
  • Guest

Wiki forums
Page 1, 2, 3  Next
 
Post new topic   Reply to topic    myfreeforum.org Forum Index -> Forum Blogs
View previous topic :: View next topic  
Author Message
myff admin
Site Admin
Site Admin
FLAG

Virtual Cash: 92920

Joined: 22 May 2005
Posts: 32206



Add Karma

rated by 281 members
Add Comment
Show Comments


online/offline
PostPosted: Mon Aug 03, 2009 7:16 pm    Post subject: Wiki forums  Reply with quote

Following on from the thread on guides.

It would be rather good to have forums operating as Wikis.

I don't see this as a terribly difficult job.

If we make it so that the Edit permission on a Wiki forum controls who can edit not just their own posts, but the first post in a thread regardless of who posted it, then that deals with Wiki type permissions without too much aggravation.

We let people put a button in the template that would access a wiki editing system.

When an edit it stored we change the first post of the thread to the new version and store a "diff".

There would be little difference in the phpbb2 and phpbb3 code, as all that would differ is saving the posts.
_________________

Family Friendly Shareware | | Web Design/Services | Free Forums
Back to top
View user's profile Send private message Visit poster's website
myff admin
Site Admin
Site Admin
FLAG

Virtual Cash: 92920

Joined: 22 May 2005
Posts: 32206



Add Karma

rated by 281 members
Add Comment
Show Comments


online/offline
PostPosted: Tue Aug 04, 2009 11:17 am    Post subject: Reply with quote

On phpbb2 this is now working at the very crude level of where a forum is set as a WIKI, then users with edit permission on posts in that forum can now not just edit their own posts, but also the first post in a topic.

I have no plans to release anything quite that basic, but it is at least a start and demonstrates that at using phpbb2 there is no need to interfere at the core permissions level, just a few tweaks to viewtopic.php to make the edit button available and a few tweaks to posting.php to not block editing of the first post by a user who did not make that post, when the forum is a wiki and when that user has edit authorization on the forum.
_________________

Family Friendly Shareware | | Web Design/Services | Free Forums
Back to top
View user's profile Send private message Visit poster's website
myff admin
Site Admin
Site Admin
FLAG

Virtual Cash: 92920

Joined: 22 May 2005
Posts: 32206



Add Karma

rated by 281 members
Add Comment
Show Comments


online/offline
PostPosted: Tue Aug 04, 2009 4:44 pm    Post subject: Reply with quote

I have not actually done the saving bit yet, but when you edit the wiki post it can generate a "diff". The diff can be seen capable of going from the new post to regenerating the previous post.
This is a vital part of a wiki system, we do not want to be storing a complete copy of a massive post each time someone makes a minor revision, yet we do need the audit trail of what edits have been made and the ability to back track.
Saving is really pretty trivial, and then that "only" leaves the Wiki control panel template itself where people will be able to review previous versions and MOD it.
_________________

Family Friendly Shareware | | Web Design/Services | Free Forums
Back to top
View user's profile Send private message Visit poster's website
myff admin
Site Admin
Site Admin
FLAG

Virtual Cash: 92920

Joined: 22 May 2005
Posts: 32206



Add Karma

rated by 281 members
Add Comment
Show Comments


online/offline
PostPosted: Tue Aug 04, 2009 5:14 pm    Post subject: Reply with quote

Saving is at least looking good.

Time to call it a day though.  The main panel is not something to start this late in the day.
_________________

Family Friendly Shareware | | Web Design/Services | Free Forums
Back to top
View user's profile Send private message Visit poster's website
myff admin
Site Admin
Site Admin
FLAG

Virtual Cash: 92920

Joined: 22 May 2005
Posts: 32206



Add Karma

rated by 281 members
Add Comment
Show Comments


online/offline
PostPosted: Tue Aug 04, 2009 6:20 pm    Post subject: Reply with quote

May as well muse on though, we will have a WIKI portal to go with the wiki forums. This will control a few things, one of which will be a prefix to any Wiki article posted, this will allow users to gain access to the Wiki control panel without there having to be template edits made.

I don't at the moment see much need for permissions in the PORTAL, strikes me that forum MODs would have full Wiki MODDING permissions, why do it any differently?
_________________

Family Friendly Shareware | | Web Design/Services | Free Forums
Back to top
View user's profile Send private message Visit poster's website
myff admin
Site Admin
Site Admin
FLAG

Virtual Cash: 92920

Joined: 22 May 2005
Posts: 32206



Add Karma

rated by 281 members
Add Comment
Show Comments


online/offline
PostPosted: Wed Aug 05, 2009 5:14 am    Post subject: Reply with quote

Thought of the minute!

Do I need to write a totally new control panel for the wiki? Isn't the development of the guide really just like viewing a topic? With operations similar to that of a topic?

E.g. we see the first post the one with the current guide split into each edit, and rather than simply displaying the guide as it develops we add a few flashy features like toggles between the finished view and the changes involved.

In this way the Wiki keeps looking integrated into the forums own look and feel.
_________________

Family Friendly Shareware | | Web Design/Services | Free Forums
Back to top
View user's profile Send private message Visit poster's website
myff admin
Site Admin
Site Admin
FLAG

Virtual Cash: 92920

Joined: 22 May 2005
Posts: 32206



Add Karma

rated by 281 members
Add Comment
Show Comments


online/offline
PostPosted: Wed Aug 05, 2009 9:59 am    Post subject: Reply with quote

I have now got a viewwikitopic.php that should in principle be showing much of the relevant info. It actually doesn't as there are no doubt some pretty basic typos in the code, but I'm still seeing this as being ahead of the game
_________________

Family Friendly Shareware | | Web Design/Services | Free Forums
Back to top
View user's profile Send private message Visit poster's website
myff admin
Site Admin
Site Admin
FLAG

Virtual Cash: 92920

Joined: 22 May 2005
Posts: 32206



Add Karma

rated by 281 members
Add Comment
Show Comments


online/offline
PostPosted: Wed Aug 05, 2009 11:19 am    Post subject: Reply with quote



I'm pretty please with this. The flaws are clear:

1) pmtest2 made the final edit, and so should be the one listed at the top.
2) A lot of the viewtopic semantics like "QUOTE" are irrelevant. We have to get rid of a lot of that sort of stuff or it will be really confusing.
3) We need to add some clever tweaks like not showing just the current state of the Wiki but the differences formated in various ways. Actually the clever bits that will make it look good are in this case the easy bits.

The main point is that we are successfully back tracking from the top post which is the only one stored, two the bottom post which is the original posting via small "deltas" that are stored in the portal database.
_________________

Family Friendly Shareware | | Web Design/Services | Free Forums
Back to top
View user's profile Send private message Visit poster's website
myff admin
Site Admin
Site Admin
FLAG

Virtual Cash: 92920

Joined: 22 May 2005
Posts: 32206



Add Karma

rated by 281 members
Add Comment
Show Comments


online/offline
PostPosted: Wed Aug 05, 2009 12:24 pm    Post subject: Reply with quote



Looking good, the Edit button only appears on the first post and does a standard Edit.

The Delete buttons will go to an as yet unwritten wiki.php file that will do the clever bits of deleting the deltas whilst keeping it all consistent.

e.g. a common action would be to reject someones edits by deleting the first post.

I think I will leave that bit for another day and have a little fun with how the changes are shown. This is the bit that is needed to make it really Wiki like.
_________________

Family Friendly Shareware | | Web Design/Services | Free Forums
Back to top
View user's profile Send private message Visit poster's website
myff admin
Site Admin
Site Admin
FLAG

Virtual Cash: 92920

Joined: 22 May 2005
Posts: 32206



Add Karma

rated by 281 members
Add Comment
Show Comments


online/offline
PostPosted: Wed Aug 05, 2009 1:36 pm    Post subject: Reply with quote

Do we really need more than this?





Green shows additions, and red (yes I know I didn't include any) shows deletions.

Note that we see the unformatted text in the edit view. e.g. the bbcodes show. It would get insanely complicated to do otherwise.
_________________

Family Friendly Shareware | | Web Design/Services | Free Forums
Back to top
View user's profile Send private message Visit poster's website
myff admin
Site Admin
Site Admin
FLAG

Virtual Cash: 92920

Joined: 22 May 2005
Posts: 32206



Add Karma

rated by 281 members
Add Comment
Show Comments


online/offline
PostPosted: Wed Aug 05, 2009 2:54 pm    Post subject: Reply with quote

The more I look at this the more I see that we do need a means of seeing previous revisions in their full glory.

This is not a major technical feat, but I do need the inspiration on the best way of doing it and that is eluding me a bit.
_________________

Family Friendly Shareware | | Web Design/Services | Free Forums
Back to top
View user's profile Send private message Visit poster's website
myff admin
Site Admin
Site Admin
FLAG

Virtual Cash: 92920

Joined: 22 May 2005
Posts: 32206



Add Karma

rated by 281 members
Add Comment
Show Comments


online/offline
PostPosted: Wed Aug 05, 2009 3:43 pm    Post subject: Reply with quote

I have thought of one thing that I'm not going to do here, and that is compile all the fully fledged posts into the wiki view. There is a good reason why both phpbb2 and phpbb3 store posted in a "pre-chewed" format and that is performance. So we are not about to process a load of raw posts, most of which will not be interesting to the view anyway. The full look of any revision will therefore be generated on demand in some way.
_________________

Family Friendly Shareware | | Web Design/Services | Free Forums
Back to top
View user's profile Send private message Visit poster's website
myff admin
Site Admin
Site Admin
FLAG

Virtual Cash: 92920

Joined: 22 May 2005
Posts: 32206



Add Karma

rated by 281 members
Add Comment
Show Comments


online/offline
PostPosted: Wed Aug 05, 2009 7:43 pm    Post subject: Reply with quote

just spotted the dates were all duff in the screenshot  

Fixed that, but still lacking inspiration on how best to show formated revisions

I'm not going to let that hold things up though. I can get on and do the delete functionality tomorrow and at that point we have a decently functional wiki system.
_________________

Family Friendly Shareware | | Web Design/Services | Free Forums
Back to top
View user's profile Send private message Visit poster's website
myff admin
Site Admin
Site Admin
FLAG

Virtual Cash: 92920

Joined: 22 May 2005
Posts: 32206



Add Karma

rated by 281 members
Add Comment
Show Comments


online/offline
PostPosted: Wed Aug 05, 2009 8:31 pm    Post subject: Reply with quote

I think I am going to go for a bit of clever javascript and a bit of web 2.0.

Each post will have links to set view to "Differences", "Unformatted","Formatted" and the view will change inline. Each of these modes is useful and I think it is a lot less messy to see things inline. Should be fun to code
_________________

Family Friendly Shareware | | Web Design/Services | Free Forums
Back to top
View user's profile Send private message Visit poster's website
myff admin
Site Admin
Site Admin
FLAG

Virtual Cash: 92920

Joined: 22 May 2005
Posts: 32206



Add Karma

rated by 281 members
Add Comment
Show Comments


online/offline
PostPosted: Thu Aug 06, 2009 9:48 am    Post subject: Reply with quote



All that is missing there is the "Formatted" link and code. The other display modes work

The web2.0 frame work is actually there though.

It may be best to do the formated view by creating the unformatted code to be used on the client PC and then asking the forum to format it and return it. e.g. possibly better for server performance as it just involves the server being passed something of post size but not having to make a load of database queries and check privileges etc.


_________________

Family Friendly Shareware | | Web Design/Services | Free Forums
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    myfreeforum.org Forum Index -> Forum Blogs All times are GMT
Page 1, 2, 3  Next
Page 1 of 3
 
 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Card File  Gallery  Forum Archive
Powered by phpBB © 2001, 2005 phpBB Group
Create your own free forum | Buy a domain to use with your forum