The BoardMod Project
 The Project | News | Downloads | Mods | FAQ | Templates | Chat | Forum
BoardMod Support Forum
[ Home | Help | Search | Login | Register ]  

07.09.10 at 22:01:57, Welcome, Guest. Please Login or Register

Choose Language:
Page Index Toggle Pages: 1
yabb21_copy_to_clipboard (Read 1107 times)
DominicPA
Bloody Novice
*
Offline

Posts: 14



20.02.07 at 02:32:08  
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:
	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.
 
IP Logged
 
Carsten
Mod Author of the Year 2003
*****
Offline

Langå, Denmark
Posts: 3251



Reply #1 - 20.02.07 at 14:45:23  
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.
 
IP Logged
 

If you knock your head against a brick wall and hear a hollow sound, it's not necessarily coming from the wall.
Spikecity
Mod Writer
*****
Offline

New York, New York, USA
Posts: 2630



Reply #2 - 20.02.07 at 16:07:21  
DominicPA wrote on 20.02.07 at 02:32:08:
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:
	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
 
IP Logged
 

Nothing to add here Smiley
DominicPA
Bloody Novice
*
Offline

Posts: 14



Reply #3 - 20.02.07 at 21:09:29  
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
 
IP Logged
 
DominicPA
Bloody Novice
*
Offline

Posts: 14



Reply #4 - 20.02.07 at 21:10:32  
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.
 
IP Logged
 
Spikecity
Mod Writer
*****
Offline

New York, New York, USA
Posts: 2630



Reply #5 - 20.02.07 at 22:01:49  
DominicPA wrote on 20.02.07 at 21:10:32:
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.
 
IP Logged
 

Nothing to add here Smiley
DominicPA
Bloody Novice
*
Offline

Posts: 14



Reply #6 - 20.02.07 at 23:48:31  
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
 
IP Logged
 
Spikecity
Mod Writer
*****
Offline

New York, New York, USA
Posts: 2630



Reply #7 - 21.02.07 at 11:13:51  
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
 
IP Logged
 

Nothing to add here Smiley
Page Index Toggle Pages: 1
© 2000-2009 by - All rights reserved.

SourceForge.net Logo
 The Project | News | Downloads | Mods | FAQ | Templates | Chat | Forum