PDA

View Full Version : [RELEASE v2.x.x] "Have you hacked?" hack


veedee
07 Sep 2001, 13:36
This has to be the smallest hack I have seen. It adds no functionality to your forum.

So what is it doing in here? you might ask ?

Well the idea of the hack is that when you install a hack to your forums, you click the link in your admin area which takes you to a reply screen for a thread I have started in "Chit Chat"

This enables people to see what hacks are being added at the current time and also to see how hard people found the install.

1. So in your admin directory, find and make a copy of index.php
2. Download this index page and open it up in your text editor.
3. Find the following line:


<TD nowrap><B><a href="../index.php?s=<?php echo $session[sessionhash]; ?>"
target="_blank">Go to your Forums Home Page</A></B> </TD>


4. Above this code, add this line


<TD nowrap><a href="http://www.vbulletin.com/forum/showthread.php?&threadid=27565" target="_blank">Click here if you have added a hack</a><TD>




Your admin area should look like this:

http://128.241.192.9/hackadded.jpg


Great, all set. I would love to see if people make use of this, quite a lot of 'shy' and unexperianced coders thought this was a good idea for a confidence booster :)

Please note: I have modified these instructions to remove the problem regarding license numbers that is discussed in this thread.
JamesUS, vBulletin Moderator + Donut Muncher :D

Scott MacVicar
07 Sep 2001, 13:56
you do realise you just posted your vbulletin member number?

echo $versionnumber.doformiddle("removed");

this is unique to each copy of vBulletin as I had a different one from which you posted.

Chen
07 Sep 2001, 14:28
You do realise it doesn't matter?

As long as you don't have the password, you can't do anything with that number.

Scott MacVicar
07 Sep 2001, 15:52
yeah, but its still not good practice to reveal that kind of information. Also the fact that some people might find that hack hard to install as the instructions differ from board to board.

Also what happens if the user is not registered on vBulletin, they get the please login msg.

JamesUS
07 Sep 2001, 16:25
I'm going to modify the instructions slightly so that this is no longer an issue.
We don't want numbers revealed, nor do we want people to have to insert theirs when they install the hack (as most people won't bother).

BradC
07 Sep 2001, 16:33
Great thinking James.... just to be on the safe side :)

veedee
07 Sep 2001, 16:51
Cool cheers - you may think this 'hack' is tacky (which it is) but when I first got vBulletin I was afraid of messing with the code as I thought it was only for pros, which it isnt :)

Thanks for modifying the code for me Jimbo ! :)

JamesUS
07 Sep 2001, 18:31
Originally posted by veedee
Cool cheers - you may think this 'hack' is tacky (which it is) but when I first got vBulletin I was afraid of messing with the code as I thought it was only for pros, which it isnt :)

Thanks for modifying the code for me Jimbo ! :)

Not a problem :) I didn't really modify the code, just the instructions.

DarkReaper
08 Sep 2001, 19:12
Why not something more useful, like something that you can click to say which hacks you've added, what files they modified, and what the modifications were, and these were stored in the database so when upgrading it would make things easier?

BradC
08 Sep 2001, 23:05
I am slowly working on something for me to keep track of stuff that I modify.. somewhat like this.

I have it where it is kept in another table that I just use a easy submit form.. with text boxes for me to fill in. lol

like Hack Name, Last Modified, Creator, Files Modified, Templates Modified, New Files, New Templates.

and I just fill in the rest.. and go from there.

It helps, so I don't accidently forgot to upgrade or intergrate some code.. like from a file I might have just put one line of code in or changed just some letter around.

I just use it in my admin panel, and I print it out when it comes time to updating :)

deniskin
09 Sep 2001, 00:16
I have mixed buttons