vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Wiki like autolinks when posting - for easy crossreferencing (https://vborg.vbsupport.ru/showthread.php?t=56945)

rseidl 09-11-2003 06:53 AM

Wiki like autolinks when posting - for easy crossreferencing
 
Just wondering whether anybody has come across something like what the various Wikis allow for markup - they see a certain pattern in the posted text and automatically make a link. Either to another card/page in the same Wiki web or to other webs. (My request here is limited to forum internal links)

It allows very densely cross-connected webs or encyclopaedic webs. I would like to be able to do this, and it has become somewhat easier with vb3 and its
Code:

See also [post=id]this other post[/post]
tag. But you still have to do quite a few clicks and open pages to find what id you need for the cross reference. And anyway, ids are not user friendly. Words are.

The Wiki way allows markup of the cross links right inside the posting text, without leaving the posting page or opening other windows.

Some use a very generic "if a word has a starting capital and internal capital(s)" then it must be a link heuristic - also called CamelCase:
eg. Shell wouldnt be marked up but ShellOil would be.

Some use slightly more explicit patterns such as [[Shell]] around the to-be-linked words.

Anyway, so far so similar to our vbCodes. Now here is the trick part: the Wiki software will automatically find the right other place to link to and apply the link. In vb Terminology it would be a thread with the title the same as the found tag, eg Shell in the example above.

The second trick part is if the Shell thread did not exist yet, the Wiki makes a new one.
In vb terms, I think you would want the posting code to come back to the user with a list of to-be-created links and for each:
+ menu popup in which forum to create the thread and -uhm-
+ whether to create it all checkbox (perhaps you misspelled a name and it couldnt find the exact thread title).

Has anybody done something like this for vBulletin ?


It would be something like a
Code:

See also [xref]Shell[/xref]
tag. The posting php would have to be extended to look for these and match them up with any threadstarter titles. If found, apply the link, perhaps rewriting as
Code:

See also [xref=2883]Shell[/xref] or the existing vb3 [post=2883}Shell[/post}
Note how it added the id. If the title is not found, it could display similar threads titles (in case of minor misspellings) and the abovementioned forum popup and create checkbox.

-- sorry this got longer than I thought. Hope it makes sense. Thanks for any advice !


See also:
Wiki CamelCase - ConcatenatedCapitalizedWordsMakeALinkSyntax
TravelWiki editing / link markup (this particular one uses [[tag]])
other links, namespaces syntax etc. from Wikipedia (scroll down halfway)

rseidl 09-20-2003 09:43 PM

:disappointed: Bump ? :nervous:

budlight 05-27-2010 03:09 AM

i'm currently looking for something like this as well ( i know its a dead thread)

i wouldn't have a problem coding my own but have no clue what parser hook to start with as bbcode is obviously not right kinda a hard subject to search for

Marco van Herwaarden 05-28-2010 08:45 AM

A 7 year old thread is not discussing any current version of vBulletin and the information will be outdated.

Closing thread.


All times are GMT. The time now is 01:41 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.01046 seconds
  • Memory Usage 1,719KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete