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)

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:22 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.01373 seconds
  • Memory Usage 1,756KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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