Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Wikipedia reference-link BBCode Details »»
Wikipedia reference-link BBCode
Version: 1.00, by Patria Patria is offline
Developer Last Online: Jan 2010 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.0 Beta 2 Rating:
Released: 06-20-2006 Last Update: 06-24-2006 Installs: 121
Additional Files  
No support by the author.

Wikipedia reference-link BBCode

Install instructions

1) Upload wikipedia.gif to /images/misc

2) Login into your AdminCP

3) Custom BB Codes, Add New BB Code

Title: Wikipedia reference-link

Replacement:
Code:
<span style="background-color: White; border: 1px dashed Blue; padding: 3px; text-decoration: none;"><img src="images/misc/wikipedia.gif" alt="Wikipedia reference-link" align="absmiddle" border="0"><a href="http://en.wikipedia.org/wiki/{param}" target="new">{param}</a></span>
Example:
Code:
[wikipedia]Vbulletin[/wikipedia]
Use {option}: No
Button Image (Optional): images/misc/wikipedia.gif

--

Syntax:
Code:
[wikipedia]Keyword[/wikipedia]
Simple but useful.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 07-18-2006, 09:55 PM
cheesegrits's Avatar
cheesegrits cheesegrits is offline
 
Join Date: May 2006
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BlackSun
Its currently only a link, the popup layer is a feature I work at present.
Any luck with the popup feature? That would make this code absolutely perfect. Useful enough as it is, but the popup feature would just rock.

Only one comment - you might want to choose a more neutral color for the default link background, which will work for either white or black based styles. I'm using Gray, which works in all my styles.

-- hugh
Reply With Quote
  #13  
Old 07-21-2006, 12:46 AM
Patria Patria is offline
 
Join Date: Apr 2005
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cheesegrits
Any luck with the popup feature? That would make this code absolutely perfect. Useful enough as it is, but the popup feature would just rock.
I still work on the feature. I get the infos from wikipedia and strip the HTML but at time I work on a better solution - with a additional text file or database with the keywords - that wont cause so much load for wikipedia.

Quote:
Only one comment - you might want to choose a more neutral color for the default link background, which will work for either white or black based styles. I'm using Gray, which works in all my styles.

-- hugh
Ok, thanks for the suggestion.
Reply With Quote
  #14  
Old 07-22-2006, 04:46 PM
cheesegrits's Avatar
cheesegrits cheesegrits is offline
 
Join Date: May 2006
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BlackSun
I still work on the feature. I get the infos from wikipedia and strip the HTML but at time I work on a better solution - with a additional text file or database with the keywords - that wont cause so much load for wikipedia.
While I applaud your efforts to be a good net.citizen by caching wiki results, I'm just wondering what method you will use to make sure the cached results don't become outdated? Obviously one of the fundamental principles of wikipedia is that it is constantly changing, with anyone being able to edit the entries.

Maybe a cron job which runs thru your table once a day and refreshes the data?

On the flat file vs database, personally I would vastly prefer a database table.

If you need anyone to help with development or testing, I'd be more than happy to help out in any way I can.

-- hugh
Reply With Quote
  #15  
Old 08-24-2006, 08:26 AM
rockaffe rockaffe is offline
 
Join Date: Dec 2005
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, I had a wiki installed in my site and I'll use surely this mod.
But there's a way to make it automatic, like a glossary?
Reply With Quote
  #16  
Old 08-30-2006, 04:37 PM
Patria Patria is offline
 
Join Date: Apr 2005
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rockaffe
Hi, I had a wiki installed in my site and I'll use surely this mod.
But there's a way to make it automatic, like a glossary?
Not at present.
Reply With Quote
  #17  
Old 08-31-2006, 04:04 PM
Bulent Tekcan Bulent Tekcan is offline
 
Join Date: Oct 2003
Location: TURKEY - Istanbul
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you press Editor Mode (in advanced mode) something is wrong.Can you check it ?

Thanks
Reply With Quote
  #18  
Old 09-05-2006, 11:44 PM
Patria Patria is offline
 
Join Date: Apr 2005
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bulent Tekcan
If you press Editor Mode (in advanced mode) something is wrong.Can you check it ?

Thanks
Whats wrong? I mean ... could you provide me a more detailed description?
Reply With Quote
  #19  
Old 10-10-2006, 01:16 PM
Luggruff's Avatar
Luggruff Luggruff is offline
 
Join Date: Apr 2005
Posts: 239
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to let the users select wich language they want to refer to?
Like a dropdown list or something (after you pressed the BB-code-button)

..Maybe like the smiley button in the post-editor?
Reply With Quote
  #20  
Old 10-12-2006, 11:34 PM
Patria Patria is offline
 
Join Date: Apr 2005
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Luggruff
Is it possible to let the users select wich language they want to refer to?
Like a dropdown list or something (after you pressed the BB-code-button)

..Maybe like the smiley button in the post-editor?
No, but you could add a Wikipedia BBCode and Button for each language. Like [wikipedia-de], [wikipedia-en], [wikipedia-se] and so on ...
Reply With Quote
  #21  
Old 10-13-2006, 02:25 AM
Luggruff's Avatar
Luggruff Luggruff is offline
 
Join Date: Apr 2005
Posts: 239
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Patria
No, but you could add a Wikipedia BBCode and Button for each language. Like [wikipedia-de], [wikipedia-en], [wikipedia-se] and so on ...
if the smileybutton is possible, this would also be -_-
(I just asked since I can't figure out where the code for the smileybutton is)

And yes, I might not have made myself clear, but i did actually mean the possibility to choose (in the same way as you choose smileys from a drop-down) between different BB-codes.
Why? Because a button for each one would simply just take up too much space -_-
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:07 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04648 seconds
  • Memory Usage 2,307KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete