News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Wikipedia BBCode

Started by karlbenson, August 25, 2006, 11:29:28 AM

Previous topic - Next topic

karlbenson

JumpmasterRT has now taken over this mod.
The new mod link is http://custom.simplemachines.org/mods/index.php?mod=1210

I'm now closing/locking this topic.



WIKIPEDIA v1.3
By Karl Benson



Introduction
Enables you use bbcode to point users to wikipedia pages using wiki bbcode

Installation
Installs automatically on Default, Classic and Babylon theme and any theme without a custom Post.template.php

To manually install this modification on other themes;
- place the wiki.gif in the "Themes/{ThemeName}/images/bbc" for EVERY THEME.
- A single manual edit is required FOR EACH THEME with a custom Post.template.php

Open Themes/{themename}/Post.template.php, and FIND:

$context['bbc_tags'][] = array(
'flash' => array('code' => 'flash', 'before' => '[flash=200,200]', 'after' => '[/flash]', 'description' => $txt[433]),

ADD AFTER:

'wiki' => array('code' => 'wiki', 'before' => '[wiki]', 'after' => '[/wiki]', 'description' => $txt['wikipedia']),


If you are still having trouble, I recommend the Modification Parser by Daniel 15

How Do I Use This Mod?
The mod adds a Wiki BBCode button to insert Wiki BBCode which then is converted in posts to point users to pages at wikipedia, clearing marking where the link leads.


[wiki]SEARCH TERM[/wiki]
or
[wiki=searchterm]Link Title[/wiki]


Turns into;
What is Pizza?wiki

Languages
This mod Supports
o English/English-utf8
o English_British/English_British-utf8
o German/German-utf8 DE
o Spanish/Spanish-utf8 ES
o Spanish_es/Spanish_es-utf8
o Italian/Italian-utf8 IT
o Portuguese/Portuguese-utf8 PT
o French/French-utf8 FR

(It will only install the language files for the languages you have installed, the rest will be skipped)

Support
Please use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)

Changelog
1.0
o Initial release
1.1
o Added additional languages other than English
1.2
o Reworked into a single version supporting various languages
o Ensured it removes the wiki.gif image on uninstall (as per SMF Modification Guidelines)
o Wrote out the manual edits
o Improved the readme/documentation for this mod
1.3
o Fixed utf-8 versions and language versions
o Lots of little bug fixes/improvements

Grogo67

I really like the concept of this mod & think it will be very useful but having "Wikipedia: " inserted in front of the word is distracting & throws off the entire concept IMHO.  Something that may be more effective would be having "Wiki" as a superscript after the word, in a smaller font if possible.  As is I have to type out my original sentence, then enter a line just for the wiki search.  Can you make a seperate tweaked mod to make this more inline text friendly?  Thank you!

karlbenson

can u show me how you would prefer it? in a mockup screenshot or in a post.

And I'll try it

Grogo67

I'll try...

My favorite figure skater is hxxp:en.wikipedia.org/wiki/Special:Search?search=Brian%20Boitano&go=Go [nonactive]Wiki


kegobeer

How about a dotted/dashed hyperlink.  That usually designates a definition.
"The truth of the matter is that you always know the right thing to do. The hard part is doing it." - Norman Schwarzkopf
Posting and you (Click "WATCH THIS MOVIE")


karlbenson

np.
If theres the will for it, I'll take a look at that other suggested one of having a definition underlined. (and add wiki on the title tag of the link

Phidippides

Whenever I try to install this mod, I am getting the following errors in the package manager:

Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./Sources/Subs.php Failure
2. Execute Modification ./Sources/ManagePosts.php File not found
3. Execute Modification ./Themes/default/Admin.template.php Failure
4. Execute Modification ./Themes/default/Post.template.php Success
5. Execute Modification ./Themes/default/languages/Modifications.english.php Success
6. Execute Modification ./Themes/default/languages/Admin.english.php Failure
7. Extract File Themes/default/images/bbc/wiki.gif
8. Execute Code add_sql_row.php


Do you know why this is?  I'm using 1.0.8 and 1.1 RC2.

Alan S

Any other mods installed on those forums?
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

karlbenson

Its never been tested on 1.0.8  Only 1.1 series RC1,RC2,RC3


Phidippides

Ok, thank you - I installed 1.1RC3 and the Wiki BBCode now works great.....perhaps one of the best mods for my purposes.

stoecki

I have edited the alternative Version of this Mod to work with German Wikipedia:

Get it here!

Gobo

this is a great mod
thanks for it

im using it no

bruce marusich

It looks like a great mod, but when I install the original or the alternate, whatever link I use opens up wikipedia.org, but does not link to the subject inserted, just the general search page. Any ideas about this? It would be a great mod to have working, as the smf forum I run is mostly for students.
Thanks,
Bruce marusich

Gobo

1.1 Final is out :D

Looking forward to the 1.1 compatible mod :D

Alenônimo

This MOD could have an Administration Menu allowing to define which wiki system to use and how it would show on posts. I don't like the "Wikipedia: " prefix or "wiki" suffix.

karlbenson

I may get some time to take a look at it this weekend.

stoecki

An Option to define what Wikipedia (German, English, French etc.) to use would be nice.

karlbenson

I havent had much time on it today.

I've made it 1.1.1 and 1.1 compliant.
Also uploaded some non-english versions. (basically directs to wikipedia in italian etc)

Advertisement: