The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I have been trying to do this and not having any luck. I've never seen this doen within any of jelsoft's scripts, so my guess is not, however if it is possible can someone tell me how?
|
#2
|
|||
|
|||
![]()
I'm not too sure what you mean by eval template from within the AdminCP but if you mean like fetching a template for the standard pages then I don't think it is possible, at least I haven't seen it done anywhere either. Although I don't think there would be much of a need anyway. the adminfunctions.php file has lots of print functions which will display everything correctly. Normally labeled print_.... check out the "Functions" section of the code documentation.
http://members.vbulletin.com/api/ |
#3
|
||||
|
||||
![]()
The template system is not initialised when in the admincp.
I believe you could change this via a plugin and I'm sure I posted something about it many months ago, but I don't have time to search for it atm (i'm at work ![]() |
#4
|
|||
|
|||
![]()
The reason that the AdminCP does not use regular templates is that it would make it more likely that you get locked outof the AdminCP in case of an error in a template.
|
#5
|
||||
|
||||
![]()
Do you know if the .com team has any plans to revamp the ACP in the future?
|
#6
|
||||
|
||||
![]()
thanks people, yes i'm currently utilizing many of the the print_ functions within adminfunctions.php but for several of the mods I'm currently writing, I have found that the existing functions are insufficient.
For instance, one of my mods shows thumbnails of file attachments from within the admincp, and I was looking to call template postbit_attachmentthumbnail to display them. as many of us know, there's no such type of vbulletin function in existence. I've got around the limitation by assigning the html to a var, and using the var within print_description_row() which is fine, but coding it would have been so much easier if I were able to just eval the template. You can see what I did in attachment. Marco, that's a good reason i suppose why jelsoft doesn't currently eval anyt templates in admincp, I never thought of that possibility, but it certainly makes sense. |
#7
|
|||
|
|||
![]()
Bobster: I doubt there will be major changes in the AdminCP for the 3.x versions.
|
#8
|
|||
|
|||
![]() Quote:
P.s. did you see my post in your other topic about using construct_phrase? e.g. for your thumbnail thing just store all the html for the images in a variable whilst inside the while() then you can just echo it between a HTML Code:
<tr><td class="thead">thumbnail things</td></tr> <tr><td class="alt2">$thumbs</td></tr> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|