Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 04 Jul 2005, 17:59
Ron1n Ron1n is offline
 
Join Date: Jun 2004
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:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

That '{' error refers to
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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.
Reply With Quote
  #2  
Old 04 Jul 2005, 18:13
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
What do you mean with "autosubmit"?
Reply With Quote
  #3  
Old 04 Jul 2005, 19:04
Ron1n Ron1n is offline
 
Join Date: Jun 2004
Originally Posted by KirbyDE
What do you mean with "autosubmit"?
Where the install script (my code) inserts templates/phrases so the user doesnt have to.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

But btw, I do rebuild styles and languages after editing, and ... yea - i think i explained the rest.
Reply With Quote
  #4  
Old 04 Jul 2005, 19:08
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
You are not compiling the Templates ...
Reply With Quote
  #5  
Old 04 Jul 2005, 19:20
Ron1n Ron1n is offline
 
Join Date: Jun 2004
Originally Posted by KirbyDE
You are not compiling the Templates ...
Ok, checking that out. Any suggestions about the phrases not showing up?
Reply With Quote
  #6  
Old 04 Jul 2005, 19:22
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
Are you using an existing Phrasetype?
If not: Have you altered Table language and inserted a record in Table Phrasetype?
Reply With Quote
  #7  
Old 05 Jul 2005, 00:24
Ron1n Ron1n is offline
 
Join Date: Jun 2004
I submit a phrasetype and a table in language...

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Any other suggestions?
Reply With Quote
  #8  
Old 05 Jul 2005, 00:33
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
Yes - use add_phrase_type() in adminfunctions_language.php instead of your own function
Reply With Quote
  #9  
Old 05 Jul 2005, 01:11
Ron1n Ron1n is offline
 
Join Date: Jun 2004
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

Last edited by Ron1n; 05 Jul 2005 at 01:15.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 15:28.

Layout Options | Width: Wide Color: