![]() |
style xml file parsing issue!
i get this error:
Code:
Warning: xml_parse(): 17 is not a valid XML Parser resource in /admincp/journalupgrade2.php on line 99 PHP Code:
|
Are you sure the xml-file is correct?
|
i did add one little thing to it>_>
|
ok well did me adding action="xxx" to the <template> tag break the parser?
|
Difficult to say without seeing the XML-file.
|
1 Attachment(s)
here is the xml file i am using
|
I guess i didn't good read the original error message.
Aren't you calling xml_parse_free to early? I guess the parser resource is already freed and don't exist anymore when you call xml_parse(). PS What vB version is this for? Why don't you use the buildin vB xml functions? |
this is for vbulletin 3.0.x and there are only style importers not just template importers.
|
then why don't you use the vbulletin function to import style ?
it's xml_import_style() btw. ok this is what I did: PHP Code:
|
what if i wanted this to overwrite existing templates?
|
it then should be install in the MASTER STYLE.
|
well im gonna install it in all styles but can i overwrite templates already existing with new template data?
also i added a variable called action to the <template> tag but it does not get parsed>_> |
templates will be override if they are not customized, installing in master style means install in all styles and you can check for updated templates by using Updated Templates function.
|
well of these templates are custom since they are not standard with vbulletin.
|
as long as they are put in the master style it will not be treated as custom templates
|
ok but since this is an upgrader script and so and so already has these templates installed as custom templates not in the master style, will this overwrite those custom templates not in the master style?
|
no, it will not overwrite the custom templates, but you can ask users to do so buy check for updated templates and then revert. or simply remove those templates first and then insert the new ones.
|
Quote:
|
bump!!!
|
Quote:
|
Quote:
PHP Code:
it's easier in vb3.5... |
Quote:
edit: how about reading that action="" thing i added to the <template> tag? because the parser does not seem to read it. |
sorry I can't help you with that.
why do you want that action param for ? |
never mind, now that i realize what replacement really does i no longer need that param:D
|
All times are GMT. The time now is 04:32 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|