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
  #22  
Old 10-13-2006, 11:38 PM
silurius silurius is offline
 
Join Date: Oct 2004
Posts: 404
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent mod for referencing Wikipedia articles on a separate line! We do this all the time.

Would also love to have the flexibility to have a slightly less obvious version that looks like a standard html link (like the Wikipedia BBcode hack provided for 3.0.x). This is a minor request, though.

Second request would be for the preview popup you mentioned on the first page.

Great hack!
Reply With Quote
  #23  
Old 10-14-2006, 05:01 AM
Patria Patria is offline
 
Join Date: Apr 2005
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Luggruff, silurius

I will see what I could do ...

Quote:
Originally Posted by silurius
Would also love to have the flexibility to have a slightly less obvious version that looks like a standard html link...
Use the Replacement code beneath and the Wikipedia links will be shown like normal links.

PHP Code:
<a href="http://en.wikipedia.org/wiki/{param}" target="new">{param}</a
Reply With Quote
  #24  
Old 10-14-2006, 07:57 PM
silurius silurius is offline
 
Join Date: Oct 2004
Posts: 404
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Patria
@Luggruff, silurius

I will see what I could do ...

Use the Replacement code beneath and the Wikipedia links will be shown like normal links.

PHP Code:
<a href="http://en.wikipedia.org/wiki/{param}" target="new">{param}</a
Yeah, I actually realized this after posting. Lazy thinking on my part. What I would probably need to do is create two buttons, one for this and one for a subtle inline version.
Reply With Quote
  #25  
Old 10-26-2006, 10:32 AM
Luggruff's Avatar
Luggruff Luggruff is offline
 
Join Date: Apr 2005
Posts: 239
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Quote:
Originally Posted by Luggruff
*bump*
Yeah, yeah I didnt forgot you. :P When I have time I will modify the BBCode. If another developer likes to make modifications, he should feel free to do so.
Reply With Quote
  #27  
Old 12-05-2006, 09:53 AM
perfphysio's Avatar
perfphysio perfphysio is offline
 
Join Date: Sep 2006
Location: London, UK
Posts: 212
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My Wikipedia has stopped working in 3.6.4 in firefox browser 1.5.0.8

It mall formats the actual link. You can see an axample at the beginning of an existing post at http://www.physiobob.com/forum/showthread.php?t=3510

The first word was a link working perfectly until a recent upgrade. This might be a firefox issue or it might be a vbulletin issue. This is because I also have now seen that my plugin which does the same thing for adding utube plugins is also asking to install a plug to make it work!

I attach a screen shot of that as well for you interest in case it help to work out where the issue might be coming from
Reply With Quote
  #28  
Old 12-31-2006, 04:38 AM
Patria Patria is offline
 
Join Date: Apr 2005
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks like a Firefox issue. I visited your page some minutes ago and it worked well.
Reply With Quote
  #29  
Old 01-01-2007, 08:52 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by silurius View Post
Excellent mod for referencing Wikipedia articles on a separate line! We do this all the time.

Would also love to have the flexibility to have a slightly less obvious version that looks like a standard html link (like the Wikipedia BBcode hack provided for 3.0.x). This is a minor request, though.
I like the "W" logo preceding the link but I modified it as follows to look better as an inline link:

Code:
<span style="background-color: #F5F5FF; border: 1px Blue; padding: 1px; 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>
See demo here. Change the background-color from #F5F5FF to whatever best suits your forum style.

If you want to omit the "W", just use this:

Code:
<span style="background-color: #F5F5FF; border: 1px Blue; padding: 1px; text-decoration: none;"><a href="http://en.wikipedia.org/wiki/{param}" target="new">{param}</a></span>
Update: I've decided I prefer it as a link without the "W" image too.
Reply With Quote
  #30  
Old 03-02-2007, 09:26 PM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quick question. Does this mod reference Wikipedia only?

If our web site has it's own wiki, would I be able to tie it into this site?
Reply With Quote
  #31  
Old 03-02-2007, 11:35 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RedGTiVR6 View Post
Quick question. Does this mod reference Wikipedia only?
Yes.

Quote:
Originally Posted by RedGTiVR6 View Post
If our web site has it's own wiki, would I be able to tie it into this site?
If you edit the plugin to reference your wiki instead of wikipedia, sure.

You could use [wikipedia] and [wiki] to differentiate the two.
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:27 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.05768 seconds
  • Memory Usage 2,316KB
  • 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
  • (5)bbcode_code
  • (2)bbcode_php
  • (6)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