Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Masterd on March 29, 2011, 11:06:47 PM

Title: Wikipedia BBC
Post by: Masterd on March 29, 2011, 11:06:47 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=2969)

                
Wikipedia BBC 1.0.1
                      
Author:
                   
Masterd

Wikipedia BBC adds a powerful BBC wich allows you to search through the Wikipedia knowledge base. It's very simple to use. For example, if you want to search the database for "Simple Nachines Forum" then it will look like this:

[wiki]Simple Machnes Forum[/wiki]

This mod uses the integration hooks, so it won't make any changes to SMF's core files.

Wikipedia BBC Language Pack is a pack of multiple languages in which this mod is avaliable.

                                           
News in version 1.0

- Initial release

                                           
News in version 1.0.1

- Fixed a bug that may cause problems with some other mods



This modification is licensed under BSD License (http://www.opensource.org/licenses/bsd-license.php)

Copyright (c) 2011-2014, Masterd
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Title: Re: Wikipedia BBC
Post by: Bugo on April 06, 2011, 09:10:38 AM
Russian translation.
Title: Re: Wikipedia BBC
Post by: NanoSector on April 06, 2011, 09:20:04 AM
Nice! I like searching Wikipedia :P

But.....does it have the option to change between initial servers?
Like, default is en.wikipedia.org, can you change it to nl.wikipedia.org with the Admin Panel?
Title: Re: Wikipedia BBC
Post by: Bugo on April 06, 2011, 01:09:37 PM
It changes in WikiBBC.{your_lang}.php file.
Title: Re: Wikipedia BBC
Post by: NanoSector on April 06, 2011, 01:12:14 PM
Quote from: Bugo on April 06, 2011, 01:09:37 PM
It changes in WikiBBC.{your_lang}.php file.
Quotewith the Admin Panel?

:P

Would be a nice feature if it has.
Title: Re: Wikipedia BBC
Post by: perro88 on April 06, 2011, 08:32:56 PM
Thanks, nice mod
Title: Re: Wikipedia BBC
Post by: Masterd on April 07, 2011, 03:12:11 PM
Thanks for the translation, Bugo! :D I added it into the language pack.
Title: Re: Wikipedia BBC
Post by: xrunner on April 08, 2011, 07:43:57 PM
Sweet Mod. These are the best - simple but very useful!
Title: Re: Wikipedia BBC
Post by: Masterd on April 09, 2011, 09:20:39 AM
Thanks, xrunner! :D
Title: Re: Wikipedia BBC
Post by: Cutter65 on April 09, 2011, 02:19:12 PM
Sweet mod.

Would this mod work with 2.0 RC3 if I emulate the install for RC5?

I have so many mods installed I'm trying to waiting 2.0 final to be released before going through the pain of all the reinstalling of the mods.
Title: Re: Wikipedia BBC
Post by: Masterd on April 10, 2011, 04:52:10 AM
This mod is using integration hooks, so it won't work on SMF 2.0 RC3. But, it will work on SMF 2.0 RC4.
Title: Re: Wikipedia BBC
Post by: Cutter65 on April 10, 2011, 08:15:14 AM
Quote from: Masterd on April 10, 2011, 04:52:10 AM
This mod is using integration hooks, so it won't work on SMF 2.0 RC3. But, it will work on SMF 2.0 RC4.

Thanks for the info.
Title: Re: Wikipedia BBC
Post by: waruna on April 10, 2011, 09:01:07 AM
Hello there.

I'm using RC2, but when I install this mod, an error in SQL syntax appears. Does this mod support RC2?

Thanks in advance.
Title: Re: Wikipedia BBC
Post by: Arantor on April 10, 2011, 09:03:54 AM
Quote from: Masterd on April 10, 2011, 04:52:10 AM
This mod is using integration hooks, so it won't work on SMF 2.0 RC3. But, it will work on SMF 2.0 RC4.

Survey says no.
Title: Re: Wikipedia BBC
Post by: Masterd on April 11, 2011, 08:53:33 AM
I will just quote myself.

Quote from: Masterd on April 10, 2011, 04:52:10 AM
This mod is using integration hooks, so it won't work on SMF 2.0 RC3. But, it will work on SMF 2.0 RC4.
Title: Re: Wikipedia BBC
Post by: ChaosEnergy on June 19, 2011, 06:32:11 PM
added this mod to smf 2.0 final

result

quick edit
quote
and quickquote

got broken by the mod
removig it, restores essential functionallity of the forum
Title: Re: Wikipedia BBC
Post by: Masterd on June 20, 2011, 04:41:50 AM
What other mods do you have installed?
Title: Re: Wikipedia BBC
Post by: mxcape21 on July 27, 2011, 09:07:55 PM
Thanks for a great mod, but I am here because of a problem, I just discovered with this mod installed the post preview function does not work on my forum.  Please help me solve this problem its a great mod and I want to re-install it.  I also un-installed the IMDB mod because it' the same thing and I had both installed but the problem went away when I un-installed the wiki.

SMF 2.0 RC5  -   

Thank you.
Title: Re: Wikipedia BBC
Post by: Mabba on March 04, 2012, 08:46:40 AM
German translate.
Title: Re: Wikipedia BBC
Post by: Masterd on March 04, 2012, 10:15:26 AM
Thanks. I'll update it.
Title: Re: Wikipedia BBC
Post by: TheListener on June 04, 2012, 11:50:44 PM
Had an HTTP header error when I went into my forums chat.

(Ajax chat integration).

Woulda been an ideal addition for the forum too.

:'(
Title: Re: Wikipedia BBC
Post by: Inti31 on June 05, 2012, 01:21:17 AM
I had also problems with that mod in relation to the AJAX Chat. I posted that here: http://www.simplemachines.org/community/index.php?topic=257973.msg3308521#msg3308521

curious that behaviour...
Title: Re: Wikipedia BBC
Post by: TheListener on June 05, 2012, 01:24:42 AM
Quote from: Inti31 on June 05, 2012, 01:21:17 AM
I had also problems with that mod in relation to the AJAX Chat. I posted that here: http://www.simplemachines.org/community/index.php?topic=257973.msg3308521#msg3308521

curious that behaviour...

I musta missed it whoops.

Did ya manage to resolve the issue?
Title: Re: Wikipedia BBC
Post by: Inti31 on June 05, 2012, 01:44:54 AM
No, I didn't, don't know what causes that behaviour - this wiki mod is well designed - but - my users want the chat - so I am without that wiki-mod - unfortunately...
Title: Re: Wikipedia BBC
Post by: Masterd on June 09, 2012, 12:22:29 PM
This mod is currently clear of all bugs. That's a fact, not a promotion if someone thinks about this sentence that way. It must have to do something with AJAX chat's code. Very unusual, especially with hooks. Hmmm.... ???
Title: Re: Wikipedia BBC
Post by: TheListener on June 09, 2012, 01:08:53 PM
Masterd ya absolutely correct.

It is the Ajax Chat mod causing this.

Very unusual for a mod to do so specially the bbc related. ( I use your imdb one with no problems).

The error message is:

QuoteWarning: Cannot modify header information - headers already sent by (output started at /home/xxxx/public_html/smf/Sources/Subs-WikiBBC.php:48) in /home/xxxx/public_html/xxx/chat/lib/class/AJAXChatHTTPHeader.php on line 41

Let me know if ya weant the file added. I have only installed this on my test forum so far.
Title: Re: Wikipedia BBC
Post by: Masterd on June 09, 2012, 03:55:56 PM
It would be nice if you can give that file.
Title: Re: Wikipedia BBC
Post by: TheListener on June 09, 2012, 04:05:16 PM
Here ya go bud.

Title: Re: Wikipedia BBC
Post by: Arantor on June 09, 2012, 04:11:12 PM
It isn't the fault of the AJAX Chat file, as the error is in fact telling you. The error message says: output started at /home/xxxx/public_html/smf/Sources/Subs-WikiBBC.php:48

That's because Subs-WikiBBC.php has a space after the closing ?> which screws up the integration. Remove that space and it should work.
Title: Re: Wikipedia BBC
Post by: TheListener on June 09, 2012, 06:57:27 PM
Hmm I had a look but think it needs an experts eye.

Title: Re: Wikipedia BBC
Post by: Arantor on June 09, 2012, 06:59:17 PM
Which is why I took at look at it in the distribution of the package. After the closing ?> in the Subs-WikiBBC.php file is a space, remove that space and try it again.




Edit: Apologies for my annoying fingers.
Title: Re: Wikipedia BBC
Post by: TheListener on June 09, 2012, 07:08:05 PM
Quote from: Arantor on June 09, 2012, 06:59:17 PM
Which is why I took at look at it in the distribution of the package. After the closing ?> in the Subs-WikiBBC.php file is a space, remove that space and try it again.




Edit: Apologies for my annoying fingers.

I had a look and found no space.

???

Darn fingers are going on letters they shouldn't.

Title: Re: Wikipedia BBC
Post by: Arantor on June 09, 2012, 07:17:28 PM
I'm telling you, it's there. Open it in a decent text editor, click on the end of that line (line 48) and you'll find that space right there.
Title: Re: Wikipedia BBC
Post by: TheListener on June 09, 2012, 07:21:18 PM
I hold my hands up ( and leave the editing alone for the night).

OK so who is the scapegoat gonna be?  :)

Title: Re: Wikipedia BBC
Post by: Arantor on June 09, 2012, 07:22:44 PM
Well, seeing how it's a bug in the Wikipedia BBC mod, I'd say that's where fixing effort is required...
Title: Re: Wikipedia BBC
Post by: Masterd on June 10, 2012, 06:40:07 AM
Quote from: Old Fossil on June 09, 2012, 07:08:05 PM
I had a look and found no space.

???

Same here. Interesting...
Title: Re: Wikipedia BBC
Post by: Robert. on June 10, 2012, 06:42:24 AM
I'm seeing a space at the end too. ;)
Title: Re: Wikipedia BBC
Post by: Masterd on June 10, 2012, 06:44:29 AM
Which editor are you using?
Title: Re: Wikipedia BBC
Post by: Inti31 on June 10, 2012, 08:28:44 AM
Whatever you've done - now it works - i installed first the new wiki mod, and then I installed the chat into my testforum (http://inti31.cwsurf.de/smf/index.php?topic=4.msg4#msg4) - now both are working...

So nice that now this little bug in that mod is fixed..

cheers inti31
Title: Re: Wikipedia BBC
Post by: Masterd on June 10, 2012, 11:43:45 AM
Quote from: Inti31 on June 10, 2012, 08:28:44 AM
Whatever you've done - now it works - i installed first the new wiki mod, and then I installed the chat into my testforum (http://inti31.cwsurf.de/smf/index.php?topic=4.msg4#msg4) - now both are working...

