Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #1  
Old 02-27-2004, 03:09 PM
Sonic625 Sonic625 is offline
 
Join Date: Jun 2002
Location: D/FW Texas
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 02-27-2004, 03:19 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need to edit the newthread and newreply templates.
Reply With Quote
  #3  
Old 02-27-2004, 03:24 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In functions_newpost.php FIND
PHP Code:
function convert_url_to_bbcode($messagetext)
// the auto parser - adds [url] tags around neccessary things 
BELOW that ADD
PHP Code:
return $messagetext
This will disable autoparsing of URLs everywhere.

@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?
Reply With Quote
  #4  
Old 02-27-2004, 03:24 PM
Sonic625 Sonic625 is offline
 
Join Date: Jun 2002
Location: D/FW Texas
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NTLDR
You need to edit the newthread and newreply templates.
ok thanks, I found that just a second ago from the vB2 threads :
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
Reply With Quote
  #5  
Old 02-27-2004, 03:29 PM
Sonic625 Sonic625 is offline
 
Join Date: Jun 2002
Location: D/FW Texas
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just figured it out:
In the newreply.php find:
Code:
	if (!isset($checked['parseurl']))
	{
		$checked['parseurl'] = HTML_CHECKED;
	}
and remove it.

In editpost.php find:
Code:
	if (!$checked['parseurl'])
	{
		$checked['parseurl'] = HTML_CHECKED;
	}
and remove it

In newthread.php find:
Code:
	if (!$checked['parseurl'])
	{
		$checked['parseurl'] = HTML_CHECKED;
	}
and remove it


Thanks,
S
Reply With Quote
  #6  
Old 03-24-2004, 05:47 PM
SloppyGoat's Avatar
SloppyGoat SloppyGoat is offline
 
Join Date: Feb 2002
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm looking to do something similar, but I only want one specific forum not to autoparse. Can this be done somehow?
Reply With Quote
  #7  
Old 06-08-2004, 07:34 PM
Byron Byron is offline
 
Join Date: Oct 2001
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

would be nice if we have an option in admin for this.
Reply With Quote
  #8  
Old 06-23-2005, 05:00 PM
EricaJoy EricaJoy is offline
 
Join Date: Sep 2002
Location: New York, NY
Posts: 236
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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'])
	{
		$checked['parseurl'] = HTML_CHECKED;
	}
work?

please go easy on the above, i stopped trying to code anything after my 2nd object oriented programming class.
Reply With Quote
  #9  
Old 06-23-2005, 07:30 PM
SloppyGoat's Avatar
SloppyGoat SloppyGoat is offline
 
Join Date: Feb 2002
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by princessfrozen
really huge bump...
You ain't kidding! I can't even use the new version until this is resolved. I'm still using 2.3.0 until this can be done. I don't even have a test board installed at the moment. Please let me know if you get it figured out. I would love to upgrade to the new version. This is biggest thing rendering 3.x unusable for me. :angry:
Reply With Quote
  #10  
Old 06-24-2005, 03:31 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:31 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04259 seconds
  • Memory Usage 2,249KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete