Page Index Toggle Pages: 1 [2]  Send TopicPrint
Very Hot Topic (More than 25 Replies) img code error (Read 10064 times)
arms
Guest


Re: img code error
Reply #15 - Apr 15th, 2002 at 5:17pm
Print Post  
http://www.visittnt.com/ToDo/Sport/yachting/regatta-2001/daily/thursday/images/m...



AnyOne Can Modify Script for me  Undecided






my old code

Code
Select All
	$message =~ s~\[img\]\s*(.+?)\s*\[/img\]~<img src="$1" alt="" border="0">~isg; 






and I'm modify to
Code
Select All
   $message =~ s~\[img\][\s*\t*\n*(&nbsp;)*($char_160)*]*(http\:\/\/)*(.+?)[\s*\t*\n*(&nbsp;)*($ char_160)*]*\[/img\]~<img src="http\:\/\/$2" alt="" border="0">~isg;  




Still Can't Work properly with

LONG URL




  
Back to top
 
IP Logged
 
Christer Alexander
God Member
*****
Offline


Make my day...

Posts: 3443
Location: Lethbridge
Joined: Feb 10th, 2002
Gender: Male
Re: img code error
Reply #16 - Apr 15th, 2002 at 5:24pm
Print Post  
Quote:
Clear your browsers cashe and try again.


Still works....
  

Code
Select All
unless(0) { stab("LoonyPandora"); next; } 

Back to top
IP Logged
 
arms
Guest


Re: img code error
Reply #17 - Apr 15th, 2002 at 5:24pm
Print Post  
  
Back to top
 
IP Logged
 
Christer Alexander
God Member
*****
Offline


Make my day...

Posts: 3443
Location: Lethbridge
Joined: Feb 10th, 2002
Gender: Male
Re: img code error
Reply #18 - Apr 15th, 2002 at 5:25pm
Print Post  
%20 is Internet Exploders code for space
  

Code
Select All
unless(0) { stab("LoonyPandora"); next; } 

Back to top
IP Logged
 
Tea-Master
Forum Administrator
*****
Offline



Posts: 1945
Location: north germany
Joined: Oct 21st, 2001
Gender: Male
Re: img code error
Reply #19 - Apr 15th, 2002 at 5:26pm
Print Post  
that has something to do with the autowrapping feature.  It wraps things if they are longer than 72 characters...
i don't know exactly how to fix this except disabling this feature - but afaik it's already fixed in SP1.1 Smiley
  
Back to top
WWW  
IP Logged
 
Tea-Master
Forum Administrator
*****
Offline



Posts: 1945
Location: north germany
Joined: Oct 21st, 2001
Gender: Male
Re: img code error
Reply #20 - Apr 15th, 2002 at 5:27pm
Print Post  
Christer Alexander wrote on Apr 15th, 2002 at 5:25pm:
%20 is Internet Exploders code for space

yep - YaBB inserts a space after 72 chars ...
  
Back to top
WWW  
IP Logged
 
BHRA Webmaster
God Member
*****
Offline


Mod Author of the Year
2002

Posts: 5238
Location: BHRA Headquarters
Joined: Jan 18th, 2002
Gender: Male
Re: img code error
Reply #21 - Apr 15th, 2002 at 5:32pm
Print Post  
That's true in the second non-working example, but the picture in the first post doesn't have an extra space inserted?

(It's only 50 chars long)
  


World Domination, one smiley at a time!
Back to top
 
IP Logged
 
arms
Guest


Re: img code error
Reply #22 - Apr 15th, 2002 at 5:33pm
Print Post  
Tea-Master wrote on Apr 15th, 2002 at 5:27pm:
yep - YaBB inserts a space after 72 chars ...



So How We Can Correct it??
  
Back to top
 
IP Logged
 
Christer Alexander
God Member
*****
Offline


Make my day...

Posts: 3443
Location: Lethbridge
Joined: Feb 10th, 2002
Gender: Male
Re: img code error
Reply #23 - Apr 15th, 2002 at 5:36pm
Print Post  
Upgrade to SP1.1...this board is SP1 only Tongue
  

Code
Select All
unless(0) { stab("LoonyPandora"); next; } 

Back to top
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: img code error
Reply #24 - Apr 15th, 2002 at 5:39pm
Print Post  
actually updating won't help you at all for the fist picture in this thread since there is no linebreak there!
  

The Administrator.
Back to top
WWW  
IP Logged
 
Christer Alexander
God Member
*****
Offline


Make my day...

Posts: 3443
Location: Lethbridge
Joined: Feb 10th, 2002
Gender: Male
Re: img code error
Reply #25 - Apr 15th, 2002 at 5:45pm
Print Post  
if you want to do it the hard way...try shortening the URL by moving the pic to another dir...
  

Code
Select All
unless(0) { stab("LoonyPandora"); next; } 

Back to top
IP Logged
 
Tea-Master
Forum Administrator
*****
Offline



Posts: 1945
Location: north germany
Joined: Oct 21st, 2001
Gender: Male
Re: img code error
Reply #26 - Apr 15th, 2002 at 5:55pm
Print Post  
hm... if u save the page - the image will be downloaded and shows correctly.
if i change the img path back to http://www3.xfreehosting.com/asian/a36/003/a18.jpg it works also!!

so - where is the prob? i think it's no problem with yabb directly. can it have something to do with www3???
i realy don't know Sad
  
Back to top
WWW  
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: img code error
Reply #27 - Apr 15th, 2002 at 5:56pm
Print Post  
looks to me like a serversided problem Undecided
  

The Administrator.
Back to top
WWW  
IP Logged
 
arms
Guest


Re: img code error
Reply #28 - Apr 15th, 2002 at 6:17pm
Print Post  
Christer Alexander wrote on Apr 15th, 2002 at 5:36pm:
Upgrade to SP1.1...this board is SP1 only Tongue



OK I 've upgraded to sp1.1, working properly

THANK YOU VERY MUCH

To EveryOne trying to help ME


Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy Cheesy
  
Back to top
 
IP Logged
 
Tea-Master
Forum Administrator
*****
Offline



Posts: 1945
Location: north germany
Joined: Oct 21st, 2001
Gender: Male
Re: img code error
Reply #29 - Apr 15th, 2002 at 6:23pm
Print Post  
*lol*
nobody knows why - but ok...

(ps: i would be interested in a explanation Wink )
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint