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

Reply
 
Thread Tools
Links not working in showthread... help! Details »»
Links not working in showthread... help!
Version: , by bandit022 bandit022 is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

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

hey guys,

i'm running 2.3.0

for some reason the links that members post in threads don't work right. for example, one of my members

tried to post the following link: http://www.twingo-portal.de/flash/we...nachtsmann.swf

and it shows up in the post, but when clicked it goes to:

http://www.lonestarstangs.com//%22ht...tsmann.swf/%22

basically it's adding: http://www.lonestarstangs.com//%22 before the link, and: /%22 after the link

click here to see for

yourself


i'm not sure what php file it is that might be messed up, and i'm not sure what code might be messed up.

thanks for any help,

-jeff

Show Your Support

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

Comments
  #2  
Old 12-08-2003, 03:50 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bandit022
hey guys,

i'm running 2.3.0

for some reason the links that members post in threads don't work right. for example, one of my members

tried to post the following link: http://www.twingo-portal.de/flash/we...nachtsmann.swf

and it shows up in the post, but when clicked it goes to:

http://www.lonestarstangs.com//%22ht...tsmann.swf/%22

basically it's adding: http://www.lonestarstangs.com//%22 before the link, and: /%22 after the link

click here to see for

yourself


i'm not sure what php file it is that might be messed up, and i'm not sure what code might be messed up.

thanks for any help,

-jeff
whats your bburl setting at?
Reply With Quote
  #3  
Old 12-08-2003, 12:43 PM
bandit022 bandit022 is offline
 
Join Date: Jun 2003
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Faranth
whats your bburl setting at?
not sure, how do i check?


and if it helps any, this problem hasn't always been happening. i've been running this board for a couple months now and it just started happening. i think i screwed up some code when installing a hack a while back. but just not sure what code.
Reply With Quote
  #4  
Old 12-08-2003, 04:34 PM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To check your bburl setting, look near the top of your Vbulletin options in your admin panel.

If you think it is a result of a hack you have installed, it would be a great help if you could list the recently installed hacks. Cheers!
Reply With Quote
  #5  
Old 12-08-2003, 10:31 PM
bandit022 bandit022 is offline
 
Join Date: Jun 2003
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

alright my bburl is: http://www.lonestarstangs.com/forum

and the last hacks i have installed are:

- birthday cake in postbit
- sig editor (mods can edit sigs)
- timeslip database
Reply With Quote
  #6  
Old 12-08-2003, 10:52 PM
ChAiN LeTtEr's Avatar
ChAiN LeTtEr ChAiN LeTtEr is offline
 
Join Date: Aug 2002
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Simply go to functions.php (not sure if it's the one in admin folder or the one in the main forum, so check both). I had this problem at my board a few months back, simply scroll down to find where it automaticall parse's URLs in the functions.php and remove the crap around the code.

Simple as that. If you need additional help, post away.
Reply With Quote
  #7  
Old 12-09-2003, 01:28 AM
bandit022 bandit022 is offline
 
Join Date: Jun 2003
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

alright, this is the parse url code in admin/functions.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==$url, iif(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

  global $urlSearchArray, $urlReplaceArray, $emailSearchArray, $emailReplaceArray;

  if (!isset($urlSearchArray)) {
    $urlSearchArray = array(
      "/([^]_a-z0-9-=\"'\/])((https?|ftp|gopher|news|telnet):\/\/|www\.)([^ \r\n\(\)\^\$!`\"'\|\[\]\{\}<>]*)/si",
      "/^((https?|ftp|gopher|news|telnet):\/\/|www\.)([^ \r\n\(\)\^\$!`\"'\|\[\]\{\}<>]*)/si"
    );
i have an idea as to what i have to delete, but i'm not exactly sure. i don't want to mess it up more than it already is...

sorry guys, i'm pretty new at all this. can ya help me?

-jeff
Reply With Quote
  #8  
Old 12-09-2003, 02:56 AM
bandit022 bandit022 is offline
 
Join Date: Jun 2003
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nevermind.

i figured it out and fixed it.

thanks for pointing me in the right direction
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 05:55 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.04707 seconds
  • Memory Usage 2,272KB
  • Queries Executed 21 (?)
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)bbcode_code
  • (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
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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