Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic yabb21_copy_to_clipboard (Read 5303 times)
DominicPA
New Member
*
Offline


I Love PA & YaBB

Posts: 14
Location: Pennsylvania
Joined: Feb 19th, 2007
Gender: Male
yabb21_copy_to_clipboard
Feb 20th, 2007 at 2:32am
Print Post  
When trying to install this mod manually it failed because there was no space between "if(", if you copy and paste and didn't notice the mistake, here is an example:
Code
Select All
	if ($ENV{'HTTP_USER_AGENT'} =~ /(MSIE) (\d)/) {

		if($2 >= 7.0) { $iecopycheck = ""; } else { $iecopycheck = qq~checked="checked"~; }

	}  



This happened in a few of the 8 steps where similar code as above was needed.
  
Back to top
WWW  
IP Logged
 
Carsten
God Member
*****
Offline


...to much YaMS

Posts: 3281
Location: Langå
Joined: Aug 2nd, 2002
Gender: Male
Re: yabb21_copy_to_clipboard
Reply #1 - Feb 20th, 2007 at 2:45pm
Print Post  
Sorry, but i fail to see any bugs in the code example in your post (or in the complete mod code for that matter). This mod has been in the Beta Board for quite a while with no bug rapports so far - and working nicely on all my test boards too.
  

If you knock your head against a brick wall and hear a hollow sound, it's not necessarily coming from the wall.
Back to top
 
IP Logged
 
Spikecity
God Member
*****
Offline


Beer anyone ?

Posts: 2630
Location: New York
Joined: Apr 16th, 2002
Gender: Male
Re: yabb21_copy_to_clipboard
Reply #2 - Feb 20th, 2007 at 4:07pm
Print Post  
DominicPA wrote on Feb 20th, 2007 at 2:32am:
When trying to install this mod manually it failed because there was no space between "if(", if you copy and paste and didn't notice the mistake, here is an example:
Code
Select All
	if ($ENV{'HTTP_USER_AGENT'} =~ /(MSIE) (\d)/) {

		if($2 >= 7.0) { $iecopycheck = ""; } else { $iecopycheck = qq~checked="checked"~; }

	}  



This happened in a few of the 8 steps where similar code as above was needed.


I'm sorry to correct you on this but

if(....)
if (....)
if                   (....)

Al work in Perl and spaces in between are irrelevant
  

Nothing to add here Smiley
Back to top
 
IP Logged
 
DominicPA
New Member
*
Offline


I Love PA & YaBB

Posts: 14
Location: Pennsylvania
Joined: Feb 19th, 2007
Gender: Male
Re: yabb21_copy_to_clipboard
Reply #3 - Feb 20th, 2007 at 9:09pm
Print Post  
Oh I see, well I'll reference you this post where I was told that was the error I was encountering while installing the mod. Which is why I came over here to post, thought it may help someone else.

http://www.yabbforum.com/community/YaBB.pl?num=1171750247/15
  
Back to top
WWW  
IP Logged
 
DominicPA
New Member
*
Offline


I Love PA & YaBB

Posts: 14
Location: Pennsylvania
Joined: Feb 19th, 2007
Gender: Male
Re: yabb21_copy_to_clipboard
Reply #4 - Feb 20th, 2007 at 9:10pm
Print Post  
No need to say sorry, by the way. I'd rather know the real cause of my errors than assume something else that's incorrect.
  
Back to top
WWW  
IP Logged
 
Spikecity
God Member
*****
Offline


Beer anyone ?

Posts: 2630
Location: New York
Joined: Apr 16th, 2002
Gender: Male
Re: yabb21_copy_to_clipboard
Reply #5 - Feb 20th, 2007 at 10:01pm
Print Post  
DominicPA wrote on Feb 20th, 2007 at 9:10pm:
No need to say sorry, by the way. I'd rather know the real cause of my errors than assume something else that's incorrect.

Most of the time errors on manual modding are coming from forgotten ; (line closures) or because a piece of code was not pasted at the exact location it was ment to be pasted.

Sometimes the search anchors in the mod look te be occurring more then once in the code so it easy to make such mistakes in manual modding.

allthough perl is a very forgiving language a forgotten ; or a {} () too many or too little will crash the script.
  

Nothing to add here Smiley
Back to top
 
IP Logged
 
DominicPA
New Member
*
Offline


I Love PA & YaBB

Posts: 14
Location: Pennsylvania
Joined: Feb 19th, 2007
Gender: Male
Re: yabb21_copy_to_clipboard
Reply #6 - Feb 20th, 2007 at 11:48pm
Print Post  
Well, I appreciate you both clarifying this for me. I just go on the advice of others because I have no coding or perl experience of my own. I certainly didn't mean to insult anyone, if I did so, by making a false claim of a bug, it was just an effort to help out the next guy.

I'm happy I posted here though, because now I know it was something I did during the process that caused this mistake and I can make sure to be a lot more careful next time I install a mod.

Thank you again,
Dominic
  
Back to top
WWW  
IP Logged
 
Spikecity
God Member
*****
Offline


Beer anyone ?

Posts: 2630
Location: New York
Joined: Apr 16th, 2002
Gender: Male
Re: yabb21_copy_to_clipboard
Reply #7 - Feb 21st, 2007 at 11:13am
Print Post  
You're most welcome Dominic.
To make the pain go away, we all learned programming the hard way and making mistakes is part of the process of becoming better at it Wink
  

Nothing to add here Smiley
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint