vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - Wikipedia reference-link BBCode (https://vborg.vbsupport.ru/showthread.php?t=119241)

Patria 06-20-2006 09:00 PM

Wikipedia reference-link BBCode
 
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. :)

thedvs 06-21-2006 10:03 AM

thanks alot, very handy, works in vb3.5.4 too :)

Gizmo5h1t3 06-21-2006 02:27 PM

works a treat...clicked install

Patria 06-21-2006 03:21 PM

Maybe I add a yellow popup layer, that show the first part of the wikipedia article, in future. ;)

projectego 06-21-2006 04:07 PM

Nice idea. :)

Patria 06-22-2006 04:29 PM

https://vborg.vbsupport.ru/external/2006/06/3.png

The first 500 chars of the wiki article. :cool:

Neal-UK 06-23-2006 05:46 AM

I just get the word as a link with the W above but when I click it it says invalid page and what not.

UPDATE: Showing this in my link: http://en.wikipedia.org/wiki/%20<br%20/>vbulletin<br%20/>

Patria 06-23-2006 07:46 AM

Quote:

Originally Posted by Neal-UK
I just get the word as a link with the W above but when I click it it says invalid page and what not.

UPDATE: Showing this in my link: http://en.wikipedia.org/wiki/%20<br%...lletin<br%20/>

Did your replacement code exactly look like this
PHP 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

and the tag in the post like this?
PHP Code:

[wikipedia]vbulletin[/wikipedia

Its currently only a link, the popup layer is a feature I work at present.

Neal-UK 06-23-2006 03:48 PM

Yes, all done exactly as the instructions stated. I'm using vb 3.6.0 Beta 3.

It was me not putting wikipedia in the Tag area when adding a new BB code. I put in [wikipedia][/wikipedia] by mistake and not just wikipedia, working fine now thankyou

Might be a good idea to mention that in first post as some noobs like me will probably make a mistake.

Red Matrix 07-05-2006 08:54 AM

Excellent, but I have modified it for my dark skin.

example post


All times are GMT. The time now is 06:07 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01660 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete