The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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. |
#2
|
||||
|
||||
![]()
What do you mean with "autosubmit"?
|
#3
|
|||
|
|||
![]() Quote:
PHP Code:
PHP Code:
|
#4
|
||||
|
||||
![]()
You are not compiling the Templates ...
|
#5
|
|||
|
|||
![]() Quote:
|
#6
|
||||
|
||||
![]()
Are you using an existing Phrasetype?
If not: Have you altered Table language and inserted a record in Table Phrasetype? |
#7
|
|||
|
|||
![]()
I submit a phrasetype and a table in language...
PHP Code:
|
#8
|
||||
|
||||
![]()
Yes - use add_phrase_type() in adminfunctions_language.php instead of your own function
![]() |
#9
|
|||
|
|||
![]()
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 ![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|