![]() |
problems with autosubmitting templates and phrases
Meh, ok... im really sort of confused here.
I am making an installer script for a hack - and I wanted to have it autosubmit different phrases and templates. Everything seems to be going OK on the admincp side of things, but when I access the hack it gives me tons of errors. When I submit the templates and rebuild styles the new templates are visible in the admincp style editor, but when I access them in my mod they give me errors like: Code:
Parse error: parse error, unexpected '{' in /home/mdzaman/public_html/demo2/downloads.php(832) : eval()'d code on line 2 Code:
{$stylevar['htmldoctype']} When I submit phrases, they are visible when searched for and when I am viewing all phrase groups, but my own phrase group (downloads, id=411) is not visible and I cannot find out why. Furthermore, when I try to cache phrasegroups for the specific page Code:
$phrasegroups = array('downloads'); If someone could help solve some/all of these problems ... that would be great. Thanks for reading down this far - hopefully you have an answer. |
What do you mean with "autosubmit"?
|
Quote:
PHP Code:
PHP Code:
|
You are not compiling the Templates ...
|
Quote:
|
Are you using an existing Phrasetype?
If not: Have you altered Table language and inserted a record in Table Phrasetype? |
I submit a phrasetype and a table in language...
PHP Code:
|
Yes - use add_phrase_type() in adminfunctions_language.php instead of your own function :)
|
mmk.
When removing it, is there anything I need to remove that I didnt before - or is there a function to remove it? (I didnt see a remove function in the same file as the add function you just showed me). Edit: i found the problem, it was the editrows thing. Personally, I dont want to use that add_phrase_type thing until vBulletin supports add_phrase_type and remove_phrase_type for OCD reasons. :P Thanks for your help :D |
All times are GMT. The time now is 09:31 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:
|