![]() |
|
Thread Tools |
#1
|
||||||||||||
|
||||||||||||
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:
That '{' error refers to
When I was testing this out, I found that when I click save on the template in the admincp it fixes the problem - but I dont know why. I tried searching for the template submission code in vBulletin but I didnt find anything that stood out. 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
I get a vbulletin database error when viewing the page. 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. No members have liked this post.
|
#2
|
||||
|
||||
What do you mean with "autosubmit"?
No members have liked this post.
|
#3
|
||||||||
|
||||||||
Originally Posted by KirbyDE
Where the install script (my code) inserts templates/phrases so the user doesnt have to.
But btw, I do rebuild styles and languages after editing, and ... yea - i think i explained the rest. No members have liked this post.
|
#4
|
||||
|
||||
You are not compiling the Templates ...
No members have liked this post.
|
#5
|
|||
|
|||
Originally Posted by KirbyDE
Ok, checking that out. Any suggestions about the phrases not showing up?
No members have liked this post.
|
#6
|
||||
|
||||
Are you using an existing Phrasetype?
If not: Have you altered Table language and inserted a record in Table Phrasetype? No members have liked this post.
|
#7
|
||||
|
||||
I submit a phrasetype and a table in language...
Any other suggestions? No members have liked this post.
|
#8
|
||||
|
||||
Yes - use add_phrase_type() in adminfunctions_language.php instead of your own function
![]() No members have liked this post.
|
#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 ![]() No members have liked this post.
Last edited by Ron1n; 05 Jul 2005 at 01:15. |
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 15:28.