Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
[Tip] - Common Mistake when hacking your vb
Dean C
Join Date: Jan 2002
Posts: 9,071

England
by Dean C Dean C is offline 03 Jan 2003

Well the most common mistake i made when i was new to install hacks was when it was long lines of code which performed a query.

Many hacks require you to edit the same line and add little fractions to it.

Ok so lets start out with a fresh install.

We install just a part of the 'away user hack'.

The instructions want us to replace this in user.php:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

With this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Ok that's not hard because what we need to replace will be there because the hack is made for a fresh install.

The problem comes when we have to edit that line again and it's different to the instructions. Most people will just look at the first 10 characters of that line and say well i should just replace it. Now if you do your 'away user hack' won't work.

Here's an example in the 'contributor lable' hack. It wants us again to replace this line in user.php:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

With this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

But because we've edited that line of code for another hack it isn't there. This leads many people to go into the support thread and say i haven't got that line of code in my user.php

Well in fact you have but it's slightly changed.

So what we do is look at the code that needs to be changed and we'll look up the line until we find what's different. Here's the code that was added to that line for the away hack:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

So what we do is ignore this line of code and see what's different in the other hack:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

So we see where the bit of code was added after in the line which was:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Then we add the relevent code after it. And your final line of code should look like this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And there we go. We've managed to get past one of the most commonest mistakes when editing your long query lines.

Regards

- miSt
Views: 4330
Reply With Quote
Comments
  #2  
Old 03 Jan 2003, 12:28
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Real name: Dean Clatworthy
Sorry for the stretching of the page - that can't be helped

- miSt
__________________
Dean Clatworthy - Web Developer/Designer
Reply With Quote
  #3  
Old 03 Jan 2003, 12:34
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Real name: Chris Murphy, BSc
I suppose it could be useful for newbies - Perhaps you ought to consider a shorter query? Saves side-scrolling

Satan

Last edited by hellsatan; 03 Jan 2003 at 12:39.
Reply With Quote
  #4  
Old 03 Jan 2003, 17:40
DrkFusion's Avatar
DrkFusion DrkFusion is offline
 
Join Date: Nov 2001
Nice of you to post this hear, many new hackers will get soem use out of it
__________________
ZunePoint.com
Reply With Quote
  #5  
Old 03 Jan 2003, 18:04
JulianD's Avatar
JulianD JulianD is offline
 
Join Date: Jan 2002
Real name: Julian Muņoz
I've had those problems before, thanks for the nice tips Mist
__________________
Julian D. Muņoz
Reply With Quote
  #6  
Old 03 Jan 2003, 20:06
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Real name: Dean Clatworthy
Your Welcome and yes this was aimed at newbies

Regards

- miSt
__________________
Dean Clatworthy - Web Developer/Designer
Reply With Quote
  #7  
Old 03 Jan 2003, 21:57
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Real name: Stefan Kaeser
Very usefull for newbies indeed!
Thanks mist
Reply With Quote
  #8  
Old 03 Jan 2003, 22:13
Logik's Avatar
Logik Logik is offline
 
Join Date: Nov 2002
Real name: Johnny
Yes. Im not new to vB hacks. But this will help alot of new comers.
Reply With Quote
  #9  
Old 06 Jan 2003, 01:29
escoson escoson is offline
 
Join Date: Sep 2002
im a newbie lol so from my perspective it helps to know what i have to do...yet i dont understand the script so i would still be lost
i jus tried doin it and totally messed up and had to upload the backup php file... :cry:
lol
$o.o2
Reply With Quote
  #10  
Old 06 Jan 2003, 12:19
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Real name: Dean Clatworthy
No lol - this is just a guideline of what to do when you get lines of code which have already been hacked

You didn't try and do what it said in this post did you?

- miSt
__________________
Dean Clatworthy - Web Developer/Designer
Reply With Quote
  #11  
Old 16 Jan 2003, 19:19
Automated Automated is offline
 
Join Date: Sep 2002
Wish i found this earilier

/me sighs!
Reply With Quote
  #12  
Old 17 Jan 2003, 17:23
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Real name: Dean Clatworthy
Thanks Automated

- miSt
__________________
Dean Clatworthy - Web Developer/Designer
Reply With Quote
  #13  
Old 18 Jan 2003, 12:55
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
LOL! Great tip Mist. You would hope that someone who is brave enough to hack into his forum program files would be smart enough to work this out for himself like most of us when we first started hacking.
Reply With Quote
  #14  
Old 18 Jan 2003, 13:29
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Real name: Dean Clatworthy
Lol! What do you mean?

- miSt
__________________
Dean Clatworthy - Web Developer/Designer
Reply With Quote
  #15  
Old 18 Jan 2003, 20:41
EchoHype.com's Avatar
EchoHype.com EchoHype.com is offline
 
Join Date: Mar 2002
lol

yes, what do you mean
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Article Options

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


New To Site? Need Help?

All times are GMT. The time now is 02:39.

Layout Options | Width: Wide Color: