Hi, first time posting in the forums, and not sure whether this is the right category for it, I will continue anyway.
My problem is that I would like to add prefixes to any URLs in content which leads to other sites.
For example, I would like to do something similar to making a link like this:
http://hazexp.googlepages.com/test.png
Turn into something like this:
http://anonym.to/?http://hazexp.googlepages.com/test.png
One other thing is that I would like it if it were possible to make this exclude any URLs that are linking to the Drupal setup, i.e. not to convert http://www.example.com/drupal/* links into http://anonym.to/?http://www.example.com/drupal/*
If anyone could be of assistance, it would be *greatly* appreciated.
Comments
Try digging the code of
Try digging the code of bbcode module, it converts urls into links, so you can change its behaviour to prefix every url it sees.
PHP newbie
I previously had the BBCode input format installed, only problem is I don't have any knowledge of PHP, and can't really edit the module, as I have no idea where to start. I have edited a couple of other modules, but the code in this wasn't as readable as to what the BBCode PHP was actually doing (while still reasonably documented).
EDIT: Eventually realised I was reading through the wrong file (the MODULE instead of the INC). Was easy from there, thanks heaps for that, much appreciated.
This is how it needs to look
This is how it needs to look in the bbcode-filter.inc file in these two different spots at starting line 161:
and line 242: