vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   [HTL] Hack Tracking Log (https://vborg.vbsupport.ru/showthread.php?t=60735)

KuraFire 02-03-2004 03:09 PM

There is no automatic uninstall, but here's how to:


1. Go to Manage Hacks -> Hack Tracking Log -> Run Install Sequence -> Run VERBOSE TEST installation -> continue to the File Modifications step. Now keep this page open in a separate window until step 8!
2. remove the three templates
3. run in debug mode
4. go to Manage Hacks
5. go to the Controls drop-down for the Hack Tracking Log, choose Remove Phrases
6. Confirm to remove all HTL phrases
7. drop the tables `hack` and `hacklog`
8. remove the file modifications (from the browser window from step 1)
9. remove all HTL files (see first post)


That would uninstall it :)

NuclioN 02-03-2004 04:14 PM

Invalid SQL: ALTER TABLE vb3_language ADD phrasegroup_hacklog MEDIUMTEXT NOT NULL
mysql error: Duplicate column name 'phrasegroup_hacklog'

--edit--

deleted in phpmyadmin the phrasegroup_hacklog and now it installs. :)

KuraFire 02-03-2004 04:37 PM

Quote:

Originally Posted by NuclioN
Invalid SQL: ALTER TABLE vb3_language ADD phrasegroup_hacklog MEDIUMTEXT NOT NULL
mysql error: Duplicate column name 'phrasegroup_hacklog'

--edit--

deleted in phpmyadmin the phrasegroup_hacklog and now it installs. :)

Ah, of course...

There we go :)

MaceNL 02-04-2004 12:21 PM

Thanks allot for this hack installing as we speak ;)

KuraFire 02-04-2004 09:04 PM

Hey, good to see another dutchie! *waves to MaceNL* :)

Black Vivi 02-05-2004 03:15 PM

i was hoping to use this for my shoutbox, but i can't
you can only add one phrase type, i need one for the admin cp script i made to :(

still, this is a very good and useful hack, thanks for releasing it

KuraFire 02-05-2004 03:31 PM

Quote:

Originally Posted by Black Vivi
i was hoping to use this for my shoutbox, but i can't
you can only add one phrase type, i need one for the admin cp script i made to :(

You can add multiple phrasetypes if you wish, in several ways:

- make your admin-end a separate hack (kinda lame but it works fine);
- use the Custom PHP Code section to make a custom mini-script that inserts phrases into your admin cp (or perhaps moves them after they have been inserted into the front-end group);

However, keep in mind that a hack that uses its own phrases gets its own language table column, and too many of those will eventually start slowing down page loads (not for a while yet, though). A good solution is to just merge both phrase groups into one for your hack, unless they are both really huge. For the HTL itself, for instance, the front-end uses like, what, 15 phrases? Those just went into the hacklog phrasegroup along with the 240~245 admin-end phrases. :)

sajjid 02-05-2004 05:04 PM

it would be great if someone can make uninstaller scrpit because i installed it on friends board and it seems like twlight zone its not not installed.
first it went to step 5 and my browser crashed nothing to do with the hack but now i try reinstalling it it only goes to step 2 next step i dont seei tried deleting the hack, hacklog and 'phrasegroup_hacklog'tables through phpMyAdmin but still no joy.
can someone help me get me out of this problem

KuraFire 02-05-2004 09:51 PM

Quote:

Originally Posted by sajjid
it would be great if someone can make uninstaller scrpit because i installed it on friends board and it seems like twlight zone its not not installed.
first it went to step 5 and my browser crashed nothing to do with the hack but now i try reinstalling it it only goes to step 2 next step i dont seei tried deleting the hack, hacklog and 'phrasegroup_hacklog'tables through phpMyAdmin but still no joy.
can someone help me get me out of this problem

If you went to step 5, you could've just started to use the HTL without a problem and then just use the admin-end to do the last step...

Trying your own uninstall stuff will undoubtedly have made matters much more complicated.

If you want, you can create an admin account for me (with sql rights) on your site so that I could check some things and fix your setup and install the HTL for you. If you prefer not giving me access, you'll have to PM me and then we'll try to resolve this in private :)

sajjid 02-06-2004 09:26 AM

pm sent with access info many thanks

StonedStoopid 02-06-2004 11:04 PM

Is it safe to install this in rc4? It just came out.

KuraFire 02-06-2004 11:35 PM

Quote:

Originally Posted by StonedStoopid
Is it safe to install this in rc4? It just came out.

Yup, I heard from dan that it works fine on RC4, and Kier told me a while ago that he couldn't think of any reason why it wouldn't work fine on RC4, too. :)

Dan 02-06-2004 11:54 PM

Quote:

Originally Posted by KuraFire
Yup, I heard from dan that it works fine on RC4, and Kier told me a while ago that he couldn't think of any reason why it wouldn't work fine on RC4, too. :)

Yes I am correct I have yet to find anything that will make it not work with RC4

riyatch 02-07-2004 03:28 AM

i just tried to install this hack and it seems to be working fine except that it does not show up in the admincp menus on the left side. the only way i can get to it is to go to .../admincp/hackadmin.php
any input would be appreciated.

mcncyo 02-07-2004 05:14 AM

how do we upgrade with your hack install for vb3 to vb4?

KuraFire 02-07-2004 08:44 AM

Riyatch, you have to make a few file modifications, one to ./admincp/index.php and one to ./includes/adminfunctions_navpanel.php

Then, you have to refresh your navpanel for it to start showing up :)


Cyo: look at the first post in this thread, there's a big link:

Tutorial
How to upgrade your vBulletin using the Hack Tracking Log

That'll guide you through the upgrade process in only 4 simple steps :)

Natch 02-07-2004 09:16 AM

Works fine for me :) :)

<-- running RC4

Zelda-King 02-07-2004 09:24 AM

I have it running fine on RC4. If you're upgrading (overwriting your hacked files) AFTER having installed the HTL you need to redo all the PHP and of course, you can't go to the hack menu from admincp/index.php to do it. Either go direct to admincp/hackadmin.php or make a note of all the PHP edits before upgrading.

KuraFire 02-07-2004 09:52 AM

Quote:

Originally Posted by Zelda-King
I have it running fine on RC4. If you're upgrading (overwriting your hacked files) AFTER having installed the HTL you need to redo all the PHP and of course, you can't go to the hack menu from admincp/index.php to do it. Either go direct to admincp/hackadmin.php or make a note of all the PHP edits before upgrading.

The HTL provides a method for that :)

The HTL helps you upgrade your vBulletin:

https://vborg.vbsupport.ru/showthread.php?t=60760 <-- there's how to do it VERY EASILY! :)

riyatch 02-07-2004 01:30 PM

Quote:

Originally Posted by KuraFire
Riyatch, you have to make a few file modifications, one to ./admincp/index.php and one to ./includes/adminfunctions_navpanel.php

Then, you have to refresh your navpanel for it to start showing up :)


Cyo: look at the first post in this thread, there's a big link:

Tutorial
How to upgrade your vBulletin using the Hack Tracking Log

That'll guide you through the upgrade process in only 4 simple steps :)


KuraFire, thanks for the response.
what modifications to those files do i have to make??
sorry for the lame question, just starting to learn this stuff.

SloppyGoat 02-08-2004 01:57 AM

Great!!! Does this mean that the Miserable Users hack will be re-released for HTL soon?

PiotrasG 02-08-2004 02:02 AM

finally got it installed great hack, makes life lots easier.

riyatch 02-08-2004 02:41 AM

Quote:

Originally Posted by riyatch
KuraFire, thanks for the response.
what modifications to those files do i have to make??
sorry for the lame question, just starting to learn this stuff.

kura, please disregard my last question. i got it working and its a great mod!!!!!!! thanks

KuraFire 02-08-2004 09:51 AM

Glad you got it working :)

SloppyGoat: Yeah, I'll release the HTL version of the Miserable Users for vB3 soon :)

Kalakov 02-08-2004 09:59 PM

just installed on rc4 its pretty easy :)

SloppyGoat 02-08-2004 11:29 PM

Cool! Nice work!

Kohhal 02-12-2004 09:59 AM

Quick question : when running the install sequence, if the install doesn't finish for whatever reason then it's listed as unfinished. You then have 2 options, delete or continue - but how do you edit the hack if there was a mistake in it? ie. set it back to it's pre-installed status? Maybe deleting it from here would do it but I don't want to risk it right now...

NuclioN 02-12-2004 10:58 AM

Altough this hack has a great potential there are some issues with it also. I've installed the shoutbox hack and it does not remove pre-installed tables properly so the install stops and it leaves an unfinished hack. Removing the tables by hand in the database is to difficult, it installs tables all over the place. When an author does not write a text install/remove instruction your database is full of useless tables or you must have a backup with all tricky consequences eventualy when you want to dump this. I hope this incident with the shoutbox is a single event and i hope all HTL hacks will have a uninstaller/install textfile also.

KuraFire 02-12-2004 09:10 PM

