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)

madhouse 01-27-2004 12:04 AM

And Kura , not to be an arse , but your instructions for the last file were pretty point blank....

At the end of the php file

after the last }

place this below

{CODE}


ya know what I mean :)

squawell 01-27-2004 12:10 AM

Quote:

Originally Posted by KuraFire
IF YOU HAVE THIS PROBLEM:

Code:

Call to undefined function: construct_nav_option2()
You PROBABLY mis-placed the file edit in adminfunctions_navpanel.php!

The file edit in adminfunctions_navpanel.php has to go BELOW this:
PHP Code:

       </script>
        <?php
    
        
echo $controls $_NAV $_controls;
    
     }

Pay close attention to the closing bracket:
}

it all has to go BELOW that!


This is *most likely* what you did wrong - paste the new code 2 lines too high. :)

thankz point that now everything looks great....AND i find why i cant install last night?

Kura in ur readme file u say this:
Quote:

EXAMPLE:
If your forum is at www.site.com/forum/ and you want to place
your htlfiles directory one level below the WEBroot, your
config_htl.php should show this:

$htlfilesdir = '../../htlfiles';
AND early i change the path to
Quote:

$htlfilesdir = './htlfiles';
and thats work for me!!

PS:my address same as ur examplewww.site.com/forum/.

KuraFire 01-27-2004 12:14 AM

Quote:

Originally Posted by madhouse
Sorry KuraFire ,

I have it exactly like you said

</script>
<?php

echo $controls . $_NAV . $_controls;

} <<<<<<<-----------\

right after the bracket

What happens if you open http://www.yoursite.com/forum/includ...s_navpanel.php in your browser? I'm betting you have a parse error....

madhouse 01-27-2004 12:20 AM

ITs a blank page

KuraFire 01-27-2004 12:42 AM

Quote:

Originally Posted by madhouse
ITs a blank page

weird, I can't place the cause of this at all...

If the file on the server really has the code placed after the } then it should work fine...
I am gonna sleep now, so I'll get back to you on this tomorrow.


On ANOTHER note, I just sent out an update on the HTL and updated the first post. A bug was found again and fixed again, this time it should be fixed PROPERLY! (I caused this problem with my earlier bug fix... *shame*)

Please update ASAP everyone :)

Link14716 01-27-2004 12:42 AM

Quote:

Originally Posted by KuraFire
oh christ, don't tell me I made a typo in the updated zip's hackadmin.php.....


... ++++! I did... :(

*sighs and updates again*

Works for me now. Thanks Kura. :)

My shoutbox will be HTL exclusive tommorow probably.

Nice job again, Kura. :)

madhouse 01-27-2004 01:12 AM

Quote:

Originally Posted by KuraFire
weird, I can't place the cause of this at all...

If the file on the server really has the code placed after the } then it should work fine...
I am gonna sleep now, so I'll get back to you on this tomorrow.


Its ok man I just went ahead and uninstalled it...well just uploaded the back up files of the modified file.

I did notice though the error seems like its coming from admin/index.php

Link14716 01-27-2004 01:14 AM

That's because it can't find the function in includes/adminfunctions_navpanel.php. You obviously did something wrong with that file.

madhouse 01-27-2004 01:31 AM

Link , I have repeated this hack 5 times over , and still the same issue .. I have checked and rechecked it..

The same error still arises over and over again....

The steps he gave are not hard to follow, so I would have to disagree with you that I did something wrong with that file.

Wierd thing is I can access the Hack log by going directly to the admin file hackadmin.php,
with no problems and it will do all functions.

One question for you Kura , I am running RC2 , and I have notice that the hack was for 3.0.0 RC 3 , I do not know if there was that big of a differnce betweent the 3 files that you had added the extra code to.

squawell 01-27-2004 01:48 AM

hello Kura i found another problem when i click the style manger on the top of that page i got this error message
Code:

Parse error: parse error, unexpected T_IF, expecting ')' in C:\Apache Group\Apache2\htdocs\forum\includes\adminfunctions_template.php on line 3080
the line 3080 is
Code:

if ($_SERVER['PHP_SELF'] == "/$admincpdir/template.php")
AND when click the expand button i got this error
Code:

Warning: implode(): Bad arguments. in C:\Apache Group\Apache2\htdocs\forum\includes\adminfunctions_template.php on line 1147
the line 1147 is
Code:

#AND title NOT IN('" . implode("', '", $_query_special_templates) . "')
u can take look the attach pic
any idea?thankz~

Link14716 01-27-2004 03:52 AM

You are supposed to add the code in ncludes/adminfunctions_template.php UNDER the
Code:

);

neocorteqz 01-27-2004 04:03 AM

Damn fine Job. :)

This should ake my life alot easier now.

eger 01-27-2004 04:23 AM

something i am not clear on.

will this hack support hacks that i have already installed?

or should i uninstall those hacks (if possible) and then install this hack so it recognizes them?

i am unclear on that part. anyone have some info for me?

squawell 01-27-2004 04:36 AM

Quote:

Originally Posted by Link14716
You are supposed to add the code in ncludes/adminfunctions_template.php UNDER the
Code:

);

thankz Link:Dnow everything work great!!

KuraFire 01-27-2004 08:09 AM

Quote:

Originally Posted by eger
something i am not clear on.

will this hack support hacks that i have already installed?

or should i uninstall those hacks (if possible) and then install this hack so it recognizes them?

i am unclear on that part. anyone have some info for me?

Your questions are answered here:
http://everythingvb.com/faq.php?faq=..._htl_usage_faq

:)

KuraFire 01-27-2004 08:10 AM

Madhouse and Squawel: I think you both mis-placed a file edit, or have any existing hacks that mess up, OR have pasted the file edits in the right place but incompletely.... Only reason I can come up with why it won't work...

Kohhal 01-27-2004 10:22 AM

This is a great hack, I just have one question, for now :p

Apart from it's normal function, is there a way of using the HTL on my test forum so that when I update my live site with vB3 I could have someway of using it to update/reinstall any template changes/hacks etc. that I might have installed on my test forum to make the upgrade on the live site easier.

This is hard to explain, but say I work on my test forum, installing hacks, making template and style changes etc. that I want on my live site eventually, would it then be possible to export these mofications with the HTL somehow and on upgrading my live site, install the HTL hack and then somehow import these changes or at least a log or something of the changes I had made to make the upgrade quicker?

Hope that makes sense, again, great hack, it'll be the first one I install !!

G :D

KuraFire 01-27-2004 10:31 AM

Quote:

Originally Posted by TheMasterG
This is a great hack, I just have one question, for now :p

[ ... some slightly confusing question(s) ... ]

G :D

Ummmm.....

What you CAN do, for instance:

1. develop all hacks and install all hacks on your test board using the HTL
2. install the HTL on the live board (very simple and light-weight) and install all of the hacks using the HTL Installers on your live board
3. this works for both file AND template edits that you've tracked using the HTL. If you make any changes of your own without logging them into the HTL then you'll have to look them up on your own, too.

Alternatively, you can copy-overwrite all of your live site's files with the ones from your test board, instead of doing all of the file edits all over again. :)

Bro_Joey_Gowdy 01-27-2004 12:43 PM

Ive been waiting for this, thanks KuraFire, clicks install.

VeoMorphine 01-27-2004 01:37 PM

so this is like a vbhacker on crack? I like it. i'll install it when i get home. This would make a great satandard for vb hacking. Since it will make installs so much easier.

KuraFire 01-27-2004 01:55 PM

Quote:

Originally Posted by VeoMorphine
so this is like a vbhacker on crack? I like it. i'll install it when i get home. This would make a great satandard for vb hacking. Since it will make installs so much easier.

Yup, except this does _not_ do automatic file edits, you still have to edit your files BY HAND!

most people prefer it that way, anyway :)

Kohhal 01-27-2004 02:13 PM

Quote:

Originally Posted by KuraFire
Ummmm.....

What you CAN do, for instance:

1. develop all hacks and install all hacks on your test board using the HTL
2. install the HTL on the live board (very simple and light-weight) and install all of the hacks using the HTL Installers on your live board
3. this works for both file AND template edits that you've tracked using the HTL. If you make any changes of your own without logging them into the HTL then you'll have to look them up on your own, too...

Nice one, will do :D

Link14716 01-27-2004 07:05 PM

Yeah, vbHacker on crack, except this puts the hack in the database and files, and is generally a whole lot better. None of my vB2 hacks were made for vbHacker, though all of my hacks will have HTL compatible versions.

KuraFire 01-27-2004 07:11 PM

Quote:

Originally Posted by Link14716
Yeah, vbHacker on crack, except this puts the hack in the database and files, and is generally a whole lot better. None of my vB2 hacks were made for vbHacker, though all of my hacks will have HTL compatible versions.

Always nice to see people be happy with my work :)

KuraFire 01-27-2004 07:22 PM

I'm writing HTL 1.05 at the moment, and adding some of the features planned for HTL 1.1 already.

If there's anything you'd like to see in the HTL real soon, tell me now please. :)

Link14716 01-27-2004 07:26 PM

Upgrade scripts - they require that the hack that it upgrades has been imported (at least) and the upgrade .htl just updates whatever needs to be updated in the hack information and runs its own set of steps. I don't know if this can be done already, but if it cannot, it would be something that is needed. :)

KuraFire 01-27-2004 08:31 PM

Quote:

Originally Posted by Link14716
Upgrade scripts - they require that the hack that it upgrades has been imported (at least) and the upgrade .htl just updates whatever needs to be updated in the hack information and runs its own set of steps. I don't know if this can be done already, but if it cannot, it would be something that is needed. :)

I'm looking into ways how I can do this.

What I'm CURRENTLY thinking of:


Adding an extra option for each hack (along with Show on front-end, is finished, is installed, etc. etc.) that says: Is Upgrade Script.

Then, if people run that 'hack' (which is labelled Is Upgrade Script) and attempt to install it (thus, attempt to upgrade their existing hack), the HTL will do:

1) a check on the system to see if the hack exists, if not it will STOP THE UPGRADE with an error page.
2) if the hack DOES exist but the version of the existing one is higher or equal to the one from the Upgrade, it will STOP THE UPGRADE with an error page.
3) if the hack exists and is a lower version, then it will first see if the existing hack has any phrases (by checking the `phrasevarnames` column of the hack in the database - this column already holds ALL varnames of ALL imported phrases for each hack). Also, it will check to see if this upgrade has the IMPORT PHRASES step as part of the upgrade. If so, and if the hack has existing phrases, it will remove all phrases and the database columns / rows made for those phrases, rebuild all languages, and then during the IMPORT PHRASES step it will import all phrases again, in an orderly fashion as usual.
4) next, the same for templates. If the upgrade .htl has the import templates step, it will check for the existance of templates for the old version of the hack, and if they exist, remove them first and then reimport the new ones.
5) same for settings;
6) now, we are still actually _before_ step 1 of the HTL install routine at this point, the only thing we may have had happen is that things were removed in preparation of being re-added later on in the 'install' (upgrade) of this hack. So at this point, we will do a REPLACE INTO query on the hack table to update our hack with the newest version. THEN we will continue with the rest of the installation, and if there is nothing else to do, we just forward straight away to the Upgrade Complete page. :)


Does that sound good, people?

Link14716 01-27-2004 08:35 PM

Sounds good to me. One more suggestion: it seems all new templates go to styleid 1 (or maybe the default style), correct? Can you make that an option? I want all new templates to go to styleid 2, which is a fake "Global Style" and is not user selectable (so isn't the default).

Natch 01-27-2004 08:41 PM

KuraFire - can u check out my HTL compatible hacka nd tell me why my one of installers (not I tho) is getting an SQL error?

https://vborg.vbsupport.ru/showpost....9&postcount=11
Code:

mysql error: Unknown column 'changetype' in 'field list'

mysql error number: 1054


KuraFire 01-27-2004 08:41 PM

Quote:

Originally Posted by Link14716
Sounds good to me. One more suggestion: it seems all new templates go to styleid 1 (or maybe the default style), correct? Can you make that an option? I want all new templates to go to styleid 2, which is a fake "Global Style" and is not user selectable (so isn't the default).

That's currently an issue with the HTL, yes. It will insert them into your default style.

I'm looking into ways to improve this situation. For instance, not everyone will want the templates added to EVERY style, yet some people do. However, I can't just have them be imported into the MASTER style unless people are okay with having to manually re-import all templates for Each hack after every vBulletin upgrade they do (vb upgrades delete the master style first and then recreate it).

Maybe I should hold a poll about that.... and see if I can create some sort of feature (like List All Modifications) that reiterates over step 3 for ALL the hacks in one single sitting (ie. it will do the Import Templates step for every hack that has templates to import).

If I can make the latter, and import templates into the master style.... the only thing people would no longer have is having their templates appear in red (== non-default template) in the Style Manager.

*sigh* choices choices...

Anyhoo, as you can see, I'm going over many various possibilities to solve that...

KuraFire 01-27-2004 08:44 PM

Quote:

Originally Posted by Natch
KuraFire - can u check out my HTL compatible hacka nd tell me why my one of installers (not I tho) is getting an SQL error?

https://vborg.vbsupport.ru/showpost....9&postcount=11
Code:

mysql error: Unknown column 'changetype' in 'field list'

mysql error number: 1054


very weird, I'll check it out...

Link14716 01-28-2004 03:49 AM

Heh, I've upgraded all 3 of my released vB3 hacks to have an HTL install file (and the shoutbox is HTL exclusive). It's probably a little overkill to put a 1 file edit hack into the HTL, but that's what it was made for, right? ;)

Once again, great job, KuraFire. :)

PiotrasG 01-28-2004 06:34 AM

i get this error when trying to install it, any ideas


Database error in vBulletin 3.0.0 Release Candidate 3:

Invalid SQL: SELECT * FROM hacklog WHERE hackid=1
mysql error: Table 'ad.hacklog' doesn't exist

mysql error number: 1146

Date: Wednesday 28th of January 2004 02:43:59 AM
Script: http://ad.com/admincp/install_htl.ph...log=1&inside=1
Referer: http:/ad.com/admincp/install_htl.php?inside=1

PranK 01-28-2004 07:34 AM

/me clicks install.

SWEET! this'll be great! Thanks Kura!

Christian

KuraFire 01-28-2004 10:18 AM

Quote:

Originally Posted by PiotrasG
i get this error when trying to install it, any ideas


Database error in vBulletin 3.0.0 Release Candidate 3:

Invalid SQL: SELECT * FROM hacklog WHERE hackid=1
mysql error: Table 'ad.hacklog' doesn't exist

mysql error number: 1146

Date: Wednesday 28th of January 2004 02:43:59 AM
Script: http://ad.com/admincp/install_htl.ph...log=1&inside=1
Referer: http:/ad.com/admincp/install_htl.php?inside=1

did you have an existing table `hack` on your database? o.O

KuraFire 01-28-2004 10:23 AM

Additional locations where some very good suggestions for HTL 1.1 are being made:


http://everythingvb.com/showthread.php?t=27
http://everythingvb.com/showthread.php?t=33

If anyone has anything to add to those, please add them ASAP :)

Slappy Nutz 01-28-2004 11:35 AM

Yeaaa, Every thing went fine untill I went to the admincp, there is no nav for manage hacks or anything like that?!?! if I go to www.mysite.com/forums/admincp/hackadmin.php it works fine and I get no errors, if I go to www.mysite.com/forums/hacklog.php it shows that HTL is installed and thats all, but still no errors. Any idea on why it dosent show up in the admincp/index?

KuraFire 01-28-2004 12:21 PM

Quote:

Originally Posted by Slappy Nutz
Yeaaa, Every thing went fine untill I went to the admincp, there is no nav for manage hacks or anything like that?!?! if I go to www.mysite.com/forums/admincp/hackadmin.php it works fine and I get no errors, if I go to www.mysite.com/forums/hacklog.php it shows that HTL is installed and thats all, but still no errors. Any idea on why it dosent show up in the admincp/index?

- try refreshing your admin navpanel frame;
- did you apply the file edits to admincp/index.php ?

PiotrasG 01-28-2004 02:29 PM

no i dont, its the first time im trying to install it

KuraFire 01-28-2004 03:52 PM

Quote:

Originally Posted by PiotrasG
no i dont, its the first time im trying to install it

Whe?


All times are GMT. The time now is 02:33 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.01594 seconds
  • Memory Usage 1,857KB
  • 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
  • (9)bbcode_code_printable
  • (1)bbcode_php_printable
  • (19)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