[BETA] Wiki integration MOD

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
simunaqv
Registered User
Posts: 12
Joined: Sun Jul 17, 2005 4:20 pm

[BETA] Wiki integration MOD

Post by simunaqv » Fri Apr 21, 2006 2:22 pm

There are already some MODs that aim at making a post editable by several users thus making it look like a Wikipedia. Another trick is just to create a group inside the forum and make this group moderator of a particular forum. After that all the members of this group will able to edit all posts inside that particular forum.

Though these tricks are useful, these do not match up to the full potential of a real Wikipedia. Therefore I decided to integrate a wiki (http://wikkawiki.org/) into phpbb. Following is the status of this MOD:

Integration of the wiki output into phpbb template (100 %)
Making WikkaWiki use phpbb's authentication system (100 %)
Writing down instructions properly to get it accepted as a MOD (0 %)

I made use of the following information for this integration:

Blank page MOD
Using the phpBB users table for logging in

I will be looking forward to your feedback.

Update 28-04-2006

A demo is available on my Urdu forum

Wiki integration demo

Update 05-05-2006

- Changed the topic prefix to BETA to denote the introduction of the beta version of this MOD
- added a screenshot
- provided a download link


Update 21-05-2006

- Updated the MOD to Beta 0.0.3
- Bugs Fixed
The instructions address a file wikka.php where it shoulf be wakka.php
All occurrences of 'Wiki' are replaced by 'wiki', this fixes the problem with the wiki url
Added the instruction of not copying WikkaWiki's index.php file otherwise it overwrites phpbb's index.php file
- setup an English demo forum

Image

Download: Wiki_Integration_MOD_0.0.1_BETA

Regards,
Last edited by simunaqv on Sat May 20, 2006 10:39 pm, edited 4 times in total.

simunaqv
Registered User
Posts: 12
Joined: Sun Jul 17, 2005 4:20 pm

Post by simunaqv » Fri Apr 28, 2006 9:03 am

Link to the wiki integration demo added.

HoundoftheB
Registered User
Posts: 210
Joined: Tue Nov 29, 2005 1:11 am
Contact:

Post by HoundoftheB » Fri Apr 28, 2006 8:53 pm

Do you by chance have an english demo? I'm sorry but I can't understand the arabic or farsi...or whatever it is.

Unknown_X
Registered User
Posts: 11
Joined: Tue Oct 18, 2005 6:13 pm

Post by Unknown_X » Sat Apr 29, 2006 8:47 am

HoundoftheB wrote: Do you by chance have an english demo? I'm sorry but I can't understand the arabic or farsi...or whatever it is.

Thats Not Arabic language I can Speak Arabic.
Thats A Farisi Language

Mephistox
Registered User
Posts: 96
Joined: Sat Oct 29, 2005 3:12 am
Location: NY
Contact:

Post by Mephistox » Sat Apr 29, 2006 3:42 pm

yeah, an english demo would be greatly appreciated.

DiSpy
Registered User
Posts: 68
Joined: Sun Jul 11, 2004 9:18 pm
Location: South Florida!
Contact:

Post by DiSpy » Sat Apr 29, 2006 10:30 pm

I tried to register on your forum and choose "english" but that didn't work. :(

Do you have the code available for download somehwere?? I am *very* interested in this... THANK YOU!

-DiSpy

tempered007
Registered User
Posts: 218
Joined: Sun Jun 27, 2004 3:21 am

Post by tempered007 » Sun Apr 30, 2006 12:26 am

What langauge is the site in? Perhaps I could use google translation to navigate around the board.

HoundoftheB
Registered User
Posts: 210
Joined: Tue Nov 29, 2005 1:11 am
Contact:

Post by HoundoftheB » Sun Apr 30, 2006 1:16 am

Some sort of Farsi

simunaqv
Registered User
Posts: 12
Joined: Sun Jul 17, 2005 4:20 pm

Post by simunaqv » Sun Apr 30, 2006 5:38 pm

Dear friends, thank you for your interest. The language is Urdu. This is spoken in Pakistan and India.

I will try to provide more details as soon as possible.

simunaqv
Registered User
Posts: 12
Joined: Sun Jul 17, 2005 4:20 pm

Post by simunaqv » Fri May 05, 2006 9:20 pm

Changed the topic title to introduce the beta version of the MOD. Also added a screenshot as well as a dowlnload link.

DiSpy
Registered User
Posts: 68
Joined: Sun Jul 11, 2004 9:18 pm
Location: South Florida!
Contact:

Post by DiSpy » Sat May 06, 2006 5:05 pm

Awesome... thanks for that, i'll give it a play with this weekend and post some feedback for ya.

-Di

DiSpy
Registered User
Posts: 68
Joined: Sun Jul 11, 2004 9:18 pm
Location: South Florida!
Contact:

Post by DiSpy » Sat May 06, 2006 10:55 pm

Found something...

In your mod you say to do the following:

Code: Select all

# 
#-----[ OPEN ]------------------------------------------ 
# 
wikka.config.php

# 
#-----[ FIND ]------------------------------------------ 
# where "yourdomain" is the name of your domain

	"base_url" => "http://yourdomain/wikka.php?wakka=",
# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
	"base_url" => "http://yourdomain/wiki.php?wakka=",
However... in my config file it's a static url (the wikka.php?wakka= part is not in the base_url) because I told the installer to use the mod_rewrite stuff in htaccess to do all that.

So basically, you need to tell people NOT to chech that box in the installer that comes with the software, that way the full URL is in the wikka.config.php file as you show above, and they can change it accordingly.

Sorry, if i'm confusing you... hopefully you understand what I mean.

ALSO, you should say at the top of the mod file that people need to goto the wikka site and grab that zip because they will need to install it later on down the line. (In other words it's a prerequisite to have that file handy.) Not a big deal, but I think it's more the way the phpBB people like things to be written.

I'm still working on this so i'll let you know if I find anything else.

-DiSpy

EDIT: Also, it should be a capital W... "Wiki.php?wakka="
Last edited by DiSpy on Sat May 06, 2006 11:46 pm, edited 1 time in total.

DiSpy
Registered User
Posts: 68
Joined: Sun Jul 11, 2004 9:18 pm
Location: South Florida!
Contact:

Post by DiSpy » Sat May 06, 2006 11:45 pm

Another bug (i think)

in wiki.php

Code: Select all

// standard page header 
include($phpbb_root_path . 'includes/page_header.'.$phpEx); 
include($phpbb_root_path . 'wakka.'.$phpEx); 
the line should be:

Code: Select all

// standard page header 
include($phpbb_root_path . 'includes/page_header.'.$phpEx); 
include($phpbb_root_path . 'wikka.'.$phpEx); 

DiSpy
Registered User
Posts: 68
Joined: Sun Jul 11, 2004 9:18 pm
Location: South Florida!
Contact:

Post by DiSpy » Sat May 06, 2006 11:52 pm

One more...

At the top of /actions/header.php

Code: Select all

<?php
	$message = $this->GetRedirectMessage();
	$user = $this->GetUser();
      $site_base = $this->GetConfigValue("base_url");
      if ( substr_count($site_base, 'wikka2.php?wakka=') > 0 ) $site_base = substr($site_base,0,-16);
?>
should be:

Code: Select all

<?php
	$message = $this->GetRedirectMessage();
	$user = $this->GetUser();
      $site_base = $this->GetConfigValue("base_url");
      if ( substr_count($site_base, 'wikka.php?wakka=') > 0 ) $site_base = substr($site_base,0,-16);
?>

tempered007
Registered User
Posts: 218
Joined: Sun Jun 27, 2004 3:21 am

Post by tempered007 » Sun May 07, 2006 3:07 am

Thank you DiSpy!!

Post Reply

Return to “[2.0.x] MODs in Development”