Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 09-11-2003, 06:53 AM
rseidl rseidl is offline
 
Join Date: Apr 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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)
Closed Thread

Thread Tools
Display Modes

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 12:12 AM.


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.04051 seconds
  • Memory Usage 2,190KB
  • Queries Executed 11 (?)
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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)showthread_list
  • (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_threadedmode.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_threaded
  • showthread_threaded_construct_link
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete