Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   xBTiT (http://www.bvlist.com/forumdisplay.php?f=30)
-   -   xBtit Hacks problem! (http://www.bvlist.com/showthread.php?t=5852)

Godlake 26th December 2010 14:30

xBtit Hacks problem!
 
Whenever I'm trying to install new hacks through the admin panel I'm getting this error:

http://i54.tinypic.com/25p37sp.png

Is it possible to install hacks manually, if so. How?

I'm using xBtiT v2.2.0 revision 659

Fynnon 26th December 2010 15:19

id say you donwload the latest version of this source available since today and reinstall
there should be a manual way to install any mod, you should see a link called "View manual installation instructions?"

make sure you uploaded the xml file in "hacks" folder and the rest of the hack files
lets say you want to install the imdb mod, you upload the folder with the xml file in hacks folder than install from ACP

Code:

xbtit  has a hack install system designed to make hacking your site easy. the  hack install system takes 100% of the pain out of hacking

however,  it is inevitable with any complex system that conflicts can arise and  it is sometimes necessary to manually install a hack. to a novice a  manual install looks like a problem but i assure you, compared to  hacking of btitracker 1.4.*, xbtit still takes 80% of the pain out of  hacking for even a manual install

we have looked at the nature of  hack conflicts and we note that all hack install systems suffer from  the issue e.g. smf also has hack conflicts. the current policy is not to  invest time in creating a perfect hack install system free from  conflicts because although it is a logical possibility, it is  impracticable and the effort is not justified. we choose at this stage  of the code's development to focus our limited resources on xbtit FM  (http://private.xbtit.com/index.php?topic=1000.0) which will provide a  codebase free of any requirement for hacking for those owners who prefer  not to have to touch the code

i will describe the procedure for both automated and manual installs below. the hack install system is referred to as HIS

how to install a hack

1. extract the hack archive on your local machine

2. you need a ftp user who owns the webroot, root will not work

2.1 ssh login to your server with root and use the following commands to create the ftp user for HIS

useradd -d /var/www/html -s /sbin/nologin USERNAME
passwd USERNAME
(you will be prompted to enter the password twice)
chown -R USERNAME /var/www/html

3. ftp the hack directory and files to your server directory /var/www/html/hacks

4. on your site Admin Panel > Hacks Settings

4.1 select the hack > confirm
4.2 enter the ftp user and password
4.3  if the home of the ftp user is not /var/www/html/ then enter the path  to the html directory (otherwise leave empty, the default is good)
4.4 the defaults localhost and port 21 will work on most servers
4.5 > confirm, the hack is installed

troubleshooting a hack install

if at 4.5 above the hack does not install it can be because:

a) ftp user details incorrect
b) path to webroot incorrect
c) ftp server details incorrect
d) there is a hack conflict

how to fix a hack conflict

a  hack typically touches many files but when there is a hack conflict the  system will display only the files and the code requiring attention.  you should assume that all other code changes are possible but have not  yet been performed. to be clear, the system only displays errors and is  silent on success

HIS works by using an .xml file to search and  replace code within .php files.  a hack conflict arises when the search  string in the .xml file does not match the target code in the .php

the  fix is to manually locate what the .xml is looking for, update the .xml  with the new search string, then hack the code in the .xml  to take account of the already installed hack which is causing the  conflict

you can either A. hack the .php directly, or B. hack the  hack and use HIS to apply it. the method here is B (although A is  quicker, the benefit of B is the hack will show as installed in HIS)

1. login to your site with ftp and navigate to /var/www/html/hacks/NEWHACK/ where NEWHACK is an example

2. take a backup of the .xml file

3. open the .xml file to edit

3.1 find the section for the .php file reported by HIS
3.2 find the string reported by HIS

3. navigate to the .php file reported by HIS

3.1 open the .php file to edit
3.2 using the string in .xml locate the target code in the .php file

3.2.1 the search string and the target code will be similar, and most likely differ only on a couple of variables
3.2.2 try finding small sections of the search string to locate the potential target code
3.2.3 eliminate alternatives by comparing the entire search string with the entire target code
3.2.4 in .php files a query appears only once which gives you a big clue on identifying the target code

4. copy the target code from the .php and paste it into the .xml replacing the string

5. use your smarts and cunning to hack the code in the .xml to the required functionality  http://www.btiteam.org/smf/Smileys/default/tongue.gif

6. apply the hack using HIS

6.1  because you have entered the correct search string into the .xml HIS  will find and replace that code with whatever code you have set in the  section of the .xml and HIS will report the hack is  installed. do not conclude you got the code changes right, you must test  the hack functionality and edit the code as necessary

how to manually install a hack

repeat, the .xml file describes what code to find in what .php file and gives the replacement code

find in .php:

from .xml

replace with:

from the .xml

if is not found in .php then you have a hack conflict. the fix is described above in the section how to fix a hack conflict

Read more:  http://www.btiteam.org/smf/index.php...#ixzz19Dv7CAm5

http://www.btiteam.org/smf/index.php...15405.msg98219

Godlake 26th December 2010 16:24

Well now it redirects me to the index page instead of getting the error :S
What now?

Fynnon 26th December 2010 16:28

does this happend to all mods you install or only this one?
what mod are you trying to install ?

Godlake 26th December 2010 16:32

I tried to install Categories Block plus by Liroy, also Forum_Signature which is in the hacks folder as default.
But same thing, redirects me to index page. I think this happens to all hacks.

Fynnon 26th December 2010 16:56

this one: http://www.btiteam.org/smf/index.php?topic=10376.0 ?

when i tried to install it i got error for not having enough permissions so i chosed to try "manual"

1. In language/english/lang_blocks.php find this:

PHP Code:

?> 



2.
Add this before it:

PHP Code:

$language["BLOCK_CAT"]="Categories"



3.
Copy toCopy/categories_block.php as blocks/categories_block.php

4. Run the following SQL Query via phpMyAdmin:

PHP Code:

INSERT INTO `xbtit_blocks` (`content`, `position`, `sortid`, `status`, `title`, `cache`, `minclassview`, `maxclassview`) VALUES ('categories''l'11'BLOCK_CAT''no'38); 

http://img814.imageshack.us/img814/1174/cati.jpg

fat-tw@t 8th January 2011 07:01

Quote:

Originally Posted by Godlake (Post 26173)
Whenever I'm trying to install new hacks through the admin panel I'm getting this error:

http://i54.tinypic.com/25p37sp.png

Is it possible to install hacks manually, if so. How?

I'm using xBtiT v2.2.0 revision 659


Turn off gzip in admin panel

Me 24th July 2012 08:49

Thanks!
 
Thank you so much for that... All fixed now. :drink:

David244us 31st August 2012 03:15

GodLake don't feel alone m8, i'm having the same issues with gzip off


All times are GMT +2. The time now is 17:52.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.