The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Auto Parse Onsite URL's Details »» | |||||||||||||||||||||||||
This post is basically the same as lone text file in the zip.
Download is merely available for convenience. Here goes....... If anyone can improve upon this and/or find a way to make this a plugin, SPEAK UP!! Personally I think something like this should be standard, but hey, can't have it all. By default, vbulletin autoparses all links so most won't need a hack like this. However, I don't like offsite links so I made a plugin to clear the checkbox. https://vborg.vbsupport.ru/showthread.php?t=91390 But I love onsite links like to other threads and files which reside on my subdomain, so I put together a few file edits that will automatically call the url parser if the subdomain name is found anywhere in the text message. It's no surprise your just adding a bit more code to any/all lines which check if the parse url's box is checked, because the line that follows these is what calls the parser. The only quirk that people find odd is that it's an "all or nothing" type thing. If the message has a mixture of onsite AND offsite url's, all links will parse. Meaning it checks the message in "one lump". Please note you can pick and choose from these file modifications!! Each one works independantly and the file names should clue you as to what's what. This is by no means complete!! It merely works.... Call it a "works in progress", LOL. In /editpost.php find this: Code:
$checked['parseurl'] = 'checked="checked"'; Code:
$checked['parseurl'] = ($postinfo['parseurl']) ? 'checked="checked"' : ''; In /private.php find this: Code:
if ($vbulletin->GPC['parseurl']) Code:
if ($vbulletin->GPC['parseurl'] OR stristr($vbulletin->GPC['message'], $_SERVER['HTTP_HOST'])) ALSO In /private.php find this: Code:
'parseurl' => true, Code:
'parseurl' => false, In /profile.php find this: Code:
$signature = convert_url_to_bbcode($signature); Code:
if (stristr($signature, $_SERVER['HTTP_HOST'])) { $signature = convert_url_to_bbcode($signature); } In /usernote.php find this: Code:
if ($vbulletin->GPC['parseurl']) Code:
if ($vbulletin->GPC['parseurl'] OR stristr($vbulletin->GPC['message'], $_SERVER['HTTP_HOST'])) In /includes/class_dm.php find this: Code:
if ($this->info['parseurl']) Code:
if ($this->info['parseurl'] OR stristr($pagetext, $_SERVER['HTTP_HOST'])) Show Your Support
|
Comments |
#22
|
|||
|
|||
Quote:
I thought it was just the cookie from previous site and next site going to after leaving. In other words I open browser to say msn.com Now I open my site's bookmark Now I come here to vb.org Now I close browser I thought msn would see my site's cookie (and theirs). And vb.org would see my site's cookie (and theirs). And my site would see all 3. Or would all 3 sites see all 1001 (j/k) cookies that reside on my pc?? :eyepopping: If it's just the "2 or 3" referencing cookies which get passed, then my method works .... as long as my members abide by the "open new browser and obviously not on our website before pasting the link" clause which my members made for themselves. If not .... then what the F am I making this for and why in the H was I told differently by my site's members what's the GD point of not posting links when it just don't matter. :banana: I said all that with a big smile .... not sour grapes. |
#23
|
||||
|
||||
Quote:
Cookies are bound to Domains. There is no way (except buggy Browsers) they can be send to other Domains then those which set them. |
#24
|
|||
|
|||
Anybody get this to work on 3.5.2?
Doesn't work at all on it |
#25
|
|||
|
|||
No, it doesn't work.
This needs a major makeover. And unfortunately I don't know when I'll have time to do so. I have a lot of other things going on in my life right now. I do apologize. I'll send you a PM when I get to it. |
#26
|
|||
|
|||
Thanks for your response. I have used the mod or a type of it for ages. It is a shame that it can't be shut off in 3.5.2. Your hard work is appreciated. I think at this point I'm going back to 3.0.7.
Thanks. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|