So nice that now this little bug in that mod is fixed..

cheers inti31

Thanks, good to know. I'm still waiting for Fossil's reply. 
Title: Re: Wikipedia BBC
Post by: TheListener on June 10, 2012, 11:46:14 AM
Someone waiting for me?

I use notepad ++

I found the space.  The mod is now working as it should.

http://www.broadstarradio.com/index.php?topic=216.0

Look at the end of the post.
Title: Re: Wikipedia BBC
Post by: Masterd on June 10, 2012, 11:54:30 AM
Still can't find any space. I'm also using Notepad++.
Title: Re: Wikipedia BBC
Post by: Arantor on June 10, 2012, 11:56:33 AM
*shrug* It's definitely there. Try clicking on the last line to the far right of it, so the cursor will auto-go to the last character position on the line.
Title: Re: Wikipedia BBC
Post by: TheListener on June 10, 2012, 11:57:01 AM
Quote from: Masterd on June 10, 2012, 11:54:30 AM
Still can't find any space. I'm also using Notepad++.

On the line of the ?> press delete a couple times.

Darn beaten to the post.
Title: Re: Wikipedia BBC
Post by: Masterd on June 10, 2012, 12:07:06 PM
Stupid, stupid me. /me  beats himeslf with Logitech VX Revolution mouse.

All the time I thought there was an empty space before <?. I removed that one today while I was searching for that seemingly cursed and invisible space.
Title: Re: Wikipedia BBC
Post by: TheListener on June 10, 2012, 12:08:48 PM
Quote from: Masterd on June 10, 2012, 12:07:06 PM
Stupid, stupid me. /me  beats himeslf with Logitech VX Revolution mouse.

All the time I thought there was an empty space before <?. I removed that one today while I was searching for that seemingly cursed and invisible space.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi258.photobucket.com%2Falbums%2Fhh258%2F2plus1_bucket%2Ffryingpan-1.jpg&hash=630231227191a6ea8b7a195f0fe8c8260d2afb00)
Title: Re: Wikipedia BBC
Post by: Masterd on June 10, 2012, 12:20:59 PM
Good one, but I don't have a frying pan within the range of my hand. ;)
Title: Re: Wikipedia BBC
Post by: etms52 on July 01, 2012, 08:23:13 AM
today i've translated into my italian language the your plugin.