@ TheMasterG:
Nominally, a hack should not be installed when there's a mistake in it. There are various ways of going around the 'safety measures'. The easiest would just be to manually update the hack's status in your database. To do so, verify what hackid it has, then run this query:
UPDATE hack SET atstep=-1 WHERE hackid=THATHACKID
Note 1) keep in mind that if you're using a table prefix, you have to add that before "hack";
Note 2) replace THATHACKID with the hackid, of course :)

Other ways are, for example, to just delete it, upload the new .htl file (the one that isn't faulty), import that to the database (NO real install!), then edit that hack and disable all steps that you've already done, and then save & do a real install for that hack, thus continuing where you left off.

@ NuclioN:
I don't really get what you mean... :(

Link14716 02-12-2004 09:23 PM

I found a bug in the generation of phrase XML files.

When you have a set of phrases that use the hack prefix and the phrasetype prefix of your custom prefix, along with a group that only have your hack prefix (i.e. are meant to go into the custom grou), two sets of <phrasetype name="xxx"> would appear, and only the second group would be imported - thus meaning that a lot of phrases aren't installed properly.

Andreas 02-13-2004 07:11 AM

@KuraFire
Have you thought about adding check if a phrasegroup does already exist before trying to create it?
That might be useful for hack-updates.

KuraFire 02-13-2004 07:46 AM

Quote:

Originally Posted by KirbyDE
@KuraFire
Have you thought about adding check if a phrasegroup does already exist before trying to create it?
That might be useful for hack-updates.

For suggestions, please use the Hack Tracking Log Suggestions thread - more organized (and a much greater chance that it will be in HTL 1.1)

most likely the new HTL with its improved features and checking for upgrades will have this, yes :)

KuraFire 02-13-2004 07:47 AM

Quote:

Originally Posted by Link14716
I found a bug in the generation of phrase XML files.

When you have a set of phrases that use the hack prefix and the phrasetype prefix of your custom prefix, along with a group that only have your hack prefix (i.e. are meant to go into the custom grou), two sets of <phrasetype name="xxx"> would appear, and only the second group would be imported - thus meaning that a lot of phrases aren't installed properly.

Can you please give an example??

Link14716 02-13-2004 02:26 PM

Code:

phrasetype name="Shoutbox Hack">
<phrase name="shoutbox_add_new_shout">SHOUT! Add a New Shout!</phrase>
<phrase name="shoutbox_are_you_sure_you_want_to_x_this_message">Are you sure you want to {1} this message? {2}</phrase>
-
        <phrase name="shoutbox_copyright">
<b>Shoutbox {1} by <a href="https://vborg.vbsupport.ru/member.php?s=&action=getinfo&userid=15527">squall14716</a> for <a href="http://www.vggmn.com">VGGM</a>.<br>Templates (mostly) by <a href="http://www.movieforums.net/index.php?">TWTCommish</a> for the <a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=38698">vB2 Shoutbox 1.0</a>.</b>
</phrase>
<phrase name="shoutbox_delete">delete</phrase>
<phrase name="shoutbox_delete_a_shout">Delete a Shout</phrase>
-
        <phrase name="shoutbox_deleted_successfully">
<br>The shout has been deleted. You may still restore it, though...
</phrase>
<phrase name="shoutbox_disabled">Disabled</phrase>
<phrase name="shoutbox_edit_a_shout">Edit a Shout</phrase>
<phrase name="shoutbox_edited_successfully"><br>The shout has been edited...</phrase>
<phrase name="shoutbox_enabled">Enabled</phrase>
<phrase name="shoutbox_exclude_shouts_by_user">Exclude shouts by user:</phrase>
<phrase name="shoutbox_excluding">Excluding</phrase>
<phrase name="shoutbox_forumhome_last">Last</phrase>
<phrase name="shoutbox_forumhome_latest">Latest</phrase>
<phrase name="shoutbox_forumhome_shout">Shout</phrase>
<phrase name="shoutbox_forumhome_shoutbit">Posted {1} {2} by</phrase>
<phrase name="shoutbox_forumhome_shouts">Shouts</phrase>
<phrase name="shoutbox_forumhome_x_y_z">Shoutbox - {1} {2} {3}</phrase>
<phrase name="shoutbox_go">Go!</phrase>
<phrase name="shoutbox_hdelete">hard delete</phrase>
<phrase name="shoutbox_hdelete_a_shout">Hard Delete a Shout</phrase>

and it continues down to
Code:

<phrase name="shoutbox_shoutbit_edit">(edit)</phrase>
<phrase name="shoutbox_shoutbit_hdelete">(hard delete)</phrase>
<phrase name="shoutbox_shoutbit_ignored">This user is on your ignore list.</phrase>
<phrase name="shoutbox_shoutbit_incoventry">This user is in coventry...</phrase>
<phrase name="shoutbox_shoutbit_restore">(restore)</phrase>
<phrase name="shoutbox_shoutbox">Shoutbox</phrase>
<phrase name="shoutbox_shouted_in_the_last_x_days">Shouted in the last  {1} days</phrase>
<phrase name="shoutbox_shouts">shouts</phrase>
<phrase name="shoutbox_shouts_by_user">Shouts by user:</phrase>
<phrase name="shoutbox_shouts_per_page">Shouts per page:</phrase>
<phrase name="shoutbox_smilies_enabled_disabled">{1} Smilies {2} {3}</phrase>
<phrase name="shoutbox_the_shoutbox_at">The Shoutbox @</phrase>
<phrase name="shoutbox_vbcode_enabled_disabled">{1} vB Code {2} {3}</phrase>
</phrasetype>

Then, later into the XML file, you see this lovely block...
Code:

<phrasetype name="Shoutbox Hack">
<phrase name="shoutbox_shoutbox_leaderboard">Shoutbox Leaderboard</phrase>
<phrase name="shoutbox_shoutbox_options">Shoutbox Options</phrase>
<phrase name="shoutbox_shoutbox_stats">Shoutbox Stats</phrase>
<phrase name="shoutbox_shoutbox_stats_last_24_hours">Last 24 Hours</phrase>
<phrase name="shoutbox_shoutbox_stats_shouts_today">Shouts Today</phrase>
<phrase name="shoutbox_shoutbox_stats_total_shouts">Total Shouts</phrase>
<phrase name="shoutbox_shoutbox_stats_your_shouts">Your Shouts</phrase>
</phrasetype>

When ran through the installer, only the second, smaller block is actually inserted, leaving important phrases untouched. I've had to manually edit the XML file to put them all into one group. The prefix is shoutbox and the fieldname for the group I added is also shoutbox.

KuraFire 02-13-2004 03:14 PM

Can you send me your temporary phrases file, perhaps?

either by PM or by just emailing it to me, you can ask for my address on irc :) (i'd rather not put it public)

Link14716 02-13-2004 03:16 PM

Quote:

Originally Posted by KuraFire
Can you send me your temporary phrases file, perhaps?

either by PM or by just emailing it to me, you can ask for my address on irc :) (i'd rather not put it public)

I'll just attach it here.

KuraFire 02-13-2004 03:28 PM

Yeah, okay, it's as I thought..

you're using varnames that start off with: shoutbox_shoutbox_... and that confuses the system, as there shouldn't actually yet BE a phrasetype "shoutbox".

I'll try and improve the code so that it checks only for vBulletin's own phrasetypes, and then matches on those, instead of checking for all EXISTING phrasetypes.

adusei 02-13-2004 08:07 PM

INSTALLATION TROUBLE--->

I always stuck in step 2/5.
What can I do?
I use vB3 RC4.
Files are surely uploaded in binary mode.
Don't know what to do now. :disappointed:
Please help.

TIA and regards,

adusei

KuraFire 02-13-2004 10:56 PM

Quote:

Originally Posted by adusei
INSTALLATION TROUBLE--->

I always stuck in step 2/5.
What can I do?
I use vB3 RC4.
Files are surely uploaded in binary mode.
Don't know what to do now. :disappointed:
Please help.

TIA and regards,

adusei

If you don't get a Proceed button in step 2/5, go to your database and delete the column phrasegroup_hacklog on the language table.

adusei 02-14-2004 07:35 AM

Quote:

Originally Posted by KuraFire
If you don't get a Proceed button in step 2/5, go to your database and delete the column phrasegroup_hacklog on the language table.

Hello KuraFire,
first of all thanks a lot for your reply!
Hope, I did understand you proper (since I'm a bloody beginner with dbs and vB...).
I tried to delete the tbls "hack" and "hacklog" to start the installation again. When I do the query:

ALTER TABLE post DROP hack;

I will get an error msg:

________________________________________________
An error occured while attempting to execute your query. The following information was returned.
error number: 1091
error desc: Can't DROP 'hack'. Check that column/key exists
________________________________________________

And now I stuck again. What is my mistake?

Regards,

adusei


All times are GMT. The time now is 03:20 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.01799 seconds
  • Memory Usage 1,848KB
  • 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
  • (3)bbcode_code_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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