Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic problem  with Split/Splice (Read 2117 times)
..:X.T.C:..
Forum Administrator
*****
Offline


I love YaBB Forum!

Posts: 656
Location: Spittal
Joined: Dec 22nd, 2002
Gender: Male
problem  with Split/Splice
Jun 23rd, 2004 at 7:48pm
Print Post  
Hello

Sometimes when i use the Split/Splice ... it print me a clear line in the "[forum].txt"

Looks like this ....



This clear line display a N/A thread in the message index ....



Anyone know to fix this !?

lg XTC
  

Back to top
WWW  
IP Logged
 
astropilot
God Member
*****
Offline



Posts: 828
Location: Louisville
Joined: Jun 18th, 2003
Gender: Male
Re: problem  with Split/Splice
Reply #1 - Jun 27th, 2004 at 9:37pm
Print Post  
You'll want to add this to the place where split/splice opens the thread list to reprint the spliced output

It usually does this through a loop and this will skip any blank lines.
Code
Select All
next if /^(\s)*$/; 



You could also use chomp($_); to remove any extra new line charcaters that might be popping up.

I don't have the split/splice code in front of me now, but when I do, I'll try to point you to where to add the code.

astro-pilot
  

"For I am not ashamed of the gospel of Christ..."
Romans 1:16
---
http://www.ssflynn.com
www.flynnfarmsofkentucky.com
Back to top
 
IP Logged
 
astropilot
God Member
*****
Offline



Posts: 828
Location: Louisville
Joined: Jun 18th, 2003
Gender: Male
Re: problem  with Split/Splice
Reply #2 - Jun 28th, 2004 at 12:48am
Print Post  
Xonder,

Try line 374. 

Remove
Code
Select All
		print FILE2 qq~$NewThreadLine~;
		print FILE2 @buffer; 



Replace with
Code
Select All
unshift (@buffer, $NewThreadLine);
foreach (@buffer){
    next if /^(\s)*$/;
    print FILE2 "$_";}
 



No testing, just an idea.

astro-pilot
  

"For I am not ashamed of the gospel of Christ..."
Romans 1:16
---
http://www.ssflynn.com
www.flynnfarmsofkentucky.com
Back to top
 
IP Logged
 
..:X.T.C:..
Forum Administrator
*****
Offline


I love YaBB Forum!

Posts: 656
Location: Spittal
Joined: Dec 22nd, 2002
Gender: Male
Re: problem  with Split/Splice
Reply #3 - Jun 28th, 2004 at 3:49am
Print Post  
Hey astropilot

Will check it out  Roll Eyes

Thank you ...... for give mir your time  Wink
At this time .... you are a very active yabber ... i like it  Cheesy

lg XTC
  

Back to top
WWW  
IP Logged
 
..:X.T.C:..
Forum Administrator
*****
Offline


I love YaBB Forum!

Posts: 656
Location: Spittal
Joined: Dec 22nd, 2002
Gender: Male
Re: problem  with Split/Splice
Reply #4 - Jun 28th, 2004 at 4:51am
Print Post  
astropilot wrote on Jun 28th, 2004 at 12:48am:
Xonder,

Try line 374.  

Remove
Code
Select All
            print FILE2 qq~$NewThreadLine~;
            print FILE2 @buffer; 



hmmm .... i have found this code at line 330 ...

... so i hope .... i use the newestversion 

lg XTC
  

Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint