![]() |
Disable Automatically parse links in text
I am looking for the files that need to be modified to disable the auto parse urls for everyone.
Thanks, S |
You need to edit the newthread and newreply templates.
|
In functions_newpost.php FIND
PHP Code:
PHP Code:
@NTLDR This would not stop ppl from using autoparsing, if would just hide the controls (or uncheck it). And what about private messages? Editing posts? |
Quote:
https://vborg.vbsupport.ru/showthrea...ght=parse+URLS But it is coded differently so far I havent been able to find out what the code needs to be to select unchecked. Thanks, S |
Just figured it out:
In the newreply.php find: Code:
if (!isset($checked['parseurl'])) In editpost.php find: Code:
if (!$checked['parseurl']) In newthread.php find: Code:
if (!$checked['parseurl']) Thanks, S |
I'm looking to do something similar, but I only want one specific forum not to autoparse. Can this be done somehow?
|
would be nice if we have an option in admin for this.
|
really huge bump...has anybody ever gotten a forum based solution for this? would
if forumid=y then disable (maybe comment out?) Code:
if (!$checked['parseurl']) please go easy on the above, i stopped trying to code anything after my 2nd object oriented programming class. |
Quote:
|
This is a very old thread, and i am not sure if this will work on 3.0.7.
But i suggest you start a new thread telling us exactly what you want to achieve, and we can think of a solution. @sloppygoat, disabling url parsing should not be a real problem if that is what you need. |
I did that a long time ago. Disabling can be done, but has anyone been able to disable it in only one forum?
https://vborg.vbsupport.ru/showthread.php?t=59701 Apparently, from what I was told, it was going to be impossible to disable it in the WYSIWYG editor. :ermm: |
works like a charm thanks
|
Bumpety Bump BUMP!!!
|
A good friend of mine solved this problem. As long as you're not using the WYSIWYG editor. This will disable autoparsing in the forum of your choice. Just change the forum id to whichever you like.
editpost.php line 224... replace: $edit['parseurl'] = true; with: $edit['parseurl'] = ($foruminfo['forumid'] != 19) line 245... replace: $edit['parseurl'] =& $vbulletin->GPC['parseurl']; with: $edit['parseurl'] = ($vbulletin->GPC['parseurl'] AND $foruminfo['forumid'] != 19); line 268... replace: $dataman->set_info('parseurl', ($foruminfo['allowbbcode'] AND $edit['parseurl'])); with: $dataman->set_info('parseurl', ($foruminfo['allowbbcode'] AND $edit['parseurl'] AND $foruminfo['forumid'] != 19)); newreply.php line 340... replace: $newpost['parseurl'] = ($foruminfo['allowbbcode'] AND $vbulletin->GPC['parseurl']); with: $newpost['parseurl'] = ($foruminfo['allowbbcode'] AND $vbulletin->GPC['parseurl'] AND $foruminfo['forumid'] != 19); newthread.php line 154... replace: $newpost['parseurl'] = ($foruminfo['allowbbcode'] AND $vbulletin->GPC['parseurl']); with: $newpost['parseurl'] = ($foruminfo['allowbbcode'] AND $vbulletin->GPC['parseurl'] AND $foruminfo['forumid'] != 19); |
Nobody is as excited about this as I am?! I mean, this works great! I'd release it as a hack, if it were mine. But it's his code, and he doesn't even run a vB forum. ;)
|
Quote:
Quote:
Ok, code have changed in 3.6 in editpost.php and newthread.php Here is what you have to do.. In editpost.php find: Quote:
in newthread.php find: Quote:
The newreply.php code did not change, so just do like you did before. but how can I disable it in quick reply? :( it works with all except that :( |
Quote:
|
I just disabled it globally in 3.6.7 via class_bbcode_alt.php this is against the basic concepts that the 3.x series tried to fix, but it works.
This fixes both quick reply, wysiwyg, and a standard reply. This is just URLs in class_bbcode_alt.php Find: PHP Code:
PHP Code:
This is just images in class_bbcode_alt.php Find: PHP Code:
PHP Code:
You could put conditionals in for forums, but getting that information would be a bit/lot more difficult compared to changing it in templates. Make sure and add the comment line with something you can search for (like your name), so you can remove it on upgrade. Is there an easier way to do it in 3.6.7 ? |
I disabled all of item but can't disable in quick edit post. when edit quick post and save this function is enable
please help me |
This thread is 7 years old and multiple things were suggested...
1) What are you trying to do? 2) What did you do already? 3) What version of vBulletin are you using? |
thank you
I want the following option to disable by default : "Automatically parse links in text" I have edit the following templates and changed "vb:raw checked.parseurl" to "vb:raw unchecked.parseurl" : editpost newreply newpoll newthread pm_newpm In all the above options, this option was disabled by default. But that is still active in quick editing and quick reply and I want to disable them too. my vbulletin version is 4.1.4 |
OK I haven't tested this but it should work...
Edit your SHOWTHREAD template... find the line: Code:
<input type="hidden" name="parseurl" value="1" /> |
thank
I changed it but don't resolve my problem. when click on edit button and then click save automatic enabled link in text :( |
Yeah that was for quick reply, I wasn't looking at quick edit. Unfortunately there doesn't seem to be a template solution for quick-edit.
It's looking to me you need to edit the file: editpost.php Find the line: Code:
$edit['parseurl'] = true; I haven't tested this but it looks like it should work. If it doesn't, change it back. |
I do not have this option "$edit['parseurl'] = true;" in editpost.php.
I think a quick edit and quick reply is in another template but I not found! |
Quote:
If it was removed in 4.1.4 then there is nothing else I can suggest. I've checked the templates in 4.0.8 and the parse links in the quick-editor is not controlled by a template. |
All times are GMT. The time now is 04:47 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|