vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Administrative and Maintenance Tools - Advanced Warning System 3.6.7 (https://vborg.vbsupport.ru/showthread.php?t=124477)

ginger22 06-06-2007 01:16 PM

This error:
[06-Jun-2007 17:44:59] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /hq/site/foo/www/includes/class_dm_threadpost.php(656) : eval()'d code on line 1
Dissappear when I disabled postdata_start hook.
But, what happend if this be disabled? Or I need to enable this agayn?

Second error still here...

Delphiprogrammi 06-06-2007 01:34 PM

i tested it on my testboard with a post related warning and a non post related warning no errors at all (both of them didn't showed up) the postdata_start hook at wrong code PHP code in it true but you need to manually edit the plugin at that hook and no you need that hook or some data will be missing.I'll see later to package the fix as a plugin that you can import.This is not your fault but mine i forgot to mention you need to manually update that hook otherwise vBulletin will not update it

here it is imprt this through admincp => product system => download/ upload plugins

ginger22 06-06-2007 01:39 PM

The second error will be fixed?

Silver_Seagull 06-06-2007 06:46 PM

I am still getting errors on 4.4.7 after applying the fix and the updated files.

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in C:\<path>\includes\class_dm_threadpost.php(656) : eval()'d code on line 1

and

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\<path>\includes\class_dm_threadpost.php(829) : eval()'d code on line 64

I've disabled all other hacks except this and I am still getting these errors, even on the default skin. Had to disable, since I don't have the old version lying around.

Delphiprogrammi 06-06-2007 09:05 PM

hmmmz,

I do drink much but it doesn't contain any alcohol. :rolleyes:

Code:

this->validfields['title'][VF_CODE] = '$dm->set_info(\'orgtitle\', $data); return $dm->verify_title($data);';
$this->validfields['pagetext'][VF_CODE] = '$dm->set_info(\'orgmessage\', $data); return $dm->verify_pagetext($data);';

should be
Code:

$this->validfields['title'][VF_CODE] = '$dm->set_info(\'orgtitle\', $data); return $dm->verify_title($data);';
$this->validfields['pagetext'][VF_CODE] = '$dm->set_info(\'orgmessage\', $data); return $dm->verify_pagetext($data);';

i forgot a "$" $this is a PHP variable refering to the "current" object.The newly attached error_fix.xml contains the change and this time it's gonna work or you can shoot me :D

ginger22 06-07-2007 04:59 AM

Wow! Great! This work!
But i still get
[07-Jun-2007 09:57:54] PHP Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /hq/site/foo/www/includes/class_dm_threadpost.php(829) : eval()'d code on line 64

ginger22 06-07-2007 07:23 AM

And also: How can I do another language template?

Delphiprogrammi 06-07-2007 09:21 AM

Quote:

Originally Posted by ginger22 (Post 1263032)
And also: How can I do another language template?

You are free to Translate the phrases into any language you wish to use.. that's why the phrases system excist

as for the error message you still see that is coming from the postdata_postsave hook and that one is used by the automatic warnings feature which can be turned off in the system settings

The package availible for download has been updated to include the fix for the PHP error message and the original error_fix.xml is removed to avoid confusion

ginger22 06-07-2007 09:34 AM

Quote:

Originally Posted by Delphiprogrammi (Post 1263078)
You are free to Translate the phrases into any language you wish to use.. that's why the phrases system excist

No, I mean, how can I create a language .xml file only for Language?
Quote:

Originally Posted by Delphiprogrammi (Post 1263078)
as for the error message you still see that is coming from the postdata_postsave hook and that one is used by the automatic warnings feature which can be turned off in the system settings

Can you say, what exactly I should to do?

Delphiprogrammi 06-07-2007 11:49 AM

Quote:

Originally Posted by ginger22 (Post 1263085)
No, I mean, how can I create a language .xml file only for Language?

Can you say, what exactly I should to do?

  • admincp => languages & phrases => {YOUR LANUGAGE} => translate phrases
  • admincp => language.php?do=files => product advanced Warning System
  • for each language you have installed vBulletin will display a corrosponding "translation box"
  • please note you must be able to translate "from english"
  • you will need the phrasetype id's used (you can see that in the product XML)
automatic warnings can be turned of by going to admincp => advanced warning system => manage system settings => use automatic warnings from posts and use automatic warnings from private messages set that to no

in case you get confused by the XML coding.You can also find the phrases you'll need to translate by quering your database like this

[sql]
SELECT * FROM vb3_phrase WHERE product = 'aws' ORDER BY fieldname DESC
[/sql]

if you use another table prefix (or none at all) you will need to replace that in the above example


All times are GMT. The time now is 05:49 AM.

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.01302 seconds
  • Memory Usage 1,746KB
  • 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_code_printable
  • (4)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