The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Modify Link URL
I want to modify link URLs (that is, URLs that users have included in a thread/post using the insert link icon in the editor). Specifically this is so that I can re-write ebay URLs to be compliant with their affiliate program.
I've been able to modify in-line URLs by adding some custom code to /includes/vb5/template/bbcode.php - essentially before the // standard URL hyperlink code is called in function handle_bbcode_url I review the URL and modify it. This works for in-line links, but not for those that users insert via the Link button. I'd like to do the same for the link button, but can't seem to find where the code is that displays the URL. I see it is using the link template, but i can't find what calls it. Can you advise? Thanks! |
#2
|
||||
|
||||
Check in the ckeditor javascript files in {Your forum root}/js/ckeditor/plugins/link/dialogs/link.js
This looks like what you're looking for. Their javascript is compressed and minified, so use a good editor that can expand and indent the code for easier reading. |
#3
|
|||
|
|||
That would do it client side, I want to do this even before it gets to the browser.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|