Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
URL's Details »»
URL's
Version: , by Tyrant Tyrant is offline
Developer Last Online: Sep 2002 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 08-22-2002 Last Update: Never Installs: 0
 
No support by the author.

The URLS on my site are not working

http://www.vbulletin.com gets changed to

" http://www.mb-tech.co.uk//%22http://...ulletin.com%22 "

Any idea what may be causing this?

Recently installed hacks are, shoutbox, local time in post and post counter.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-22-2002, 03:55 PM
Tyrant Tyrant is offline
 
Join Date: Aug 2002
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Update: Ive created a fresh template set now to test with yet the same problem occurs therefore its going to be some incorrect PHP right?

Where will i find the code that manages URL parsing?
Reply With Quote
  #3  
Old 08-22-2002, 04:04 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Tyrant
Where will i find the code that manages URL parsing?
Should be in admin/functions.php
Reply With Quote
  #4  
Old 08-22-2002, 04:09 PM
Tyrant Tyrant is offline
 
Join Date: Aug 2002
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks buddy thats what ive been going through but to be honest im not going to know the code if it has lights and stars around it... trying to track any changes that may have been made to the file
Reply With Quote
  #5  
Old 08-22-2002, 04:12 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The parts that deal with the parsing of the URL are after:

PHP Code:
// ###################### Start checkurl ####################### 
And:
PHP Code:
// ###################### Start parseurl ####################### 
So try comparing those sections with the origional code from functions.php
Reply With Quote
  #6  
Old 08-22-2002, 04:15 PM
Tyrant Tyrant is offline
 
Join Date: Aug 2002
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:

// ###################### Start checkurl #######################

function checkurl($url$hyperlink="") {

  
$righturl $url;

  if(!
preg_match("![a-z]://!si"$url)) {

    
$righturl "http://$righturl";

  }

  
// remove threat of users including javascript in url

  /*$righturl = preg_replace("/javascript:/si", "java script:", $righturl);

  $righturl = preg_replace("/about:/si", "about :", $righturl);*/

  
$hyperlink iif(trim($hyperlink)=="" or $hyperlink==$urliif(strlen($url)>55,substr($url,0,35)."...".substr($url,-15),$url) ,$hyperlink);

  return 
"<a href=..//%22$righturl/%22 target=\"_blank\">".str_replace('\"''"'$hyperlink)."</a>";

}



// ###################### Start parseurl #######################

unset($urlSearchArray);

unset(
$urlReplaceArray);

unset(
$emailSearchArray);

unset(
$emailReplaceArray);

function 
parseurl($messagetext)

// the auto parser - adds [url] tags around neccessary things 
Ive made no changes in this area. What do you think? Looks ok?
Reply With Quote
  #7  
Old 08-22-2002, 04:24 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Tyrant
[Ive made no changes in this area. What do you think? Looks ok?
Somethings changed it, the checkurl function should have this code in it:

PHP Code:
function checkurl($url$hyperlink="") {
  
$righturl $url;
  if(!
preg_match("![a-z]://!si"$url)) {
    
$righturl "http://$righturl";
  }
  
// remove threat of users including javascript in url
  /*$righturl = preg_replace("/javascript:/si", "java script:", $righturl);
  $righturl = preg_replace("/about:/si", "about :", $righturl);*/
  
$hyperlink iif(trim($hyperlink)=="" or $hyperlink==$urliif(strlen($url)>55,substr($url,0,35)."...".substr($url,-15),$url) ,$hyperlink);
  return 
"<a href=\"$righturl\" target=\"_blank\">".str_replace('\"''"'$hyperlink)."</a>";

Reply With Quote
  #8  
Old 08-22-2002, 04:29 PM
Tyrant Tyrant is offline
 
Join Date: Aug 2002
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ill make the changes and try it. Thanks!
Reply With Quote
  #9  
Old 08-22-2002, 04:32 PM
Tyrant Tyrant is offline
 
Join Date: Aug 2002
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That solved it thanks!
Reply With Quote
  #10  
Old 08-22-2002, 04:35 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem
Reply With Quote
Reply


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 10:58 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
  • Page Generation 0.04408 seconds
  • Memory Usage 2,303KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete