The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Censor part of a url only in certain forums?
I've been looking for a way to make it so all urls posted in certain forums are automatically changed to hxxp:// rather than http://. I've searched, and come up with nothing, and I have no clue how to make this hack myself. Anybody give me a hand with this?
|
#2
|
|||
|
|||
Well it depends on what you are trying to do with it. Please explain more what you try to do.
|
#3
|
|||
|
|||
well... we have a few forums on the site that are only visible to certain members and one of our rules for those sections are no live links, so we ask that when posting a link that they use hxxp:// rather than http://. So I was looking for a way that when the user types a link in their post (ex: http://www.vbulletin.org) that it automatically changes it (ex: hxxp://www.vbulletin.org) so they have to copy it into the address bar. Does that make sense?
|
#4
|
||||
|
||||
uhm, just uncheck the "Automatically parse links in text" when posting...
see: http://www.vbulletin.org |
#5
|
|||
|
|||
Or you could hack teh includes/functions_bbcodeparse.php
Made it once for a site that all outside link where redirected to an anonimyzer, all links to pages on the board where untouched. Not so difficult to do. |
#6
|
|||
|
|||
Quote:
|
#7
|
||||
|
||||
you can modify the new posting template and set a conditional so its unchecked by default for which ever forum it is you want it off.
|
#8
|
|||
|
|||
Quote:
|
#9
|
|||
|
|||
i kinda wanted to do something similar to cut down on users hotlinking to images on domains they do not own
if i recall, i changed the regular expression to only allow 2 domains mine and a free image hosting provider what i would need to finish it is to have it return some jumpled up text instead of the unparsed link this should drive the point home that they are not to hotlink! want to show an image? post a link to the page its contained on use an img tag to an uanthorized domain and [img] domain/pic.jpg [/img] turns into [img]afhafhafh[/img] or some wording telling them not to hotlink |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|