The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
need some help for my first hack plz!!
Hi there,
i want to learn to write hacks, but i have some problems wit the get template function, in this hack i want that it get the messeage and the title from a template for a auto pm and a auto mail, but the mails an pms all the time empty. What is there wrong? thanks for help! PHP Code:
|
#2
|
||||
|
||||
As i see when i look onto cpheader();, you want to run this script from within your admin-cp.
i think the gettemplate function doesn't work correctly in the ACP, because there is no steyleset and templateset defined, so it just looks at the global set, but you have created custom templates which aren't within the globalset.. try this code: PHP Code:
|
#3
|
||||
|
||||
cool thanks that works!
|
#4
|
||||
|
||||
you're welcome
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|