good works

etms51
Title: Re: Wikipedia BBC
Post by: TheListener on May 12, 2013, 10:44:13 PM
Have discovered the cause of a conflict between two unrelated mods was this mod.

QuoteWarning: Cannot modify header information - headers already sent by (output started at /home/xxxxxxxxxx/Sources/Subs-WikiBBC.php:48) in /home/miltonk1/public_html/Sources/PmxBlog.php on line 56

Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxxxxx/Sources/Subs-WikiBBC.php:48) in /home/miltonk1/public_html/Sources/PmxBlog.php on line 239

Any idea why this happens?
Title: Re: Wikipedia BBC
Post by: Arantor on May 12, 2013, 10:48:23 PM
Do me a favour and read this thread through including the last time you had this exact same issue.
Title: Re: Wikipedia BBC
Post by: TheListener on May 12, 2013, 10:49:45 PM
Quote from: Arantor on May 12, 2013, 10:48:23 PM
Do me a favour and read this thread through including the last time you had this exact same issue.

Will do.

:-[

Been a long time so memory needs a refresh  ::)
Title: Re: Wikipedia BBC
Post by: TheListener on May 12, 2013, 10:50:42 PM
Er ya don't mean the spaces after the ?> do you?

Title: Re: Wikipedia BBC
Post by: Arantor on May 12, 2013, 10:51:16 PM
Yup. It's even in the exact same place if you look, line 48.
Title: Re: Wikipedia BBC
Post by: TheListener on May 12, 2013, 10:52:46 PM
Boy do I feel daft.

:-[

Think I'll throw an egg at meself tomorrow.

::)
Title: Re: Wikipedia BBC
Post by: SaltedWeb on April 02, 2014, 06:32:49 PM
Does this work with 2.07 on basic install ?
Title: Re: Wikipedia BBC
Post by: TheListener on April 02, 2014, 06:55:17 PM
Quote from: Diamondcomputer on April 02, 2014, 06:32:49 PM
Does this work with 2.07 on basic install ?

Yes. Though a manual edit may be necessary.
Title: Re: Wikipedia BBC
Post by: SaltedWeb on April 02, 2014, 07:02:34 PM
Thank You !
Title: Re: Wikipedia BBC
Post by: Apllicmz on October 10, 2014, 09:52:06 AM
Done Portugues Files
Title: Re: Wikipedia BBC
Post by: Masterd on October 12, 2014, 03:20:34 AM
Quote from: Joomlamz on October 10, 2014, 09:52:06 AM
Done Portugues Files

Thanks. I've included it.
Title: Re: Wikipedia BBC
Post by: tyene on October 26, 2014, 04:25:36 PM
Hello, thank you for the mod: I really like it.
It works perfectly on my forum.

I would like to
a) keep this mod
b) "clone" it to a new mod, that allows the exact same research, but in a wikia, not in wikipedia.

I am a newbie, and my programming skills are bad,
but I would like to know if you could help me.

I tried to modify your code, zip it, upload it ... and of course it does not work.
I was wondering if you could have a look, please, and tell me where I am wrong.
I would immensely appreciate it.


Title: Re: Wikipedia BBC
Post by: Masterd on October 29, 2014, 06:19:53 PM
Quote from: tyene on October 26, 2014, 04:25:36 PM
Hello, thank you for the mod: I really like it.
It works perfectly on my forum.

I would like to
a) keep this mod
b) "clone" it to a new mod, that allows the exact same research, but in a wikia, not in wikipedia.

I am a newbie, and my programming skills are bad,
but I would like to know if you could help me.

I tried to modify your code, zip it, upload it ... and of course it does not work.
I was wondering if you could have a look, please, and tell me where I am wrong.
I would immensely appreciate it.

I'll see what I can do.
Title: Re: Wikipedia BBC
Post by: gorbi on January 20, 2023, 07:41:50 AM
Quote from: Masterd on October 12, 2014, 03:20:34 AM
Quote from: Joomlamz on October 10, 2014, 09:52:06 AMDone Portugues Files

Thanks. I've included it.
Can you add support for php8?
Title: Re: Wikipedia BBC
Post by: digger on January 25, 2023, 01:30:27 PM
Quote from: gorbi on January 20, 2023, 07:41:50 AMCan you add support for php8?

https://github.com/realdigger/SMF-Wikipedia-BBC/releases/tag/v1.0.2