vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   [RELEASE v2.x.x] "Have you hacked?" hack (https://vborg.vbsupport.ru/showthread.php?t=27566)

veedee 09-06-2001 10:00 PM

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:

PHP Code:

    <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

PHP Code:

    <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 09-07-2001 12:56 PM

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.

Admin 09-07-2001 01:28 PM

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 09-07-2001 02:52 PM

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 09-07-2001 03:25 PM

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 09-07-2001 03:33 PM

Great thinking James.... just to be on the safe side :)

veedee 09-07-2001 03:51 PM

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 09-07-2001 05:31 PM

Quote:

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 09-08-2001 06:12 PM

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 09-08-2001 10:05 PM

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 :)


All times are GMT. The time now is 10:00 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01082 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete